acceptodds
Published as a conference paper at NeurIPS 2026

Express Language Modeling

Albert Gong, Annabelle M Carrell, Raaz Dwivedi, Lester Mackey

Abstract

We introduce a new tool, Express, for converting a non-causal attention approximation into a causal approximation with matching approximation guarantees. When combined with the state-of-the-art Thinformer approximation, Express improves upon the best known causal attention guarantees, delivering approximation error with only memory and compression overhead for a sequence of length . We pair these developments with an efficient I/O-aware Triton implementation, demonstrate substantial speedups over FlashAttention 2, and use Express to accelerate three distinct components of the language modeling pipeline: long-context prefill, KV cache compression, and long-form decoding.

Keywords:
Atlanta

Reviews

Among:
Shape:
123456this paper, Bottom 1%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.33 over 3 reviews, above 0% of the others.
Reviewer_kZd2OpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

This paper proposes Thinformer Express, an approximate causal attention method built on streaming kernel thinning / coreset construction. The core idea is a meta-procedure, EXPRESS, that converts any sub-Gaussian halving algorithm into a streaming sub-Gaussian thinning algorithm, thereby extending the unmasked Thinformer guarantees of Carrell et al. to the causal setting. Concretely, the full causal KV cache is replaced with a smaller weighted coreset of bounded size (at most 6nout6n_{\text{out}}), aiming to reduce long-context attention memory and computation.

Theoretically, the paper analyzes EXPRESS and derives an attention-output approximation guarantee controlling errors such as ∥o^j−oj∥∞,\|\hat{o}_j-o_j\|_\infty, where ojo_j is the exact causal attention output and o^j\hat{o}_j is the compressed-cache approximation. A central claim is that the compression overhead is sub-quadratic and that the sub-Gaussian constant is preserved up to a Θ(log⁡n)\Theta(\sqrt{\log n}) factor, yielding only logarithmic-in-nn degradation from the streaming construction. Empirically, the paper reports favorable speed / cache-size vs. quality trade-offs across long-context prefill, KV-cache compression, perplexity, memory-efficient decoding, and accelerated long-form decoding, including an 82× prefill speedup over FlashAttention 2 at 512k tokens and matching exact-attention accuracy on MATH-500 with 61% of the cache.

Overall, the problem is important, the algorithmic framework is elegant, and the breadth of experiments is commendable. My main reservation concerns whether the headline theoretical guarantee is practically meaningful at the sequence lengths studied, and whether the claimed logarithmic dependence on nn is actually reflected in real transformer activations. I currently lean toward weak reject, but could be moved upward by stronger empirical validation of the theory.

Strengths and weaknesses

Strengths

1. Principled connection between streaming coresets and causal attention

The paper provides a theoretically motivated route to causal attention approximation via streaming kernel thinning. Compared with heuristic KV-eviction or sparsification rules (e.g., SnapKV, StreamingLLM), the method rests on a clearer algorithmic foundation, comes with per-token accuracy guarantees, and is naturally suited to autoregressive inference. The reduction from a streaming problem to a halving primitive is clean and modular, and the explicit comparison to HyperAttention and BalanceKV is helpful for situating the contribution.

2. Constant memory and genuinely sub-quadratic compression overhead

A notable theoretical strength is that the maximum cache size is 6nout6n_{\text{out}}, independent of nn, and the compression overhead is

O(d nout2log⁡(nout)log⁡(n/nout)),O(d\,n_{\text{out}}^2 \log(n_{\text{out}})\log(n/n_{\text{out}})),

with only logarithmic explicit dependence on nn. This compares favorably to the Θ(d n noutlog⁡(n/nout))\Theta(d\,n\,n_{\text{out}}\log(n/n_{\text{out}})) overhead of BalanceKV, and the improvement is meaningful at heavy compression ratios (e.g., nout=nn_{\text{out}}=\sqrt{n}).

3. Broad, multi-faceted empirical evaluation

Rather than reporting speed alone, the paper consistently presents quality-efficiency trade-offs across four distinct deployment scenarios and pairs the method with several existing KV-compression pipelines as a drop-in replacement. The I/O-aware Triton implementation and the demonstration that query cost dominates compression cost (35k ms vs. 470 ms for h=10h{=}10) lend credibility to the practicality claims.

Weaknesses / Concerns

1. Practical relevance of the logarithmic dependence on nn is unclear

My primary concern is the gap between the compression guarantee and the end-to-end attention-output guarantee. While the streaming construction contributes only logarithmic degradation, the full bound in Theorem 3 carries additional norm-dependent factors. In particular it depends on

Rn=max⁡i≤nmax⁡(∥qi∥2,∥ki∥2),R_n = \max_{i\le n}\max(\|q_i\|_2,\|k_i\|_2),

through a factor of the form exp⁡(2Rn2d),\exp\left(\frac{2R_n^2}{\sqrt d}\right), where dd is the per-head query/key dimension. Since dd is typically modest in practice (e.g., 64 or 128), this exponential factor may be large, and RnR_n is itself a prefix maximum that can grow with nn. The γ\gamma-boundedness assumption (Rn2≤γdlog⁡nR_n^2 \le \gamma\sqrt{d}\log n) used in the literature comparison effectively folds this growth into γ\gamma, so the asymptotic comparisons may understate the constants that matter at finite nn. The paper should clarify whether Rn2/dR_n^2/\sqrt{d} remains moderate in real models and whether the resulting bound is non-vacuous at the context lengths evaluated.

2. The predicted log⁡n\log n error scaling is not directly validated

The experiments report downstream metrics (perplexity, accuracy, runtime, cache size), which are valuable but indirect. None of them directly tests the theoretical prediction that approximation error accumulates slowly (logarithmically) with sequence length. A direct and inexpensive experiment would be to measure the realized attention-output error ∥o^j−oj∥∞\|\hat{o}_j-o_j\|_\infty as a function of context position jj under a fixed compression budget noutn_{\text{out}}, and to overlay the observed curve against log⁡j\log j (and against, e.g., polynomial alternatives). This would establish whether the theory actually explains the strong empirical behavior, or whether the empirical gains stem from properties the bound does not capture.

3. The analysis is open-loop, but the flagship decoding experiment is closed-loop

The guarantee in Theorem 3 treats the sequence (qi,ki,vi)i=1n(q_i,k_i,v_i)_{i=1}^n as a fixed, exogenous input and bounds the per-token error ∥o^j−oj∥∞\|\hat{o}_j-o_j\|_\infty for that fixed stream. In autoregressive generation, however, each new token (qj+1,kj+1,vj+1)(q_{j+1},k_{j+1},v_{j+1}) is produced by the model conditioned on the approximate output o^j\hat{o}_j. The inputs are therefore endogenous to the approximation: a small error at step jj perturbs the query/key/value distribution at step j+1j+1, and these perturbations may compound nonlinearly over thousands of generated tokens. The fixed-input analysis says nothing about this feedback loop.

This matters because the long-form decoding results (Fig. 3, MATH-500) are exactly the closed-loop regime, and the experimental setup (line 638) computes the prefill KV cache exactly and applies the approximation only during decoding. The headline accuracy claims thus live precisely where the theory does not apply. I would encourage the authors to either (a) extend the analysis to bound error accumulation under closed-loop generation, or (b) clearly delineate that Theorem 3 is a single-step, fixed-input statement and discuss why it should be expected to predict end-to-end generation quality.

4. Bounded-norm assumptions are in tension with attention sinks / massive activations, as suggested by the paper's own use of n_sink

The kernel κatt\kappa_{\text{att}} (Eq. 3) and the bound in Theorem 3 depend on prefix maxima,

\qquad v_{\max}=\max_{i\le n}\|v_i\|_\infty,$$ so a *single* outlier token inflates the guarantee for the entire sequence. This is not a corner case in modern Transformers: attention-sink tokens and "massive activation" phenomena routinely produce keys/values whose norms exceed the median by orders of magnitude, and such tokens both dominate $R_n,\,v_{\max}$ and are disproportionately likely to be discarded or down-weighted by a thinning procedure. Tellingly, the authors set `n_sink=32` and `n_window=32` in nearly all downstream configurations (Tables K.3–K.5), explicitly protecting sink and recent tokens from compression. This suggests the principled coreset alone may struggle with exactly the high-norm tokens that govern the bound. I would ask the authors to (a) report the empirical distribution of $R_n$ and $v_{\max}$ across layers and heads in a real model, and (b) ablate `n_sink` / `n_window` (including `n_sink=0`) to disentangle how much of the reported quality stems from the coreset construction versus from the heuristic sink/window protection. If quality degrades substantially at `n_sink=0`, the theoretical contribution is doing less explanatory work than the framing implies.
Questions
  1. Can you directly validate the predicted slow error growth by plotting ∥o^j−oj∥∞\|\hat{o}_j-o_j\|_\infty against context position jj at fixed noutn_{\text{out}}, and comparing to a log⁡j\log j reference? (Concern 2)

  2. How large is Rn2/dR_n^2/\sqrt{d} in real models across layers, heads, prompts, and context lengths, and what is the resulting magnitude of exp⁡(2Rn2/d)\exp(2R_n^2/\sqrt{d}) at, say, n=512kn = 512\text{k}? Does RnR_n grow with nn empirically, and if so, how does that interact with the claimed logarithmic dependence? (Concern 1)

  3. Since the MATH-500 decoding results are closed-loop while Theorem 3 is a fixed-input statement, do you observe error compounding over the generated sequence? Can you measure ∥o^j−oj∥∞\|\hat{o}_j-o_j\|_\infty (or a downstream divergence) as generation proceeds, and comment on whether the single-step bound is expected to predict end-to-end quality? (Concern 3)

  4. What are the empirical distributions of RnR_n and vmax⁡v_{\max} across layers and heads, and how much do they concentrate on sink / high-norm tokens? (Concern 4)

  5. Can you ablate n_sink and n_window (including the n_sink=0 setting) across the prefill, KV-compression, and decoding experiments, to separate the contribution of the principled coreset from that of the heuristic sink/window protection? (Concern 4)

Limitations

yes

Paper formatting concerns

No

1 comment

Thank you for your thoughtful and constructive review. We were delighted that you found our problem important, our reduction clean and modular, our algorithmic framework elegant, our improvements over prior work meaningful, and our experiments broad and multifaceted. We address each point raised below.

Directly validating error scaling: Thank you for this excellent suggestion! We have now conducted a new experiment directly comparing the output of Thinformer Express o^n\hat{\boldsymbol{o}}_n with the output of exact attention on\boldsymbol{o}_n as nn ranges from 222^2 to 2192^{19} and hh ranges from 7 to 10 in the prefill approximation setting. We sample the queries, keys, and values from the embedding matrix of the ChatGLM2-6B-32K model and report the median of the scaled maximum error max⁡j≤n∥o^j−oj∥∞/log⁡nlog⁡log⁡n\max_{j\leq n} \|\hat{\boldsymbol{o}}_j - \boldsymbol{o}_j\|_{\infty}/ \sqrt{\log n \log\log n} across the 32 heads. Notably, for each hh, the scaled maximum error remains uniformly bounded in nn, in line with the O(log⁡nlog⁡log⁡n)O(\sqrt{\log n \log\log n}) growth rate for max⁡j≤n∥o^j−oj∥∞\max_{j\leq n} \|\hat{\boldsymbol{o}}_j - \boldsymbol{o}_j\|_{\infty} predicted by Thm. 3.

nh=7h=8h=9h=10
40000
80000
160000
320000
640000
1280000
2560000
5120000
10240.000945000
20480.0008800.00060000
40960.0009360.0005620.0004110
81920.0008830.0006170.0003870.000257
163840.0008900.0005850.0004160.000244
327680.0008470.0006010.0003990.000280
655360.0008540.0005740.0004100.000267
1310720.0008180.0005710.0003930.000270
2621440.0008050.0005480.0004090.000259
5242880.0007750.0005420.0003940.000265

Vector magnitudes: In the revision we will report the query γ\gamma-boundedness parameter (γ(n)≜max⁡i∈[n]∥qi∥22/(dlog⁡n)\gamma(n) \triangleq \max_{i\in[n]}\lVert\boldsymbol{q}_i\rVert_2^2 / (\sqrt{d} \log n)) of Sec. 3.2 and the key γ\gamma-boundedness parameter (γ(n)≜max⁡i∈[n]∥ki∥22/(dlog⁡n)\gamma(n) \triangleq \max_{i\in[n]}\lVert\boldsymbol{k}_i\rVert_2^2 / (\sqrt{d} \log n)) which decrease with nn as desired. Below we report the median and interquartile range of the query/key γ(n)\gamma(n) and vmax⁡(n)≜max⁡i∈[n]∥vi∥∞v_{\max}(n) \triangleq \max_{i\in[n]}\lVert\boldsymbol{v}_i\rVert_{\infty} across all layers, all heads, and the first 1010 sequences of the experiment in Fig. 1c.

query γ(n)\gamma(n):

nnmedian25%75%
49.577.4511.62
167.175.869.08
646.144.98.08
2565.914.677.89
10245.694.367.58
40965.444.097.32
163845.193.877.08

key γ(n)\gamma(n):

nnmedian25%75%
423.0219.5326.79
1612.9111.3614.4
6410.178.8211.49
2568.437.379.28
10247.196.318.05
40966.255.566.98
163845.584.966.22

vmax⁡(n)v_{\max}(n):

nnmedian25%75%
11.1720.57321.93
42.0781.3573.363
162.9061.7934.938
643.5471.9495.844
2563.8522.1567
10244.0622.2037.562
40964.3912.2977.875
163844.5472.3448.188

Attention sinks: We will clarify in the revision that it is now standard practice in attention approximation and KV cache compression to retain attention sinks and to compress only the remaining tokens and that StreamingLLM, ExpectedAttention, and our HyperAttention baseline all follow this convention. Rather than a phenomenon at odds with our approach, we view the well-known presence and location of attention sinks as a straightforward opportunity to improve both the guarantees and the practical performance of our approach. This is true more generally whenever one knows in advance that certain (key,value) pairs are likely to be important contributors to attention; in such cases, one can simply include those tokens in the express cache and continue compressing the remaining tokens. Note, in particular, that keys with abnormally large norms can be detected in linear time and in a streaming fashion, and excluding such keys from compression has the direct effect of reducing the RnR_n penalty in our guarantees. Our prior knowledge concerning attention sinks at the start of each sequence is doubly beneficial as, in our experiments, sinks in the first 32 tokens have relatively small vector norms, falling in the bottom 36% of all keys and 45% of all values on average.

That said, we are also happy to include analogous experiments without attention sinks in the revision. For example, we have recreated the masked prefill (n=32768n=32768) experiment with n_sink=n_window=0 and find that both settings of Thinformer Express still preserve exact perplexity well and better than the state-of-the-art HyperAttention approximation.

Number of layers replacedThinformer Express (h=9)Thinformer Express (h=10)HyperAttention
01.000001.000001.00000
21.000191.000880.99873
41.015531.011221.01228
61.038381.027281.03486
81.079451.056331.07783
101.103441.073411.11966
121.161841.104221.17917
141.178051.119241.20363
161.185581.124561.21962
181.192491.125161.23847
201.231141.152491.27222
221.250971.167501.28608
241.289431.190141.34195
261.448711.278181.58112
281.846831.478522.10345

Closed vs. open-loop: Thank you for raising this important point! In the revision, we will clarify (1) that we adopt the same fixed-input approximation setting studied in Streaming Attention Approximation via Discrepancy Theory (NeurIPS 2025), (2) that the fixed-input approximation setting exactly matches the prefill causal attention approximation problem (studied in our first two experiments), and (3) that the fixed-input approximation guarantees do not directly bound the end-to-end error of multistep generations, as the input tokens for later steps are not determined in advance but rather generated by the approximate model. Nevertheless, we find that Thinformer Express yields better memory-vs-quality and time-vs-quality tradeoffs than five leading alternatives in our two longform decoding experiments.

Reviewer_VaHGOpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper introduces Express Maguage Modeling for converting a non-causal attention approximation into a causal approximation with guarantees. The tool, EXPRESS, when combined with Thinformer approximation (Thinformer Express ), improves upon causal attention guarantees Specifically, the tool converts a high-quality unmasked attention approximation into a high-quality masked approximation by transforming any offline approximation based on thinning. The authors additionally provide memory and runtime bounds for the same. Further, the authors benchmark Thinformer Express in four resource-constrained language modeling settings: Long-context prefill, cache compression, memory-efficient long-form decoding, and Accelerated long-form decoding. The authors provide synthetic experiments to back their claims. I find this to be a well-written paper.

Strengths and weaknesses

Strengths:

S1. The problem is well formulated and motivated in Sections 1, 2, and 3.

S2. The paper performs relevant synthetic empirical experiments to highlight the findings of the tool.

S3. In Theorem 1 and Corollary 1, I like the theoretical fact that the memory does not grow proportionally to the context size. This is primarily due to the fact that the cache size is chosen and fixed in the beginning. This is better than tools where memory grows in size as the context length grows.

S4. I find the empirical experiments to be very strong and support the use case pretty strongly.

Weaknesses:

W1. The guarantee in one of the main headline Theorems (Theorem 3) holds only half of the time. I suspect this due to the fact that the cache size is fixed and it cannot grow. The paper does not seem to say how to make the guarantee more reliable.

W2. On top of the point raised in W1, the experiments look far more reliable, and the results look more reliable than chance. This makes me think there is a gap between what is derived and what is actually observed.

W3. The most important and similar method is missing completely from the experiment comparisons: BalanceKV [19]. This seems very weird. It would have been great to have a detailed theoretical and empirical comparison of the proposed tool with BalanceKV.

[19] Ekaterina Kochetkova, Kshiteej Sheth, Insu Han, Amir Zandieh, and Michael Kapralov. Streaming attention approximation via discrepancy theory. In Advances in Neural Information Processing Systems, 2025.

W4. While the writing is clean, it is difficult to understand the toll without a figurative illustration.

Questions

Q1. Can the guarantee be improved beyond 0.5? For example, suppose you make use of independent caches. In that case, how will the memory bound be affected? It would be great if the authors explored this area.

Q2. For the figures, can you state the size of the magnitude of the queries? That would add additional meaning beyond the current performance demonstrated.

Q4. Can you perform a detailed comparison study with BalanceKV [19] from both a theoretical and empirical standpoint? This seems to be a very important prior work.

[19] Ekaterina Kochetkova, Kshiteej Sheth, Insu Han, Amir Zandieh, and Michael Kapralov. Streaming attention approximation via discrepancy theory. In Advances in Neural Information Processing Systems, 2025.

Q5. How does the accuracy and runtime vary with cache size budgets? Can you demonstrate theoretically and/or empirically the same?

Q6. Can you address the points raised as weaknesses?

Thanks!

Limitations

Yes

Paper formatting concerns

None

Final justification

After reading the paper and the rebuttal, the core issue remains unanswered and is potentially an issue. In the author's own rebuttal, the results pertaining to the provided query sizes imply that the core theoretical contribution (Thm 3) is void. The authors propose a vague, unproven refinement, and that too partially addresses one of the three factors involved in the bound. This is a core issue of the paper. I am keeping my score unchanged because of this. For details refer to my reply to the author's rebuttal.

1 comment

Thank you for your thoughtful and constructive review. We were delighted that you found the paper well-written, the problem well-formulated and motivated, and the experiments very strong. We address each point raised below.

Comparison with BalanceKV: In Sec. 3.2 (lines 175–188) of the submission, we presented a detailed theoretical comparison of Express with BalanceKV. For the same level of guaranteed accuracy, Express reduces the memory requirement (from Θ(noutlog⁡n)\Theta(n_{\mathrm{out}} \log n) to 6nout6 n_{\mathrm{out}}) and substantially reduces the computational overhead of compression from Θ(nnoutlog⁡n)\Theta(n n_{\mathrm{out}} \log n) to nout2log⁡(nout)n_{\mathrm{out}}^2 \log(n_{\mathrm{out}}). That is, the compression overhead of Express is independent of the sequence length nn and improves upon the compression time of BalanceKV by n/noutn / n_{\mathrm{out}}.

While Kochetkova et al. do analyze an algorithm for causal attention approximation, they do not evaluate streaming generation or causal approximation in their experiments and only provide code for unmasked approximation. To integrate the released BalanceKV implementation into our long-form decoding experiments, we again apply the batch-to-online conversion scheme of Devoto et al. and evaluate runtime and long-form decoding accuracy on MATH500. We find that Thinformer Express improves upon both the accuracy-runtime and accuracy-memory trade-offs of BalanceKV, matching the accuracy of exact with 56% runtime, while no setting of BalanceKV achieves matched accuracy and all BalanceKV runtimes are substantially slower.

Exact (runtime, accuracy, mean cache size)
63824.88 ± 7535.85, 0.90 ± 0.01, 2077.19 ± 111.12

Thinformer Express
34517.28 ± 2261.94, 0.85 ± 0.02, 746.52 ± 7.66
30853.97 ± 1924.77, 0.88 ± 0.01, 1100.30 ± 18.73
35846.19 ± 2463.57, 0.90 ± 0.01, 1443.23 ± 38.24
43671.25 ± 3684.38, 0.89 ± 0.01, 1717.43 ± 62.27
55588.36 ± 5626.03, 0.90 ± 0.01, 1918.07 ± 87.23

BalanceKV
204433.63 ± 3859.46, 0.08 ± 0.01, 703.43 ± 5.29
136453.93 ± 5549.53, 0.40 ± 0.02, 1127.27 ± 17.99
102245.85 ± 5795.88, 0.59 ± 0.02, 1344.13 ± 29.79
86277.07 ± 5912.75, 0.70 ± 0.02, 1477.86 ± 39.25
74801.69 ± 6366.06, 0.79 ± 0.02, 1653.40 ± 54.67
69011.53 ± 6577.49, 0.84 ± 0.02, 1758.64 ± 65.88

High-probability guarantees: In the revision, we will clarify that 1/21/2 can be replaced with any probability 1−δ1-\delta in (0,1)(0,1) with no impact on the cache size and compression overhead given nn, and only moderate impact on the quality guarantee. The quality guarantee in Thm. 3 then becomes

∥o^n−on∥∞≤cnexp⁡(2Rn2d)∥Vn∥2,∞(2I[2Kn−2>m‾]3nout2m‾+4Mn3log⁡(3nout4Mn+1M~nδ)+163log⁡(32noutM~nδ)nout)\left\Vert \widehat{\boldsymbol{o}}_n - \boldsymbol{o}_n \right\Vert_{\infty} \le c_n \exp\left(\frac{2R_n^2}{\sqrt{d}}\right) \left\Vert \mathbf{V}_n \right\Vert_{2,\infty} \left( \frac{2\mathbb{I}[2K_n - 2 \gt \overline{m}]}{\sqrt{3 n_{\mathrm{out}} 2^{\overline{m}}}} + \frac{\sqrt{\frac{4M_n}{3} \log\left(\frac{3 n_{\mathrm{out}} 4^{M_n+1} \widetilde{M}_n}{\delta}\right) + \frac{16}{3} \log\left(\frac{32 n_{\mathrm{out}} \widetilde{M}_n}{\delta}\right)}}{n_{\mathrm{out}}} \right)

with probability at least 1−δ1-\delta and δn=δ2(1log⁡2(n+1)−1log⁡2(n+2))\delta_n = \frac{\delta}{2}\left(\frac{1}{\log_2(n+1)} - \frac{1}{\log_2(n+2)}\right).

This success probability is determined by the user-friendly hyperparameter δ\delta in the Thinformer Express algorithm, and replacing δ=1/2\delta = 1/2 with δ=0.01\delta = 0.01 in the experimental setting of Fig. 1c (for a 1−δ=0.991-\delta = 0.99 success probability), we find virtually no difference in quality (relative perplexity) over exact:

h=9h=9 (δ=0.5\delta=0.5, δ=0.01\delta=0.01)
1.00000, 1.00000
1.00249, 1.00250
1.00856, 1.00857
1.00996, 1.00999
1.01793, 1.01794
1.02285, 1.02285
1.03597, 1.03598
1.03709, 1.03710
1.03931, 1.03930
1.03820, 1.03818
1.05144, 1.05142
1.05825, 1.05825
1.05770, 1.05769
1.06303, 1.06305
1.06421, 1.06418

h=10h=10 (δ=0.5\delta=0.5, δ=0.01\delta=0.01)
1.00000, 1.00000
1.00134, 1.00135
1.00633, 1.00634
1.00806, 1.00807
1.01045, 1.01046
1.01352, 1.01353
1.02186, 1.02186
1.02443, 1.02443
1.02391, 1.02390
1.02452, 1.02454
1.03369, 1.03365
1.03669, 1.03669
1.03706, 1.03703
1.04122, 1.04121
1.04288, 1.04293

Size of queries: Thank you for this suggestion! In the revision we will report the query γ\gamma-boundedness parameter of Sec. 3.2, γ(n)≜max⁡i∈[n]∥qi∥22/(dlog⁡n)\gamma(n) \triangleq \max_{i \in [n]} \Vert \boldsymbol{q}_i \Vert_2^2 / (\sqrt{d} \log n), which decreases with nn as desired in each experiment. Below we report the median γ(n)\gamma(n) (with interquartile range) across all layers, all heads, and the first 1010 sequences of each experiment.

Fig. 1c:

nnmedian25%75%
49.577.4511.62
167.175.869.08
646.144.98.08
2565.914.677.89
10245.694.367.58
40965.444.097.32
163845.193.877.08

Fig. 2, HotpotQA-E:

nnmedian25%75%
49.337.5311.54
165.474.586.7
644.613.95.62
2564.33.555.24
10244.113.414.91
40963.943.284.67

Fig. 2, TriviaQA-E:

nnmedian25%75%
49.337.5311.54
165.474.576.7
644.673.935.66
2564.313.545.23
10244.133.444.92
40964.013.44.7

Fig. 2, TREC-E:

nnmedian25%75%
48.816.9510.84
165.694.696.89
644.673.895.67
2564.213.545.04
10243.863.264.59
40963.613.064.31

Fig. 3:

nnmedian25%75%
48.366.5210.73
165.074.066.33
644.23.385.17
2563.893.174.75
10243.693.054.43
40963.593.04.27
163843.342.763.97

Accuracy-vs.-runtime with varying cache size budgets: We will clarify in the revision that the prefill, KV cache compression, and long-form decoding experiments in our submission each demonstrate how accuracy and runtime vary with cache budget. For example, Fig. 3 shows the accuracy and runtime of Thinformer Express as we sweep h∈{8,9,10,11,12}h \in \lbrace 8, 9, 10, 11, 12 \rbrace, and h=log⁡2(nout)h = \log_2(n_{\mathrm{out}}) determines the cache budget. For each hh, we summarize here the mean runtime, accuracy, and cache size (±1\pm 1 standard error) across all benchmark questions in the MATH500 dataset.

MethodRuntime (ms)AccuracyCache size
Thinformer Express (h=8h=8)34517.28 ± 2261.940.85 ± 0.02746.52 ± 7.66
h=9h=930853.97 ± 1924.770.88 ± 0.011100.30 ± 18.73
h=10h=1035846.19 ± 2463.570.90 ± 0.011443.23 ± 38.24
h=11h=1143671.25 ± 3684.380.89 ± 0.011717.43 ± 62.27
h=12h=1255588.36 ± 5626.030.90 ± 0.011918.07 ± 87.23
Exact63824.88 ± 7535.850.90 ± 0.012077.19 ± 111.12

We also introduce a new experiment directly comparing the output of Thinformer Express o^n\widehat{\boldsymbol{o}}_n with the output of exact attention on\boldsymbol{o}_n, and demonstrate the accuracy-vs.-runtime trade-off as the target cache size nout=2hn_{\mathrm{out}} = 2^h varies. We sample the queries, keys, and values from the embedding matrix of the ChatGLM2-6B-32K model and report the median of the scaled maximum error max⁡j≤n∥o^j−oj∥∞/log⁡nlog⁡log⁡n\max_{j \leq n} \Vert \widehat{\boldsymbol{o}}_j - \boldsymbol{o}_j \Vert_{\infty} / \sqrt{\log n \log\log n} across the 32 heads. Notably, for each hh, the scaled maximum error remains uniformly bounded in nn, in line with the O(log⁡nlog⁡log⁡n)O(\sqrt{\log n \log\log n}) growth rate for max⁡j≤n∥o^j−oj∥∞\max_{j \leq n} \Vert \widehat{\boldsymbol{o}}_j - \boldsymbol{o}_j \Vert_{\infty} predicted by Thm. 3.

nout=29n_{\mathrm{out}} = 2^9:

nnSpeed-up over FlashAttention 2Scaled max error
327682.206550.000399
655366.086010.000410
13107212.16380.000393
26214436.52580.000409
52428881.94830.000394

nout=210n_{\mathrm{out}} = 2^{10}:

nnSpeed-up over FlashAttention 2Scaled max error
327681.384940.000280
655364.085140.000267
1310728.473620.000270
26214416.66190.000259
52428830.85920.000265

Here "scaled max error" denotes max⁡j≤n∥o^j−oj∥∞/log⁡nlog⁡log⁡n\max_{j \leq n} \Vert \widehat{\boldsymbol{o}}_j - \boldsymbol{o}_j \Vert_{\infty} / \sqrt{\log n \log\log n}, as defined above.

Figurative illustration: We've included one figurative illustration in Sec. 3 which visualizes the paradigmatic coreset selection behavior of Express, and we would be happy to include others. Are there particular aspects of our methodology that you would like to see included in an illustration?

Reviewer_BvY2OpenReview ↗
Rating
4
Clarity
3
Confidence
2
Originality
3
Quality
3
Significance
3
Read review
Summary

They propose a new method called EXPRESS, which approximates causal attention using a small fixed-size cache of representative key-value pairs. They also introduce a concrete instantiation called Thinformer Express together with it. In general, attention scales quadratically with sequence length, and existing approximations often only handle the unmasked case rather than the causal masked case. The underlying idea, which is to summarize a large dataset with a few representative points that preserve its averages, is extended here to the streaming setting where only the past is visible. The authors argue that memory stays constant and that the approximation guarantees improve on prior work, and demonstrate the method with an I/O-aware Triton implementation across long-context prefill, KV cache compression, and long-form decoding.

Strengths and weaknesses

Strengths

  • The method comes with proofs bounding its approximation error and memory usage, whereas many attention approximations of this type are heuristic. It is also general: EXPRESS converts any halving algorithm into a causal, streaming version, and the cache size is constant in the sequence length.
  • The method is evaluated empirically, not only analyzed. The authors provide an I/O-aware Triton implementation and report speedups over baselines in long-context prefill, KV cache compression, and long-form decoding. It can also be used as a front end to existing KV cache compression methods.

Weaknesses

  • The headline speedup figures appear to be reported under the most favorable conditions: the largest speedup uses the smallest cache and the longest sequence, and the factor drops considerably otherwise. That the speedup grows with sequence length is also, to some extent, inherent to the design. Moreover, since the baseline runs out of memory at the longest sequence, the speed and memory advantages become conflated. A fair comparison at matched accuracy and cache size, beyond the best case, would be more convincing.
  • The method approximately preserves quality; it is not lossless. The output is an approximation, and the quality claims rest on specific benchmarks. The usefulness is well supported, but clearer statements on which tasks and models retain near-lossless behavior, and on how much degradation is acceptable, would be reassuring.
  • The evaluation scope felt limited relative to the claims (the authors acknowledge this). Experiments cover only a narrow set of languages, domains, models, and GPUs, with little guidance on choosing hyperparameters. The problem of approximating causal, streaming attention has also been addressed before, and the method largely combines existing components, so the contribution feels somewhat incremental.

(Note) I have not independently verified the proofs. This assessment is based mainly on novelty, experimental design, evaluation scope, implementation, and clarity.

Questions
  • The largest speedup uses the smallest cache and the longest sequence. At matched accuracy and cache size, what wall-clock speedup do you obtain over the baseline and over exact attention, and what are the factors away from the best case?
  • Does the near-lossless behavior hold for other languages, domains, and model scales? Under what settings does quality degradation become unacceptable?
  • How should practitioners choose hyperparameters such as the cache size? Is there guidance on the speed–accuracy trade-off?
Limitations

yes

Paper formatting concerns

None

Final justification

The authors provided the matched-accuracy, matched-cache-size comparison I asked for. The resulting end-to-end speed-ups are naturally more modest than the kernel-level figures, since they are measured at accuracy parity, and I appreciate that these are now reported explicitly.

1 comment

Thank you for your thoughtful and constructive review. We were pleased that you appreciated our combination of theoretical and empirical analysis and were delighted that you found our method general and its usefulness well-supported. We address each point raised below.

Choosing hyperparameters: Thank you for this question. In the revision, we will clarify our recommendations for setting the Thinformer Express hyperparameters. When using Thinformer Express for prefill, we recommend setting m‾=h−2\overline{m} = h - 2 (as we do in the experiments of Fig. 1 and Fig. 2) as this leads to favorable GPU utilization in our Triton implementation of kernel halving (Alg. E.1). When using Thinformer Express for decoding, we recommend setting m‾=h\overline{m} = h (as we do in our long-form decoding experiments of Fig. 3) as this yields the best quality guarantee following Thm. 3. While we suspect the “best” choice of hh is task specific, we find that h=9h=9 and h=10h=10 perform well as defaults across all of our experiments. In addition, we find that quality degrades gracefully with smaller hh, both in our theoretical guarantees and in practice.

We will also clarify in the revision that the prefill, KV cache compression, and longform decoding experiments in our submission each demonstrate how accuracy and runtime vary with cache budget. For example, Fig. 3 shows the accuracy and runtime of Thinformer Express as we sweep h∈{8,9,10,11,12}h \in \lbrace 8, 9, 10, 11, 12 \rbrace, and h=log⁡2(nout)h = \log_2(n_{out}) determines the cache budget. For each hh, we summarize here the mean runtime, accuracy, and cache size (±1\pm 1 standard error) across all benchmark questions in the MATH500 dataset.

MethodRuntime (ms)AccuracyCache Size
Thinformer Express (h=8h=8)34517.28 ± 2261.940.85 ± 0.02746.52 ± 7.66
h=9h=930853.97 ± 1924.770.88 ± 0.011100.30 ± 18.73
h=10h=1035846.19 ± 2463.570.90 ± 0.011443.23 ± 38.24
h=11h=1143671.25 ± 3684.380.89 ± 0.011717.43 ± 62.27
h=12h=1255588.36 ± 5626.030.90 ± 0.011918.07 ± 87.23
Exact63824.88 ± 7535.850.90 ± 0.012077.19 ± 111.12

Speed-ups at matched accuracy and cache sizes: In the revision we will better highlight the instances in which Thinformer Express matches the accuracy of exact attention with strict improvements in both memory and runtime. In the KV cache compression experiment of Fig. 2, Thinformer Express paired with PyramidKV achieves the same accuracy as exact prefill on HotpotQA-E with 78%–84% the computation time. On TriviaQA-E, Thinformer Express paired with StreamingLLM achieves the same accuracy as exact prefill with 70%–78% the computation time. And on TREC-E, Thinformer Express paired with SnapKV achieves the same accuracy as exact prefill with 84%–95% the computation time. Here, we note that the speed-ups achieved depend on the cache compression method and its KV cache size. In the memory-constrained long-form decoding experiment of Fig. 3, Thinformer Express achieves the same accuracy on the MATH500 dataset with only 61% of the cache size. In the compute-constrained long-form decoding experiment of Fig. 3, Thinformer Express achieves the same accuracy on the MATH500 dataset with only 56% of the computation time.

Novelty of Express: In the revision, we will strive to make clearer that Express is (i) a new and general approach to converting unmasked approximations into masked and streaming approximations that (ii) offers meaningful benefits over state-of-the-art masked attention approximations. For the same level of guaranteed accuracy, Express reduces the memory requirement of BalanceKV (from Θ(noutlog⁡n)\Theta(n_{out} \log n) to 6nout6 n_{out}) and substantially reduces the computational overhead of compression from Θ(nnoutlog⁡n)\Theta(n n_{out} \log n) to nout2log⁡(nout)n_{out}^2 \log(n_{out}). That is, the compression overhead of Express is independent of the sequence length nn and improves upon the compression time of BalanceKV by n/noutn/n_{out}. For the same cache size and runtime, Express also guarantees substantially smaller attention error (O~(1/nout)\tilde{O}(1/n_{out}) vs. Ω(1/nout1/6)\Omega(1/n_{out}^{1/6})) than HyperAttention.

Additional experiments

To further expand the scope of our evaluation, we have conducted several new experiments. First, we compare Thinformer Express with BalanceKV for long-form decoding. While the BalanceKV authors do analyze an algorithm for causal attention approximation, they do not evaluate streaming generation or causal approximation in their experiments and only provide code for unmasked approximation. Hence, we again apply the batch-to-online conversion scheme of Devoto et al. and evaluate runtime and long-form decoding accuracy on MATH500. We find that Thinformer Express improves upon both the accuracy-runtime and accuracy-memory trade-offs of BalanceKV, matching the accuracy of exact with 56% runtime, while no setting of BalanceKV achieves matched accuracy and all BalanceKV runtimes are substantially slower.

Exact (runtime, accuracy, mean cache size)
63824.88 ± 7535.85, 0.90 ± 0.01, 2077.19 ± 111.12

Thinformer Express
34517.28 ± 2261.94, 0.85 ± 0.02, 746.52 ± 7.66
30853.97 ± 1924.77, 0.88 ± 0.01, 1100.30 ± 18.73
35846.19 ± 2463.57, 0.90 ± 0.01, 1443.23 ± 38.24
43671.25 ± 3684.38, 0.89 ± 0.01, 1717.43 ± 62.27
55588.36 ± 5626.03, 0.90 ± 0.01, 1918.07 ± 87.23

BalanceKV
204433.63 ± 3859.46, 0.08 ± 0.01, 703.43 ± 5.29
136453.93 ± 5549.53, 0.40 ± 0.02, 1127.27 ± 17.99
102245.85 ± 5795.88, 0.59 ± 0.02, 1344.13 ± 29.79
86277.07 ± 5912.75, 0.70 ± 0.02, 1477.86 ± 39.25
74801.69 ± 6366.06, 0.79 ± 0.02, 1653.40 ± 54.67
69011.53 ± 6577.49, 0.84 ± 0.02, 1758.64 ± 65.88

Second, we introduce a new experiment directly comparing the output of Thinformer Express o^n\hat{\boldsymbol{o}}_n with the output of exact attention on\boldsymbol{o}_n and demonstrate the accuracy-vs.-runtime trade-off as the target cache size nout=2hn_{out}=2^h varies. We sample the queries, keys, and values from the embedding matrix of the ChatGLM2-6B-32K model and report the median of the scaled maximum error max⁡j≤n∥o^j−oj∥∞/log⁡nlog⁡log⁡n\max_{j\leq n} \Vert\hat{\boldsymbol{o}}_j - \boldsymbol{o}_j\Vert_{\infty}/ \sqrt{\log n \log\log n} across the 32 heads. Notably, for each hh, the scaled maximum error remains uniformly bounded in nn, in line with the O(log⁡nlog⁡log⁡n)O(\sqrt{\log n \log\log n}) growth rate for max⁡j≤n∥o^j−oj∥∞\max_{j\leq n} \Vert\hat{\boldsymbol{o}}_j - \boldsymbol{o}_j\Vert_{\infty} predicted by Thm. 3.

nout=29n_{out} = 2^9:

nnSpeed-up over FlashAttention 2max⁡j≤n∥o^j−oj∥∞log⁡nlog⁡log⁡n\frac{\max_{j\leq n} \Vert\hat{\boldsymbol{o}}_j - \boldsymbol{o}_j\Vert_{\infty}}{\sqrt{\log n \log\log n}}
327682.206550.000399
655366.086010.000410
13107212.16380.000393
26214436.52580.000409
52428881.94830.000394

nout=210n_{out} = 2^{10}:

nnSpeed-up over FlashAttention 2max⁡j≤n∥o^j−oj∥∞log⁡nlog⁡log⁡n\frac{\max_{j\leq n} \Vert\hat{\boldsymbol{o}}_j - \boldsymbol{o}_j\Vert_{\infty}}{\sqrt{\log n \log\log n}}
327681.384940.000280
655364.085140.000267
1310728.473620.000270
26214416.66190.000259
52428830.85920.000265

Finally, we expand the experiment above to a broader range of target cache sizes to examine how attention reconstruction error decays with cache size.

nh=7h=8h=9h=10
40000
80000
160000
320000
640000
1280000
2560000
5120000
10240.000945000
20480.0008800.00060000
40960.0009360.0005620.0004110
81920.0008830.0006170.0003870.000257
163840.0008900.0005850.0004160.000244
327680.0008470.0006010.0003990.000280
655360.0008540.0005740.0004100.000267
1310720.0008180.0005710.0003930.000270
2621440.0008050.0005480.0004090.000259
5242880.0007750.0005420.0003940.000265

Comments on the paper

1 comment
Meta-review

The paper introduces Express, a streaming procedure that converts a non-causal thinning-based attention approximation into a causal approximation maintained in a fixed-size weighted cache. Combined with Thinformer, it gives improved guarantees for causal attention and an I/O-aware Triton implementation for long-context prefill, KV-cache compression, and long-form decoding.

I find the paper interesting, and the reviewers generally view it positively, valuing the combination of theory and implementation. Reviewer kZd2 questions whether the main error bound is informative for realistic activation norms and asks for direct empirical validation of how the error changes with sequence length. Reviewer BvY2 questions how representative the headline speedups are and asks for comparisons at matched accuracy and cache size away from the most favorable operating points. Reviewer VaHG raises similar questions about cache size, accuracy, and runtime. Addressing these questions would clarify the practical meaning of the theory and the strength of the empirical evidence.

Update. Following the author response and subsequent discussion, I recommend acceptance. The authors provided several additional comparisons and ablations; Reviewer BvY2 acknowledged that the requested empirical comparison was supplied. Reviewer VaHG remained concerned that the bound in Theorem 3 may be numerically loose for realistic activations; Reviewer kZd2 raised the same concern but did not provide a post-rebuttal update. In my view, such looseness is common in worst-case theoretical guarantees (e.g., uniform-convergence bounds) and does not by itself negate their theoretical or practical value. No reviewer identified a concrete correctness error, and the paper still provides a meaningful theoretical reduction and improved asymptotic guarantees. The final version should incorporate the new evidence and clearly mention limitations. Subject to these revisions, my final recommendation is Accept.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.