- Rating
- 3
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 2
- Significance
- 2
Read review
Summary
FlexFormer is a kernelized linear attention mechanism that generalizes Performer/RFA-style linear attention by learning the spectral representation of the attention kernel. Rather than sampling Fourier frequencies from a fixed distribution or computing a fixed linear attention kernel, FlexFormer treats the spectral frequencies as trainable parameters and learns them end-to-end from data. This enables the model to learn both stationary and non-stationary kernel families while retaining the linear-time and linear-memory complexity of kernelized linear attention.
Strengths and weaknesses
Strengths:
1.) The central idea of learning the attention kernel, rather than relying on a fixed hand-designed kernel, is interesting and well-motivated. While the scope of the work is primarily limited to improving kernelized linear attention, it represents a meaningful step toward more expressive and adaptive attention mechanisms and may inspire future research in this direction.
2.) The distillation experiments provide useful empirical evidence and help validate the proposed approach beyond standard training benchmark comparisons.
3.) The work is grounded in theoretical foundation, with a principled formulation based on spectral kernel learning. The exploration of both stationary and non-stationary kernel variants is valuable and helps clarify the trade-offs between expressiveness and computational efficiency.
Weaknesses:
1.) The discussion in Lines 34--37 appears somewhat dismissive of prior sparse attention approaches. Many of the cited sparse-attention methods have been rigorously evaluated across a broad range of benchmarks and settings, often with substantially more extensive experimental validation than the LRA and WikiText-103 evaluations presented in this work. The manuscript would benefit from a more balanced characterization of these prior efforts.
2.) The long-context evaluation is relatively limited given the manuscript's emphasis on scalable sequence modeling. The longest sequences considered are 4K tokens, making it difficult to assess the practical benefits of FlexFormer in contemporary long-context workloads. Evaluations at 16K, 32K, or longer context lengths would provide stronger evidence that the proposed approach maintains its effectiveness and efficiency in the settings for which linear-attention methods are typically motivated.
3.) The baseline selection could be expanded to better reflect recent developments in efficient sequence modeling. Although Hedgehog and PolaFormer are strong and relevant comparisons, additional evaluations against more recent linear-time architectures and attention alternatives, such as Gated DeltaNet [1], Mamba [2], and RACE Attention [3], would help more clearly establish the strengths and limitations of FlexFormer within the broader landscape of scalable sequence models.
4.) It is unclear whether the Softmax Attention results reported in Figure 2 use FlashAttention [4]. Since performance comparisons are a central part of the manuscript, it is important to compare against the strongest available implementation of Softmax Attention that is compatible with the target hardware.
5.) The presentation can be improved in several places. For example, the font sizes in Figure 2 are difficult to read. Additionally, some claims would benefit from more precise citations. For instance, the manuscript refers to optimized Softmax Attention implementations without clearly identifying the corresponding work. There are also several relevant linear attention works that are not discussed, including YOSO [5], PolySketchFormer [6], Nyströmformer [7], etc. A more comprehensive discussion of related work would strengthen the manuscript.
[1] Songlin Yang, Jan Kautz, Ali Hatamizadeh. Gated Delta Networks: Improving Mamba2 with Delta Rule. ICLR 2025.
[2] Albert Gu, Tri Dao. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. COLM 2024.
[3] Sahil Joshi, Agniva Chowdhury, Amar Kanakamdala, et al. RACE Attention: A Strictly Linear-Time Attention Layer for Training on Outrageously Large Contexts. ICLR 2026.
[4] Tri Dao, Daniel Y Fu, Stefano Ermon, et al. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. NeurIPS 2022.
[5] Zhanpeng Zeng, Yunyang Xiong, Sathya N. Ravi, et al. You Only Sample (Almost) Once: Linear Cost Self-Attention Via Bernoulli Sampling. ICML 2021.
[6] Praneeth Kacham, Vahab Mirrokni, Peilin Zhong. PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels. ICML 2024.
[7] Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, et al. Nyströmformer: A Nystöm-based Algorithm for Approximating Self-Attention. AAAI 2021.
Questions
1.) To what extent do the reported improvements stem from kernel learning itself versus the additional trainable parameters introduced by the learnable spectral frequencies? Have the authors considered parameter-matched baselines, such as using learned projection layers or MLP-based feature maps with comparable parameter counts, to isolate the contribution of the spectral kernel parameterization?
2.) What context length was used for the WikiText-103 language modeling experiments (block size of 512)? Given that one of the motivations of the paper is improving long-context modeling, it would be helpful to evaluate training with longer contexts (e.g., 1024 or 2048 tokens, since LM is expensive) and report whether the observed gains persist in those settings.
3.) The proposed framework is built around learnable spectral kernel representations. Is the approach extendable to non-softmax kernel families?
The empirical evaluation and rigor appears relatively limited compared to the scope of the claims made in the manuscript. Addressing the concerns raised in the Weaknesses section would significantly strengthen the manuscript and could potentially affect my overall assessment.
Limitations
Yes.
Paper formatting concerns
No formatting issues.
Final justification
-
(Low weight - resolved) The authors acknowledged the relevant prior work and committed to discussing it more thoroughly in the final version. They also agreed not to downplay sparse attention, as the current evidence does not support such claims, and to improve the overall clarity and precision of the paper.
-
(High weight - partially resolved) During the rebuttal, the authors added long-context experiments up to 16K tokens. While these results are helpful and led me to increase my initial score, I had recommended evaluating contexts up to 64K, as such scales have become increasingly standard and expected.
-
(High weight - unresolved) The efficiency claims remain a significant concern. No optimized CUDA or Triton kernel has been provided, which substantially limits reproducibility and makes it difficult to assess the practical efficiency of the proposed method. Given that the NeurIPS review process permits authors to share code privately with the Area Chair, it is unclear why this opportunity was not utilized.
Final score: 3 (Borderline Reject).
Overall, I believe the paper has merit, but additional empirical validation is needed to make its claims fully convincing. In particular, stronger evidence demonstrating the accuracy and efficiency at larger scales and against the latest competitive baselines would significantly strengthen the work.
Thank you for your insightful comments. We would like to respond to the weaknesses and questions you raised as follows:
A1: We do not consider the sentences in the intro dismissive. AC agrees with this point. Linear attention and sparse attention are two parallel directions within efficient attention, both having seen substantial progress in recent years. However, we argue that linear attention incurs less information loss theoretically, and since our idea is to provide a theoretically grounded method for linear attention, our primary discussion and comparisons focus on linear attention.
A2: We evaluate long-context performance using Long Range Arena (LRA), a standard benchmark for long-range sequence modeling. The experiments on it sufficiently demonstrate Flexformer's strong performance in long-sequence modeling. As for efficiency, it is shown in Figure 2 that our method already demonstrates a substantial efficiency advantage at a sequence length of 4K. At longer context lengths, this efficiency advantage will only become more pronounced.
A3: Below, we provide comparative results against Mamba and DeltaNet on the image classification and document retrieval task in LRA and the evaluation results and efficiency comparisons are as follows.
As can be seen, Mamba and DeltaNet achieve comparable performance to Flexformer, but are slightly inferior in computational efficiency on long sequences.
A4: The results in Figure 2 were obtained without using FlashAttention. Our method focuses on reducing the complexity of attention, whereas the current implementation does not incorporate IO-aware memory optimizations such as FlashAttention. These two directions are complementary and could be combined in future work. AC agrees with this point.
A5: Thanks for your suggestion. We will improve these in the camera ready.
A6: As shown in Table 7, the additional parameters introduced by Flexformer are minimal, with a relative increase of less than 1%. Therefore, we consider the comparisons in our main experiments to be fair.
A7: In this experiment, we follow the unified settings of prior work and set the maximum sequence length to 512. We evaluate long-sequence modeling capability on LRA, whereas here we only additionally examine whether the proposed method can adapt to autoregressive language modeling. Moreover, most samples in the WikiText-103 dataset have lengths shorter than 512, so setting a longer sequence length would not lead to significant changes in evaluation results.
A8: Of course. In fact, only when the red term in Equation (4) remains within the Gaussian family does the resulting kernel belong to the softmax kernel family. By extending the red term in Equation (4) to arbitrary bounded, continuous, and positive definite kernels, we obtain a substantially broader family that includes many kernels beyond the softmax kernel. This is precisely the generalization introduced by Flexformer.