Long-context DNA models are increasingly asked the same question many times over: what does this 100,000-base stretch of one person's genome do, and how does it differ from everyone else's? Sparse attention can make each answer cheaper. It works by having each position look only at a chosen subset of other positions instead of all of them. The catch is the "selection bottleneck": deciding which positions matter costs time, and on short or moderate inputs that cost can erase the savings. Genomics offers a structural escape that text does not. Two human genomes agree at roughly 999 of every 1,000 positions, so the expensive decision about where attention should go can be made once on a shared reference genome and reused for every individual. Each person's sequence then only needs a cheap, targeted re-check at the few places where it actually differs.
The proposal borrows its logic from how clinical genetics already works. A fast, error-prone discovery step (high-throughput sequencing) is followed by targeted, independent confirmation (Sanger sequencing) only at the sites that matter. Here, the reference-derived attention mask plays the role of the discovery step. A small, exact re-selection at variant-bearing blocks plays the role of targeted confirmation. A randomly sampled audit of the remaining blocks gives a statistical check that the reused mask still holds, and falls back to fresh selection when it does not. In two sentences: compute the sparse-attention routing once on the reference genome and reuse it across individuals, re-checking only near each person's variants. Then audit a small random sample so that silent routing errors are caught rather than assumed away.
Core Claim
For genomic transformers scored on many individuals or many variants, the per-sequence cost of choosing which attention blocks to compute can be cut from scaling with all block pairs to scaling with the number of variant-containing blocks. This can be done without measurable loss in agreement with dense attention on validated pathogenic variants. The prediction rests on a locality claim that we will test directly: a sequence change at a few positions perturbs the attention mask mainly in the rows and columns of the blocks containing those positions. If that perturbation instead spreads across the whole mask within a few layers, the method fails, and the experiments are designed to show this early.
What Exists and What Is Missing
Hardware-efficient selection for text models is mature, and it supplies our machinery. SALE builds the block mask from a 4-bit preview of the attention map in a separate selection pass, which takes about 11% of attention latency. It reports at least 3.36× speedup on Llama-3.1-8B beyond 64K tokens, but documents a floor of about 8,000 tokens below which selection costs more than it saves. Prism shows that mean-pooling blocks under rotary position embeddings (RoPE, which encode position by rotating vector dimensions at different frequencies) acts as a low-pass filter. That filter blinds selection to local patterns, and Prism fixes this with separate high- and low-frequency bands. SeerAttention learns lightweight gates by self-distillation instead. Dustin is the closest in spirit: a cheap signal guides what a high-fidelity model verifies, with selection overhead cut to about 0.8%. Its offline profiling, however, fixes which heads to score, not which positions, and its evaluation is entirely on text.
All of these recompute the mask for every input, because text inputs share no common skeleton. That is the assumption we drop.
On the genomics side, GeneZip motivates the work. It shows that uniform treatment of the genome wastes compute, and it compresses repeats aggressively, reaching 137.6× compression for a 0.31 perplexity increase. It still runs dense attention over the compressed tokens and never asks whether compression or sparsity loses single-nucleotide signal. The clinical studies constrain the evaluation. Cohorts such as the cone-rod dystrophy exome study and case reports confirming ACVR1 c.774G>T or TNFAIP3 haploinsufficiency variants show that a single base change can be the whole diagnosis. An efficiency method that blurs single bases is therefore unacceptable, whatever its perplexity. SVision-pro supplies truth sets for real individual genomes and structural variants (large rearrangements such as deletions and insertions spanning many bases).
Research Program
We first train a dense RoPE DNA transformer on the GENCODE-derived human corpora used by GeneZip, at 12.8K and 128K base contexts. We also build a GeneZip-style compressed variant so that compression and sparsity can be composed.
Offline, for each reference window and each layer, we run a Prism-style dual-band selector (with SALE's 4-bit preview as an alternative) and store the block mask. Storage is small: a bit per block pair per layer, already sparse.
At inference on an individual's sequence, we locate variant blocks $V$ from the variant calls. For indels, block coordinates are shifted by the known offset. For a query block $q$ and key block $k$, the mask is
$$ M(q,k) = \begin{cases} \text{fresh selection}(q,k) & q \in V \text{ or } k \in V \\ M_{\text{ref}}(q,k) & \text{otherwise,}\end{cases} $$
where $M_{\text{ref}}$ is the cached reference mask and fresh selection uses the same estimator run on the individual's hidden states. With $N$ blocks per window, the re-check costs on the order of $N\,|V|$ block scores instead of $N^2$. At a typical human variant density and 64-base blocks, roughly a few percent of blocks carry a variant, so the expected selection cost falls by more than an order of magnitude. This is an estimate to be measured, not assumed.
The audit then re-estimates a random fraction $\rho$ of the remaining query blocks. It reports the fraction of estimated attention mass the reused mask misses, and triggers full fresh selection for the window if the miss rate exceeds a threshold. Large structural variants, where coordinates no longer map cleanly, always trigger fallback.
The analysis question is how mask drift depends on distance from the nearest variant and on layer depth. This is measured as the overlap between the reused and fresh masks per query block. It determines whether the row/column re-check is enough or whether it must be widened to a neighborhood of each variant.
Baselines
The naive reference point is dense FlashAttention-2 on each individual window. It is exact, involves no selection, and is the source of truth for every fidelity metric. All methods share the same trained weights, GPU (A100), window lengths, and batch sizes.
The strongest competitor is fresh per-sequence selection with the same estimator: Prism dual-band selection, and separately SALE's 4-bit two-pass pipeline, rerun on every individual. This is the hardest baseline because it pays full selection cost but carries no risk from reuse. Prism reports up to 5.1× speedup over FlashAttention-2 at 128K on text, and SALE reports 3.88× at 128K on Llama-3.1-8B. No reported result was found on Lacuna for either method on DNA sequences. We will therefore report their genomic numbers ourselves, tuning block size and sparsity budget on the same validation split with the same search budget as our method.
A third baseline is SeerAttention's learned gates, distilled on the DNA model with weights frozen. It is the strongest case for a selector that is cheap by construction rather than by reuse.
We beat the fresh-selection baseline if two conditions hold together. End-to-end latency must be lower at 128K and, more importantly, at 12.8K, where we expect the selection floor to bite. Variant-effect agreement with dense attention must also be statistically indistinguishable.
Three ablations isolate the key ingredients. Reuse without the variant re-check tests whether the targeted confirmation matters. Re-check without the audit tests whether the sampled audit catches anything. Mean-pooled instead of dual-band selection, applied only to variant blocks, tests whether Prism's low-pass failure specifically hides single-nucleotide changes.
Why not just…?
Why not just use a fixed sliding window plus strided blocks, which has zero selection cost? SALE reports that static patterns miss critical information. Genomic regulation depends on long-range enhancer–promoter contacts that local windows cannot see. We will include a static pattern matched in compute and report its DNALongBench contact-map and enhancer–target scores. If it matches dynamic selection on these tasks, the problem is easier than assumed and reuse is moot.
Why not just compress with GeneZip and run dense attention on the short token sequence? This is a real threat. At 137.6× compression, a 128K-base window becomes short enough that dense attention may be cheap, putting us below SALE's floor where sparsity cannot pay. Our answer is empirical. We will measure whether compression smears single-nucleotide variants inside heavily compressed chunks, using variant-effect agreement on the validated variant set. We will also measure whether sparsity on top of compression still saves time at very long contexts. If GeneZip alone is fast and preserves variant effects, we will report that the contribution reduces to the uncompressed regime.
Why not just cache the reference keys and values and reuse those, as prefix caching does? For bidirectional DNA models, every position's representation can change once any variant enters attention, so key/value reuse is not exact. Mask reuse is a weaker, and therefore more robust, form of sharing. We will measure how far representations drift with distance from variants. If that drift is negligible, key/value reuse becomes the stronger method and we will say so.
Why not just run fresh selection, since it is only about 11% of attention time? At long contexts the saving is bounded by that fraction. The case for reuse rests on shorter windows and on high-volume variant scoring, where one reference window is scored against thousands of alternative alleles. We will report the measured break-even length for both methods. If reuse does not move the floor well below SALE's 8K, the idea is not worth its complexity.
Proposed Experiments
The first and decisive check is locality. We will build individual haplotype sequences from HG002 and ChineseQuartet variant calls applied to the reference. Then we plot, per layer, the overlap between the reused and fresh masks as a function of distance to the nearest variant. Drift confined to a few blocks around each variant supports the method; drift that goes global by the middle layers ends it.
Second, we evaluate fidelity. One measure is the rank correlation between sparse and dense reference-versus-alternative score differences across all HG002 variants. The other is exact agreement on a small gold-standard probe set of Sanger-confirmed pathogenic variants drawn from the cited clinical reports. That probe set is too small for statistics but serves as a pass/fail sanity check that no confirmed diagnosis changes. We will also evaluate DNALongBench eQTL, contact-map, enhancer–target, and transcription-initiation tasks. GeneZip reports best average rank there, but no numeric score was found on Lacuna, so all comparisons will be run in-house.
Third, we measure efficiency. This means selection-pass latency, end-to-end latency per window, and break-even window length, at 12.8K and 128K bases, for single individuals and for batched variant scoring.
Fourth, we test the audit. We will inject structural variants from the SVision-pro benchmarks without flagging them, and measure how often the audit's miss-rate trigger fires as a function of $\rho$. Unflagged rearrangements are exactly the silent failures that orthogonal confirmation exists to catch.
References
- SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefilling
- Prism: Spectral-Aware Block-Sparse Attention
- Dustin: Draft-Augmented Sparse Verification for Efficient Long-Context Generation with Speculative Decoding
- GeneZip: Region-Aware Compression for Long Context DNA Modeling
- Exome Sequencing of 47 Chinese Families with Cone-Rod Dystrophy: Mutations in 25 Known Causative Genes
- ACVR mutation [NM_001105.4:c.774G>T (p.Arg258Ser)] in pediatric fibrodysplasia ossificans progressiva complicated by scoliosis: a case report
- Five children with haploinsufficiency of A20 caused by heterozygous mutations in the TNFAIP3 gene
- De novo and somatic structural variant discovery with SVision-pro