Locality-Controlled OOD Guidance for Robust Regulatory DNA Sequence Design

Dabin Jeong, Marwane Bourdim, Mohammad LotfollahiNeurIPS 2026

TL;DR

When AI models are pushed to design DNA sequences that boost gene activity, they often "cheat" by spamming the same biological trigger over and over, creating weird, unnatural sequences that would fail in a real lab. This paper introduces LocoGen, a method that protects fragile, functional DNA regions while confining creative exploration to the flexible "background" DNA. By controlling where the model innovates rather than just how hard it optimizes, LocoGen designs novel, high-performing DNA sequences that still follow nature’s grammatical rules.

What Problem Does This Paper Address?

Regulatory DNA acts like the dimmer switch for our genes, controlling when and how strongly they turn on. Designing synthetic regulatory DNA from scratch using diffusion models is a hot frontier in bioengineering. However, a synthetic sequence is only worth testing in a wet lab if it hits three targets simultaneously:

  1. Property: High target activity (it actually turns the gene on).
  2. Novelty: It isn't just a memorized copy of natural training data.
  3. Plausibility: It obeys natural biological grammar—specifically, using a diverse, realistic mix of motifs (short, recurring DNA patterns where proteins bind).

Existing generative methods optimize for activity using a single global knob (guidance strength) applied uniformly across the entire sequence. Because they only evaluate success on a single axis (predicted activity), they miss severe reward-hacking: models get high scores from evaluation predictors by destroying natural DNA grammar. Currently, an "empty corner" exists in the design space where no baseline succeeds at all three goals at once.

Methods

The authors build on a standard, pre-trained Masked Discrete Diffusion Language Model (MDLM), which generates DNA by progressively unmasking tokens (A, T, G, C) from a blank slate, and adapt an out-of-distribution (OOD) guidance concept called MOOD.

Instead of retraining the diffusion model, LocoGen steers it at inference time using two novel modules:

  • Masked Separator (Finding the "Where"): Rather than relying on standard saliency maps (which just show what one specific predictor likes), the authors use invariant learning (specifically V-REx) across k-means clustered data subpopulations. A separator network learns a soft mask that splits a DNA sequence into invariant regions (critical motifs whose predictive power holds across all environments) and environment regions (permissive background DNA).
  • Localized OOD Sampler (Steering the Generation): During the second half of the reverse-diffusion unmasking steps, LocoGen applies two forces: a global "property pull" (classifier guidance toward high gene expression) and a localized "OOD push." Crucially, the OOD damping—which flattens nucleotide probabilities toward a uniform distribution to encourage novel exploration—is only applied to the background positions. The fragile motif positions are shielded. An auto-balancing scale keeps the property gradient proportional to the model prior at every step.

Datasets

  • Training & Evaluation Data: Follow the established DRAKES benchmark protocol using the large-scale enhancer dataset from Gosai et al. (2024). It contains ~700,000 human enhancer DNA sequences (each 200 base pairs long) with measured gene expression across three human cell lines: HepG2 (liver), K562 (blood), and SK-N-SH (neural).
  • Three-Axis Benchmark: While using existing sequence data, the authors introduce a new diagnostic evaluation framework combining held-out oracle predictors (gene activity and ATAC chromatin accessibility), k-mer distance metrics (Authenticity and Rarity for novelty), and JASPAR motif distribution shifts ($\Delta\text{Gini}$ for motif diversity and $\Delta\text{hits}$ for motif density).

Key Insights and Ideas

  • Diagnosing Two Flavors of Reward-Hacking: By looking at motif grammar, the authors caught top baselines cheating in completely different ways. SVDD (a decoding-time search method) suffers from motif inflation—stuffing a single activity-driving motif into a sequence until saturation (1.44× natural motif density). Conversely, DRAKES (an RL fine-tuning method) exhibits GC-rich composition drift, inflating scores by shifting the entire sequence toward an unnatural, generic G/C-heavy background.
  • DNA Grammar is Spatially Nonuniform: Standard diffusion guidance treats every token position equally. LocoGen succeeds because it respects biology: perturbing a 10-base-pair protein-binding motif breaks the machine, whereas perturbing the spacer DNA between motifs gives you novelty for free.
  • Shuffling Isn't Enough: In a clever ablation, the authors kept the learned motifs fixed and simply shuffled the background nucleotides. Activity plummeted (0.442 vs. LocoGen's 4.679), proving you still need a guided generative model to weave the background and motifs together coherently.

Key Results

Evaluated on 640 generated sequences in the HepG2 cell line, LocoGen reaches the previously unoccupied "empty corner," achieving the highest overall Balanced Score of 0.758 (the geometric mean of scaled Property, Novelty, and Plausibility), beating DNA-Diff (0.642), MDLM+CG (0.591), SVDD (0.576), and DRAKES (0.454):

  • Property: Achieves strong predicted expression (4.679, nearly double the natural training median of 2.406) and high chromatin accessibility (0.716 vs. 0.244 in training).
  • Novelty: Takes 1st place in Authenticity (0.906), meaning over 90% of sequences are genuinely novel rather than memorized, with strong positive rarity (+0.71 IQR).
  • Plausibility: Avoids the compositional collapse of pure optimizers, keeping motif diversity shift ($|\Delta\text{Gini}| = \mathbf{0.055}$) and motif density shift ($|\Delta\text{hits}| = \mathbf{0.057}$) close to natural DNA—compared to SVDD's massive shifts of 0.231 and 0.248, respectively.

Limitations and Future Work

While the authors point readers to Supplementary Section S4 (not included in the main text) for an extended discussion of limitations, two scope boundaries are noted in the main text: evaluation relies on in silico held-out oracle predictors (independent neural networks) rather than physical wet-lab synthesis, and some concurrent RL/gradient-free DNA models (like GLID2E and Ctrl-DNA) were excluded from comparison due to a lack of public checkpoints. For future work, the authors suggest applying locality-aware guidance beyond DNA to other structured generative domains where grammar is spatially nonuniform—such as molecules, proteins, or code.

Summary updated

Abstract

Designing regulatory DNA sequences for targeted gene-expression control is an important challenge. Recent approaches frame this task as property-conditioned generation, where diffusion models trained on natural sequences are guided toward high predicted activity through reward-based fine-tuning or sampling-time guidance. We show that single-reward evaluation can obscure reward-hacking behavior. By decomposing evaluation into property, novelty, and plausibility, we identify an empirically underexplored region of the evaluation space in which all three objectives are satisfied, but no existing baseline succeeds. We postulate that this gap arises because prior methods treat guidance primarily as a matter of magnitude. In regulatory DNA, however, sequence grammar is spatially nonuniform: motif positions are sensitive to perturbation, while background regions allow more exploration. We therefore propose LocoGen by reformulating guidance as a problem of locality. LocoGen learns an invariant motif mask through sequence-level invariance learning to protect motif positions, while applying OOD damping only to background positions. It operates at sampling time on a frozen diffusion backbone, with no retraining. Across HepG2, K562, and SK-N-SH, LocoGen reaches this previously underexplored region of the property-novelty-plausibility space. Code is available at https://github.com/Lotfollahi-lab/LocoGen.
BibTeX
@inproceedings{jeong2026locality,
  author = {Dabin Jeong and Marwane Bourdim and Mohammad Lotfollahi},
  title = {{Locality-Controlled OOD Guidance for Robust Regulatory DNA Sequence Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hYwOhbmMej},
}
Figure