Manpreet Singh Research
Singapore
ICPP2026 · DC4AI Workshop
paperposter
Work done at Embedded LLM Embedded LLM
ICPP 2026 · DC4AI Workshop · Singapore · Paper and poster

Error-Bounded Fused Attention Compression

for Long-Context Genomic Foundation Models Across Heterogeneous GPUs

Embedded LLM, Singapore
Workshop on Data Compression for AI and Big Data Applications
Figure 1. The paper at a glance. Left: the fused data path, where compressed KV lives in HBM as low-rank factors plus a quantized residual and is expanded only in on-chip SRAM. Center: the roofline placing genomic attention far left of the ridge on both accelerators. Right: the accuracy–compression trade-off, rank and bit-width sensitivity, and ablations.
4.1×less attention data movement at N = 65,536
2.2×end-to-end speedup on MI300X (1.9× on H100)
2.7×attention latency speedup
≤0.004AUROC drop, inside the stated error bound
Overview

Genomic foundation models such as DeepMind's Enformer and AlphaGenome read sequence contexts from hundreds of kilobases to over a megabase. At those lengths attention stops being a compute problem and becomes a data-movement problem: the key/value state dominates both memory footprint and traffic between HBM and on-chip SRAM. We measure that regime on NVIDIA H100 and AMD MI300X, show attention there is bandwidth-bound on both, and close the gap with compression applied inside the kernel.

A single-source Triton attention kernel fuses per-block low-rank projection of K and V with error-bounded quantization of the residual, and dequantizes inside the kernel so the expanded KV state never round-trips to HBM. It cuts attention data movement by up to 4.1× and gives 1.9× (H100) and 2.2× (MI300X) end-to-end speedups over a fused FlashAttention baseline, while holding biological prediction quality inside a user-specified bound: variant-effect AUROC drop ≤ 0.004 and expression-track Pearson drop ≤ 0.6%.

1Why long-context genomic attention is bandwidth-bound

Unlike autoregressive language models, genomic models run one non-autoregressive forward pass per sequence. There is no KV cache growing across decode steps; the entire KV state for a very long context exists at once. The problem shifts from cache management to one-shot bulk KV streaming, and the static size of K and V becomes the central concern.

AcceleratorRidge point (FLOP/byte)Genomic attention (FLOP/byte)
NVIDIA H10029531
AMD MI300X24724
Table 1. Roofline position. Both operating points sit far down the bandwidth-limited slope, so every byte removed from K and V converts almost directly into lower attention latency.

2Compression inside the kernel

K and V are split along the sequence into blocks, and each block is factored as a rank-r product: genomic KV state is empirically low-rank within local blocks because neighbouring positions share regulatory context. The factors are computed once at model load, shrinking per-block storage from Bd values to r(B + d). Low rank alone is lossy without limit, so the residual is quantized with a block-wise scale chosen to meet a user-specified absolute error bound τ, at 4 bits by default.

The bound holds exactly on the compressed KV state. Its effect on attention logits depends on the query, so rather than claim an input-independent bound, we report the maximum query norm measured across the evaluation workloads, which makes the logit perturbation a concrete, measured quantity.

HBM writebacks of the expanded KV0
Vendor-specific code paths0 (one Triton source)
Per-device tuningblock size only (128 vs 256)

3What the ablations show

The two components are complementary. Low rank gives most of the reduction but no guarantee; quantization gives the guarantee but less reduction; the fused design gets both.

ConfigurationData movement ↓AUROC changeError bound
Low-rank only3.6×−0.011unbounded
Quantization only2.4×smallbounded
Fused (default, r = 8, 4-bit)4.1×−0.004bounded
Table 2. Component ablation on attention data movement and variant-effect AUROC.
Rank r, residual bitsData movement ↓AUROC changeWithin bound?
r = 16, 8-bit2.1×smallyes
r = 16, 4-bit3.0×smallyes
r = 8, 4-bit (default, the knee)4.1×−0.004yes
r = 8, 2-bit5.2×−0.012no
r = 4, 2-bit6.0×−0.031no
Table 3. The Pareto sweep. Beyond the default, compression keeps rising but the error bound is breached.

Gains widen with context length, as expected when the target is KV state that grows with N: 2.6× data-movement reduction and 1.4× end to end at N = 4,096, rising to 4.1× and 2.2× at N = 65,536. Reconstruction adds 6.2% of attention FLOPs and 0.8 s of one-time factorization per model load, against a net 63% drop in attention latency; in a bandwidth-bound kernel the extra arithmetic hides behind the saved memory traffic.

For non-autoregressive long-context models, attention is a data-movement problem, and the best place to compress is inside the kernel, under an error bound the practitioner chooses rather than validates after the fact.

4Limitations

  1. The low-rank factors are computed offline and held fixed; inputs whose KV state departs strongly from the calibration distribution may need larger ranks to stay within bound.
  2. Evaluation is single-device inference on H100 (80 GB) and MI300X (192 GB) across Enformer (~197 kbp) and AlphaGenome (up to 1 Mbp); sharding compressed KV across devices is future work.
  3. The guarantee is exact on compressed KV state, not on attention logits, where the bound is query-dependent and reported against measured query norms.

More research

Part of a broader line of work at Embedded LLM on portable, fused GPU kernels for biological and clinical foundation models, measured on both NVIDIA and AMD.

All research →

Let's stay in touch

Happy to talk about this work; questions and feedback are always welcome.