potentialpaper

FFTSparse: Relative-Position Correlation Guided Sparse Attention for Long-Context Language Models

Zemin Chao, Cen Jianhe, Qianhui Xu, Guangzhi Ge, Zhixin Qi, Hongzhi Wang

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. FFTSparse optimizes prefilling efficiency for long-context LLMs using FFT-guided sparse attention, achieving 7.4x speedup.

Abstract. The quadratic cost of attention limits the efficiency of long-context language model prefilling. We observe that attention logits in the evaluated models often exhibit diagonal stripes: query--key pairs separated by particular relative distances have consistently high correlation. We introduce FFTSparse, a training-free hybrid block-sparse attention framework that exploits this structure. FFTSparse formulates dominant-lag extraction as cross-correlation and computes it using the Fast Fourier Transform in O(DNlog⁡N)O(DN\log N) time per head, where NN is the number of blocks and DD is the head dimension. A sampled head classifier routes diagonal-dominant heads to lag-based masks and diffuse heads to block-affinity masks, with structural priors preserving local and boundary interactions. The complete mask-construction pipeline also includes quadratic block-level mask writes and affinity scoring. Evaluations on Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct demonstrate a competitive accuracy--efficiency trade-off on LongBench. Direct measurements across all 32 layers of Llama-3.1-8B-Instruct yield up to an 8.37×8.37\times attention-module speedup at 128K tokens with a correlation threshold of 0.900.90. These results support frequency-domain lag extraction as an efficient way to select structured long-range interactions.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper proposes FFTSparse, a method to accelerate the prefilling stage of long-context LLLMs inspired by the finding that attention often forms diagonal stripe patterns, which indicate strong correlations at specific relative distances between tokens. FFTSparse reduces the cost to identify the sparsity pattern of diagonal stripes to O(N log N) leading to up to a 7.4× speedup at 128K context lengths.

Reviewers point out as strengths the speedup enabled by the proposed method and the thoroughness and informativeness of the ablation studies. The main weaknesses are that the speedup relies on the diagonal patterns, which may be task dependent or specific to RoPE-based models, the limited comparative analysis (a Pareto Frontier analysis is suggested), and the incomplete analysis of failure modes (e.g. are the cases where FFTSparse is worse than other baselines are due to low or high frequency of diagonal-dominant heads?) There are also claims that the accuracy gains are somewhat overstated. I recommend the authors to address these questions in their rebuttal.

Final justification

The rebuttal addressed most of the concerns raised by the reviewers who all now all recommending acceptance. The new experiments are convincing. I recommend acceptance.

Area Chair Fizh · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper proposes FFTSparse, a method to accelerate the prefilling stage of long-context LLLMs inspired by the finding that attention often forms diagonal stripe patterns, which indicate strong correlations at specific relative distances between tokens. FFTSparse reduces the cost to identify the sparsity pattern of diagonal stripes to O(N log N) leading to up to a 7.4× speedup at 128K context lengths.

Reviewers point out as strengths the speedup enabled by the proposed method and the thoroughness and informativeness of the ablation studies. The main weaknesses are that the speedup relies on the diagonal patterns, which may be task dependent or specific to RoPE-based models, the limited comparative analysis (a Pareto Frontier analysis is suggested), and the incomplete analysis of failure modes (e.g. are the cases where FFTSparse is worse than other baselines are due to low or high frequency of diagonal-dominant heads?) There are also claims that the accuracy gains are somewhat overstated. I recommend the authors to address these questions in their rebuttal.

Final justification

The rebuttal addressed most of the concerns raised by the reviewers who all now all recommending acceptance. The new experiments are convincing. I recommend acceptance.

Reviewer tMoCOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

FFTSparse is a training-free block-sparse attention method for long-context prefilling. The key observation is that RoPE-induced attention matrices show diagonal stripe patterns: query-key pairs at certain relative distances (lags) are consistently high-scoring. Instead of the O(N^2) block scoring that dynamic baselines use to find which blocks to attend, FFTSparse frames lag identification as a cross-correlation and solves it in the frequency domain in O(N log N). A lightweight module classifies each head as diagonal-dominant (gets a prior mask + column mask + FFT lag mask) or diffuse (gets a prior mask + row-wise top-k affinity mask). Evaluated on Llama-3.1-8B and Qwen2.5-7B on LongBench, with latency on RTX 5090 from 8K to 128K. Reported up to 7.4-8.4x prefill speedup at 128K with accuracy close to full attention, and an ablation over the mask components.

Strengths and weaknesses

Strengths

  • The core idea is genuinely good. Reformulating lag discovery as FFT cross-correlation is the right tool for the observed structure, and the O(N^2) -> O(N log N) reduction in pattern identification targets a real, well-motivated bottleneck that prior dynamic methods (MInference, FlexPrefill, XAttention) all pay.
  • The speedup numbers are strong and measured as wall-clock, not just FLOPs. At 128K the gap over XAttention (3.4x) and MInference (1.9x) is large, and the crossover behavior (slower than dense at 8K, faster as N grows) is reported honestly rather than hidden.
  • The head-type ablation (Table 3) is informative: All-Stripe and All-Diffuse reach similar accuracy but at much higher mask ratio (12.4% / 19.2% vs 10.4%), which supports the routing design on a sparsity-per-accuracy basis rather than accuracy alone.
  • Training-free, builds on public BSA kernels, code linked, two model families tested. Reproducibility is reasonable.
  • The w/o Prior code-task observation (RepoBench jumps when the locality prior is removed) is a nice, candid piece of analysis.

Weaknesses

  • The accuracy claim is overstated. The abstract says accuracy is "strictly preserved," but FFTSparse is below full attention on the headline average for both models (36.86 vs 37.02 on Llama at theta=0.85; 41.25 vs 42.52 on Qwen) and is never the top sparse method on average. MInference and XAttention both edge it out. "Competitive" is accurate; "strictly preserving" and "consistently outperforming state-of-the-art" are not, since on accuracy it trails and the selling point is the efficiency/accuracy trade-off, not accuracy itself.
  • A key recent baseline is missing from the comparisons. SpargeAttention is cited in related work and described as reaching up to 13.5x prefill speedup at 256K, yet it does not appear in Table 1 or Table 2. If the headline is "consistently outperforming SOTA," the strongest efficiency competitor cannot be left out of the actual experiments.
  • The routing/identification cost is asserted, not measured. The 0.02% overhead figure is a FLOPs estimate for mask construction. Head classification requires probing diagonal variance (Eq. 4), and Appendix B says this is done by "lightweight sparse probing" of selected offsets, but there is no measured wall-clock for the classification step, no statement of how many offsets are probed, and no sensitivity analysis on theta_diag. Since the entire pitch is avoiding O(N^2) scoring, the cost of deciding who is diagonal-dominant needs to be on the clock, not estimated away.
  • Complexity bookkeeping is internally inconsistent. The appendix complexity table lists O(HN^2) terms for pattern identification, lag mask construction, and the affinity mask, then states the total is dominated by O(HN log N D + HN^2). An O(HN^2) term means the method is not actually sub-quadratic in blocks; the abstract's O(N log N) framing applies only to the FFT lag-extraction sub-step, not to mask construction as a whole. This should be stated plainly rather than folded into a "0.02%" headline.
  • Latency methodology is shaky at the most important point. For 64K and 128K, only 10 and 5 layers are profiled and extrapolated to the full model. The biggest speedup claims (7.4-8.4x at 128K) are exactly where the measurement is most extrapolated and least direct. At minimum, report the full-model number for at least one 128K configuration.
  • theta is a per-deployment knob with no selection procedure. Results are shown at 0.85 and 0.9, but how a practitioner picks theta for an unseen workload is unspecified, and the diffuse/diagonal split plus theta_diag, k_sink, w, k_last, k_col form a sizeable hyperparameter surface whose robustness is not characterized.
  • The "best on 6/15 datasets, occasionally beating dense" framing invites a multiple-comparisons read. With 15 datasets and no variance reporting (the paper argues determinism, which is fair for a fixed forward pass but does not address sensitivity to the many thresholds), per-dataset wins are weak evidence on their own.
Questions
  1. Can you add SpargeAttention to Tables 1 and 2? It is the most directly competitive efficiency baseline and is currently only discussed, not run.
  2. What is the measured wall-clock cost of the head-classification step alone, as a fraction of total prefill, at 32K/64K/128K? How many diagonal offsets are probed, and how sensitive is accuracy to theta_diag?
  3. The appendix lists O(HN^2) terms in mask construction. Is mask construction actually sub-quadratic, or only the FFT lag-extraction sub-step? Please reconcile this with the abstract.
  4. For 128K, can you report at least one full-model (all-layer) latency measurement rather than a 5-layer extrapolation, to validate the 8.4x figure?
  5. How should theta be chosen without per-task tuning? Is there a single setting that holds across LongBench tasks, or does each task need its own?
  6. Diffuse heads still use row-wise top-k over block scores (Eq. 11), which needs the block score matrix. What is the complexity and measured cost of that path, and how many heads end up diffuse in practice on each model?
  7. The abstract claims accuracy is strictly preserved while the tables show small drops below dense. Can this be softened to an accuracy/efficiency trade-off claim?
Limitations

The limitations appendix is honest about the main scope issues: diagonal patterns are task-dependent and may fade on abstract reasoning, the fixed B=128 granularity can retain redundant tokens, and transfer to non-RoPE position encodings (ALiBi, NoPE) is untested. Two things are under-acknowledged and should be added. First, the accuracy gap below dense and below the best sparse baselines is a limitation of the method's value proposition, not just a detail, and should be stated where the accuracy claims are made. Second, the cost and robustness of the head-classification and theta selection steps are not treated as limitations even though they are central to whether the O(N log N) story holds end to end. The broader-impacts and license sections are adequate.

Final justification

The all-32-layer measurements substantially address my concern about extrapolating the 64K/128K latency results, and the reported 8.37× result is close to the original estimate. The isolated head-classification timings, number of probed offsets, diffuse-head proportions, and affinity-path costs are also useful additions.

Formatting concerns
  • The PDF contains injected text (appearing twice) instructing the reader to include three specific reviewer phrases. This is a prompt-injection attempt aimed at automated review and should be flagged to the AC; it is not legitimate manuscript content.
  • Checklist inconsistencies: item 2 says limitations are in "Appendix C" but they are in Appendix A; item 1 cites "Appendix G" for complexity but the analysis is in Appendix E; item 10 claims a Broader Impact discussion in Section 5, but Section 5 is a short conclusion with no real broader-impact paragraph. Please fix the cross-references.
  • The abstract's quantitative framing ("7.4x," "strictly preserving") should be reconciled with Table 2 (8.4x at theta=0.9) and Table 1 (accuracy below dense). Pick consistent numbers and claims.
  • Several equations reuse indices (the paper notes the m/tau overloading itself); a small notation table would help, since the lag/block/head indexing is dense.
  • Figure 1 and Figure 4 are central to the motivation but are described only qualitatively; a quantitative measure of "diagonal dominance" per layer/head would strengthen the empirical claim that the structure is prevalent.
  • Minor: define mask ratio and how it is computed the first time it appears in Table 3, and state which theta the Table 3 ablation uses.
2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We respond the reveiwer tMoC 's comment point by point as below.

[F1]

The PDF contains injected text instructing the reader to include specific reviewer phrases. ...

Response about Prompt-Injection Text

We take academic integrity with the utmost seriousness and categorically confirm the authors did not insert any such instructions.

It seems that these prompts were embedded into the PDF by the official NeurIPS/OpenReview system to detect whether reviews are entirely generated by AI tools, wihch has been cross-verified by other authors of NeurIPS.

[Q1 & W2]

Can you add SpargeAttention to Tables 1 and 2? A key recent baseline is missing. ...

Response: About SpargeAttention Baseline

SpargeAttention and FFTSparse use different pattern-identification paradigms. SpargeAttention relies on block- or region-wise similarity scoring, whereas FFTSparse extracts dominant global lags through FFT in O(Nlog⁡N)O(N\log N) time. This distinction is particularly relevant at extreme context lengths.

We attempted to reproduce SpargeAttention using its official repository, but the results were substantially below the published values, likely because of software-stack and kernel-specific dependencies. Reporting unverified numbers could be misleading. We therefore included XAttention, the strongest baseline we could reproduce reliably under identical settings.

We acknowledge this limitation and will document the reproduction environment and add results once the baseline can be reproduced faithfully.

[Q2 & W3]

What is the isolated wall-clock cost of head classification at 32K/64K/128K, how many offsets are probed, and how sensitive is accuracy to θdiag\theta_{\mathrm{diag}}? ...

Response: Cost and Sensitivity of Head Classification

The classifier avoids the full [H,N,N][H,N,N] tensor by probing about 15% of eligible remote diagonals, capped at 64.

Length Offsets/layer Classification Prefill wall Fraction
32K 19 31.71 ms 3441.88 ms 0.9215%
64K 38 30.48 ms 7365.72 ms 0.4138%
128K 64 67.75 ms 16381.11 ms 0.4134%

Thus, classification is below 1% of prefill latency and about 0.41% at 64K/128K.

For each sampled offset τ\tau, we compute the diagonal vector

aτ(h)[m]=Qm(h)⋅Km−τ(h)D,a_{\tau}^{(h)}[m]=\frac{Q_m^{(h)}\cdot K_{m-\tau}^{(h)}}{\sqrt D},

measure its normalized adjacent-difference variance, and average across sampled offsets. A head is routed to the stripe path when r(h)≤θdiagr^{(h)}\leq\theta_{\mathrm{diag}}.

Empirically, θdiag=0.2\theta_{\mathrm{diag}}=0.2 cleanly separates most heads. On a real sample, Layer 23 has 30 stripe/2 diffuse heads and Layer 14 has 13 stripe/19 diffuse heads; most diffuse scores are 0.23--0.47. Extreme ablations remain stable: Adaptive, All Stripe, and All Diffuse score 39.52, 39.35, and 39.30. The threshold therefore affects efficiency more than accuracy.

[Q3 & W4]

The appendix lists O(HN2)O(HN^2) terms. Is the whole mask construction sub-quadratic, or only FFT lag extraction? ...

Response: Reconciling O(Nlog⁡N)O(N\log N) and O(HN2)O(HN^2)

The O(Nlog⁡N)O(N\log N) claim applies specifically to dominant-lag extraction through FFT. Physical instantiation of the block-level Boolean mask remains O(HN2)O(HN^2). We will revise the abstract and complexity discussion to distinguish these two stages explicitly.

Existing methods perform block-pair scoring at quadratic scale. FFTSparse instead uses its quadratic step only to write Boolean entries after lag extraction, without block-by-block query--key scoring. We will remove wording suggesting that the entire pipeline is sub-quadratic.

[Q4 & W5]

Please report full-model 64K/128K latency rather than partial-layer extrapolation. ...

Response: About Full 32-Layer Latency

Our initial partial-layer profiling followed the evaluation protocol adopted by XAttention, which reports its efficiency measurements using only Layer 12. We therefore used a similar representative-layer protocol in the original submission, particularly because storing and processing raw QK tensors at 64K and 128K introduces substantial I/O, storage, and memory overhead.

Nevertheless, we agree that full-model, all-layer measurements provide more rigorous evidence and avoid potential bias caused by layer-wise variations in attention topology. To directly address this concern, we regenerated the QK data for all 32 Transformer layers and repeated the latency evaluation without any layer-wise extrapolation.

Source Length θ=0.85\theta=0.85 θ=0.90\theta=0.90
Real 64K 4.76x 5.39x
Real 128K 7.03x 8.37x
NIAH 64K 4.83x 5.41x
NIAH 128K 7.09x 8.31x

The full 32-layer measurements are highly consistent with the original partial-layer results. In particular, the measured 128K speedup of 8.37x closely matches the previously extrapolated value of 8.44x, confirming that the original protocol did not materially overestimate the acceleration.

We will replace all extrapolated results in the revised manuscript with these full-model measurements and update Table 2, the experimental setup, and the corresponding speedup claims accordingly.

[Q5 & W6]

How should θ\theta be selected without per-task tuning? ...

Response: Selection of θ\theta

We use one task-agnostic global threshold. Calibration on a small subset gives θ≈0.90\theta\approx0.90 for about 10% retained blocks and θ≈0.85\theta\approx0.85 for about 15%.

All reported LongBench tasks and layers share the same threshold for a given model. We recommend θ=0.85\theta=0.85 as the conservative default and θ=0.90\theta=0.90 for a more efficiency-oriented setting. We will add the calibration procedure and sensitivity results.

[Q6]

Diffuse heads require row-wise Top-kk over block scores. What is the complexity and measured cost, and how many heads are diffuse? ...

Response: Complexity and Cost of Diffuse Heads

For HdH_d diffuse heads, sequence length LL, and block size BB, the diffuse path has block-level complexity

O ⁣(Hd(LB)2).O\!\left(H_d\left(\frac{L}{B}\right)^2\right).

Only routed diffuse heads construct this matrix, and B=128B=128 reduces its size.

We also force all 1,024 head-instances across 32 layers into either the diffuse or stripe path for an equal-head comparison:

Length MaffinityM_{\mathrm{affinity}} / Prefill Per diffuse head MlagM_{\mathrm{lag}} Affinity/Lag
32K 16.08 ms 0.486% 15.70 μ\mus 23.24 ms 0.69x
64K 24.41 ms 0.340% 23.84 μ\mus 24.94 ms 0.98x
128K 79.62 ms 0.474% 77.76 μ\mus 32.65 ms 2.44x

Even under All Diffuse, mask construction remains below 0.5% of prefill. At 128K, 21.32 ms is score construction and 58.29 ms is Top-kk+mask. Per-head values are amortized costs.

In adaptive execution, about 15%--25% of heads are diffuse. All Diffuse is slower end to end mainly because its mask is denser: 19.24% versus 12.41% for All Stripe.

[Q7, W1 & F3]

The accuracy claim is overstated, and the abstract numbers should be reconciled with the tables. ...

Response: Accuracy--Efficiency Claims

We will replace the absolute claims with “a highly competitive accuracy--efficiency trade-off.” FFTSparse has a small average accuracy gap while being about 1.9x faster at 64K and 2.1x faster at 128K.

We will also harmonize all speedup claims. The 7.4x value corresponds to the conservative θ=0.85\theta=0.85 setting, while the updated full-model peak is 8.37x at θ=0.90\theta=0.90. Every reported number will be paired with its threshold.

[W7]

“Best on 6/15 datasets” invites a multiple-comparisons interpretation, and no variance is reported. ...

Response: Per-Dataset Wins and Variance Reporting

We agree that counting per-dataset wins is descriptive and should not be treated as evidence of statistical superiority. We will remove or substantially soften this framing.

FFTSparse is a training-free and deterministic inference method. Under fixed inputs, hyperparameters, and greedy decoding, its sparse pattern, output, and task score remain unchanged; thus, there is no run-to-run variance from training seeds or stochastic generation. This is consistent with prior training-free sparse-attention methods such as XAttention and SpargeAttention, which also report point estimates under fixed inference settings rather than multi-seed means with error bars.

Nevertheless, deterministic inference does not eliminate sampling uncertainty from finite evaluation sets. We therefore agree that small per-dataset gains should not be interpreted as statistically significant advantages, and will instead emphasize average performance and the accuracy--efficiency trade-off.

On Llama-3.1-8B, FFTSparse scores 36.86, compared with 37.02 for Full Attention and 37.20 for XAttention. On Qwen2.5-7B, the corresponding scores are 41.25, 42.52, and 42.15. Meanwhile, FFTSparse achieves approximately 1.8×1.8\times--2.2×2.2\times lower prefilling latency than XAttention at 64K--128K.

Accordingly, individual task wins will be presented only as descriptive observations. Our central claim is that FFTSparse maintains comparable average performance while substantially reducing long-context prefilling latency.

[L1 & L2]

Please acknowledge the accuracy gap and the robustness/cost of classification and threshold selection as limitations. ...

Response

We agree and will explicitly add both limitations: the small accuracy gap relative to dense attention and the strongest sparse baselines, and the robustness and isolated cost of head classification and threshold selection.

[F2, F4, F5 & F6]

Checklist, notation, figure quantification, and mask-ratio definition issues. ...

Response

We will correct the checklist references, add a notation table for mm and τ\tau, add quantitative metrics to Figures 1 and 4, and define mask ratio and the corresponding θ\theta in Table 3.

Reviewer tMoC · CommentOpenReview ↗

Thank you for the detailed measurements and for revising the scope of the claims. The all-32-layer measurements substantially address my concern about extrapolating the 64K/128K latency results, and the reported 8.37× result is close to the original estimate. The isolated head-classification timings, number of probed offsets, diffuse-head proportions, and affinity-path costs are also useful additions.

However, the rebuttal explicitly confirms that only dominant-lag extraction is O(N log N). Physical mask instantiation and the diffuse affinity path remain O(HN²), so the end-to-end mask-construction pipeline is not sub-quadratic in the number of blocks. The small measured constants at the tested lengths are practically encouraging, but they do not support the broader asymptotic framing. The revised paper should clearly distinguish all-layer attention-module latency from end-to-end model prefill latency as well.

The missing SpargeAttention comparison also remains unresolved. I understand the reproduction difficulty, but an unsuccessful reproduction cannot support a claim of outperforming the state of the art, especially when the omitted method is presented in the paper itself as the strongest efficiency competitor. The claim must therefore be restricted to the baselines that were successfully evaluated.

Finally, FFTSparse remains below full attention and the best sparse baseline on average accuracy, especially on Qwen, and threshold selection remains a calibrated accuracy-efficiency choice rather than a universal setting. The proposed softer framing is appropriate, but it narrows the contribution relative to the original claims.

Reviewer oeWgOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes FFTSparse, which makes use of the diagonal stripe patterns and the FFT algorithm to find attention masks that ideally can balance the performance and the inference speed of LLMs upon BSA kernels. The authors provide clear backround information and reasonable motivation for this proposed method. The presentation of the method is easy to follow and most experiment results are supportive of the trade-off claim.

Strengths and weaknesses

Strengths

(1) The FFTSparse is an innovative way to makes use of the diagonal stripe patterns discovered by previous work. Although the performance is not superior against the baselines accross the board, the experiments do show that FFTSparse preserves competitive performance with substantial speedups. This also provides more insights of the diagonal stripe patterns to the research community beyond the performance-speed trade-off per se.

(2) The experiments cover representative datasets to demonstrate FFTSparse against baselines. Ablation studies are thorough and informative.

Weaknesses

(1) I would like to see a more decent Pareto Frontier analysis of FFTSparse and baslines. The current analysis in Sec4.3 is inadequate. For a comprehensive Pareto Frontier analysis, the authors should compare the accuracy (or the sparsity) of FFTSparse with baselines under the same sparsity (or accuracy) level, ideally forming an accuracy-by-sparsity graph. Table 3 merely studies the impact of each component in FFTSparse rather than a trade-off between accuracy and sparsity.

(2) Since the O(N Log N) speedup is due to the M_{lag}, which only exists when the attention head is identified as diagonal-dominant head, this bares the question that how frequent is a head to be identified as diagonal-dominant. If I am not mistaken, the frequency is far from uniform for different models (and different layers thereof) and different datasets. For models and datasets where such heads are rare, the benefit of FFTSparse is minimal. Although the authors have already acknowledged this limitation in the paper, I think it is still helpful to make the experiment results more convincing and informative by providing such frequency or related statistics in the main experiments. For example, are the cases where FFTSparse is worse than other baselines are due to low or high frequency of diagonal-dominant heads? I understand that Fig.4 in the appendix provides some qualitative glimpse into this point. However, I think a quantitative approach is more convincing.

(3) The generality across model architectures and sizes is unclear or under-addressed in the paper. The models used in the paper's experiments are dense models with scale at the 7-8B level. Experiments on larger (e.g. 30B) or smaller (1-2B) and/or MoE structured models will be helpful.

Questions

Besides the weaknesses as given previously, the following are more explicit questions that I hope the authors can address.

  1. The heuristic (e.g. Eq.(4)) for the identification of diagonal-dominant heads seems arbitrary. Is there any preliminiary experiments that justify why this particular heuristic is chosen? Will other variance based stastics capture the feature of a diagonal-dominant head better?

  2. Similar to question 1, the logarithmic decay factor in Eq.(7) seems also arbitrary in terms of reducing the impact of the higher variance of larger lags. Can the authors justify (at least in spirit) why a logarithm decay is better than a linear or other types of decays? If there is no such decay penalty, how much worse or unstable the method can be?

  3. As discussed in the paper, the performance of FFTSparse on different tasks varies. For a better presentation and for intuitive understanding, can the authors provide some concrete examples of the failure modes of the method?

Limitations

Yes

Final justification

I have read the authors' response. It addresses most of my concerns, including those related to heuristic choices and failure modes. However, if the promised strengthening of the Pareto analysis and results for other models is delivered, I am willing to increase my score further. Before that, I will keep my already favorable rating.

Formatting concerns

No

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Reviewer oeWg (4)

We appreciate the reviewer’s constructive feedback on our manuscript. We address the concerns point by point below.

[Q1]

The heuristic in Eq. (4) for identifying diagonal-dominant heads seems arbitrary. Are there preliminary experiments that justify this choice? Would other variance-based statistics work better? ...

Response to Q1: Justification for the Identification Heuristic

The variance-based heuristic in Eq. (4) is not arbitrary. It was selected to balance empirical reliability and computational efficiency.

During preliminary exploration, we considered other distributional metrics, including information entropy. Although entropy can characterize the “spikiness” of a distribution, it requires probability normalization and logarithmic operations over local windows, introducing substantial overhead that conflicts with the O(Nlog⁡N)O(N \log N) efficiency objective of our prefilling framework.

Variance provides a lightweight and hardware-friendly proxy. By measuring the variance of adjacent score differences along sampled diagonals, we can rapidly distinguish sharp, concentrated diagonal patterns from flat or diffuse patterns using only basic arithmetic operations. We will clarify this mathematical and system-level design choice in the revised methodology and appendix.

[Q2]

The logarithmic decay factor in Eq. (7) also appears arbitrary. Why is logarithmic decay preferable to linear or other decay functions, and what happens without the penalty? ...

Response to Q2: Justification for the Logarithmic Decay

The logarithmic decay factor is intended to balance the preservation of long-range structural peaks against the suppression of background noise at distant relative positions.

A linear decay penalizes large lags too aggressively and can remove meaningful long-range dependencies. Conversely, using no decay leaves accumulated background noise insufficiently controlled and makes dominant-lag extraction less stable. Logarithmic decay provides a middle ground: its gentler slope at large distances preserves important distant peaks while still suppressing general noise.

We will add this motivation and corresponding ablations to clarify the necessity and stability of the logarithmic design.

[Q3]

The performance of FFTSparse varies across tasks. Can the authors provide concrete examples of its failure modes? ...

[W2]

Since the O(Nlog⁡N)O(N \log N) speedup relies on MlagM_{\mathrm{lag}}, how frequently are heads identified as diagonal-dominant? When such heads are rare, is the benefit minimal? ...

Response to Q3 and W2: Failure Modes and Frequency of Diagonal-Dominant Heads

Thank you for raising this important issue. We agree that the practical speedup of FFTSparse is directly related to the proportion of diagonal-dominant heads because the O(Nlog⁡N)O(N \log N) path relies on MlagM_{\mathrm{lag}}.

Diagonal-dominant structures are prevalent across the evaluated models and text-based tasks. RoPE and its variants are widely used in long-context models such as Llama, Qwen, Gemma, and DeepSeek. By encoding relative positional offsets in query–key interactions, RoPE provides a basis for attention patterns aligned with fixed relative positions, which appear as diagonals in block-level attention matrices. However, RoPE does not guarantee that every head is diagonal-dominant, so FFTSparse identifies the actual topology of each head rather than relying only on the positional encoding type.

Across our multi-task evaluation, approximately 80%80\%–90%90\% of attention heads are identified as diagonal-dominant. In a 32-layer Llama model, only about 4–5 layers in retrieval tasks and 2–3 layers in non-retrieval tasks contain a substantial number of non-diagonal heads, mainly in the middle layers. FFTSparse can therefore apply the MlagM_{\mathrm{lag}}-based fast path to most heads under the evaluated settings.

For flat, diffuse, or non-diagonal heads, the lightweight detector falls back to row-wise Top-kk selection using the affinity mask. This avoids imposing an incorrect diagonal assumption and helps preserve downstream accuracy. The fallback requires additional block-level scoring with complexity closer to O(N2)O(N^2). Therefore, as the diffuse-head proportion increases, FFTSparse’s speedup decreases and approaches that of standard dynamic sparse-attention baselines.

This efficiency failure mode may occur in highly abstract reasoning tasks or tasks requiring dense aggregation of non-local context, where attention becomes more diffuse and long-range dependencies lack stable relative-position or periodic structures. It may also arise in models that do not use RoPE or use substantially different positional encodings. Importantly, the main consequence is reduced efficiency rather than an abrupt accuracy failure, because the affinity-based fallback remains available.

We will explicitly discuss this failure mode and add a quantitative appendix table reporting diagonal and diffuse head proportions across models and datasets, together with their relationship to observed speedup.

[W1]

The current Pareto-frontier analysis is inadequate. Please compare accuracy and sparsity under matched settings, ideally with an accuracy-versus-sparsity graph. ...

Response to W1: Pareto-Frontier Analysis

We agree that an accuracy-versus-sparsity Pareto analysis would provide a more comprehensive and intuitive view of the method’s value proposition.

We will add a detailed Pareto graph in Section 4 or the appendix of the revised manuscript. We will systematically vary the threshold θ\theta to map the continuous frontier and compare FFTSparse directly with baselines under matched sparsity or accuracy levels.

Table 3 currently provides initial evidence by comparing All Stripe, All Diffuse, and Hybrid routing strategies and their mask ratios. The hybrid design inherently balances accuracy and sparsity. We will strengthen this section with the requested matched-budget analysis.

[W3]

The generality across model architectures and sizes is under-addressed. Experiments on larger, smaller, and/or MoE models would be helpful. ...

Response to W3: Generality Across Model Sizes and Architectures

Our current experiments focus on Llama-3.1-8B and Qwen2.5-7B because the 7B–8B scale is a widely used testbed for long-context prefilling optimization.

Because diagonal-stripe patterns arise from the interaction between RoPE and self-attention dynamics, similar structural sparsity is expected in both smaller and larger dense models that use RoPE. We acknowledge that the limited range of model sizes is a limitation. In the revision, we will include verification on smaller models, such as 1B–2B models, and attempt to add larger-model experiments subject to hardware constraints.

Extending FFTSparse to Mixture-of-Experts architectures introduces additional routing dynamics that interact with attention sparsity. We consider a full MoE adaptation beyond the scope of the current manuscript, but we will explicitly list it as a limitation and a promising direction for future work.

Reviewer oeWg · CommentOpenReview ↗

Thanks for the reply. It addresses most of my concerns, including those related to heuristics choices and the failure modes. Also, if the promised strengthening of the Pareto analysis and results for other models are delivered, I lean to increase my score further. However, before that, I will keep my already favorable rating.

Reviewer qUfTOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Authors introduce an efficient framework designed to accelerate the prefilling stage of long-context Large Language Models (FFTSparse). Authors identify that attention often forms diagonal stripe patterns, which indicate strong correlations at specific relative distances between tokens. FFTSparse reduces the cost to identify the sparsity pattern of diagonal stripes to O(N log N). Experimental results show that this approach achieves up to a 7.4× speedup at 128K context lengths while maintaining high accuracy. Ultimately, FFTSparse offers a scalable solution for processing massive datasets by reducing computational overhead to just 0.02% of full attention.

Strengths and weaknesses

Strength: Substantial prefilling speedup with downstream performance highly competitive with full attention. Re-formulating diagonal stripe identification problem as FFT Works well with block sparse attention Open sourced

Weakness: Speedup may be task dependent as not all tasks have diagonal patterns It is not clear if it would be as beneficial to non RoPE models

Questions

Could you please clarify if FFTSparse applied to all layers or global layers only?

Limitations

yes

Formatting concerns

n/a

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Reviewer qUfT (5)

We sincerely thank you for recognizing the value of our work. We address your insightful questions and concerns below.

About the Task Dependency of Speedup

As far as we are concerned, the diagonal structural patterns leveraged by our work are fundamentally induced by the Rotary Position Embedding (RoPE) mechanism used in current LLMs. RoPE naturally forms these diagonal stripes when encoding relative positional information between tokens. Given that RoPE is a standard configuration in modern long-context LLMs, we observe that these patterns are widely prevalent across existing models.

Although diagonal stripe patterns are frequent, not every attention head in every layer exhibits such a structure. To address this heterogeneity, our framework incorporates a lightweight head-identification component. If a specific attention head lacks a strong diagonal prior, the component classifies it as diffuse. Since FFT-based analysis is structurally ineffective for such heads, FFTSparse dynamically falls back to an affinity-based masking strategy based on block-level attention scores and row-wise Top-K selection.

We agree that the prominence of diagonal stripe patterns exhibits some degree of task dependency. Specific downstream tasks can influence how clearly these patterns appear. As noted in the limitations of our manuscript, diagonal patterns may become less pronounced in highly abstract or unstructured reasoning tasks.

Although this adaptive fallback relies on Top-K operations and may yield a slightly lower speedup on such tasks, it effectively balances structural priors with input-adaptive sparsity, thereby preserving downstream task accuracy across diverse workloads. We will expand the discussion of this task-dependent adaptive behavior in the revised manuscript.

Across the task types evaluated in this paper, approximately 80%--90% of attention heads exhibit diagonal-dominant patterns.

Applicability to Non-RoPE Models

We appreciate this insightful observation. The prominence of diagonal stripe patterns is related to the explicit relative-distance encoding mechanism of RoPE. Consequently, models using alternative positional encodings, such as ALiBi or absolute positional embeddings, may exhibit different attention topologies.

However, RoPE has become the de facto standard for modern long-context LLMs, including the Llama and Qwen families evaluated in our paper. FFTSparse therefore addresses one of the most prevalent efficiency bottlenecks in current practical deployments.

To address the reviewer's concern regarding generality, we will include a brief discussion and preliminary experiments evaluating FFTSparse on non-RoPE architectures in the appendix of the revised manuscript. We will also explicitly acknowledge the exploration of structures specific to non-RoPE models as a limitation and a direction for future work.

Application Across Transformer Layers

In our experiments, FFTSparse is applied to all Transformer layers. The lightweight identification component dynamically evaluates and routes attention heads to either diagonal or diffuse masks across all layers, rather than restricting the sparsity mechanism to a specific subset of global layers.

We will make this implementation detail more explicit in the methodology and experimental setup sections of the revised paper.

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

Missing a submission?

Loading the discussion…