GPA: Generative Population Annealing for Test-Time Sequence Design with Pretrained Generative Models

Anirban Sarkar, Alejandra Duran, Peter K KooNeurIPS 2026

TL;DR

Designing synthetic DNA sequences using predictive "oracle" models often backfires when optimization algorithms exploit glitches in the predictor rather than discovering true biological rules. Generative Population Annealing (GPA) solves this at test time by evolving thousands of candidate sequences in parallel—using a frozen pretrained generative model to propose biologically plausible mutations while gradually turning up the selection pressure. No model retraining required, and it works across completely different generative architectures.

What Problem Does This Paper Address?

Suppose you want to write a 200-letter stretch of regulatory DNA—an enhancer or promoter—that switches on a gene in liver cells, but stays silent everywhere else. Because the space of possible DNA sequences is astronomically vast, biologists rely on oracles: neural networks trained on experimental data to predict how active a given sequence will be.

If you naively optimize a sequence to maximize the oracle's score, you quickly run into reward hacking (or Goodhart’s law). Push the optimizer too hard, and it wanders out of the distribution of natural DNA where the oracle is trustworthy. Instead of genuine regulatory logic, you get pathological sequences—like absurdly long strings of repeated letters—that trick the oracle into outputting a high score, only to fail under independent checks.

To anchor designs to reality, researchers combine oracles with pretrained generative priors—models that have learned what natural DNA looks like. However, fine-tuning a generator via reinforcement learning for every new cell type or objective is expensive and can still collapse sequence diversity. Existing test-time steering methods keep the generator frozen, but typically require intricate interventions inside intermediate diffusion steps. Can we instead build a clean, model-agnostic outer loop that steers whole populations of completed sequences?

Methods

GPA marries classical statistical physics—specifically annealed Sequential Monte Carlo (SMC)—with modern frozen generative models. Rather than steering partial, noisy tokens mid-generation, GPA operates strictly on populations of completed sequences.

Figure 1: GPA overview. Left: Starting from an initial population, GPA adapts β by ESS, reweights and systematically resamples the population, and applies generator-specific mutations; the full final population is returned as the design pool. Optional controls shape the proposal or target. Right: Increasing β shifts mass toward higher-reward regions while remaining modulated by the pretrained prior. At ∆β = 0, the tilted distribution coincides with the prior, so only one curve is visible in the first panel.

Here is how the loop works:

  1. Score & Anneal: Start with $N$ sequences (e.g., $5,000$) and score them with the frozen oracle. GPA gradually increases an inverse-temperature parameter $\beta$, shifting the target distribution from the pure prior ($\beta=0$) toward high-reward regions: $\pi_\beta(x) \propto p_\theta(x)\exp(\beta r(x))$. The step size $\Delta\beta$ is chosen adaptively to maintain a healthy Effective Sample Size (ESS), preventing a single lucky sequence from instantly dominating the pool.
  2. Resample: Sequences are reweighted by their incremental reward and systematically resampled—cloning promising candidates and culling weak ones.
  3. Mutate: To restore diversity while staying anchored to natural DNA, the frozen generator mutates the survivors. Crucially, this separates the outer SMC loop from the inner generator mechanics: a masked discrete-diffusion model (MDLM) partially masks and denoises tokens, while an autoregressive model (HyenaDNA) resamples tokens from a partial context.

On top of this standard SMC foundation, the authors add practical heuristics: generating $K$ mutation branches per particle, optionally nudging proposals with Gumbel-softmax oracle gradients, penalizing off-target cell activity via a scalar weight, and penalizing conformity to the population majority to preserve diversity.

Datasets

GPA is evaluated across three existing regulatory-DNA benchmarks (no new datasets are introduced, though a cross-oracle transfer setup is constructed):

  • Gosai MPRA (~798,000 enhancers, 200 bp): Measured in HepG2, K562, and SK-N-SH cell lines; used for both 3-cell specificity (DNA-CRAFT protocol) and single-cell activity–naturalness trade-offs.
  • LentiMPRA K562: Used for a cross-oracle reward-inflation test where sequences are optimized against a LegNet K562 oracle and evaluated on a held-out AlphaGenome K562 predictor.
  • Reddy MPRA (250 bp promoters): Measured in JURKAT, K562, and THP1 cells to test multi-cell promoter design against RL fine-tuning.

Key Insights and Ideas

  • Plug-and-play across model families: Because GPA only asks the generator for a "completed sequence $\to$ mutated sequence" kernel, the exact same outer algorithm steers both masked diffusion (MDLM) and autoregressive (HyenaDNA) models without per-task policy training.
  • One dial for the activity–fidelity trade-off: Varying the terminal temperature $\beta_*$ at inference time smoothly trades off raw predicted activity against sequence naturalness (like 3-mer motif correlations), mapping out a Pareto frontier without touching model weights.
  • Population search resists oracle delusions: Greedy single-sequence editors relentlessly exploit the optimization oracle. By keeping search anchored to a prior across thousands of particles, GPA avoids pathological sequence artifacts like massive homopolymer repeats.

Key Results

  • Enhancer specificity & speed: On the 3-cell Gosai benchmark, GPA (with 5,000 particles) beats DNA-CRAFT on target activity gap (MinGap of 6.91 vs. 4.35 in HepG2; 8.13 vs. 5.69 in K562; 4.98 vs. 3.23 in SK-N-SH) while matching or exceeding motif correlation (0.92–0.94). On K562 runtime tests, GPA runs in minutes on one H100 GPU—3.4$\times$ faster than gradient-editor LEDIDI and 9.3$\times$ faster than in silico mutagenesis (ISM).
  • Cleaner sequences: Auditing HepG2 designs reveals that RL-tuned CTRL-DNA produces unnatural homopolymer runs averaging 20.9 bp max length, whereas GPA stays at 5.1 bp, matching real enhancers (5.4 bp).
  • Cross-oracle transfer: When optimizing LegNet K562 and testing on held-out AlphaGenome, GPA achieves the best joint-rank transfer score across all edit budgets on random seeds, and at $\ge 60$ edits on natural seeds.
  • Zero-training promoter design: Using one universal recipe on frozen HyenaDNA, GPA beats per-cell PPO-trained CTRL-DNA on target activity and motif correlation across all three Reddy cell types (e.g., JURKAT target activity 8.37 vs. 5.68).

Limitations and Future Work

  • Purely computational validation: Every experiment relies on in silico predictors. Even held-out cross-oracle tests can share blind spots with training oracles; wet-lab synthesis and MPRA screening are needed to prove real biological function.
  • Lower sequence diversity: GPA consistently trails several specialized baselines in position-wise Shannon entropy (e.g., 1.83–1.86 bits vs. 1.98 on Gosai enhancers, and trailing CTRL-DNA on promoter diversity).
  • Theoretical vs. practical gap: Once practical extensions like $K$-branching, gradient-biased proposals, and population-conformity penalties are switched on, GPA acts as an effective heuristic design procedure rather than an exact mathematical sampler of the reward-tilted distribution.

Summary updated

Abstract

Oracle-guided biological sequence design must improve predicted function without moving outside the sequence distribution where the oracle is trustworthy. We introduce Generative Population Annealing (GPA), a test-time sampler for sequence design with a frozen generator and frozen oracle. GPA uses established annealed sequential Monte Carlo machinery in an outer loop over completed sequences. Effective sample size determines the reward increment, after which sequences are reweighted, systematically resampled, and mutated through a model-specific operation supplied by the frozen generator. The terminal population is retained for downstream selection. A reward-tilted prior provides the theoretical reference; practical variants modify the proposal or objective to trade activity, specificity, fidelity, and diversity. Across enhancer and promoter benchmarks, GPA scales to thousands of sequences and is competitive with inference-time samplers, gradient-based editors, tree-search diffusion, and reward-fine-tuned generators. The same inference loop is evaluated with masked discrete-diffusion and autoregressive DNA generators. Within a fixed inference configuration, varying the terminal reward temperature produces different activity–fidelity operating points without reward-specific generator fine-tuning. We characterize this trade-off together with the contributions of population search and downstream selection. Specialized baselines retain higher raw activity, accessibility, or diversity at their own operating points. Cross-oracle evaluation tests transfer to a held-out predictor, and a sequence-level audit finds shorter homopolymer runs than Ctrl-DNA in the HepG2 design pools (5.1 bp mean maximum run versus 20.9 bp). All validation remains computational.
BibTeX
@inproceedings{sarkar2026gpa,
  author = {Anirban Sarkar and Alejandra Duran and Peter K Koo},
  title = {{GPA: Generative Population Annealing for Test-Time Sequence Design with Pretrained Generative Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WKYqn2amHI},
}
Figure