NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Accelerating Bayesian Optimization for Biological Sequence Design with Denoising Autoencoders

Samuel Stanton, Wesley J. Maddox, Nate Gruver, Phillip Maffettone, Emily Delaney, Peyton Greenside, Andrew Gordon Wilson

Overview

Designing biological sequences like proteins or drugs is a high-stakes "needle in a haystack" problem. LaMBO (Latent Multi-Objective Bayesian Optimization) accelerates this process by jointly training a denoising autoencoder with a multi-task Gaussian Process. This allows researchers to use gradient-based optimization in a continuous latent space to discover sequences that balance multiple competing biological properties.

The Challenge of Biological Sequence Design

Biological sequence design—finding the right string of amino acids for a protein or atoms for a drug—is incredibly difficult. The search space is astronomically large (a small 200-residue protein has $20^{200}$ possibilities), and the "fitness landscape" is discrete and black-box. Traditionally, researchers use genetic algorithms that randomly mutate sequences, but these are often sample-inefficient.

While Bayesian Optimization (BayesOpt) is the gold standard for sample-efficient optimization in continuous spaces, it struggles with the discrete, high-dimensional nature of biological sequences. Furthermore, real-world design is rarely about one goal; you need a protein that is both stable and functional, or a drug that is potent but non-toxic.

The LaMBO Approach

The authors introduce LaMBO, which bridges the gap between discrete sequences and continuous optimization through three main components:

  1. A Shared Encoder: A 1D Convolutional Neural Network (CNN) that maps discrete sequences into continuous "token-level" embeddings.
  2. A Discriminative GP Head: A multi-task Gaussian Process (GP) that takes these embeddings and predicts multiple objective values (e.g., stability and fluorescence). This head provides the uncertainty estimates necessary for BayesOpt.
  3. A Generative DAE Head: A Denoising Autoencoder (DAE) that learns to reconstruct sequences from corrupted versions.
LaMBO Architecture Flowchart

The Secret Sauce: Instead of training these separately, LaMBO trains them jointly. During the "inner loop" of optimization, LaMBO doesn't just guess new sequences. It uses gradient descent to move through the latent space to maximize an acquisition function (specifically NEHVI for multi-objective optimization). To ensure the optimizer doesn't wander into "nonsense" regions of latent space where the decoder fails, they add an entropy penalty to the acquisition function, keeping the search focused on regions where the model is confident it can generate valid sequences.

Evaluation Tasks

The authors evaluated LaMBO on four distinct tasks:

  • Bigrams: A toy task to maximize specific character pairs in a string.
  • logP + QED: A standard small-molecule task (using the ZINC dataset) optimizing for lipophilicity and drug-likeness.
  • DRD3 Docking + SA: Optimizing small molecules for binding affinity to a dopamine receptor and synthetic accessibility.
  • Stability + SASA (New Benchmark): The authors introduced a new large-molecule task based on the fpBase dataset. It involves optimizing Red Fluorescent Proteins (RFPs) for folding stability and solvent-accessible surface area (SASA).

Core Innovations

  • Joint Training vs. Pretraining: Unlike previous methods (like LSBO) that require massive unlabeled datasets to pretrain a VAE, LaMBO learns the latent space and the objective functions simultaneously. This makes it practical for niche biological tasks where massive datasets don't exist.
  • DAEs over VAEs: The authors found that Denoising Autoencoders are more robust for this task than Variational Autoencoders. DAEs provide a more stable training signal when labels are scarce.
  • The Power of Gradients: By moving the search into a continuous latent space, LaMBO can use gradients to find improvements. This is far more efficient than the "random walk" nature of traditional genetic algorithms.
  • On-Manifold Search: The entropy regularization is a clever way to solve the "out-of-distribution" problem in latent space optimization, ensuring the generated sequences remain biologically plausible.

Experimental Results

  • Superior Sample Efficiency: On all four tasks, LaMBO outperformed standard genetic algorithms (NSGA-2) and model-based genetic baselines, finding better "Pareto frontiers" (the set of optimal tradeoffs between objectives) with fewer function evaluations.
  • RFP Discovery: In the new RFP task, LaMBO discovered a more dense and superior Pareto frontier compared to the ancestor proteins found in nature.
RFP Pareto Frontier
  • Wet Lab Validation: Most impressively, the authors didn't just stay in simulation. They synthesized RFP variants designed by LaMBO in a "wet lab." They successfully discovered new, non-dominated variants of mScarlet and DsRed.M1 that were brighter and more thermostable than their parents.

Limitations and Future Directions

  • Sequence Length: The current architecture uses positional encodings that impose a maximum sequence length, which can be a bottleneck for very large proteins.
  • Synthetic Accessibility: While LaMBO found high-scoring small molecules, some featured complex macrocycles or three-carbon rings that are notoriously difficult for chemists to actually build.
  • Future Directions: The authors suggest integrating LaMBO with even larger pretrained models (like ESM or ProteinBERT) and exploring "non-myopic" acquisition functions that plan multiple rounds of experiments ahead.

Summary updated

BibTeX
@inproceedings{stanton2022accelerating,
  author = {Samuel Stanton and Wesley J. Maddox and Nate Gruver and Phillip Maffettone and Emily Delaney and Peyton Greenside and Andrew Gordon Wilson},
  title = {{Accelerating Bayesian Optimization for Biological Sequence Design with Denoising Autoencoders}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=lEdpSUEYU8},
}
Figure