TL;DR
Traditional pool-based active learning struggles to scale because it requires scoring every single candidate in a massive unlabeled dataset. This paper introduces BALD-GFlowNet, a generative active learning framework that uses Generative Flow Networks to directly sample highly informative data points from scratch. By shifting from selection to generation, it reduces the computational complexity of candidate acquisition from linear ($O(n)$) to constant ($O(1)$) time relative to pool size, enabling efficient active learning on a billion-molecule scale.
What Problem Does This Paper Address?
Active learning is a powerful strategy for training machine learning models with minimal labeled data by iteratively selecting the most informative samples for an oracle (like a human expert or a laboratory assay) to label. However, traditional approaches are "pool-based": they require evaluating an acquisition score across every single instance in an unlabeled pool.
This creates a massive scalability bottleneck in fields like drug discovery. High-throughput virtual screening libraries now contain billions of small molecules. Running a surrogate model to score all of them just to pick the next batch of 100 molecules is computationally prohibitive—sometimes requiring weeks of GPU time. The authors tackle this bottleneck by asking a fundamental question: Instead of searching a massive pool for informative samples, can we just generate them?
Methods
The authors introduce BALD-GFlowNet, which replaces pool-based selection with a generative policy. The framework integrates Bayesian Active Learning by Disagreement (BALD)—a popular mutual information (MI)-based uncertainty metric—with Generative Flow Networks (GFlowNets).
Instead of evaluating an existing pool, the workflow operates in a loop:
- Classifier Training: Train a surrogate classifier on the current labeled dataset.
- GFlowNet Training: Train a GFlowNet policy to generate candidates with a probability proportional to a reward function. The reward is derived from the surrogate classifier's uncertainty (BALD score).
- Sample Generation: Directly sample a batch of diverse, high-uncertainty candidates from the GFlowNet.
- Oracle Labeling: Label these new candidates via an oracle (e.g., molecular docking) and add them back to the training set.
For the molecular discovery task, the GFlowNet uses a graph-based Transformer policy to construct molecules atom-by-atom. To ensure the generated molecules are actually realistic, the authors use a composite reward function that multiplies the BALD uncertainty score by standard drug-likeness metrics, such as Quantitative Estimate of Drug-likeness (QED) and Synthetic Accessibility Score (SAS).
Datasets
The framework was evaluated on two primary setups:
- Synthetic 2D Grid (30x30): A controlled toy environment used to analyze the exact sampling efficiency and navigation behavior of the GFlowNet policy against mathematical baselines.
- JAK2 Virtual Screening Dataset: A realistic drug discovery benchmark targeted at the Janus Kinase 2 (JAK2) protein. The authors curated a pool of 2 million synthetically feasible molecules from the Enamine REAL database, using the Deep Docking protocol to determine ground-truth binding affinities.
Key Insights and Ideas
- Decoupling Pool Size from Cost: By framing active learning as a generation problem, the time spent finding the next batch of data points becomes entirely independent of how large the search space is ($O(1)$ complexity relative to pool size).
- Leveraging GFlowNet Diversity: Traditional optimization methods often collapse to a single high-reward mode (generating the same molecule minorly tweaked). GFlowNets are explicitly designed to sample candidates proportionally to their reward, naturally ensuring a diverse batch of informative molecules.
- Informativeness vs. Feasibility: The paper demonstrates that uncertainty-based active learning rewards can be successfully multiplied by domain-specific constraints (like chemical viability) to guide generative models into useful regions of a vast search space.
Key Results
- 7x Computational Efficiency Gain: On the JAK2 virtual screening task, BALD-GFlowNet achieved a peak F1 score of 0.30, which is highly comparable to the exhaustive BALD baseline (0.32). However, BALD-GFlowNet required only 1.74 million evaluations of the surrogate model, compared to BALD's 12.2 million evaluations.
- Constant-Time Scaling: While standard pool-based BALD's runtime scales linearly with the size of the library, BALD-GFlowNet's runtime remains flat. Extrapolating the results to a library of 50 million molecules yields an estimated 2.5x wall-clock speedup.
Limitations and Future Work
Despite the strong results, the authors note a few key limitations:
- Surrogate Dependency: The GFlowNet relies entirely on the surrogate classifier for its reward signal. If the classifier provides a low-quality or misleading uncertainty estimate early on, the GFlowNet will waste time generating uninformative samples.
- Reward Balancing Act: The composite reward function requires careful tuning. If the balance between the active learning uncertainty score and the drug-likeness metrics is off, the model can easily bias toward generating highly informative but chemically impossible molecules, or vice versa.
- Domain Specificity: The current architecture is heavily tailored to molecular graphs. Extending BALD-GFlowNet to other domains (like sequence design or image classification) will require developing new, domain-specific GFlowNet policy networks.
Summary updated