Designing Cell-Type-Specific Regulatory DNA with Guided Discrete Diffusion

Animesh Awasthi, Martin Stoll, Raphael Bednarsky, Moritz Schaefer, Christoph BockNeurIPS 2026

TL;DR

Designing synthetic DNA "switches" that turn genes on in a target cell type—and stay strictly off everywhere else—is crucial for safe gene therapy, yet existing AI designers often cheat by generating unnatural, gibberish DNA that exploits flaws in predictive models. DNA-CRAFT solves this by framing DNA design as an inference-time tree search over a frozen generative model trained on millions of real genomic sequences. The result is synthetic DNA that achieves pinpoint predicted cell-type specificity while still "speaking" the native grammar of the human genome.

What Problem Does This Paper Address?

Every cell in your body carries roughly the same genome, yet a liver cell behaves nothing like a neuron. The difference comes down to regulatory DNA—elements like promoters and enhancers that act as biological dimmer switches, recruiting proteins (transcription factors) according to a subtle, evolved "regulatory grammar."

For gene therapy and cell engineering, we want to write custom regulatory switches from scratch: high activity in target cells, zero activity in off-target cells. While we have deep learning "oracles" (sequence-to-activity models like Enformer) that predict how active a DNA sequence will be across cell types, using them to design DNA creates a dilemma:

  • Optimization methods (like gradient search or reinforcement learning) push predicted specificity sky-high, but often drift into out-of-distribution territory—producing adversarial, unnatural sequences that exploit model biases and risk failing inside a real organism.
  • Standard generative models (like classifier-free guided diffusion) stay faithful to natural DNA distributions, but lack the steering power to cleanly separate activity between closely related cell types.

The central question: How do we maximize cell-type-specific activity without leaving the neighborhood of naturally occurring DNA?

Methods

DNA-CRAFT (DNA Cis-Regulatory Architecture & Function Tuner) decouples learning natural grammar from optimizing cell-type activity.

First, the authors pre-train a class-conditioned masked discrete diffusion model (using a bidirectional, reverse-complement-equivariant Mamba backbone) on naturally occurring regulatory DNA. Discrete diffusion works by starting with a fully masked sequence ([M][M][M]...) and iteratively unmasking nucleotides (A, C, G, T). Once trained, this prior is frozen.

Figure 1: Overview of DNA-CRAFT. (a) A class-conditioned discrete diffusion model is trained on the ENCODE registry of naturally occurring regulatory DNA. (b) At sampling time, Monte Carlo tree guidance steers the pre-trained class-conditioned diffusion model using cell-type-specific rewards.

At design time, DNA-CRAFT steers the unmasking trajectory using Monte Carlo Tree Diffusion—adapting Monte Carlo Tree Search (MCTS) with three domain-specific upgrades:

  1. Class-Conditioned Expansion: Using discrete classifier-free guidance (CFG), tree branches are nudged toward a broad structural class (e.g., "Enhancer" or "Promoter") right out of the gate.
  2. Fast Lookahead Pruning: Standard MCTS evaluates a partially unmasked node by running a full, expensive diffusion rollout to the end. Instead, DNA-CRAFT uses a one-step MAP estimator—guessing all remaining masked tokens in a single forward pass—to cheaply score a large pool of $B$ candidates via the activity oracle, keeping only the top $M$ branches.
  3. Smooth MinGap Specificity & Archive Rewards: Averaging off-target activity lets a sequence sneak by with dangerous activity in one unintended cell type. DNA-CRAFT instead penalizes the worst-case off-target cell (MinGap), smoothed via a LogSumExp function for search, and normalizes tree updates against a dynamic archive of top-scoring discoveries.

Datasets

  • Generative Pre-training: Over 3.2 million naturally occurring regulatory sequences across human and mouse genomes from the ENCODE registry, grouped into five regulatory classes.
  • Cell-Line Enhancer Benchmark: ~700,000 sequences with Massively Parallel Reporter Assay (MPRA) expression measurements across three human cell lines: HepG2 (liver), K562 (blood), and SK-N-SH (neural).
  • Primary Immune & Brain Cell Benchmarks: Single-cell chromatin accessibility (scATAC-seq) profiles from the CATlas dataset, spanning eight closely related primary immune cell types (e.g., CD4$^+$ vs. CD8$^+$ T cells) and eight brain cell types.

To prevent data leakage—where a generator memorizes quirks of its evaluator—datasets were split by sequence homology into non-overlapping halves to train separate Enformer Design and Evaluation oracles. No new datasets were collected, though these homology-split tasks establish rigorous multi-cell benchmarks.

Key Insights and Ideas

  • One-step lookaheads are faster and better: Replacing full diffusion rollouts with a single-step clean-sequence guess lets the algorithm evaluate massive candidate pools ($B=256+$) per step. On SK-N-SH, this jumped MinGap specificity from 1.538 to 5.079 while cutting compute time fourfold (from 1,459s down to 368s).
  • Worst-case penalties beat averages: Optimizing mean differences leaves room for off-target leaks. Combining a LogSumExp approximation of worst-case off-target activity with rank-based archive rewards yielded the best balance of worst-case specificity, mean differential activity, and motif realism.
  • Separating sibling cell types requires search: Standard guided sampling struggles when target and off-target cells share similar biology (like T-cell subtypes), whereas tree search actively prunes shared regulatory motifs in favor of distinguishing ones.

Key Results

DNA-CRAFT was evaluated on MinGap (target activity minus max off-target activity on the held-out oracle) alongside naturalness metrics—Motif Correlation (agreement with real transcription factor binding site frequencies) and 3-mer Correlation (local sequence composition):

  • Human Cell Lines: On the challenging SK-N-SH neural task, DNA-CRAFT achieved the highest MinGap (5.479, vs. 3.988 for RL-based Ctrl-DNA and 3.202 for gradient-based Ledidi) and the highest motif correlation (0.809). On HepG2 and K562, RL/gradient methods edged slightly higher on raw MinGap, but degraded motif correlation (~0.52–0.64 vs. DNA-CRAFT's 0.810 and 0.844).
Table 1: Comparison of methods for designing cell-type-specific enhancers across three human cell lines. Shown are the MinGap specificity scores (evaluated under a held-out Evaluation oracle), Motif Spearman correlations, 3-mer Pearson correlations, and Shannon diversity. Values are reported as mean ± std over 3 independent runs and the best result is marked in bold.
  • Primary Immune Cells: Across eight closely related immune cell types, DNA-CRAFT was the only method to achieve positive MinGap specificity across all eight targets (e.g., 0.947 in Macrophages, 0.886 in Mast cells, and 0.075 / 0.059 in notoriously similar CD4$^+$ / CD8$^+$ T cells), while consistently leading in motif correlation (0.616–0.881).
Table 2: Comparison of methods for cell-type-specific regulatory sequence design across eight immune cell types. Shown are the MinGap specificity scores (evaluated under a held-out Evaluation oracle), Motif Spearman correlations, 3-mer Pearson correlations, and Shannon diversity. Values are reported as mean ± std over three independent runs and the best result is marked in bold.

Limitations and Future Work

  • No Wet-Lab Validation Yet: All activity and specificity scores rely on in silico Enformer oracles. Because predictive models are imperfect, biological experiments (in vitro and in vivo) are essential before therapeutic use.
  • Limited Off-Target Scope: Designs were only penalized against a handful of off-target cell types (2 in MPRA, 7 in CATlas), leaving potential unintended activity in untested tissues of the human body.
  • Future Directions: The authors propose scaling the generative prior to larger DNA foundation models, expanding off-target panels to broader tissues and species, and experimentally validating designed switches in clinically relevant cell types.

Summary updated

Abstract

AI-driven design of DNA with cell-type-specific regulatory activity is broadly relevant for cell engineering and gene therapy. DNA elements such as promoters and enhancers have gene-regulatory functions that are defined by their DNA sequence and follow a characteristic regulatory grammar. Deep learning models can effectively predict DNA regulatory activity across cell types, but current generative methods often produce DNA sequences that deviate from the native regulatory grammar, increasing the risk of unexpected behavior and off-target effects in real-world applications. Here, we introduce DNA-CRAFT, a method for designing regulatory DNA with high predicted cell-type-specific activity while preserving naturalness. DNA-CRAFT formulates regulatory sequence design as a guided search over a generative model pre-trained on millions of naturally occurring regulatory elements from the human and mouse genomes. Our method enables targeted exploration of the DNA sequence space, efficient evaluation of candidate designs, and explicit suppression of unwanted activity. Across benchmarks spanning human cell lines and primary immune cells, DNA-CRAFT combines high predicted cell-type specificity with strong motif and sequence-composition adherence, achieving favorable results across the evaluated DNA design tasks.
BibTeX
@inproceedings{awasthi2026designing,
  author = {Animesh Awasthi and Martin Stoll and Raphael Bednarsky and Moritz Schaefer and Christoph Bock},
  title = {{Designing Cell-Type-Specific Regulatory DNA with Guided Discrete Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6b9Jl5EC4r},
}
Figure