Abstract
Self-supervised learning (SSL) has become a cornerstone of molecular property prediction, yet existing contrastive learning (CL) frameworks often struggle when integrating more than two modalities. A primary challenge is the "line-collapsing problem," where intermodal alignment losses compress embeddings into a narrow subspace, discarding unique modality-specific information. We introduce Triangular Contrastive Learning (TriCL), a trimodal framework that leverages 1D strings, 2D graphs, and 3D conformations. By employing a novel Triangular Area Loss, TriCL treats representations as vertices of a triangle, optimizing its area to maintain a discriminative angular geometry. Our approach achieves state-of-the-art results on the MoleculeNet benchmark, demonstrating the efficacy of geometric constraints in multi-modal molecular representation learning.
Introduction: The Challenge of Multi-Modal Collapse
In drug discovery, the scarcity of labeled data necessitates effective SSL methods. Standard CL techniques teach models to align different "views" of a molecule. However, as researchers move beyond bimodal setups (e.g., 2D graphs and 3D shapes) to include 1D strings, they encounter a significant hurdle: embedding collapse. Pairwise losses, such as NT-Xent, tend to pull different modalities so close that they overlap into a single line or narrow cone. This collapse destroys the nuanced information inherent in each modality, ultimately limiting the model's performance on downstream tasks like toxicity or bioactivity prediction.
Methodology: The TriCL Framework
TriCL addresses these limitations by utilizing three specialized encoders for a single molecular entity:
- Main Encoder (2D Graph): A Graph Isomorphism Network (GIN) capturing structural connectivity.
- Auxiliary 1 (1D String): A Transformer processing SELFIES strings, which offer superior robustness to SMILES for chemical mutations.
- Auxiliary 2 (3D Structure): A 3D Convolutional Neural Network (3DCNN) that operates on voxelized molecular conformations.
The defining innovation of TriCL is the Triangular Area Loss. Rather than relying solely on pairwise distances, TriCL interprets the three representations as vertices of a triangle in the embedding space. For positive triplets (the same molecule), the loss minimizes the triangle's area to align the views. For negative triplets (different molecules), it maximizes the area. This geometric objective makes the model "angle-aware," preventing the encoders from collapsing into a single line and encouraging a more informative, cone-shaped distribution.
Experimental Setup and Datasets
The model was pre-trained on 50,000 to 200,000 molecules from the GEOM dataset, which provides high-fidelity 3D conformers. Evaluation was conducted across eight binary classification tasks from MoleculeNet, spanning physiology (BBBP, ClinTox, SIDER), biophysics (HIV, BACE), and toxicity (Tox21, ToxCast, MUV).
Key Insights: Geometry and Robustness
The Geometry of Collapse
Systematic observation of the embedding spaces revealed that while intramodal losses (within a single modality) tend to spread data across a hypersphere, intermodal alignment losses act as a powerful compressor. TriCL identifies a "Goldilocks" zone by using the Triangle Area Loss to ensure that while modalities are aligned, they remain distinct enough to be discriminative.
Robustness via SELFIES
The choice of SELFIES over SMILES for the 1D modality proved crucial. Because nearly any mutation to a SELFIES string results in a valid chemical structure, the 1D view remains robust during the augmentation and encoding process, providing a more reliable signal for contrastive learning.
Results and Performance
TriCL sets a new state-of-the-art for molecular property prediction, achieving an average AUC-ROC of 74.71 across MoleculeNet tasks. This performance surpasses established baselines such as GraphMVP (73.07) and GraphCL (70.64). Notably, TriCL showed significant improvements in specific tasks like ClinTox (85.4 vs. 77.5) and BACE (82.5 vs. 81.2). Ablation studies confirmed that the Triangular Area Loss is the primary driver of these gains; reverting to standard pairwise losses resulted in a marked decline in performance.
Limitations and Future Directions
While effective, TriCL's trimodal architecture introduces higher computational overhead compared to simpler models. Furthermore, scaling beyond three modalities—such as incorporating quantum properties—would require extending the geometric objective to higher-dimensional simplexes (e.g., tetrahedral volumes). Finally, the authors observed that pre-training data quality and relevance are often more critical than raw dataset size, suggesting a need for more curated molecular datasets in future research.
Summary updated