TL;DR
CoMole introduces a controllable molecular generative foundation model that bridges the gap between structural pretraining and task-specific inverse design. By shifting the reinforcement learning (RL) optimization space from fragile, atom-level edits to chemically meaningful "motifs" (like functional groups and rings), CoMole stabilizes training and significantly outperforms existing baselines in property targeting while maintaining exceptional chemical validity.
What Problem Does This Paper Address?
Molecular inverse design—generating new molecules or polymers with specific target properties—is a holy grail for drug discovery and materials science. While recent graph diffusion models excel at generating realistic molecular structures, making them reliably controllable for specific engineering targets remains a massive challenge.
A natural way to steer these generative models toward specific properties is through Reinforcement Learning (RL) post-training. However, traditional graph RL operates at the atom level. This creates a severe bottleneck:
- Vast Action Spaces: Choosing atom-by-atom creates an enormous combinatorial space.
- Trajectory Collapse: A single illegal atom placement or valence violation can throw the entire generation sequence off course, leading to chemically invalid structures.
- Fragile Credit Assignment: It is incredibly difficult for an RL agent to connect a high-level property reward (e.g., gas permeability) to a low-level decision like placing a specific carbon atom twenty steps earlier.
Methods
The authors propose CoMole (Controllable Molecular Foundation Model), which reparameterizes graph-diffusion RL using a motif-aware decision space.
The CoMole framework consists of a three-stage pipeline:
- Motif Graph Tokenization: Using a data-driven Node Pair Encoding (NPE) tokenizer, individual atoms are clustered into frequent, chemically stable substructures (motifs) such as rings and functional groups, while preserving exact attachment points.
- Unconditional Pretraining (PT): A graph diffusion transformer learns fundamental structural and chemical priors from large, unlabeled molecular datasets.
- Supervised Fine-Tuning (SFT): The model is trained to generate molecules conditioned on multiple property targets.
- Reinforcement Learning (RL) Alignment: Proximal Policy Optimization (PPO) fine-tunes the conditional reverse diffusion policy. Crucially, because the action space consists of motif transitions rather than atom edits, the RL agent makes chemically meaningful decisions, leading to stable credit assignment.
Datasets
CoMole was pretrained and evaluated across distinct molecular domains:
- Pretraining Datasets: An unlabeled corpus of 13,000 real-world polymers and 10,000 small molecules sampled from MoleculeNet.
- Polymer Gas Permeability Benchmark: Numerical targets tracking the permeability of $O_2$, $N_2$, and $CO_2$.
- Polymer DFT Benchmark: Electronic-structure properties including electron affinity ($E_{ea}$), bulk band gap ($E_{gb}$), and chain band gap ($E_{gc}$). Ionization energy ($E_i$) and dielectric constant ($EPS$) were held out to test generalization.
- Drug/Small Molecule Benchmark: Physical chemistry (FreeSolv regression), biophysics (BACE classification), and physiology (BBBP classification).
Key Insights and Ideas
- The Fragility of Atom-Level RL: In ablation studies, replacing motifs with atom-level representations caused rule-free chemical validity to plummet from 95% to just 7%. This proves that reward reweighting cannot fix the fundamental geometric issues of atom-level graph edits.
- Abstraction as an Optimization Stabilizer: Grouping atoms into motifs compresses the graph size significantly (by up to 5.5× for polymers). This drastically reduces the number of categorical decisions required per denoising step, smoothing out the optimization landscape for RL.
- Zero-Shot Property Generalization: Perhaps the most exciting finding is that CoMole can adapt to entirely unseen target properties. By freezing the base generative model and optimizing only the task embeddings, CoMole achieved performance competitive with baselines trained directly on those targets. This demonstrates that the foundation model genuinely captures transferable structure-property relationships.
Key Results
CoMole achieved state-of-the-art controllability across all nine evaluation targets spanning materials and drug discovery:
- Polymer Controllability: CoMole reduced Mean Absolute Error (MAE) by over 44% relative to the strongest baselines on both polymer benchmarks.
- Small Molecule Performance: On drug-discovery tasks, CoMole reduced FreeSolv MAE by 13.1% and achieved a perfect 1.0 accuracy on BACE classification.
- High Chemical Validity: Unlike many baselines that rely on hard-coded chemical rules or post-hoc filtering to discard invalid structures, CoMole inherently maintained a chemical validity above 94% across all datasets.
Limitations and Future Work
While CoMole marks a major step forward, the authors note a few limitations:
- Domain-Dependent Compression: The tokenizer provides massive graph compression for large, repeating polymer structures (82.1% node reduction) but is less effective for small molecules (55.8% reduction). Consequently, the performance gains on small molecules were more modest.
- Property Coverage: The benchmarks do not yet cover critical material properties like thermal stability ($T_g$) or mechanical strength, nor do they address multi-class classification conditions.
- Future Directions: The authors suggest developing more adaptive, unified tokenizers that aren't tied to a specific training corpus, as well as exploring simultaneous multi-property control (e.g., optimizing a drug for high efficacy and low toxicity at the same time).
Summary updated