3D-GSRD: 3D Molecular Graph Auto-Encoder with Selective Re-mask Decoding

Chang Wu, Zhiyuan Liu, Wen Shu, Liang Wang, Yanchen Luo, Wenqiang Lei, Yatao Bian, Junfeng Fang, Xiang Wang

Abstract

3D-GSRD introduces a novel "Selective Re-mask Decoding" (SRD) strategy to address the "cheating decoder" problem in 3D molecular pretraining. By distilling structural context into a re-masking process and employing a structure-independent decoder, the model compels the encoder to learn deep chemical representations. This approach achieves state-of-the-art results on the MD17 and QM9 molecular property benchmarks.

Introduction: The Leakage Paradox in 3D MGM

Masked Graph Modeling (MGM) has emerged as a powerful self-supervised learning paradigm for molecules, analogous to BERT in natural language processing. The objective is to mask portions of a 3D molecular graph and train an encoder-decoder architecture to reconstruct missing coordinates and atom types.

However, 3D MGM faces a critical "leakage" paradox. Providing the decoder with the 2D graph structure (bonds) makes the reconstruction task trivial. The decoder can infer missing positions from the 2D skeleton, allowing the encoder to become "lazy" and fail to capture high-level chemical semantics. Conversely, withholding all structural context makes it difficult for the decoder to distinguish between different masked sites.

Empirical evidence of the 'lazy encoder' problem: a structure-dependent decoder achieves low loss even with a frozen, random encoder.

The authors empirically demonstrate this "Lazy Encoder" problem: a powerful, structure-dependent decoder can achieve low reconstruction loss even when paired with a frozen, randomly initialized encoder. This confirms that without careful re-masking, the reconstruction objective does not force the model to learn useful chemistry.

Methods: Selective Re-mask Decoding (SRD)

To resolve this conflict, the authors propose 3D-GSRD, featuring Selective Re-mask Decoding (SRD). Unlike traditional re-masking where encoder outputs for masked atoms are simply replaced by dummy tokens, SRD re-masks 3D-specific information while reintroducing 2D structural context via a distilled position encoder.

The 3D-GSRD architecture featuring 2D-from-3D distillation and the Selective Re-mask Decoding (SRD) module.

2D-from-3D Distillation

To provide context without "cheating," a small 2D Position Encoder (2D-PE) is trained to mimic the 3D encoder’s representations. A stop-gradient operation ensures that while the 2D-PE learns from the 3D encoder, the 3D encoder itself is not influenced by raw 2D structural data through the reconstruction loss. This "filters" the structural context through the encoder's learned knowledge.

3D-ReTrans Encoder and Structure-Independent Decoder

The 3D-ReTrans encoder is a specialized Relational-Transformer that separately processes scalar features (atom types, distances) and vector features (directional geometry). This captures complex interactions efficiently. To further prevent leakage, 3D-GSRD utilizes a standard Transformer decoder instead of a Graph Neural Network, forcing reliance on the encoder's latent representations.

Experimental Results

The model was pretrained on the PCQM4Mv2 dataset (3.37M structures) and evaluated on standard benchmarks:

  • MD17 Benchmark: 3D-GSRD set a new state-of-the-art (SOTA) on 7 out of 8 targets for force prediction, significantly outperforming previous methods like Frad and 3D-EMGP.
  • QM9 Benchmark: The model achieved SOTA or near-SOTA performance across most properties, particularly excelling in predicting dipole moments ($\mu$) and electronic spatial extent ($<R^2>$).

Ablation studies confirmed that removing the SRD component or the distillation process led to a measurable drop in performance, proving that the synergy between the structure-independent decoder and the selective re-masking is the "secret sauce" of the model.

Conclusion

3D-GSRD effectively balances the need for structural context with the requirement for challenging pretraining tasks. By preventing "lazy" encoding through SRD and distillation, it learns robust chemical representations. Future work includes scaling to larger datasets and extending the framework to biological macromolecules like proteins or multi-modal tasks.

Summary updated

BibTeX
@inproceedings{wu2025d,
  author = {Chang Wu and Zhiyuan Liu and Wen Shu and Liang Wang and Yanchen Luo and Wenqiang Lei and Yatao Bian and Junfeng Fang and Xiang Wang},
  title = {{3D-GSRD: 3D Molecular Graph Auto-Encoder with Selective Re-mask Decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=PZ7YLONKiI},
}
Figure