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

Scalable and Synthesizable DNA Library Design via Reinforcement Learning

Scott Sussex, Ema Borevković, Frederieke Lohmann, Ningning Chen, Elena Luethi, Sai T. Reddy, Andreas KrauseNeurIPS 2026

TL;DR

AI models can dream up millions of promising DNA and protein sequences in seconds, but actually building each one from scratch in a wet lab would bankrupt most research budgets. This paper introduces Policy Gradients for Library Design (PGLD), a reinforcement learning method that translates AI guidance into cheap, randomized chemical recipes—allowing scientists to synthesize and test millions of targeted biological designs for just a few hundred dollars.

What Problem Does This Paper Address?

Modern biology faces a frustrating mismatch between reading and writing. Thanks to high-throughput screening, we can test billions of DNA or protein variants simultaneously in a single test tube. Meanwhile, generative AI models can propose millions of bespoke sequences predicted to work wonders.

Between the computer and the test tube stands the synthesis barrier: printing millones of specific, individual DNA sequences ("deterministic synthesis") is prohibitively expensive. To bypass this cost, biologists rely on "stochastic synthesis"—using mixed pools of DNA letters (degenerate bases) at certain positions to generate massive random libraries for the price of a single reaction. Think of it like ordering custom-printed lottery tickets versus buying rolls of scratch-offs. Until now, designing these randomized libraries meant relying on simple heuristics, sacrificing fine-grained AI control for affordable scale. How do we steer cheap, randomized chemical reactions to produce the exact kinds of sequences an AI model wants?

Methods

The authors reframe physical DNA synthesis as a reinforcement learning (RL) problem. Instead of designing individual DNA strands, PGLD optimizes a set of $M$ chemical templates. At each position in a template, the algorithm chooses from 15 standard IUPAC "mixed bases"—pre-defined chemical cocktails like R (an equal mix of A and G) or N (all four bases)—which can be ordered cheaply off-the-shelf from commercial vendors.

Figure 1: Stochastic DNA synthesis. PGLD optimizes a policy defined by M templates. A template is a sequence of chosen mixed DNA bases applied, in order, in its own reaction column. Examples of 3 possible synthesized DNA sequences from each template are shown below the template design. The sequences from each column are mixed together to form the final synthesized library. In our experiments, we show examples ranging from 1 to 1024 templates.

Because picking discrete chemical mixes isn't directly differentiable, PGLD maintains continuous probability logits over the mixed bases and uses the classic REINFORCE policy gradient algorithm to update them:

  1. Simulate sampling a batch of DNA sequences from the current templates.
  2. Score the batch in-silico using a custom objective (like predicted binding affinity, novelty, or matching a protein language model's distribution).
  3. Update the template parameters to favor higher scores.

What's new: Prior RL approaches only optimized a single template, limiting expressiveness. When scaling to hundreds of templates, standard RL struggles because one template's impact gets lost in the noise of the whole batch. Inspired by game theory (specifically submodular distributed welfare games), the authors introduce per-template credit assignment (Equal Share and Marginal Gain). Each template essentially acts as its own RL agent, rewarded specifically for the unique, high-value sequences it brings to the table.

Datasets

The authors evaluate PGLD across diverse biological modalities:

  • Seven Fitness Landscapes (In-Silico): Five exhaustively measured experimental landscapes (including GB1, TrpB, and PhoQ proteins, plus the Switch 10-nucleotide DNA landscape) and two ML-derived landscapes (including MHCI peptide binding).
  • Generative Model Targets: Antibody CDRH3 regions for Trastuzumab (11 amino acids, using IgLM) and influenza antibody C05 (24 amino acids, using ESM2-150M).
  • New Wet-Lab Dataset: The authors generated a Double Deep Mutational Scan (DDMS) dataset measuring binding enrichment of all single and double mutants of the C05 antibody against H1N1 and H3N2 influenza strains via yeast display, using it to fine-tune ESM2 surrogate models.

Key Insights and Ideas

  • Off-the-shelf chemistry scales better than custom chemistry: Restricting templates to standard 15 IUPAC bases slightly lowers the ceiling of a single template compared to arbitrary custom nucleotide ratios, but makes it commercially cheap to combine dozens or hundreds of templates—which quickly blows single-template designs out of the water.
  • "Physical" sampling from AI models: By setting the RL reward to minimize reverse KL divergence against a protein language model, PGLD compiles an in-silico neural network into a physical test tube of DNA. Unlike prior distribution-matching methods (Variational Synthesis), PGLD's on-policy approach easily enforces hard biological constraints, like zero early stop codons or strict mutation limits.
  • Credit assignment unlocks scale: Treating multi-template design as a cooperative game slashes gradient variance, letting PGLD smoothly optimize up to 1,024 templates simultaneously.

Key Results

  • Simulated Lab-in-the-Loop: Across 5-round sequential design campaigns on all seven landscapes, PGLD achieved at least a 30% improvement in cumulative unique hits over rational design and random baselines—and over 100% improvement by round two on TrpB and Switch.
Figure 3: In-silico lab-in-the-loop experiments. For each of the seven empirical fitness landscapes we provide comparisons of PGLD, rational design and random sampling (NNN/NNK). a. The cumulative hits across rounds for the TrpB protein landscape. b. The quantile distribution of all unique, valid sequences sampled. All fitness measurements in the ground-truth datasets are mapped to quantiles for visualization. c. The cumulative hits across rounds for the Switch DNA landscape.
  • Sampling Generative Models: When approximating IgLM and ESM2 with 1,024 templates, PGLD achieved 0.0% early stop codons (compared to 15.8% for Variational Synthesis) while strictly obeying a 6-mutation limit on C05 and concentrating probability mass on high-likelihood sequences.
  • Real-World Wet-Lab Validation: The authors synthesized a PGLD-designed C05 antibody library of $\sim 10^6$ unique sequences (101 templates) for $\sim \$700$ USD**. Screened via yeast surface display against challenging H1N1 influenza, the PGLD library yielded a **7$\times$ increase** in binding cells over the DDMS library and **over 2$\times$ compared to rational design—discovering diverse functional antibodies up to 10 mutations away from the wild type (nearly half the target region).

Limitations and Future Work

  • Sequence length caps: Commercial synthesis providers cap oligo lengths at a few hundred nucleotides. Designing full-length genes with longer variable regions will require modeling how shorter DNA fragments are stitched together downstream.
  • Imbalanced template diversity: When matching generative models, PGLD sometimes places high-likelihood sequences on low-diversity templates, which can cause uneven sampling in downstream physical screens unless corrected (e.g., by duplicating high-diversity templates, as the authors did in their wet-lab test).
  • Future directions: Co-designing physical synthesis hardware alongside RL algorithms for even cheaper, more expressive protocols, and moving beyond binding assays to complex functional protein measurements.

Summary updated

Abstract

Designing DNA libraries is a key challenge from drug design to protein engineering and synthetic biology. Modern generative models offer opportunities to navigate the design space and propose specific sequences predicted to be effective in-silico. Designing deterministic libraries of specific sequences is however limited by the cost of DNA synthesis -- the synthesis barrier. In contrast, high-throughput multiplexed screening can measure the function of billions of biological sequences in parallel. Harnessing this technology requires the design of randomized libraries with specific design constraints to achieve low synthesis costs. In practice, such stochastic libraries are often chosen heuristically, sacrificing control for scale. Is there a way to bridge AI-based in-silico sequence design with high-throughput experimentation? In this work, we introduce Policy Gradients for Library Design (PGLD). PGLD uses a synthesis-aware parameterization of stochastic DNA libraries and optimizes them against a specified objective function. This allows for designing massive, controlled libraries without being limited by synthesis costs. We show how PGLD enables lab-in-the-loop design of multi-round high-throughput experiments, and large-scale in-vitro DNA sampling from generative models. Finally, we use PGLD to design a library of $\sim 10^6$ unique sequences at a cost of $\sim 700$ USD to explore the mutation space of a broadly neutralizing influenza antibody.
BibTeX
@inproceedings{sussex2026scalable,
  author = {Scott Sussex and Ema Borevković and Frederieke Lohmann and Ningning Chen and Elena Luethi and Sai T. Reddy and Andreas Krause},
  title = {{Scalable and Synthesizable DNA Library Design via Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=if6zG3AZ0k},
}
Figure