Dual-Modality Representation Learning for Molecular Property Prediction

Anyin Zhao, Zuquan Chen, Zhengyu Fang, Xiaoge Zhang, Jing LiISBRA 2025

Abstract

Accurate molecular property prediction is essential for accelerating drug discovery and materials science. Traditional approaches often rely on a single representation—either 2D graphs or 1D SMILES strings—each with inherent limitations in capturing local connectivity versus global context. This paper presents Dual-Modality Cross-Attention (DMCA), a framework that fuses these two modalities. By employing a cross-attention mechanism, DMCA effectively integrates structural topology with sequential patterns, outperforming existing single-modality and joint-learning baselines on the MoleculeNet benchmark.

Introduction

In AI-driven drug discovery, the primary challenge lies in molecular representation. Currently, two paradigms dominate:

  1. Graph-based models: Treat molecules as nodes and edges. While excellent at identifying local functional groups, Graph Neural Networks (GNNs) often struggle with long-range dependencies in large molecules.
  2. Sequence-based models: Treat molecules as SMILES strings. Transformers excel at capturing global patterns but may overlook the underlying 3D topology and chemical ring structures.

DMCA bridges this gap by treating the molecule as both a "map" (graph) and a "sentence" (SMILES) simultaneously, ensuring a more holistic understanding of chemical properties.

The DMCA Architecture

The DMCA framework consists of three primary modules designed to extract and fuse multi-modal features.

The DMCA architecture integrates a Graph Encoder and a SMILES Encoder through a Dual Cross-Attention mechanism.

1. Graph Encoder

A 4-layer Graph Attention Network (GAT) processes the 2D molecular graph. This branch focuses on local connectivity and atom-level features, providing the "physical" grounding of the molecule.

2. SMILES Encoder

Utilizing a pre-trained ChemBERTa model, this branch treats the SMILES string as a sequence of tokens. It captures global, sequence-level information that GNNs might miss.

3. Cross-Attention Fusion

The "secret sauce" of DMCA is the cross-attention mechanism. Unlike simple concatenation, this approach allows the SMILES features (acting as queries) to dynamically interact with Graph features (acting as keys and values). This "coordinated learning" enables the model to weigh structural features based on the global context of the sequence.

Experimental Results

The model was evaluated on the MoleculeNet Benchmark, covering five classification tasks (e.g., BBBP, HIV) and three regression tasks (e.g., ESOL, Lipophilicity).

Performance Highlights

  • Classification: DMCA achieved the highest overall rank score against ten competitive baselines, including large-scale pre-trained models like GROVER and MolCLR.
  • Regression: The model demonstrated exceptional accuracy on the ESOL solubility dataset, outperforming all baselines and maintaining a strong second-place average across all regression tasks.
  • Ablation Studies: Tests confirmed that the dual-modality approach is strictly superior to using either the GAT or ChemBERTa branches in isolation.

Key Insights

  • Complementary Modalities: The GNN provides structural topology while the Transformer provides a contextual overview. Their synergy is the primary driver of DMCA's performance.
  • Coordinated Learning: The success of the cross-attention fusion proves that allowing modalities to interact during training is more effective than simple joint representation learning.
  • Efficiency: By leveraging pre-trained encoders and a lightweight GNN, DMCA achieves high performance without the need for massive computational resources.

Conclusion and Future Work

While DMCA sets a new standard for 2D/1D fusion, there are clear paths for expansion. Future iterations could incorporate 3D spatial coordinates (conformations) to better predict properties dependent on molecular shape. Additionally, visualizing cross-attention maps could provide better interpretability, revealing which functional groups the model prioritizes for specific property predictions.

Summary updated

BibTeX
@inproceedings{zhao2025dual,
  author = {Anyin Zhao and Zuquan Chen and Zhengyu Fang and Xiaoge Zhang and Jing Li},
  title = {{Dual-Modality Representation Learning for Molecular Property Prediction}},
  booktitle = {ISBRA},
  year = {2025},
}
Figure