arXiv:2605.16480q-bio.BMcs.AI2026-05

让大模型直接读懂分子结构,提升化学推理效率。

MoleCode unlocks structural intelligence in large language models

论文配图:MoleCode unlocks structural intelligence in large language models
图 1 · 摘自论文原文
  • 用图结构显式表示分子,原子和键带唯一标识
  • 在复杂分子任务中,性能提升显著,尤其对陌生分子
  • 适用于小分子、聚合物、专利文档等多场景

分子是图结构,但大语言模型(LLMs)通常通过线性字符串处理。最常用的分子表示法SMILES将原子、键、支链和环压缩成紧凑序列,拓扑信息隐含其中,迫使LLM在执行化学操作前重建结构。我们提出MoleCode,一种无需训练、原生支持图结构的分子语言,所有分子组件以带类型和持久标识的实体形式显式表达,关系明确。该表示使分子拓扑可直接读取、编辑和审计,让LLM直接操作结构而非从语法中恢复。在分子推理、编辑、生成和分析任务中,当结构访问受限时(如陌生分子、拓扑敏感操作、大分子、重复聚合物),性能提升最明显。同时,推理过程更短,聚焦化学本质而非结构重构。在分子优化中,实现局部化、属性对齐的修改,保持与起始化合物的结构相似性。相同的子图-节点-边语法扩展至聚合物、马克什结构、机理型转化及图文混合科学文献(如研究论文和专利)。结果表明,科学对象与LLM的接口不应将结构视为需从文本解码的内容;当推理对象具有关系性时,结构本身应成为语言的一部分。

原文摘要 · Abstract (English)

Molecules are graphs, but large language models~(LLMs) are usually asked to reason about them through linear strings. The most popular molecular representation, SMILES, compresses atoms, bonds, branches and rings into a compact sequence in which topology is implicit, forcing LLMs to reconstruct molecular structure before performing the requested chemical operation. Here we introduce MoleCode, an LLM-native, training-free, graph-explicit molecular language in which all molecular components are represented as typed entities with persistent identifiers and explicit relations. MoleCode makes molecular topology directly readable, editable and auditable within the language context, allowing an LLM to operate on structure rather than recover it from syntax. Across molecular reasoning, editing, generation and analysis tasks, this representational shift improves frontier LLMs most strongly when structural access is limiting: unfamiliar molecules, topology-sensitive operations, larger structures and repetitive polymers. It also changes how inference is allocated, replacing long reasoning traces devoted to implicit structural reconstruction with shorter, more chemically directed reasoning over explicit atoms and bonds. In molecular optimization, this enables localized, property-aligned edits that preserve structural similarity to the starting compounds. The same Subgraph--Node--Edge grammar extends beyond small molecules to polymers, Markush structures, mechanism-style transformations and interleaved scientific documents, including research articles and patent disclosures in which chemical information is distributed across text and images. These results suggest that the interface between scientific objects and LLMs should not treat structure as something to be decoded from text. When the object of reasoning is relational, the structure itself should be part of the language.

分子建模大模型图结构化学AI

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。