Generating $\pi$-Functional Molecules Using STGG+ with Active Learning

Alexia Jolicoeur-Martineau, Yan Zhang, Boris Knyazev, Aristide Baratin, Cheng-Hao Liu

TL;DR

This paper introduces STGG+AL, an active learning framework that enhances the STGG+ generative model to discover novel organic molecules with specific optoelectronic properties, overcoming limitations of traditional supervised and reinforcement learning methods. By iteratively generating, evaluating, and fine-tuning molecules, STGG+AL effectively explores chemical space to find molecules with high oscillator strength and desired absorption wavelengths, outperforming existing baselines.

What Problem Does This Paper Address?

Discovering new molecules with desired properties is crucial for advancements in fields like display technology and biomedical imaging. However, a major hurdle is generating molecules with "out-of-distribution" (OOD) properties – those not well-represented in existing datasets. Standard supervised learning models excel at generating molecules similar to their training data but struggle to generalize to new property ranges. Reinforcement learning (RL) can explore novel chemical spaces but often falls prey to "reward hacking," producing molecules that are chemically invalid or not synthesizable. This paper aims to bridge this gap by developing a method that can effectively generate OOD molecules with desirable optoelectronic characteristics while maintaining chemical reasonableness.

Methods

The core of this work is the integration of a state-of-the-art supervised learning model, STGG+ (an autoregressive generative model using spanning tree-based graph generation), into an active learning loop. This approach, termed STGG+AL, works as follows:

  1. Pre-training: STGG+ is initially trained on a large dataset of molecules with similar properties to those being targeted.
  2. Active Learning Loop:
    • Generation: STGG+ generates a batch of candidate molecules, conditioned on desired property ranges.
  3. Evaluation: These molecules are evaluated using computational methods (sTDA-xTB) to determine their properties.
  4. Update & Fine-tune: The model's understanding of desirable properties is updated based on the evaluation results. STGG+ is then fine-tuned on the newly generated and evaluated molecules, allowing it to iteratively refine its generation strategy and expand its knowledge of the chemical space.

This iterative process allows STGG+AL to progressively discover molecules with improved properties, moving beyond the limitations of its initial training data.

Datasets

  • Conjugated-xTB Dataset: A newly introduced dataset containing 2.9 million $\pi$-conjugated organic molecules. These molecules are constructed by combining 181 pre-defined molecular fragments. For each molecule, optical properties (oscillator strength and absorption wavelength) are calculated using sTDA-xTB. This dataset serves as the basis for pre-training STGG+ and as a benchmark for evaluating generated molecules.

Key Insights and Ideas

  • Active Learning for OOD Generation: Integrating active learning with a strong generative model like STGG+ is a powerful strategy for discovering molecules with out-of-distribution properties, a task where pure supervised or RL methods falter.
  • Sample Efficiency: STGG+AL demonstrates remarkable sample efficiency, achieving significant improvements in oscillator strength with far fewer evaluations compared to traditional virtual screening or even RL methods.
  • Chemical Reasonableness by Design: Unlike RL methods that can generate chemically invalid molecules, STGG+ inherently generates molecules that respect chemical rules and valency, making the discovered scaffolds more plausible for experimental synthesis.
  • Iterative Refinement: The active learning loop allows the model to continuously learn and improve, progressively pushing towards higher target properties rather than saturating at local optima.

Key Results

The paper presents results for two challenging tasks:

  1. Maximizing Oscillator Strength (fosc): STGG+AL successfully generated molecules with significantly higher oscillator strengths than those found in the original dataset. The best generated molecule achieved an fosc of 27.70, a substantial increase from the dataset's best of 9.30. This was achieved with only 30,000 evaluations.
  2. Maximizing fosc in the Near-Infrared (NIR) Range: For molecules absorbing in the NIR range (wavelength $\ge$ 1000 nm), STGG+AL also outperformed baselines, generating molecules with an fosc of 2.44, compared to the dataset's best of 0.84.

In both tasks, STGG+AL consistently outperformed baseline methods like GraphGA and REINVENT4, which either saturated at lower property values or generated molecules with undesirable chemical features.

Limitations and Future Work

  • Reward Model Accuracy: The authors acknowledge that the accuracy of the reward models (sTDA-xTB or TD-DFT) can be a limitation, especially when pushing the models to their boundaries. These models may not always perfectly reflect experimental results.
  • Diversity of Scaffolds: While STGG+AL discovers novel molecules, the diversity of the discovered scaffolds could potentially be improved.
  • Future Work: The authors plan to extend this approach to model more complex optoelectronic properties, such as fluorescence, which are currently computationally prohibitive to screen. They also aim to address the limitations in reward model accuracy and scaffold diversity.

Summary updated

BibTeX
@inproceedings{jolicoeurmartineau2025generating,
  author = {Alexia Jolicoeur-Martineau and Yan Zhang and Boris Knyazev and Aristide Baratin and Cheng-Hao Liu},
  title = {{Generating $\textbackslash\{\}pi$-Functional Molecules Using STGG+ with Active Learning}},
  booktitle = {MLMP @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=dGhfVsgs01},
}
Figure