ShiftCache: Fast and Exact Indel Effect Prediction by Reusing Shifted Reference Encodings
Abstract
Sequence-to-function models such as AlphaGenome and Borzoi read up to a megabase of DNA and score a genetic variant by comparing their predictions for the reference and alternate sequences. Insertions and deletions (indels) are costly to score, because an indel usually shifts the unchanged DNA after it onto a different pooling grid, which prevents direct reuse of the reference's encoder activations. The AlphaGenome Atlas scored more than 100 million indels with three full model passes each, although the DNA after an indel matches the reference shifted by the indel's length. We present ShiftCache, an exact reuse system that encodes each shifted reference once and shares it among all variants scored in the same window with the same shift. ShiftCache copies every encoder output a variant can reuse and recomputes the rest in batched tiles. On held-out AlphaGenome windows shared by many indels, in strict fp32 on one A6000, ShiftCache is 3.5 to 6.5 faster than deduplicated dense execution and 1.6 to 2.7 faster than our adaptation of layer-by-layer reuse to indels. It is 3.5 to 4.1 faster than dense reimplementations of two published analyses with Borzoi and AlphaGenome, and 2.6 faster than dense execution with Enformer. Scoring each variant in its own centered 131 kb window makes ShiftCache only 1.36 faster than deduplicated dense execution, and highly diverse insertion lengths or many dispersed edits can make it slower than layer-by-layer reuse or dense execution. For encoders that meet our conditions, ShiftCache computes the same predictions as dense execution in exact arithmetic. On an A6000, every checked output of the default AlphaGenome and Borzoi runs matches dense execution within an absolute and relative tolerance of . With larger tile batches, with Enformer or on an H100, a small fraction of values exceeds this tolerance.
Create a lesson
Metadata
- Categories
- cs.LG, cs.DC
- Comments
- 31 pages, 7 figures, 8 tables, including appendix
Related papers
Diagnosing Epistemic Uncertainty in Neural Operators: Effects of Initialization, Discretization, and Function Sampling
Shared title terminologycs.LGTian Yu Yen, Yucheng Fu, Pratanu Roy et al.
Trust-Region Optimization for Performative Prediction without Response Modeling
Shared title terminologycs.LGSiqi Du, Miaolan Xie, Roy Dong
Fusion Gains Depend on the Implementation and the Calibration Target: An 18-Task Study of Prediction Intervals with a Single-Source Fallback
Shared title terminologycs.LGLiwei Deng, Lu Wang
Flagging Batch Shift in Flow Cytometry using Jeffreys Divergence between Gaussian Mixtures
Shared title terminologycs.LGJonathan Legrand, Aguirre Mimoun, Audrey Bidet et al.
Layer-Readout Interfaces in EEG Foundation Models: Predictive Accessibility and Cross-Dataset Transfer
Shared title terminologycs.LGYanlin Fu, Wei Liu, Liming Zhao
Predicting Rare-Mode Collapse in Recursive Generative Training from Single-Generation Calibration
Shared title terminologycs.LGJingyao Zhang, Mingyu Du, Lu Han