Abstract
Researchers from CSIRO’s Data61 have introduced Variational Search Distributions (VSD), a framework that treats the search for rare, high-performing discrete designs (like proteins or DNA sequences) as a variational inference problem. By training a generative model to match the distribution of "fit" candidates, VSD efficiently navigates astronomical search spaces to generate diverse, high-quality designs in a batch-sequential manner.
Introduction: The Needle in the Haystack
In fields like drug discovery and enzyme engineering, scientists search for "needles in a haystack." For a single protein, the number of possible amino acid configurations can exceed $20^{100}$—far more than the atoms in the observable universe. Most of these configurations are "unfit" (useless), while the "fit" ones (e.g., a protein that degrades plastic) are incredibly rare.
Traditional Black-Box Optimization (BBO) focuses on finding the single best design. However, in scientific discovery, we often want an Active Generation approach: we want to learn a generative model that can produce many diverse, high-performing designs. Existing methods often struggle with the discrete nature of these sequences, fail to scale to high dimensions, or collapse into generating the same few candidates over and over.
Methodology: Search as Variational Inference
VSD reformulates the search for fit designs as inferring a posterior distribution. Instead of searching for a single point $\mathbf{x}$ that maximizes a function $f(\mathbf{x})$, VSD seeks a distribution $q(\mathbf{x})$ that approximates the distribution of all points exceeding a fitness threshold $\tau$.
Key Technical Components
- Variational Inference (VI): VSD minimizes the Kullback-Leibler (KL) divergence between a trainable generative model $q(\mathbf{x})$ and the unknown distribution of "fit" designs.
- Class Probability Estimation (CPE): To estimate which designs are "fit" without exhaustive testing, VSD uses a surrogate classifier. This classifier estimates the probability that a design exceeds a certain fitness threshold ($\tau$).
- The Objective Function: The authors derive an objective similar to the Evidence Lower Bound (ELBO). It balances an "exploitation" term (maximizing the probability of improvement) with an "exploration" term (the KL divergence from a prior distribution), preventing the model from collapsing onto a single point.
- REINFORCE Gradients: Since the design space is discrete, the authors use the score function estimator (REINFORCE) to train the generative model.
- Scalable Architectures: VSD can use powerful architectures like LSTMs and Transformers as the underlying generative models, allowing it to capture complex dependencies in biological sequences.
Experimental Evaluation
The authors evaluated VSD on several challenging benchmarks, ranging from MNIST sequences to real-world biological fitness landscapes:
- Biological Fitness Landscapes: Real-world experimental data including DHFR (antibiotic resistance), TrpB (enzyme activity), and TFBIND8 (DNA binding).
- High-Dimensional BBO: Tasks involving AAV (viral capsids for gene therapy) and GFP (Green Fluorescent Protein).
- Ehrlich Functions: Biologically-inspired synthetic benchmarks designed to test optimization in complex, high-dimensional sequence spaces.
Key Results
- Superior Precision and Recall: In protein and DNA engineering tasks, VSD consistently outperformed baselines like CbAS, DbAS, and BORE in finding unique, high-fitness sequences.
- Robustness in High Dimensions: While evolutionary methods like AdaLead and PEX performed well in low dimensions, their performance degraded significantly as sequence length increased. VSD, powered by Transformers and LSTMs, maintained high performance.
- Diversity by Design: Because VSD optimizes a distribution rather than a single point, it naturally maintains more diversity in its proposed batches compared to standard Bayesian Optimization or greedy evolutionary strategies.
Conclusion and Future Work
The VSD framework provides a principled Bayesian approach to active generation. By treating search as inference, it offers a scalable way to incorporate prior knowledge and manage the exploration-exploitation trade-off in astronomical discrete spaces.
While the current framework focuses on discrete sequences and single fitness thresholds, future work could extend VSD to mixed discrete-continuous variables, graph structures (like molecules), or multi-objective optimization to maximize activity while minimizing toxicity.
Summary updated