[Paper Review] Towards 3D Molecule-Text Interpretation in Language Models
The paper introduces 3D-MoLM, a framework that integrates a 3D molecular encoder with a language model via a 3D molecule-text projector and a 3D molecule-centric instruction tuning dataset (3D-MoIT). It demonstrates state-of-the-art performance on molecule-text retrieval, captioning, and open-text molecular QA tasks that involve 3D-dependent properties.
Language Models (LMs) have greatly influenced diverse domains. However, their inherent limitation in comprehending 3D molecular structures has considerably constrained their potential in the biomolecular domain. To bridge this gap, we focus on 3D molecule-text interpretation, and propose 3D-MoLM: 3D-Molecular Language Modeling. Specifically, 3D-MoLM enables an LM to interpret and analyze 3D molecules by equipping the LM with a 3D molecular encoder. This integration is achieved by a 3D molecule-text projector, bridging the 3D molecular encoder's representation space and the LM's input space. Moreover, to enhance 3D-MoLM's ability of cross-modal molecular understanding and instruction following, we meticulously curated a 3D molecule-centric instruction tuning dataset -- 3D-MoIT. Through 3D molecule-text alignment and 3D molecule-centric instruction tuning, 3D-MoLM establishes an integration of 3D molecular encoder and LM. It significantly surpasses existing baselines on downstream tasks, including molecule-text retrieval, molecule captioning, and more challenging open-text molecular QA tasks, especially focusing on 3D-dependent properties. We release our codes and datasets at https://github.com/lsh0520/3D-MoLM.
Motivation & Objective
- Bridge the gap between 3D molecular structures and LM-based text processing.
- Enable an LM to interpret and generate text conditioned on 3D molecular geometry.
- Curate a 3D molecule-centric instruction tuning dataset (3D-MoIT) from PubChem and PubChemQC.
- Demonstrate improved performance on molecule-text retrieval, captioning, and open-text QA involving 3D-dependent properties.
- Provide a scalable pipeline combining a 3D molecular encoder, a 3D molecule-text projector, and an LM for cross-modal molecular understanding.
Proposed method
- Use Uni-Mol as the 3D molecular encoder to produce 3D representations of molecules.
- Implement a 3D molecule-text projector (Q-Former) to map 3D molecule representations into the LM input space as 1D soft prompts.
- Integrate Llama2 as the base language model and allow mixed token sequences (textual and molecular) with a causal generation mask.
- Train in three stages: (1) 3D molecule-text representation learning with molecule-text matching, contrasting, and captioning; (2) 3D molecule-text alignment via generative learning for 3D-to-text generation; (3) 3D molecule-centric instruction tuning to improve following 3D-related instructions.
- Leverage 316K PubChem-based 3D molecule-text pairs enriched with GPT-3.5 descriptions for alignment and downstream tasks.
- Utilize LoRA tuning to fine-tune the LM while keeping the 3D encoder frozen.
- Create the 3D-MoIT instruction-tuning dataset from PubChem and PubChemQC to inject 3D-dependent property information into instruction formats.
Experimental results
Research questions
- RQ1Can a vision-language style projector align 3D molecular representations with a language model's input space?
- RQ2Does instruction tuning on 3D-molecule related tasks improve generation and QA performance?
- RQ3How does 3D molecular perception affect molecule-text retrieval, captioning, and open-text QA when compared to 1D SMILES or 2D graphs?
- RQ4What is the contribution of GPT-3.5 enrichment to the 3D-MoLM pipeline?
- RQ5How does a 3D-aware LM perform on 3D-dependent molecular properties compared to Uni-Mol and other baselines?
Key findings
- 3D-MoLM surpasses baselines on PubChem downstream tasks for molecule-text retrieval and captioning (e.g., Acc 93.50 in M2T and 92.89 in T2M on test for retrieval; BLEU-2/4 and ROUGE/METEOR improvements in captioning).
- GPT-3.5 enrichment boosts text generation quality and strengthens connections between molecular structures and properties.
- Open-text QA shows 3D-MoLM achieves lower MAE on 3D-dependent properties and better descriptive and computed-property QA results compared to 1D/2D perception baselines.
- 3D molecule-centric instruction tuning enhances adherence to instructions and improves 3D-property understanding (e.g., HOMO-LUMO gap predictions).
- The 3D molecule-text alignment via Q-Former enables effective cross-modal generation where the LM can produce text conditioned on 3D molecular structures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.