Locality-Controlled Out-of-Distribution Guidance for Robust Regulatory DNA Sequence Design

Dabin Jeong, Marwane Bourdim, Mo LotfollahiarXiv 2026

TL;DR

LOCOGEN is a new guidance framework for DNA diffusion models that achieves a rare trifecta in regulatory sequence design: high predicted activity, high sequence novelty, and biological plausibility. By identifying and protecting critical regulatory motifs while focusing exploration on "background" regions, it avoids the common "reward-hacking" pitfalls where models generate unrealistic sequences to satisfy a property predictor.

What Problem Does This Paper Address?

Designing synthetic DNA sequences (like enhancers) to control gene expression is a holy grail of synthetic biology. While generative models like diffusion have made this easier, they suffer from a major flaw: reward-hacking.

When we guide a model to maximize a specific property (e.g., high expression in a liver cell), the model often finds "shortcuts" that satisfy the mathematical predictor but fail in the real world. For example, a model might repeat a single potent motif 20 times—something never seen in nature—or drift toward a generic GC-rich composition that the predictor happens to like.

The authors argue that current methods treat guidance as a global "volume knob," applying the same pressure to every position in a sequence. However, DNA grammar is spatially non-uniform; some positions are critical motifs that must be preserved, while others are flexible background regions.

Methods

LOCOGEN introduces locality-controlled guidance to bridge this gap. It operates on a frozen, pre-trained Masked Discrete Diffusion Language Model (MDLM) and consists of two main modules:

  1. Masked Separator: This module learns to partition a sequence into "invariant" regions (motifs critical for activity) and "environment" regions (background). It uses Invariant Risk Extrapolation (V-REx) to ensure the identified motifs predict activity consistently across different sequence contexts.
  2. Localized OOD Sampler: During the diffusion sampling process, the model applies two forces differently across the sequence:
  3. Property Pull: A gradient-based force that pushes the sequence toward higher predicted activity.
  4. Localized OOD Damping: This force encourages the model to explore "out-of-distribution" (novel) sequences. Crucially, LOCOGEN only applies this damping to the background regions identified by the separator. This allows for novelty where it’s safe, while protecting the delicate "grammar" of the functional motifs.
Figure 1: LOCOGEN balances property, novelty, and plausibility.

Datasets

The authors utilized a large-scale enhancer benchmark:

  • Gosai et al. (2024) Dataset: Approximately 700,000 200-bp human enhancer sequences.
  • Cell Lines: Training and evaluation were performed across three distinct human cell lines: HepG2 (liver), K562 (leukemia), and SK-N-SH (neuroblastoma).
  • Evaluation Oracles: To avoid "grading their own homework," the authors used independent, held-out predictors (oracles) to score the generated sequences for activity and chromatin accessibility.

Key Insights and Ideas

  • The "Empty Corner": The authors identify a region in the evaluation space where property, novelty, and plausibility are all high. Existing baselines typically fail here, either producing realistic but unoriginal sequences or high-activity sequences that are biological nonsense.
  • Decomposing Reward-Hacking: The paper identifies two distinct hacking modes:
  • Motif Inflation: (Seen in SVDD) Stuffing a sequence with repeats of the same motif.
  • Compositional Drift: (Seen in DRAKES) Drifting toward a generic GC-rich background that tricks the predictor.
  • Grammar is Positional: The core "aha moment" is that biological function is tied to specific positions. By treating guidance as a problem of where to modify rather than just how much, we can generate sequences that look and act like natural enhancers.
Diagnostics show how baselines "hack" by over-packing motifs or drifting in GC-content, while LOCOGEN stays closer to natural distributions.

Key Results

LOCOGEN consistently reaches the "empty corner" across all tested cell lines.

  • Balanced Score: In HepG2, LOCOGEN achieved a balanced score (a geometric mean of all three axes) of 0.758, significantly outperforming baselines like DNA-Diff (0.642), SVDD (0.576), and DRAKES (0.454).
  • Plausibility: While other high-activity models showed massive deviations in motif diversity ($\Delta$Gini), LOCOGEN remained close to the natural training distribution (0.055 vs. SVDD's 0.231).
  • Novelty: It achieved the highest Authenticity score (0.906), meaning it generates truly novel sequences rather than just memorizing the training set.

Limitations and Future Work

  • Backbone Dependency: The study focused on a single backbone (MDLM). The authors note that future work should validate this localized guidance approach across other architectures like flow matching or autoregressive models.
  • In Silico vs. In Vivo: While the computational results are robust, the authors acknowledge that the ultimate test is wet-lab validation. Computational oracles are still just models, and "real" plausibility can only be confirmed in living cells.
  • Biosafety: As with any tool that improves the design of functional biological elements, the authors highlight the need for responsible use and risk assessment to prevent the design of harmful regulatory sequences.

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, without retraining the backbone. 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
@misc{jeong2026locality,
  author = {Dabin Jeong and Marwane Bourdim and Mo Lotfollahi},
  title = {{Locality-Controlled Out-of-Distribution Guidance for Robust Regulatory DNA Sequence Design}},
  year = {2026},
  eprint = {2610.41736},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.41736},
}
Figure