MV-CLAM: Multi-View Molecular Interpretation with Cross-Modal Projection via Language Model

Sumin Ha, Jun Hyeong Kim, Yinhua Piao, Sun Kim

TL;DR

This paper introduces MV-CLAM, a novel framework that leverages multi-view molecular representations (2D and 3D structures) to improve the understanding and generation of molecular descriptions by large language models (LLMs). By using a new "MQ-Former" architecture, MV-CLAM effectively aligns these diverse molecular views into a unified representation, leading to state-of-the-art performance in molecule-text retrieval and captioning, and enabling promising zero-shot molecule editing capabilities.

What Problem Does This Paper Address?

The field of molecular language modeling aims to bridge the gap between complex molecular structures and human-readable text. While large language models (LLMs) have shown great promise in understanding and generating text, effectively integrating them with molecular data has been challenging. Previous approaches often focused on a single type of molecular representation (e.g., 1D SMILES strings, 2D graphs, or 3D conformations), neglecting the rich, complementary information present in multiple views. This unimodal approach can lead to incomplete representations, inconsistent textual outputs, and increased computational costs. The authors address this by proposing a method that simultaneously considers both 2D and 3D molecular structures to create a more comprehensive and robust understanding for LLMs.

Methods

The core innovation is the MQ-Former (Multi-Querying Transformer), a novel cross-modal projector. Unlike previous methods that aligned single molecular views, MQ-Former takes multiple molecular representations (specifically 2D and 3D) and projects them into a unified text embedding space. It achieves this by:

  • Specialized Encoders: Using pre-trained encoders (Uni-Mol for 3D and MAT for 2D) to extract rich features from each molecular view.
  • Cross-Attention: Employing cross-attention layers within MQ-Former to update learnable query tokens for each molecular dimension (2D and 3D).
  • Shared Self-Attention: A crucial component where a shared self-attention layer allows for information exchange between the 2D and 3D query tokens, creating a consolidated "universal query token."
  • Unified Text Alignment: This universal query token is then aligned with textual representations, enabling LLMs to better interpret the molecule.

The overall MV-CLAM framework then uses this unified query, along with the 1D SMILES string and a prompt, as input to a language model (LLaMA2) for tasks like caption generation. The training involves a two-stage process: first, training MQ-Former to align molecular representations with text, and second, fine-tuning LLaMA2 with the generated universal queries.

Datasets

The authors utilized the following datasets:

  • PubChem324K: A large dataset of 324k molecule-text pairs. This was used for both molecule-text alignment and molecule captioning. A subset of 15k longer-text pairs was used for training, with shorter pairs for pretraining.
  • ZINC20: A dataset of 200 molecules used for molecule editing tasks, with specific instructions related to properties like solubility and permeability.
  • 3D-MolT: A dataset of 18439K molecule-instruction text pairs used for molecular question-answering, covering both computed and descriptive properties.

Key Insights and Ideas

  • Multi-view is Better: The core insight is that combining 2D and 3D molecular representations provides a more comprehensive understanding than using either alone. 2D views excel at capturing chemical properties and connectivity, while 3D views capture spatial arrangements.
  • Unified Representation is Key: Simply aligning separate 2D and 3D embeddings is insufficient. The MQ-Former's ability to create a single, unified query token from multiple views is critical for effective LLM integration.
  • MQ-Former as a Bridge: The MQ-Former acts as an intelligent bridge, translating the complex, multi-dimensional molecular world into a format that LLMs can readily process and understand.
  • Zero-Shot Editing Potential: The framework's success in molecule captioning extends to zero-shot molecule editing, suggesting its potential for drug discovery applications where automated molecule modification is valuable.

Key Results

  • State-of-the-Art Performance: MV-CLAM achieved state-of-the-art results in molecule-text retrieval (e.g., 96.57% accuracy in batch M2T retrieval) and molecule captioning (e.g., 31.75 BLEU-2, 40.43 ROUGE-1).
  • Improved Efficiency: The multi-view approach led to faster training times compared to single-view methods.
  • Zero-Shot Molecule Editing: The model demonstrated promising results in editing molecules based on textual prompts, modifying properties like solubility, permeability, and drug-likeness.
  • Qualitative Improvements: Attention map visualizations showed that 2D query tokens focused on chemical properties (like water solubility), while 3D query tokens focused on positional information. This complementary focus contributes to richer descriptions.

Limitations and Future Work

  • Failure Cases: The authors acknowledge limitations in differentiating structurally similar molecules, particularly regarding subtle differences in carbon chain lengths and functional groups (as shown in Appendix Table 10).
  • Future Directions:
    • Incorporate additional molecular representations (e.g., proteomics, multiomics).
  • Align more views within the MQ-Former architecture for deeper drug space navigation.
  • Curate larger molecule-text datasets to improve generalization and capture subtle variations.

Summary updated

BibTeX
@inproceedings{ha2024mv,
  author = {Sumin Ha and Jun Hyeong Kim and Yinhua Piao and Sun Kim},
  title = {{MV-CLAM: Multi-View Molecular Interpretation with Cross-Modal Projection via Language Model}},
  booktitle = {AIDrugX @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=PUJRlIXaHk},
}
Figure