Generated Genomes: A Contamination-Proof Testbed for Long-Range Regulation

Genomic language models can now read a million letters of DNA in one pass, yet the evidence suggests they barely use the distance information in front of them. A recent audit showed that models including HyenaDNA, Caduceus, and Nucleotide Transformer distinguish real regulatory elements from scrambled ones at chance level and instead track crude composition statistics like AT-content, with correlations of $r = 0.78$–$0.96$ The Mechanistic Invariance Test: Genomic Language Models Fail To Learn Positional Regulatory Logic. Worse, we cannot cleanly measure this failure on standard benchmarks, because those benchmarks are built from the same public reference genomes the models saw during pre-training — the genomic twin of benchmark data contamination DyVal: Dynamic Evaluation of Large Language Models for Reasoning Tasks.

This proposal builds a procedural generator of regulatory DNA — a program that samples fresh genomic landscapes with a known, executable ground-truth label — and uses it for three things at once: a contamination-proof benchmark for long-range regulation, a testbed for program-of-thought reasoning over DNA, and an audit instrument for existing static benchmarks. Program-of-thought (PoT) prompting means asking a language model to write an executable program rather than answer in words, so that a deterministic interpreter — not a probabilistic next-token predictor — carries out the quantitative work Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks. Because our generated genomes come with their own generating program, the ground truth is exactly the kind of computation a PoT agent can be asked to reconstruct.

Core Claim

The claim has two parts. First, when regulatory elements are placed at controlled distances inside composition-matched backgrounds, current genomic language models' sensitivity to long-range regulatory logic will collapse as distance grows — extending the positional-grammar failure documented at the 100–200 bp bacterial scale The Mechanistic Invariance Test to the megabase eukaryotic scale where these models are actually deployed. Second, an agent that writes and executes code over an explicit biophysical toolkit — position weight matrices for binding affinity, a distance-decay function, an optional chromatin-loop graph — will retain distance sensitivity near ceiling on the same instances, because the hard part is delegated to a deterministic runtime rather than to a forward pass that has learned to ignore position. The generator further lets us quantify how much of current models' real-data scores is memorization of the reference genome, and how far models trained on synthetic regulatory sequences fall when moved to real ones — a synthetic-to-real shift that the NLP literature has documented extensively but genomics has not measured.

Research Program

We will build a generator, called RegDAG, that samples an unlimited stream of evaluation instances. Each instance is built in three steps. First, a grammar is sampled: a set of transcription-factor motifs drawn from a position weight matrix (PWM) library, with prescribed order and spacing in a proximal promoter. Second, one or more distal enhancers are placed at a distance $d$ drawn log-uniformly from 1 kb to 1 Mb, optionally connected through a sampled chromatin-loop graph. Third, the construct is embedded in a background whose composition is exactly controlled — real backgrounds dinucleotide-shuffled, plus explicit GC titration — so that composition alone cannot solve the task. The ground-truth activity label is computed by executing an explicit biophysical program,

$$y = \sum_{e} g(d_e)\, A(m_e),$$

where $A(m_e)$ is the PWM affinity score of enhancer $e$'s motif content and $g(d_e)$ is a distance-decay function the experimenter fixes. Every instance ships with this program, making the benchmark verifiable in the sense that an agent recovering the program scores perfectly by construction. Following DyVal's dynamic-generation logic DyVal, nothing is ever released as a fixed test set; each evaluation samples fresh constructs, so no amount of pre-training can memorize it.

RegDAG differs from the closest prior work in each direction. The Mechanistic Invariance Test constructs 650 fixed synthetic bacterial promoter sequences to probe likelihood preferences The Mechanistic Invariance Test; we generate unbounded eukaryotic constructs with megabase-range distal placement, controlled composition, and executable expression labels — a benchmark, not just a probe. DyVal generates dynamic logic and arithmetic problems from directed acyclic graphs DyVal; we generate biological sequence with a physical generative process, where the nuisance variable (composition) is exactly the shortcut that DyVal never has to fight. GTA repurposes a frozen language model for 1 Mbp gene-expression prediction but relies entirely on internal neural representations Long-range gene expression prediction with token alignment of large language model; it never executes code and cannot control its evaluation data. UCTR-ST pioneered programmatic synthetic data with self-training for tabular reasoning Toward a Unified Framework for Unsupervised Complex Tabular Reasoning; we port its self-training bridge to regulatory genomics, where the synthetic generator is a biophysical simulator rather than SQL over tables.

Proposed Experiments

Experiment 1 measures distance sensitivity of black-box genomic models. HyenaDNA HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution, Caduceus Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling, and Nucleotide Transformer v2 The Nucleotide Transformer: Building and Evaluating Robust Foundation Models for Human Genomics are evaluated on RegDAG discrimination tasks: correctly placed constructs versus distance-scrambled and composition-matched decoys, binned by $d$. The headline metric is a Distance Sensitivity Score (DSS), the area under the ROC curve for correctly placed versus distance-permuted constructs within each composition stratum, reported as a curve over $d$. We expect DSS to fall toward 0.5 well before the models' nominal context limits, directly explaining the "context utilization gap" — the finding that state space models can ingest 1 Mbp but task metrics do not improve with added context Leveraging State Space Models in Long Range Genomics, and that longer windows alone do not capture distal enhancers Extending Sequence Length is Not All You Need: Effective Integration of Multimodal Signals for Gene Expression Prediction.

Experiment 2 tests the PoT agent on identical instances. A code-generating LLM receives the sequence, the motif library, and a task description, and writes Python that computes affinities and distances and predicts the label; a deterministic interpreter executes it. This mirrors the finding that agents writing solver code beat both direct prediction and neural surrogates on differential equations SciML Agents: Write the Solver, Not the Solution, including the observed failure mode that models classify systems by superficial numeric cues until prompted to simplify — which our composition-matched decoys directly stress. The decisive comparison is DSS of the executed program versus the same model's verbal (non-executed) prediction, which prior work predicts will drift and cascade Program of Thoughts Prompting.

Experiment 3 audits existing benchmarks for contamination. For real regulatory elements from the Genomics Long-Range Benchmark Leveraging State Space Models in Long Range Genomics and DART-Eval DART-Eval: A Comprehensive DNA Language Model Evaluation Benchmark on Regulatory DNA, we generate composition-matched synthetic doppelgängers with the same motif content. If a model's confidence or discrimination edge on the real element substantially exceeds its performance on the matched synthetic twin, that excess is evidence of reference-genome memorization rather than regulatory understanding — the same logic by which near-zero token surprise exposes contamination in logic puzzles Studying and improving reasoning in humans and machines. No reported result found on Lacuna for contamination audits of genomic benchmarks, so this audit yields the first numbers of its kind.

Experiment 4 measures synthetic-to-real transfer and bridging. A compact model is trained on RegDAG instances with programmatic labels, then evaluated on real data: Geuvadis long-range gene expression, where the strongest reported result is GTA's Spearman correlation of 0.65 versus Enformer's 0.58 Long-range gene expression prediction with token alignment of large language model, and DART-Eval's African caQTL variant prediction, where the supervised ChromBPNet baseline reaches Spearman 0.699 against 0.287 for the best fine-tuned DNA language model DART-Eval. We then test two bridges adapted from the NLP shift literature: adding real-background noise to the generator (the generator-side analogue of style infusion in clinical text generation Knowledge-Infused Prompting), and UCTR-ST-style iterative self-training with pseudo-labels on unlabeled real sequences Toward a Unified Framework for Unsupervised Complex Tabular Reasoning, which lifted few-shot tabular F1 from 12.1 to 56.9 in its original domain. The gap before and after bridging is itself a first quantification of the synthetic-to-natural shift for regulatory DNA, complementing sequence-design work that generates short synthetic enhancers without testing natural-context transfer Continuous Diffusion Transformers for Designing Synthetic Regulatory Elements.

All model runs use a single NVIDIA A100 GPU per run, matching the compute regime of the state-space genomics benchmark Leveraging State Space Models in Long Range Genomics, with matched tuning budgets (identical epoch and hyperparameter-search budgets per model) and parameter counts always reported.

Baselines

The naive reference point is a composition-only model: a predictor given nothing but GC-content and k-mer frequencies of each construct. By construction it should sit at chance on RegDAG's composition-matched discrimination tasks; verifying that it does is itself a design check, since any leakage of signal into this baseline means our controls failed. The strongest black-box competitor is Caduceus, which outperformed the Nucleotide Transformer v2 on three of six long-range benchmark tasks and, unlike the Transformer, held accuracy at 120 kbp contexts far beyond its 12 kbp training window Leveraging State Space Models in Long Range Genomics; it will be run with its published architecture and fine-tuned on RegDAG training splits with the same budget as every other model, so the comparison isolates architecture, not tuning effort. On real-data transfer, the numbers to beat are GTA's Spearman 0.65 on Geuvadis Long-range gene expression prediction with token alignment of large language model and, on caQTL, ChromBPNet's 0.699 DART-Eval. The biophysical ground-truth program itself serves as the oracle: an agent that reconstructs it hits ceiling, so the oracle defines what "solved" means. Finally, two ablations isolate the proposal's key ingredients: the PoT agent run with and without code execution (verbal answers from the same model), and models trained on composition-matched versus unmatched synthetic data — the latter ablation alone shows whether composition control is what forces genuine distance reasoning. Beating Caduceus means a statistically significant DSS advantage at distances beyond 100 kb at matched compute; beating the PoT ablation means executed programs outperform verbal predictions on the same instances.

Why not just…?

Why not just scale up the genomic language models? The evidence directly contradicts this: the Mechanistic Invariance Test found that larger models show stronger compositional bias, not weaker, with all five tested models at or below chance on scrambled controls The Mechanistic Invariance Test; and on fine-grained variant prediction a 6.6M-parameter supervised model beat a 1.6B-parameter DNA language model by 0.699 to 0.287 Spearman DART-Eval. Scale amplifies the shortcut our benchmark removes, which is precisely why a composition-controlled testbed is needed to see it.

Why not just use supervised convolutional models like ChromBPNet? This is a real threat and we include ChromBPNet as a baseline rather than argue around it. Its local receptive fields cannot see a megabase-distant enhancer without pooling that destroys nucleotide resolution, which is why sub-quadratic long-context models beat Enformer on variants more than 100 kb from the transcription start site Caduceus and why 1,000 kb context yielded a 10% expression-prediction gain over Enformer Long-range gene expression prediction with token alignment of large language model. On RegDAG's distance-binned tasks ChromBPNet should plateau at short $d$; if it instead wins across bins, that would itself be a decisive finding against long-context genomic modeling, and we would report it as such.

Why not just decontaminate existing benchmarks with sequence-matching filters? Surface filtering is demonstrably fragile: rephrasing-based decontamination is bypassed by models that memorize underlying solutions Rethinking Benchmark and Contamination for Language Models with Rephrased Samples, post-hoc detection metrics fail on reasoning models On The Fragility of Benchmark Contamination Detection in Reasoning Models, and models claiming top static-benchmark scores scored near zero on dynamically generated problems DyVal. In genomics the problem is sharper: pre-training corpora are the reference assemblies from which benchmark elements are drawn, so filtering cannot separate "has seen this enhancer" from "has seen this genome." Procedural generation sidesteps the question entirely.

Why not just extend the Mechanistic Invariance Test to longer sequences? MIT is a fixed set of 650 short bacterial constructs probing likelihood preferences The Mechanistic Invariance Test; once released it is itself memorizable, it produces no expression labels to train or transfer on, and it tests no programmatic reasoning. RegDAG is dynamic, label-bearing, megabase-scale, and doubles as training data and audit instrument — three roles a fixed probe cannot serve.

Decisive Checks

Three results would decide the proposal. If composition-only models sit at chance on RegDAG (design validity) and black-box models' DSS decays with distance while the executed PoT agent stays near ceiling, the core claim holds: long-range failure is an inductive-bias problem that code execution sidesteps. If the doppelgänger audit shows a large real-versus-synthetic confidence gap on standard benchmarks, contamination is materially inflating current genomic evaluation. If synthetic-trained models transfer to Geuvadis and caQTL with a gap that self-training measurably closes, the generator becomes a practical training resource, not only a diagnostic. Conversely, if Caduceus maintains high DSS at megabase distances under composition control, the context utilization gap lies elsewhere — in the training signal, not the architecture — and we will report that as the study's finding.