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.
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:
- Simulate sampling a batch of DNA sequences from the current templates.
- Score the batch in-silico using a custom objective (like predicted binding affinity, novelty, or matching a protein language model's distribution).
- 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.
- 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