Mol-AE: Auto-Encoder Based Molecular Representation Learning With 3D Cloze Test Objective

Junwei Yang, Kangjie Zheng, Siyu Long, Zaiqing Nie, Ming Zhang, Xinyu Dai, Wei-Ying Ma, Hao Zhou

Abstract

3D molecular representation learning has gained tremendous interest and achieved promising performance in various downstream tasks. A series of recent approaches follow a prevalent framework: an encoder-only model coupled with a coordinate denoising objective. However, through a series of analytical experiments, we prove that the encoder-only model with coordinate denoising objective exhibits inconsistency between pre-training and downstream objectives, as well as issues with disrupted atomic identifiers. To address these two issues, we propose Mol-AE for molecular representation learning, an auto-encoder model using positional encoding as atomic identifiers. We also propose a new training objective named 3D Cloze Test to make the model learn better atom spatial relationships from real molecular substructures. Empirical results demonstrate that Mol-AE achieves a large margin performance gain compared to the current state-of-the-art 3D molecular modeling approach.

Introduction

In the fields of drug discovery and materials science, the 3D spatial arrangement of atoms—the conformation—is a primary determinant of a molecule's biological and chemical properties. Recent advances in deep learning have shifted toward self-supervised pre-training on large-scale 3D molecular datasets. The dominant paradigm, Encoder-only Coordinate Denoising (EnCD), involves adding Gaussian noise to atomic coordinates and training an encoder to reconstruct the original positions. While successful, this approach suffers from fundamental structural flaws that limit its ability to capture high-level semantic chemistry.

The Limitations of Coordinate Denoising

Through systematic probing, the authors identify two critical issues inherent in the EnCD framework:

  1. Objective Inconsistency: Analytical experiments reveal that as the deeper layers of an encoder-only model become more proficient at the denoising task, their performance on downstream molecular property prediction tasks actually declines. This suggests that the denoising objective forces the model to focus on local "pixel-level" corrections at the expense of global molecular representations.
  2. Twisted Optimization: In 3D modeling, coordinates serve two roles: they are the Content (the target to be predicted) and the Identifier (the signal that allows the model to distinguish one atom from another). When heavy noise is applied to coordinates, the identifier is corrupted. The model loses track of which atom is which, leading to unstable training and a "twisted" optimization landscape where the model struggles to map noisy inputs to correct identities.

The Mol-AE Framework

To overcome these challenges, the authors introduce Mol-AE, an auto-encoder architecture designed to decouple representation learning from the reconstruction task.

1. Auto-Encoder Architecture

Unlike encoder-only models, Mol-AE utilizes a dedicated decoder for coordinate reconstruction. This separation allows the encoder to generate high-level latent representations suitable for downstream tasks, while the decoder handles the specific geometry of the pre-training objective. For downstream fine-tuning, the decoder is discarded, ensuring the encoder's features remain "unpolluted" by the reconstruction mechanics.

2. The 3D Cloze Test

Moving beyond simple Gaussian noise, Mol-AE introduces the 3D Cloze Test. Inspired by Masked Language Modeling (MLM) in natural language processing, this objective involves "dropping" a subset of atoms from a molecule. The model must then predict the 3D coordinates of these missing atoms based on the remaining structure. This forces the model to learn the underlying spatial logic and chemical constraints of real molecular substructures.

3. Stable Identifiers via Positional Encoding

To solve the "Twisted Optimization" problem, Mol-AE introduces Positional Encoding (PE) derived from the atom order in the molecule's SMILES string. By providing a stable "ID card" for each atom that is independent of its 3D coordinates, the model can maintain atomic identity even when spatial information is missing or heavily perturbed.

Experimental Results

Mol-AE was pre-trained on a massive dataset of 19 million molecules (comprising 209 million 3D conformations) and evaluated across the MoleculeNet benchmark, including 9 classification and 6 regression tasks.

  • State-of-the-Art Performance: Mol-AE outperformed leading models such as Uni-Mol and Transformer-M on 11 out of 15 tasks. Notably, on the HIV dataset (41k+ molecules), Mol-AE achieved an ROC-AUC of 80.6, a significant improvement over previous benchmarks.
  • Robustness to Data Loss: Ablation studies demonstrated that Mol-AE remains stable even when up to 60% of atoms are masked, whereas standard denoising models often fail under high-noise conditions.
  • Decoder Depth: The researchers found that a sufficiently deep decoder (5 layers) is essential. A shallow decoder fails to act as an effective buffer, causing the encoder to over-specialize on the reconstruction task rather than learning generalizable chemical features.

Conclusion

Mol-AE represents a significant shift in 3D molecular representation learning. By addressing the inconsistencies of encoder-only denoising and introducing the 3D Cloze Test, it provides a more robust and chemically aware framework for molecular modeling. Future work may explore replacing SMILES-based identifiers with 2D graph-based topology to further enhance the model's physical intuition.

Summary updated

BibTeX
@inproceedings{yang2024mol,
  author = {Junwei Yang and Kangjie Zheng and Siyu Long and Zaiqing Nie and Ming Zhang and Xinyu Dai and Wei-Ying Ma and Hao Zhou},
  title = {{Mol-AE: Auto-Encoder Based Molecular Representation Learning With 3D Cloze Test Objective}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=inEuvSg0y1},
}
Figure