Abstract
Molecular representation learning is essential to deep learning for chemistry, where molecules are embedded into continuous real-valued vectors to navigate the vast chemical space. Traditional methods often require expensive, high-quality labels for physicochemical or pharmacological properties. Consequently, self-supervised learning (SSL) on large-scale, unlabeled chemical data has become a popular alternative. While masked auto-encoders are common in this field, they typically focus on the structural existence of compounds rather than their chemical behavior. In this paper, we present Masked Molecule Modeling (MMM), an emerging self-supervised paradigm that exploits contextualized chemical semantics across more than two million reactions. MMM significantly outperforms existing methods in tasks such as biocatalyzed synthesis planning, retrosynthesis, binding affinity, and pharmacological property prediction.
The Need for Chemical Semantics
Deep learning for chemistry relies on mapping molecules into a mathematical space where their properties can be predicted. While SSL has helped overcome data scarcity, most current methods operate on single molecules. The authors argue that masking atoms in an isolated molecule only teaches a model that certain structures exist, failing to capture "chemical semantics"—the underlying reasons why molecules behave the way they do.
For instance, a model might learn the structure of chlorobenzene, but it won't understand how its reactivity differs from bromobenzene or iodobenzene unless it observes them within the context of a reaction. To truly "understand" chemistry, a model must observe how substances transform and interact with reactants, catalysts, and solvents.
Methods: Masked Molecule Modeling (MMM)
MMM introduces a pretext task where the model must reconstruct masked atoms, bonds, and motifs within the context of a complete chemical reaction. This approach treats a reaction as a "chemical sentence," where the meaning of each molecular "word" is derived from its surroundings.
Technical Innovations
- Masked Graphormer: A specialized Transformer architecture for graphs that uses structural encodings to represent spatial relationships between atoms rather than simple sequences.
- Reaction Encodings: The model uses learnable "role" vectors to distinguish between reactants, products, catalysts, and solvents.
- Masked Structural Encodings: To prevent "cheating" via known spatial distances, the model re-calculates shortest-path distances only between unmasked atoms during training.
- Tree-Structured Enzyme Embeddings: For biocatalysis, a hierarchical embedding system for Enzyme Commission (EC) numbers was developed to capture relationships between enzyme families.
Key Insights and Results
MMM was pre-trained on a cleaned version of the Open Reaction Database (ORD), containing approximately 2.24 million reactions. Despite using significantly less data than previous models (some trained on 100 million isolated molecules), MMM achieved state-of-the-art (SOTA) results across multiple benchmarks:
- Retrosynthesis: On USPTO-50k, MMM achieved 56.4% Top-1 accuracy, a 2.1% absolute improvement over previous methods.
- Biocatalysis: In enzymatic reaction prediction, it reached 57.5% accuracy, a significant 7.6% jump over existing benchmarks.
- Binding Affinity: On PDBbind, MMM achieved a Mean Absolute Error (MAE) of 0.884, outperforming the previous SOTA of 1.027.
Case studies revealed that MMM-trained models implicitly learn fundamental physical laws, such as the conservation of matter and steric effects. For example, the model can identify potential steric clashes between bulky substituents, a nuance often missed by models trained only on static molecular graphs.
Conclusion
Masked Molecule Modeling represents a shift from learning molecular structures to learning chemical logic. By leveraging the rich context of chemical reactions, MMM provides a more robust and data-efficient foundation for drug discovery and synthesis planning. Future work will explore more sophisticated masking strategies and the application of MMM to materials science and catalyst design.
Summary updated