MolTRES: Improving Chemical Language Representation Learning for Molecular Property Prediction

Jun-Hyung Park, Yeachan Kim, Mingyu Lee, Hyuntae Park, SangKeun Lee

TL;DR

MolTRES improves chemical language representation learning by replacing standard masked language modeling with a challenging generator-discriminator framework and integrating scientific literature embeddings (mat2vec). This approach prevents early convergence and overfitting, setting a new state-of-the-art on MoleculeNet benchmarks for molecular property prediction.

What Problem Does This Paper Address?

Pre-training Transformers on SMILES strings (textual representations of molecular structures) has become a powerful paradigm for molecular property prediction. However, standard Masked Language Modeling (MLM) strategies—borrowed directly from natural language processing (NLP)—suffer from early convergence and limited scalability when applied to chemistry.

The authors identify two main reasons for this bottleneck:

  1. Unbalanced Token Distributions: In massive molecular datasets like ZINC, just three atoms—Carbon (C), Nitrogen (N), and Oxygen (O)—comprise 95% of all tokens.
  2. Superficial Grammatical Shortcuts: SMILES syntax contains highly predictable patterns, such as matching pairs of numbers to denote ring structures.

Consequently, standard models can easily "cheat" and predict missing tokens using simple surface patterns without actually developing a deep, structural understanding of chemistry. Furthermore, SMILES strings inherently describe structure but lack explicit information about physical or chemical properties.

Existing pre-training methods suffer from early convergence, whereas MolTRES scales effectively with more data and training steps.

Methods

To overcome these limitations, the authors introduce MolTRES (Molecular TRansformer with Enhanced Self-supervised learning), which features two primary innovations:

  • DynaMol (Dynamic Molecule Modeling): Moving away from standard MLM, the authors adopt a generator-discriminator architecture (inspired by ELECTRA). A smaller generator model predicts masked tokens in a SMILES sequence, and a larger discriminator model is tasked with detecting which tokens were replaced by the generator. As the generator improves, it creates increasingly difficult examples for the discriminator.
  • Substructure-level Masking: To prevent the model from exploiting grammatical shortcuts, MolTRES uses specialized rules to mask entire structural components, such as ring numbers and multi-token functional groups (substituents and bridges). This allows the framework to utilize an aggressive 65% masking ratio without destroying the context needed for learning.
  • Knowledge Transfer via mat2vec: To inject explicit property information, MolTRES integrates mat2vec word embeddings—which are pre-trained on millions of scientific abstracts. Using a domain-expert thesaurus, SMILES tokens are mapped to their corresponding literature concepts and fused with the Transformer's structural embeddings.
Overview of the MolTRES architecture, highlighting the generator-discriminator training loop and the integration of mat2vec literature embeddings.

Datasets

  • Pre-training: The models were pre-trained on a massive corpus combining 118 million molecules from PubChem and 1.9 billion molecules from ZINC.
  • Evaluation: MolTRES was evaluated on the MoleculeNet benchmark, spanning 8 classification tasks (including BBBP, Tox21, ClinTox, BACE, and SIDER) and 4 regression tasks (ESOL, FreeSolv, Lipophilicity, and QM9), covering quantum mechanical, physical, biophysical, and physiological properties.

Key Insights and Ideas

  • Making the Task Harder Prevents Overfitting: By forcing the discriminator to distinguish between real tokens and plausible generator replacements, the model cannot rely on superficial syntax matching. This continuous challenge prevents the early convergence typically seen in chemical language models.
  • Bridging Structure and Literature: SMILES strings are purely structural. Fusing them with text embeddings extracted from scientific literature provides a direct pathway to property-level understanding, significantly accelerating convergence and lowering training loss.
Training curves demonstrating that the integration of mat2vec embeddings enables faster convergence and yields higher downstream accuracy.

Key Results

  • New State-of-the-Art: MolTRES outperformed the previous leading chemical language model, MoLFormer-XL, by an average of 2.7% on classification tasks and 3.3% on regression tasks.
  • Outperforming Graph and 3D Models: Despite only processing 1D text strings, MolTRES consistently beat specialized 2D graph neural networks (GNNs) and 3D conformation models across most MoleculeNet tasks, proving the efficacy of large-scale text pre-training when optimized correctly.
  • Strong Quantum Property Approximation: On the QM9 dataset, which tracks quantum mechanical properties heavily tied to 3D geometry, MolTRES achieved the highest accuracy among all models that do not require expensive, ground-truth 3D coordinates.

Limitations and Future Work

While highly effective, the authors note a few areas for improvement:

  • Empirical Design: The substructure masking rules and the domain-expert thesaurus mapping for mat2vec were chosen empirically. Future iterations could explore fully learned or theoretical approaches to token mapping.
  • Architectural Scope: The evaluation was limited to a few architectural scales designed to match existing baselines like MoLFormer-XL.
  • Generative Extension: MolTRES is currently optimized for discriminative tasks (property prediction). The authors plan to adapt this framework to generative Transformers to assist directly in de novo molecule design.

Summary updated

BibTeX
@inproceedings{park2024moltres,
  author = {Jun-Hyung Park and Yeachan Kim and Mingyu Lee and Hyuntae Park and SangKeun Lee},
  title = {{MolTRES: Improving Chemical Language Representation Learning for Molecular Property Prediction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.788},
}
Figure