- Rating
- 4
- Clarity
- 3
- Confidence
- 2
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper introduces a new version of the attention mechanism used in transformer models, called FSKA. Normally, attention decides how much each part of the input should pay attention to every other part, using a fixed formula to measure similarity. The authors argue this fixed formula is too rigid, so instead they let the model learn its own similarity measure from the data. They do this by learning a probability distribution using normalizing flows and drawing random features from it. They also claim that once the model can learn similarity this flexibly, some of the usual trainable parts of attention (the query and key projections) can be dropped and the value projection can be fixed, which makes the model smaller. They test it mainly on MNIST and a set of text-classification datasets and report that it does about as well as other methods while using fewer parameters and less memory on long inputs.
Strengths and weaknesses
Strengths
- Well-motivated use of normalizing flows. Parameterizing the spectral density with a flow is sound.
- Strong memory scaling. FSKA stays near linear-attention baselines out to sequence length 4096 while quadratic methods grow an order of magnitude faster (Fig 2b). This is a convincing empirical result.
- Meaningful ablations. Showing that stripping Q/K/V from a softmax Transformer collapses to 0.53 isolates the claim that an expressive kernel, not the projections, is doing the work.
Weaknesses
- Theory–implementation mismatch. The derived unbiased spectral random-feature estimator is changed by applying g(u)=ELU(u)+1, so the final kernel is no longer clearly the one derived in the theory.
- Positive features, not the spectral kernel, carry the performance. The ablation shows direct RFF collapses to 0.3956 on MNIST while the positive-feature version reaches 0.8722, so the positive transform accounts for almost the entire performance of the method, and the working model depends heavily on a component that is presented as a minor numerical fix.
- Limited experiments. The main results are on MNIST and sentence classification; stronger long-context, language-modeling, or vision experiments are missing.
- Efficiency not fully measured. The paper reports parameters and memory, but not enough about wall-clock speed, FLOPs, sampling overhead, or convergence.
- Small gains. Several improvements are modest and often close to the reported standard deviations; on the accuracy table, Performer and RKA both outperform FSKA on SST-5, so the gains are not consistent across datasets.
Questions
- What kernel is induced after applying g(u)=ELU(u)+1 to the random features?
- Since direct RFF performs poorly, how much of the gain comes from the flow-based spectral model versus the positive feature transform?
- The spectral-regularization weight is never reported: what value is used, and how does performance change without the regularizer?
- Does FSKA improve accuracy on real long-sequence tasks, not only memory scaling?
- What are the wall-clock speed, FLOPs, and throughput compared with Performer, RKA, GMM-RKS, and standard attention?
I have no familiarity with this field and do not know the literature. I have mainly focused on the soundness of the theory and the empirical results. Also, it is very likely that I have not understood parts of the theory. For now I would lean towards weak reject and will wait for other reviewers' comments.
Limitations
Yes it is partially discussed.
Paper formatting concerns
I have not noticed any major concern.
Final justification
The authors have addressed most of my concerns in the rebuttal discussions.
Response.
We have discussed this approximation gap in Appendix B.1. Specifically, after applying the positive feature mapping g(u)=ELU(u)+1, the induced similarity becomes
Kϕ~(x,y)=g(ϕθ(x))⊤g(ϕθ(y)),
which introduces an approximation gap with the original spectral kernel Kθ(x,y).
We further compare the RFF similarity
Kϕ(x,y)=ϕθ(x)⊤ϕθ(y)
with the positive-feature similarity
Kϕ~(x,y)=g(ϕθ(x))⊤g(ϕθ(y)).
We report the approximation gap in Table 1. At M=64, the cosine-normalized matrix correlation is 0.963, while the average cosine discrepancy is 0.800. As M increases, the correlation improves monotonically from 0.921 to 0.994, while the absolute discrepancy remains approximately 0.80. This indicates that the relative similarity structures become more aligned.
Therefore, although PRF does not exactly recover the RFF kernel, it preserves the relative similarity structure and gives a stable normalization in linear attention.
Table 1: ELU+1 approximation gap between signed RFF similarity Kϕ and positive-feature similarity Kϕ~. Metrics are computed on off-diagonal token pairs after cosine normalization.
Response.
We thank the reviewer for raising this point. The drop of direct RFF is a numerical failure, not a loss of modeling capacity. Signed RFF features can cancel in the linear-attention denominator, which destabilizes normalization when M is limited (Appendix B.1, Figure 3). PRF removes this failure mode, but it does not add expressiveness: as shown in Table 1, the positive-feature similarity correlates with the signed RFF similarity at 0.92--0.99, so it preserves the learned structure rather than creating new structure.
Two existing results separate the two factors. First, Performer also uses positive random features (FAVOR+), so it shares the same stabilization, yet FSKA still improves over it (e.g., 78.74 vs. 77.24 on SST-2 and 38.16 vs. 35.92 on SST-5 in Table 2). This gap can only come from the learned kernel. Second, denominator cancellation is a failure mode whose severity depends on M: at our default M=96, about 3% of tokens have a near-zero denominator, while PRF keeps this fraction at essentially zero (Appendix B.1, Figure 3b). The 0.3956 result reflects this failure mode rather than a lack of modeling capacity.
Response.
We appreciate the reviewer's comment. We add long-document classification experiments on SCOTUS, BBC News, 20 Newsgroups, and arXiv. These go beyond the original 256-token sentence-level benchmarks. SCOTUS opinions have about 5--9k tokens and arXiv papers average about 6k tokens, while BBC News and 20 Newsgroups contain medium-length articles and posts of about 380 and 300 words. These sequences mix local and long-range dependencies, which makes them a challenging test for FSKA.
As shown in Table 2, FSKA achieves the best or comparable F1 and accuracy on all datasets. This comes from our flow-based spectral kernel learning, which adapts the similarity structure to the input and better captures complex dependencies in long sequences.
Table 2: Long-document text classification results. We report mean ± standard deviation over five runs.
Response.
In addition to the parameter and memory results in Section 4.3, we report training wall-clock time and throughput under the same setting. As shown in Tables 3 and 4, at sequence length 4096 FSKA runs at 47.3 ms/step, close to the linear-attention baselines Performer and GMM-RKS (42.7 and 44.1) and far faster than the quadratic baselines Transformer and RKA (349.2 and 485.6). Throughput follows the same pattern: FSKA reaches 84.7 samples/sec, close to Performer and GMM-RKS (93.8 and 90.7) and much higher than Transformer and RKA (11.5 and 8.2). The NF spectral modeling therefore adds only marginal overhead while keeping the efficiency of linear attention.
Table 3: Training wall-clock time (ms/step).
Table 4: Training throughput (samples/sec).
Response.
We thank the reviewer for pointing this out. The SST-5 discrepancy comes from the difference between micro-style accuracy and macro-F1 on a fine-grained, class-imbalanced sentiment task: accuracy is dominated by the larger/easier classes, while macro-F1 gives equal weight to minority classes and therefore better reflects balanced recognition across all five labels. Thus, the SST-5 result does not mean FSKA uniformly dominates on every metric; rather, it indicates that FSKA trades a small loss in overall accuracy for better class-balanced performance. We will report both metrics explicitly and avoid overclaiming this dataset.
Response.
We use λspec=10−3 by default. Table 5 shows a sensitivity study on 20NG. Removing the regularizer reduces accuracy/F1 from 30.24/28.86 to 27.42/25.83, while overly strong regularization also hurts performance. The method is reasonably stable around 10−4--10−2, with 10−3 giving the best result.
Table 5: Spectral-regularization sensitivity on 20NG.