Model-based reinforcement learning for biological sequence design

Christof Angermüller, David Dohan, David Belanger, Ramya Deshpande, Kevin Murphy, Lucy J. ColwellICLR 2020

Designing biological sequences, such as DNA and proteins, is a high-stakes "black-box" optimization problem. Because every physical experiment is slow and expensive, researchers need highly sample-efficient methods to discover viable candidates. This paper introduces DyNA PPO, a model-based reinforcement learning (RL) algorithm that uses a learned "simulator" to train design policies offline. By doing so, it significantly reduces the number of costly wet-lab evaluations needed to find high-quality, diverse biological structures.

The Challenge of Biological Sequence Design

In drug discovery and materials science, the goal is often to find a discrete sequence that maximizes a specific function, such as binding affinity or antimicrobial activity. This presents two massive hurdles:

  1. Combinatorial Explosion: The search space is unfathomably large. Even a short protein of 50 amino acids has $20^{50}$ possible variations—more than the number of atoms in the universe.
  2. The "Low-Round" Constraint: Unlike training an AI to play video games where it can fail millions of times in rapid succession, biological experiments happen in slow, expensive "rounds." Researchers might only get 10 rounds of testing, each involving a small batch of sequences.

Traditional methods like "directed evolution" (randomized local search) are notoriously sample-inefficient. While standard RL and Bayesian Optimization (BO) offer improvements, they often struggle with the massive search space or fail to maintain the sequence diversity needed to find multiple viable candidates.

DyNA PPO: Model-Based Reinforcement Learning

The authors frame sequence design as a Markov Decision Process (MDP), where an RL agent "builds" a sequence one character at a time. Their core contribution is DyNA PPO, which combines several key mechanisms to overcome the limitations of prior approaches:

  • Proximal Policy Optimization (PPO): A robust, standard RL algorithm used as the underlying "engine" to generate sequences.
  • Model-Based "Imagination": Between real-world experimental rounds, the system fits a surrogate model (a regressor) to the data collected so far. The RL agent then trains against this "simulator" for many iterations. This allows the agent to explore the sequence space "for free" before committing to the next real-world batch.
  • Automated Model Selection: To avoid "model bias" (where the agent exploits a flawed simulator), the system automatically picks the best surrogate from a pool (e.g., Random Forests, Gaussian Processes, Neural Nets) using cross-validation. If no model is reliable enough, it gracefully falls back to standard, model-free PPO.
  • Diversity Bonus: The authors implement a visitation-based exploration bonus that penalizes the agent for proposing sequences too similar to ones already seen. This forces the agent to find multiple "peaks" in the fitness landscape, ensuring a diverse set of candidates.
Effect of model training rounds on sample efficiency.

The "simulator" acts as a crucial safety net. By only using the surrogate model when its cross-validation score ($R^2$) is high, the authors prevent the RL agent from "hallucinating" high-reward sequences that fail in reality. Furthermore, the ability to train on this simulator for multiple rounds dramatically accelerates the discovery of high-reward sequences compared to model-free approaches.

Experimental Evaluation

The researchers evaluated their method on three in-silico (simulated) tasks that mimic real-world biological challenges:

  1. TfBind8: Designing DNA sequences (length 8) to maximize binding affinity for 158 different transcription factors.
  2. AMP (Antimicrobial Peptides): Designing short protein sequences that can kill bacteria, based on a dataset of ~6,700 known sequences.
  3. Protein Contact Ising Models: A new benchmark introduced in this paper that uses the 3D structure of naturally occurring proteins to create an energy landscape that the agent must minimize.

Results and Performance

DyNA PPO consistently outperformed existing methods—including Regularized Evolution, Bayesian Optimization, and standard PPO—across all tasks.

Performance comparison of DyNA PPO against baseline algorithms.
  • Efficiency: On the Ising model task, DyNA PPO reached near-optimal rewards in roughly half the samples required by competing methods.
  • Ranking: In a meta-analysis across 41 different DNA binding targets, DyNA PPO achieved the highest mean rank (6.4 out of 7) for both cumulative maximum reward and the fraction of local optima found.
  • Robustness: The "graceful fallback" mechanism proved effective. In early rounds where data was too sparse to build a good model, DyNA PPO performed no worse than standard PPO, and then rapidly accelerated as the surrogate model became trustworthy.

Ultimately, the paper demonstrates that while Bayesian Optimization is often considered the "gold standard" for small-scale black-box optimization, RL (specifically PPO) scales much better to the high-dimensional, discrete nature of biological sequences when paired with a reliable surrogate model.

Limitations and Future Work

While promising, the study relies on in-silico oracles (simulators) to provide rewards. Although these are based on real data, the true test will be applying DyNA PPO to a closed-loop "wet-lab" where rewards come from actual physical experiments. Additionally, the experiments focused on relatively short sequences (up to 50 characters); scaling to full-length proteins (hundreds or thousands of amino acids) remains a significant computational challenge. Finally, while the exploration bonus helps maintain diversity, the algorithm can still get stuck in local optima if the initial data lacks "hints" pointing toward high-reward regions.

Summary updated

BibTeX
@inproceedings{angermuller2020model,
  author = {Christof Angermüller and David Dohan and David Belanger and Ramya Deshpande and Kevin Murphy and Lucy J. Colwell},
  title = {{Model-based reinforcement learning for biological sequence design}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure