NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Atom-Motif Contrastive Transformer for Molecular Property Prediction

Wentao Yu, Shuo Chen, Chen Gong, Bo Han, Gang Niu, Masashi Sugiyama

TL;DR

This paper introduces the Atom-Motif Contrastive Transformer (AMCT), a novel deep learning model for predicting molecular properties. AMCT uniquely incorporates both atom-level and higher-level motif interactions, along with a property-aware attention mechanism, to achieve superior prediction accuracy compared to existing methods.

What Problem Does This Paper Address?

Predicting molecular properties (like toxicity or solubility) is crucial in fields like chemistry and pharmacology. While Graph Transformers (GTs) have shown promise by modeling atom-to-atom relationships, they often overlook the importance of "motifs" – recurring functional groups or substructures within molecules. These motifs are critical for determining a molecule's behavior, and their interactions are often more informative than just pairwise atom connections. Existing GTs fail to capture these higher-level structural patterns, limiting their predictive power. For example, phenol and cyclohexanol have identical molecular graphs when hydrogen atoms are ignored, yet their chemical properties (like acidity) differ significantly due to the interaction of the hydroxyl group with the benzene ring in phenol – a motif-level phenomenon.

Methods

The core innovation is the Atom-Motif Contrastive Transformer (AMCT). It builds upon the standard GT architecture by introducing several key components:

  • Atom and Motif Encoders: AMCT processes molecules at two distinct levels. It uses an "atom encoder" to capture low-level atom-to-atom interactions and a separate "motif encoder" to capture higher-level interactions between functional groups (motifs).
  • Atom-Motif Alignment Loss: This self-supervised loss function treats atom representations and motif representations of the same molecule as two different views of the same instance. It encourages these representations to be aligned, improving the overall molecular representation.
  • Motif Contrastive Loss: This self-supervised loss function focuses on inter-molecule consistency. It maximizes the agreement between representations of identical motifs found across different molecules, while pushing apart representations of different motifs. This helps in learning more discriminative motif representations.
  • Property-Aware Attention Mechanism: This novel mechanism uses cross-attention between property embeddings and motif representations. It allows the model to identify which motifs are most critical for predicting a specific molecular property, providing interpretability and enhancing prediction accuracy.

Datasets

The paper evaluates AMCT on seven benchmark datasets for Molecular Property Prediction (MPP). These datasets cover both classification and regression tasks. The specific datasets mentioned are:

  • Tox21
  • BBBP
  • BACE
  • SIDER
  • HIV
  • ESOL
  • ToxCast

The paper notes that these datasets are obtained from the Open Graph Benchmark (OGB).

Key Insights and Ideas

  • Motifs Matter More Than We Thought: The paper strongly emphasizes that higher-level structural patterns (motifs) are crucial for accurate molecular property prediction, often more so than just atom-level interactions. This challenges the prevailing focus on pairwise atom relationships in many existing graph-based models.
  • Self-Supervision is Key for Motif Learning: By treating atom and motif representations as different views of the same molecule (alignment loss) and by enforcing consistency of identical motifs across molecules (contrastive loss), the model effectively learns robust motif representations without requiring explicit labels for motifs.
  • Interpretability Through Property-Aware Attention: The property-aware attention mechanism is a significant contribution, not only for improving performance but also for providing insights into why a molecule has a certain property by highlighting the most influential motifs.
  • Bridging Low-Level and High-Level Representations: AMCT's strength lies in its ability to effectively integrate information from both the fine-grained atom level and the more abstract motif level, creating a richer and more comprehensive molecular representation.

Key Results

  • State-of-the-Art Performance: AMCT consistently outperforms eleven other state-of-the-art methods across all seven benchmark datasets for both classification (AUC) and regression (RMSE) tasks. The paper highlights that AMCT achieves the best performance on all datasets.
  • Significance of Components: Ablation studies show that removing either the atom-motif alignment loss, the motif contrastive loss, or the property-aware attention mechanism leads to a decrease in performance, underscoring the importance of each component. The motif contrastive loss, in particular, shows a significant performance boost.
  • Qualitative Insights: Visualizations (Figure 4) demonstrate how AMCT's property-aware attention correctly identifies motifs that are chemically important for predicting a molecule's property (e.g., identifying the '=S' motif as critical for HIV inhibition). This contrasts with Graphormer, which fails to highlight such critical motifs.
  • Robustness: Sensitivity analysis (Figure 6) indicates that AMCT's performance is relatively stable across different hyperparameter settings, making it practical to tune.

Limitations and Future Work

  • Motif Extraction: The paper mentions that motif extraction is performed using the tree decomposition of molecules algorithm and that a motif vocabulary is constructed by preprocessing all molecules in the dataset. While this is a standard approach, the definition and extraction of motifs can sometimes be complex and might influence the model's performance.
  • Hyperparameter Tuning: While the model is shown to be relatively insensitive to hyperparameters, the paper does acknowledge the existence of hyperparameters (α and β) for the loss functions, which still require tuning for optimal performance.
  • Future Work: The paper implicitly suggests that further exploration of different motif definition strategies or more advanced contrastive learning techniques could be avenues for future research. The property-aware attention mechanism also opens doors for more interpretable AI in chemistry.

Summary updated

BibTeX
@article{yu2026atom,
  author = {Wentao Yu and Shuo Chen and Chen Gong and Bo Han and Gang Niu and Masashi Sugiyama},
  title = {{Atom-Motif Contrastive Transformer for Molecular Property Prediction}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2026},
  doi = {10.1145/3787204},
}
Figure