Scaffold-Aware Generative Augmentation and Reranking for Enhanced Virtual Screening

Xin Wang, Yu Wang, Yunchao Liu, Jens Meiler, Tyler Derr

TL;DR

ScaffAug is a novel, scaffold-aware machine learning framework designed to supercharge ligand-based virtual screening for drug discovery. By combining scaffold-focused graph diffusion models with diversity-driven reranking, it successfully overcomes severe data imbalances to identify structurally diverse and novel active molecules.

What Problem Does This Paper Address?

In early-stage drug discovery, computational virtual screening (VS) helps sift through massive chemical libraries to find "hits"—molecules capable of binding to a therapeutic target. However, deep learning models applied to VS run into three major roadblocks:

  1. Class Imbalance: In typical high-throughput screening datasets, less than 1% of the molecules are actually active, leaving models with very few positive examples to learn from.
  2. Structural Imbalance: Even among the known active molecules, a few common structural cores (scaffolds) tend to dominate the dataset. Models overfit to these dominant clusters and become blind to rare or unique molecular structures.
  3. The Novelty Problem: Real-world drug discovery requires finding entirely new, unpatented chemotypes. Standard models struggle to generalize beyond the exact structural patterns seen in their training data.

The authors introduce ScaffAug to address all three challenges simultaneously by making the screening pipeline inherently "scaffold-aware."

Methods

ScaffAug splits the problem into three distinct, modular phases:

Figure 2: ScaffAug Framework. (a) The augmentation module first starts with the scaffold-aware sampling algorithm, which addresses the structural imbalance among active molecules. It clusters active scaffolds based on structure and favors sampling underrepresented scaffolds when constructing the scaffold library. GDM then generates new synthetic samples conditioned on scaffolds in the scaffold library to form the generative diverse scaffold-augmented (G-DSA) dataset. (b) The self- training module incorporates labeled data and augmentation data with a pseudo-labeling strategy. (c) The reranking module leverages prediction scores output by models to produce a more structurally diverse set of top compounds.
  • Augmentation Module (Scaffold-Aware Sampling + Extension): Instead of duplicating active molecules uniformly, the framework extracts molecular scaffolds and clusters them using K-Means on Extended-Connectivity Fingerprints (ECFP). It then calculates sampling weights inversely proportional to cluster sizes—meaning rare, underrepresented scaffolds get prioritized. A discrete graph diffusion model (DiGress) then takes these prioritized scaffolds and chemically extends them into brand-new, valid synthetic molecules.
  • Self-Training Module: To prevent noisy synthetic data from corrupting the model, ScaffAug uses a confidence-based pseudo-labeling strategy. The model warms up on real data first, then iteratively evaluates the synthetic molecules, only adding them to the training set if its prediction confidence clears a strict threshold ($\tau$).
  • Reranking Module: Finally, instead of just trusting the model's raw top-k predictions, ScaffAug applies a Maximal Marginal Relevance (MMR) algorithm. This algorithm reranks the final candidate list by balancing the model's confidence score against a structural diversity score (measured via pairwise Tanimoto similarity of the scaffolds), ensuring the top recommended molecules aren't all from the same structural family.

Datasets

The framework was evaluated using WelQrate, a high-quality benchmarking collection of molecular bioassays. The authors selected five representative datasets covering different therapeutic target classes:

  • AID1798 (GPCR / M1 Muscarinic Receptor)
  • AID2689 (Kinase / Serine Threonine Kinase 33)
  • AID463087 (Ion Channel / Cav3 T-type Calcium Channel)
  • AID485290 (Enzyme / Tyrosyl-DNA Phosphodiesterase)
  • AID488997 (Transporter / Choline Transporter)

To rigorously test generalization, they evaluated models on both standard random splits and scaffold splits (where the test set contains entirely unseen core structures).

Key Insights and Ideas

  • Naive Augmentation Can Hurt: The authors discovered that uniform active sampling (simply generating more data from any known active molecule) actually degrades performance on certain architectures. It worsens structural imbalance by generating even more variants of already dominant clusters, deeply biasing the model.
  • Exploring the Chemical Periphery: By biasing the generation process toward rare scaffolds (Scaffold-Aware Sampling), the graph diffusion model is forced to fill out the under-explored peripheral regions of chemical space, giving the model a much more balanced view of what an active molecule can look like.
  • Diversity Doesn't Mean Sacrificing Accuracy: Intuitively, reranking for diversity might seem like it would push down highly confident true positives. However, the authors found that on difficult scaffold splits, incorporating scaffold diversity via MMR actually increased the early enrichment factor ($EF_{100}$) by up to 19.8%, helping the model bypass localized blind spots.

Key Results

ScaffAug was paired with several Graph Neural Network (GNN) backbones, with the DeepGIN variant delivering the strongest performance.

Figure 1: Representative overview of ScaffAug’s performance compared to established baseline methods on benchmark datasets. The figure highlights improvements achieved through our scaffold- aware augmentation and reranking framework. Comprehensive experimental analyses, including additional metrics and ablation studies, are presented in Section 4.
  • Baseline Comparison: ScaffAug consistently outperformed established graph augmentation methods (like FLAG, GREA, and DCT) across four primary virtual screening metrics: logAUC, BEDROC, $EF_{100}$, and $DCG_{100}$.
  • Ablation Success: In ablation studies comparing Scaffold-Aware Sampling (SAS) against Uniform Actives (UA) sampling, the SAS approach achieved massive performance gains—reaching up to a 45% improvement in $EF_{100}$ and a 38% boost in $DCG_{100}$ over oversampling baselines.

Limitations and Future Work

While ScaffAug marks a significant step forward, the authors note two key limitations:

  1. Synthetic Accessibility: Although the graph diffusion model generates chemically valid structures, it does not guarantee that a chemist can easily synthesize them in a physical lab.
  2. Ligand-Only Focus: As a ligand-based approach, ScaffAug completely ignores the 3D structure of the target protein.

Future Directions: The authors suggest integrating protein structure data directly into the generative loop by utilizing protein-aware diffusion models, combining the speed of ligand-based screening with the structural accuracy of physical docking.

BibTeX
@misc{wang2025scaffold,
  author = {Xin Wang and Yu Wang and Yunchao Liu and Jens Meiler and Tyler Derr},
  title = {{Scaffold-Aware Generative Augmentation and Reranking for Enhanced Virtual Screening}},
  year = {2025},
  eprint = {2510.16306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16306},
}