Abstract
Drug optimization—the process of enhancing existing pharmaceutical compounds—is a critical challenge in modern medicine, particularly as pathogens evolve resistance. ScaffoldGPT introduces a novel generative language model framework designed to address this by refining molecular scaffolds. By integrating a two-phase incremental pre-training strategy with reinforcement learning and a reward-guided decoding mechanism, ScaffoldGPT improves key properties such as binding affinity and solubility while preserving essential structural backbones. Experimental results on COVID-19 and cancer targets demonstrate that ScaffoldGPT significantly outperforms existing baselines, achieving a superior balance between molecular similarity and property enhancement.
Introduction
The emergence of viral mutations, such as those seen in SARS-CoV-2, and the development of drug resistance in cancer cells necessitate the rapid evolution of therapeutic agents. While de novo drug discovery is a cornerstone of pharmaceutical research, it is often prohibitively slow and expensive. Drug optimization offers a more efficient alternative by modifying existing, approved drugs to maintain efficacy against new targets.
The primary challenge in drug optimization is maintaining the "scaffold"—the core chemical structure responsible for a drug's primary function—while simultaneously optimizing secondary characteristics like docking scores, solubility, and synthesizability. Traditional AI models often fail this balancing act, either producing molecules too similar to the original to offer improvement or altering them so drastically that they lose their therapeutic essence. ScaffoldGPT is designed to navigate this "Goldilocks" zone of molecular similarity.
Methodology
ScaffoldGPT utilizes a Transformer-based architecture, similar to GPT-2, and operates through a specialized three-stage pipeline.
- Two-Phase Incremental Pre-training: The model employs a curriculum learning approach. In the first phase, it learns the general syntax of molecular structures using SMILES strings. The second phase focuses on the relationship between scaffolds and complete molecules, training the model to "flesh out" a full chemical structure from a provided core.
- Reinforcement Learning (RL) Post-training: Using Advantage-alignment Policy Optimization (APO), the model is fine-tuned to maximize pharmaceutical rewards. It is incentivized to generate molecules that exhibit improved docking scores and drug-likeness compared to the starting scaffold.
- Token-level Decoding Optimization (Top-N): Unlike standard decoding strategies that prioritize token likelihood, ScaffoldGPT’s Top-N decoding selects tokens based on their predicted contribution to the final pharmaceutical reward. This look-ahead strategy allows the model to explore high-reward molecular spaces that might be overlooked by traditional maximum-likelihood methods.
Experiments and Results
The model was pre-trained on 11 million drug-like molecules from the ZINC database and fine-tuned on 1 million compounds from ZINC15. Evaluation focused on two critical targets: the SARS-CoV-2 protein 3CLPro and the human cancer protein RTCB.
ScaffoldGPT was benchmarked against eight state-of-the-art models, including REINVENT 4 and DrugImprover.
- Performance Metrics: ScaffoldGPT achieved the highest Average Normalized Reward across all benchmarks, which aggregates docking score, drug-likeness, synthesizability, and solubility.
- Target-Specific Success: For the COVID-19 target (3CLPro), it reached a reward of 0.675, significantly higher than DrugImprover’s 0.432. Similarly, for the cancer target (RTCB), it achieved 0.682 compared to the baseline's 0.478.
- Case Studies: Qualitative analysis confirmed that ScaffoldGPT can successfully preserve a drug's core scaffold while nearly doubling its solubility and significantly improving its docking affinity.
Discussion
A key insight from this work is that optimizing for pharmaceutical rewards at the token level is more effective than maximizing sequence likelihood for drug design. Standard LLMs are often constrained by their training data's distribution; by shifting focus to reward-guided generation, ScaffoldGPT can discover novel, high-performing variants. Furthermore, the two-phase pre-training strategy proved essential for maintaining the chemical validity of generated molecules.
Conclusion
ScaffoldGPT represents a significant step forward in scaffold-based drug optimization. While currently limited to 1D SMILES representations, future work aims to incorporate 3D molecular graphs to capture more complex spatial relationships. Additionally, extending the framework to include fragment-level control could provide chemists with even more granular tools for precision drug design.
Summary updated