Transformers Discover Molecular Structure Without Graph Priors
该论文展示了纯Transformer在无需预定义图或物理先验的情况下,可以直接从笛卡尔坐标学习分子能量和力,并在OMol25数据集上达到与最先进的等变GNN相当的性能。
更新于 2025-10-03。作者:Tobias Kreiman、Yutong Bai、Fadi Atieh、Elizabeth Weaver、Eric Qu、Aditi S. Krishnapriyan。
中文摘要
图神经网络(GNNs)是分子机器学习的首选架构,特别是在分子性质预测和机器学习原子间势(MLIPs)方面。GNNs在预定义的图上进行消息传递,这些图通常由固定半径截止或k最近邻方案诱导。虽然这种设计符合许多分子任务中的局部性,但硬编码的图可能会因为固定的感受野而限制表达能力,并因稀疏图操作而减慢推理速度。在这项工作中,我们研究是否可以在没有预定义图或物理先验的情况下,直接在笛卡尔坐标上训练纯、未经修改的Transformer,以近似分子能量和力。作为我们分析的一个起点,我们展示了如何训练一个Transformer,使其在匹配的训练计算预算下,在OMol25数据集上相对于最先进的等变GNN,达到有竞争力的能量和力平均绝对误差。我们发现,Transformer学习到与物理一致的图案——例如,注意力权重与原子间距离成反比衰减——并且由于没有硬编码的偏差,可以灵活地适应不同的分子环境。使用标准的Transformer还解锁了与扩展训练资源相关的可预测改进,这与在其他领域观察到的经验缩放定律一致。我们的结果表明,GNNs的许多有利特性可以在Transformer中自适应地出现,挑战了硬编码图归纳偏差的必要性,并指向标准化的、可扩展的分子建模架构。
英文摘要
Graph Neural Networks (GNNs) are the dominant architecture for molecular machine learning, particularly for molecular property prediction and machine learning interatomic potentials (MLIPs). GNNs perform message passing on predefined graphs often induced by a fixed radius cutoff or k-nearest neighbor scheme. While this design aligns with the locality present in many molecular tasks, a hard-coded graph can limit expressivity due to the fixed receptive field and slows down inference with sparse graph operations. In this work, we investigate whether pure, unmodified Transformers trained directly on Cartesian coordinatesx2013without predefined graphs or physical priorsx2013can approximate molecular energies and forces. As a starting point for our analysis, we demonstrate how to train a Transformer to competitive energy and force mean absolute errors under a matched training compute budget, relative to a state-of-the-art equivariant GNN on the OMol25 dataset. We discover that the Transformer learns physically consistent patternsx2013such as attention weights that decay inversely with interatomic distancex2013and flexibly adapts them across different molecular environments due to the absence of hard-coded biases. The use of a standard Transformer also unlocks predictable improvements with respect to scaling training resources, consistent with empirical scaling laws observed in other domains. Our results demonstrate that many favorable properties of GNNs can emerge adaptively in Transformers, challenging the necessity of hard-coded graph inductive biases and pointing toward standardized, scalable architectures for molecular modeling.
解读
一句话总结
该论文展示了纯Transformer在无需预定义图或物理先验的情况下,可以直接从笛卡尔坐标学习分子能量和力,并在OMol25数据集上达到与最先进的等变GNN相当的性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:分子机器学习,特别是分子属性预测和机器学习分子间势(MLIPs),目前主要依赖于图神经网络(GNNs),这些网络在预定义的图上执行消息传递,这可能限制表达能力和推断速度。
- 现有方案不足:预定义图限制了表达性,且稀疏图操作可能导致推断速度慢。
- 研究目标:探索是否可以使用纯Transformer直接从笛卡尔坐标学习分子能量和力,而不依赖于预定义图或物理先验。
问题2:论文的核心创新点是什么?
- 技术创新:使用未经修改的Transformer直接在笛卡尔坐标上进行训练,无需预定义图或物理先验。
- 方法改进:采用标准的Transformer架构,允许更灵活的模型设计和更好的可扩展性。
- 优势:与GNNs相比,Transformer具有更高的表达能力和推断速度,同时可以学习到与物理一致的注意力模式。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在OMol25数据集上训练了一个1B参数的Transformer,并与其在相同训练计算预算下与最先进的等变GNN进行了比较。
- 性能提升:Transformer在能量和力的平均绝对误差方面达到了与最先进的等变GNN相当的性能,同时在推断和训练方面具有更高的速度。
- 对比结果:Transformer在能量和力的平均绝对误差方面与eSEN相当,同时在推断和训练方面更快。
问题4:这个研究的实际应用价值是什么?
- 应用场景:分子属性预测、机器学习分子间势(MLIPs)和分子建模。
- 实施建议:使用Transformer进行分子建模时,可以采用预训练-微调策略,并利用成熟的软件和硬件框架。
- 局限与展望:虽然该研究取得了成功,但仍然需要进一步研究以验证物理约束的遵守情况,并探索如何将Transformer应用于更广泛的化学问题。