Equivariant Masked Position Prediction for Efficient Molecular Representation

Junyi An, Chao Qu, Yun-Fei Shi, XinHao Liu, Qianwei Tang, Fenglei Cao, Yuan Qi

Abstract

Self-supervised learning (SSL) has become a cornerstone for training Graph Neural Networks (GNNs) in domains with limited labeled data. In computational chemistry, however, existing SSL methods often rely on simplistic attribute masking or rigid statistical assumptions in denoising tasks. This paper discusses Equivariant Masked Position Prediction (EMPP), a framework that reconstructs the 3D coordinates of masked atoms. By grounding the learning objective in the physical principles of intramolecular forces and utilizing equivariant architectures, EMPP achieves state-of-the-art performance across multiple molecular benchmarks, including QM9 and GEOM-Drug.

1. Introduction

The application of Graph Neural Networks (GNNs) to molecular property prediction has significantly advanced the field of computational chemistry. However, the efficacy of these models is often constrained by the scarcity of high-quality, ab initio labeled data. While large-scale unlabeled molecular datasets exist, effectively leveraging them through Self-Supervised Learning (SSL) remains a challenge.

Traditional molecular SSL approaches generally fall into two categories: attribute masking and denoising. Attribute masking involves hiding atomic identities, which often results in tasks that are either underdetermined or too simple to capture complex physical interactions. Denoising methods, which involve perturbing and then recovering atomic positions, typically rely on Gaussian Mixture Approximations of the Potential Energy Surface (PES). These approximations often fail to represent the intricate, non-Gaussian nature of real molecular energy landscapes.

2. Equivariant Masked Position Prediction (EMPP)

EMPP addresses these limitations by masking the 3D position of a specific atom while retaining its identity. This approach is rooted in the physical principle that, in an equilibrium structure, the net force acting on any given atom is zero. To accurately predict a missing position, a model must implicitly learn the underlying quantum mechanical forces and interactions between the masked atom and its neighbors.

2.1 Equivariant Architecture

To maintain physical consistency, EMPP utilizes equivariant GNN architectures (e.g., Equiformer or TorchMD-Net). These models ensure that the predicted positions respect 3D rotations and translations. If the input molecular frame is rotated, the model’s output rotates accordingly, preserving the geometric integrity of the prediction.

2.2 Distribution Prediction

Rather than regressing a single set of XYZ coordinates, EMPP predicts a probability distribution over a sphere. This is achieved by decomposing the task into:

  1. Radial Distribution: Predicting the distance of the atom from the local center.
  2. Directional Distribution: Predicting the orientation using spherical harmonics and Fourier transforms.

This probabilistic approach allows the model to capture the uncertainty and multi-modal nature of atomic placements in complex molecular environments.

3. Experimental Evaluation

The performance of EMPP was evaluated across several diverse datasets, including QM9 (134,000 small organic molecules), MD17 (molecular dynamics trajectories), PCQM4Mv2 (3.4 million molecules for large-scale pre-training), and GEOM-Drug (complex organic molecules).

3.1 Key Results

EMPP demonstrated significant improvements over existing baselines. On the QM9 benchmark, the framework achieved state-of-the-art results in 11 out of 12 property prediction tasks. When applied to the GEOM-Drug dataset, EMPP reduced the Mean Absolute Error (MAE) for energy prediction by 48% compared to standard supervised Equiformer models.

Furthermore, EMPP proved to be a superior pre-training strategy. When pre-trained on PCQM4Mv2, it outperformed both traditional attribute masking and advanced denoising methods like Frad and DP-TorchMD-Net across nearly all metrics.

4. Discussion and Insights

A critical finding in the development of EMPP is the "1-mask" sweet spot. Ablation studies revealed that masking a single atom at a time provides the clearest training signal. Masking multiple atoms simultaneously introduces positional ambiguity, which complicates the reconstruction task and degrades the model's ability to learn meaningful physical representations.

Unlike denoising methods, which are highly sensitive to the "noise scale" hyperparameter (σ), EMPP is robust. By predicting positions directly from the chemical environment rather than attempting to reverse arbitrary noise, the model avoids the "Gaussian trap" and more accurately reflects the true energy landscape of the molecule.

5. Conclusion and Future Work

Equivariant Masked Position Prediction offers a physically grounded and efficient framework for molecular representation learning. By shifting the focus from attribute masking to geometric reconstruction, EMPP enables GNNs to capture the fundamental forces governing molecular stability.

While the current implementation primarily uses equivariant features up to degree l=3, future work may explore higher-order representations to capture finer quantum details. Additionally, researchers aim to refine the multi-atom masking strategy to further enhance the model's scalability and predictive power.

Summary updated

BibTeX
@inproceedings{an2025equivariant,
  author = {Junyi An and Chao Qu and Yun-Fei Shi and XinHao Liu and Qianwei Tang and Fenglei Cao and Yuan Qi},
  title = {{Equivariant Masked Position Prediction for Efficient Molecular Representation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Nue5iMj8n6},
}
Figure