Abstract
Chemical Language Models (CLMs) often struggle with the "semantic gap" between 1D text representations and the multi-dimensional nature of molecular structures. This paper introduces the Heterogeneous Molecular Encoding (HME) framework, which unifies 1D, 2D, and 3D molecular data. By utilizing a novel "Molecular Fragment Sequence" as a Chain of Thought (CoT) for Large Language Models, HME achieves state-of-the-art performance in molecular captioning and multi-objective design, demonstrating a 79.4% success rate in zero-shot inverse design tasks.
Introduction
Traditional Chemical Language Models primarily utilize 1D SMILES strings to represent molecules. However, this approach is inherently limited; SMILES strings are brittle and fail to capture critical 2D topological connectivity and 3D spatial arrangements. This leads to "information bias," where models overlook essential chemical features. To address this, the Heterogeneous Molecular Encoding (HME) framework was developed to integrate multi-modal chemical information into a shared linguistic-chemical space, allowing for more sophisticated reasoning and design.
Methods
The HME framework integrates four distinct molecular perspectives into a unified representation:
- 1D Sequential Encoding: Utilizes native SMILES embeddings.
- 2D Graph Encoding: Employs a Graph Isomorphism Network (GIN) to model connectivity.
- 3D Geometric Encoding: Uses a transformer-based encoder for Euclidean coordinates.
- Molecular Fragment Sequence: Decomposes molecules into a vocabulary of functional subgraphs.
To fuse these heterogeneous inputs, the authors use Q-learning to compress variable-length 2D and 3D features into fixed-length "query tokens." A key innovation is the implementation of a Chain of Thought (CoT) approach: when designing a molecule, the model first generates a sequence of functional fragments before producing the full SMILES string. This modular approach mimics the reasoning of human chemists. The framework is built on a Llama-3-8B backbone and optimized using LoRA.
Datasets
The research introduces MCMoD (Multi-Condition Molecular Design), a massive benchmark comprising over 1 million molecules. This dataset includes synthetic molecules, natural products, and protein ligands, each paired with textual descriptions, property values (LogP, QED, SAS), and fragment sequences. Additionally, the model was evaluated on the 3D-MoIT dataset for comprehension and Tartarus for docking affinity.
Key Results and Insights
Empirical analysis confirmed that 1D, 2D, and 3D encoders are poorly correlated (Pearson coefficients < 0.15), highlighting the necessity of multi-modal fusion. HME demonstrated significant performance gains across several benchmarks:
- Molecular Comprehension: HME achieved an 11.6% improvement in BLEU scores for molecular captioning compared to baselines like 3D-MoLM.
- Molecular Design: The model improved the Fréchet ChemNet Distance (FCD) by 8.9%, indicating superior chemical realism in generated structures.
- Inverse Design: In complex multi-objective tasks, HME reached a 79.4% success rate in zero-shot scenarios.
As shown in Figure 2, HME significantly reduces the Root Mean Square Error (RMSE) in predicting physical properties (e.g., Molecular Weight, TPSA) and quantum properties (e.g., HOMO-LUMO gap) compared to standard LLMs.
Conclusion and Future Work
The HME framework represents a significant advancement in bridging the gap between natural language and chemical structure. By treating fragments as "chemical words" and fusing multi-dimensional data, HME enables more accurate molecular description and precise design. Future research will focus on scaling chemical-linguistic datasets, incorporating conformational dynamics, and extending the model to chemical reaction modeling and lead optimization in drug discovery.
Summary updated