- Rating
- 4
- Clarity
- 4
- Confidence
- 3
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper systematically evaluates kernelized attention methods and reveals that their theoretical complexity advantages largely fail to translate into practical efficiency. In reality, hardware-aware exact methods like FlashAttention consistently outperform state-of-the-art linear models in both speed and memory usage, with the only notable exception being memory during auto-regressive generation. To prove this quality gap is not a fundamental flaw of kernelization, the authors introduce LARA++, which recovers up to 99% of softmax accuracy. However, because LARA++ still suffers from high computational overhead, the study concludes that pure kernelized attention struggles to provide practical efficiency wins over exact methods.
Strengths and weaknesses
Strengths:
- The authors establish a unified framework to measure actual memory consumption and execution time at realistic foundation model scales. This directly addresses the fragmented and inconsistent evaluation landscape that has historically obscured the true comparative performance of kernelized methods.
- The paper provides strong empirical evidence that the theoretical complexity of linear attention does not automatically translate to practical efficiency gains against hardware-aware exact methods.
- The authors introduce LARA++, an improved method utilizing adaptive clustering and deterministic feature maps. By proving that LARA++ can recover up to 99% of softmax accuracy, the study successfully isolates computational cost—rather than expressiveness—as the binding constraint of kernelized attention. Weaknesses:
- The evaluation relies heavily on vision models and an outdated, small language model (GPT-2). It fails to test modern, large-scale LLMs.
- While LARA++ proves a theoretical point (that linear attention can match softmax quality), its complex clustering algorithm might introduces additional computational overhead, rendering it questionable for real-world deployment.
Questions
- Regarding experimental setup, are the low-level profiling configurations fully standardized across all evaluated attention mechanisms? Providing a roofline analysis or kernel-level profiling would help clarify whether the bottlenecks in linear attention stem from the theoretical algorithm or suboptimal Triton implementations.
- What is the precise hardware-level cost—such as FLOPs, memory accesses, and kernel launches—associated with recovering 99% of softmax accuracy using LARA++?
- If hybrid approaches combining exact local and global linear attention are the most viable path forward, what might be the optimal integration strategy?
Limitations
Yes.
Paper formatting concerns
None.
Final justification
I recommend borderline accepting the paper as the authors convincingly resolved my concerns regarding model scaling and implementation efficiency by conducting comprehensive evaluations on larger vision/language models and providing detailed hardware-level profiling of clustering overheads.
We thank the reviewer for the supportive assessment and for pressing on the hardware-level accounting, which we agree is where the paper's claims have to be defended.
Weakness 4 (evaluation relies on vision models and an outdated, small LM)
A fair criticism that we address with new results (ViT-B, ViT-L, and DINOv2-g for vision; GPT2-S, GPT2-M (24L x 1024D, 16H) and GPT2-L (36L x 1280D, 20H) for causal LLMs).
Vision, longest resolution measured (1536px, N = 9217). Format of the table below is
ms / MB.FlashAttention is the fastest and the lowest-memory method in all six rows. Its training memory advantage over the best kernelized baseline is essentially scale-invariant: 1.44x (S), 1.42x (B), 1.42x (L). Its time advantage narrows with model size (1.08x -> 1.03x -> 1.01x in training), which is itself informative and we will report it as such rather than overclaiming.
DINOv2-g (1.1B parameters). The scale trend continues to the largest model we tested, where the gap is smallest (with 32 landmarks, ratio 1/8):
Language, GPT2-S / GPT2-M / GPT2-L. Training at N = 4096 (the longest length at which most methods still fit), prefill inference at N = 16384, generation of M = 16384 tokens from a 512-token prompt.
Every finding replicates, and the two positive results for linear attention (generation memory, long-context prefill memory) get stronger at scale - generation memory advantage 5.6x/5.8x/5.0x and prefill memory advantage 2.6x/3.1x/3.0x across GPT2-S/M/L, i.e. the intermediate GPT2-M point sits on the same monotonic trend rather than breaking it.
On what remains out of reach: distilling a multi-billion-parameter LLM under our protocol is beyond our compute budget, and we will not claim results we cannot run. Note that the efficiency measurements are attention-layer-level sweeps over sequence length and model width; the mechanism they isolate (kernelized attention's constant factors and memory traffic vs. FlashAttention's IO-aware tiling) is not GPT-2-specific, and the consistency of the GPT2-S / GPT2-M / GPT2-L trend supports that.
Weakness 5 and Question 2 (clustering overhead)
All LARA++ timings in Figure 6 are full forward passes including clustering, and all Figure 3 memory numbers include it too - the overhead is not excluded from what we report. To give concrete numbers, LARA++ reaches 78.5-82.1 top-1 at 0.35-0.58x softmax peak memory on DeiT (per Table 1), and 0.40-0.55x memory reduction on DINOv2 (per Figure 3). Additionally:
Hardware-level cost (DINOv2, seq_len=257, batch_size=8). We profiled softmax, LARA and LARA++ across all four DINOv2 scales, reporting measured FLOPs together with CUDA kernel-launch counts and DRAM traffic:
Three findings are consistent across S/B/L/g. First, LARA++ does fewer FLOPs than softmax (0.86-0.96x depending on scale) yet is far more expensive in practice, so the binding constraint is not arithmetic - which is exactly the paper's thesis that cost, not expressiveness, is the wall. Second, the cost is memory-and-launch bound: LARA++ launches ~340 kernels versus softmax's 3 and moves about an order of magnitude more DRAM traffic.
Third, and most directly for the reviewer's question, the overhead is dominated by the k-center clustering stage. Because plain LARA (mean-pool landmarks) and LARA++ (k-center landmarks) share an identical attention body and differ only in landmark generation, the LARA -> LARA++ gap is the clustering cost, and profiling the clustering call in isolation confirms it (32 landmarks, single forward, A100):
So clustering alone is 43-60% of the LARA++ forward time, ~83% of its kernel launches and ~68% of its DRAM traffic at 32 landmarks (~72% and ~60% at 16), while contributing 2% of the analytic FLOPs. Halving the landmark budget from 32 to 16 removes about a third of the clustering kernels and cuts DRAM proxy by ~35%, which is why the accuracy-cost frontier is so sensitive to the landmark budget. These measurements substantiate the paper's conclusion: LARA++ closes the quality gap, and the residual efficiency wall is a clustering-and-implementation cost - a sequence of small gather/argmax/scatter kernels that do not fuse - rather than an intrinsic FLOP cost.
Question 1 (are low-level profiling configurations standardized? roofline / kernel-level profiling)
Yes - standardisation across methods was a design requirement of the benchmark. All methods share: the same harness and host model, the same dtype and batch size, a warmup phase before timing, CUDA-synchronised wall-clock timing averaged over 100 runs, and
torch.cuda.max_memory_allocatedfor memory. Critically for fairness, the kernelized methods are run with FlashLinearAttention's Triton chunked-prefix-sum kernels during training/prefill and with fused recurrent kernels during generation, so they are compared against FlashAttention's CUDA kernels at a comparable level of engineering effort rather than against a naive einsum baseline.On the reviewer's actual question (algorithm or implementation?), our benchmark already contains the controlled experiment, because we run each kernelized method in both a naive and an FLA-optimised implementation. The Triton kernels help a great deal and still do not close the gap:
So roughly 85% of the naive-implementation gap is implementation quality but a residual 1.2-1.4x deficit survives against a well-engineered exact kernel. A roofline analysis would sharpen the reasons, and we will try to add the profiler-based measurements above to test it.
Question 3 (if hybrids are the way forward, what is the optimal integration strategy?)
We can offer a concrete proposal and the evidence we have for it, while being clear about what we have not tested.
The design we would advocate is exact attention on a local window plus LARA++ on the global remainder, for a specific reason: our failure analysis (see our reply to Reviewer nxV9, Question 2) shows that LARA++'s residual error concentrates in spatially precise, dense prediction - 5-7 mIoU on ADE20K at Small and Base scale - while it is nearly lossless on global classification (0.5-1.3 points). A local exact window restores exactly the component it loses, and LARA++'s clustering-based proposals supply the data-dependent global summary that a sliding window cannot. This is also consistent with the reported prefill win of BASED (Arora et al., 2024), which comes from a linear-attention-plus-sliding-window combination.
Since the memory win for kernelized attention is concentrated in generation and long-context prefill (up to 5.0-5.8x and ~3x across GPT2-S/M/L), the natural deployment target for a hybrid is long-context decoding, where the local window is bounded and the global branch replaces an unboundedly growing KV cache. We will present this as a discussion of a promising direction supported by our measurements, building and evaluating such a hybrid is the follow-up work this paper is meant to motivate.