potentialpaper

Learnable Low-Rank Polynomial Sketch for Effective Linear Attention

Zongyue Qin, Haoran Deng, Jason Cong, Yizhou Sun

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. We propose a learnable low-rank polynomial sketch feature maps for linear attention, which could improve the effectiveness of linear attention

Abstract. Softmax attention in Transformers suffers from quadratic complexity in sequence length, making it impractical for long-context applications. Linear attention alleviates this issue by replacing the exponential kernel with alternative functions that enable linear-time computation. Among existing linear attention approaches, recent studies have shown that polynomial kernels are particularly effective, as they exhibit sparse and spiky behavior similar to softmax attention, which emphasizes large dot products while suppressing irrelevant interactions. However, the exact computation of high-degree polynomial kernels is infeasible for high-dimensional representations. As a result, prior work relies on approximate polynomial kernels. This introduces a non-negligible approximation error. In this paper, we show that, from the perspective of polynomial kernel approximation, existing linear attention methods are still suboptimal. We propose Learnable Low-Rank Polynomial Sketch (LLoPS), a principled and flexible framework for approximating polynomial kernels with linear attention. Our method learns a low-rank polynomial sketch that provably achieves a strictly smaller approximation error than existing approaches. Experiment results show that LLoPS achieves the highest performance across extensive benchmarks, comparing with various linear attention baselines.

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

FromAToBDateVersionSubmitted toPDFEvidence
21 Apr 2026CoLoRAI @ ICML 2026submittedCoLoRAI @ ICML 2026Accepted · Poster—[1]
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Their titles, abstracts and, where both have a PDF, the text.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

(a) Summary of scientific claims and findings

The paper revisits polynomial-kernel linear attention. Exact degree-p kernel is infeasible as dimension scales as d^p. Prior work has relied on approximate polynomial kernels to address this, which consequently introduces NON-NEGLIGIBLE approximation error. The authors propose Learnable Low-Rank Polynomial Sketch (LLoPS), which represents each output feature as a product of learned linear projections. The method is motivated by an optimal low-rank factorization of a finite polynomial-kernel matrix and implemented through rank-one CP decompositions. Empirical results on zero-shot language benchmarks, Long Range Arena, and associative recall show improvements over several linear-attention baselines. Efficiency results in Fig 2 also shows that LLoPS is faster than BASED at seq 1k-10k, both much faster than softmax, using matmuls + element-wise products vs outer-product ops.

(b) Main strengths

  • m6NR: "[+] Clear theoretical framing of the optimal sketch problem. Theorem 3.1 provides a clean characterization... provides a principled target... rather than treating feature-map design as heuristic" and "[+] A unifying framework that subsumes prior polynomial sketches... BASED, and PolySketchFormer can all be recovered as special cases" and thorough evaluation showing faster than BASED.
  • ifi5: feature map simple and compatible with linear-time attention, connection between polynomial sketches and tensor decomposition clearly motivated, continued-training control for data/compute.
  • Jou3: addresses practical problem, technically sound with theoretical justification, well-written, related work and Sec 3.3 clearly contextualizes method, experimental results positive.

(c) Main weaknesses

  1. Data-dependent optimality does not imply generalization: Reviewers converge on this.
  • m6NR: "Missing discussion of why data-dependence is a strength rather than a weakness... Data-independent sketches carry a strong generalization argument... learned projection may overfit... FDA regression is suggestive of exactly this failure mode."

  • ifi5: "The optimality result is dataset-specific. Theorem 3.1 proves existence of optimal projections for a fixed pair of query and key matrices. It does not establish that a single learned feature map is optimal over unseen sequences" and "The practical method does not realize the stated optimum. LLoPS fixes the CP rank to (t=1), which substantially restricts the projection class." and "claimed strict improvement... Showing that BASED and related methods are special cases implies hypothesis class is more general, but does not guarantee strictly lower error, successful optimization, or improved generalization."

  1. Empirical scale and protocol:
  • Jou3: "Limited empirical evidence at a larger scale... for 1B models, LLoPS improves BASED+CT only from 42.16 to 42.91... gains over most comparable baseline appear rather small" and "Lack of training from scratch results... main experiments are based on continued training from BASED checkpoints, rather than pretraining models from scratch"

  • m6NR asks clarification: "Ambiguity in the post-trained with SlimPajama-6B evaluation protocol... whether this refers to instruction tuning or continuation of next-token-prediction pretraining" and suggests test: evaluate pre/post SlimPajama BASED checkpoints on FDA character NLL to separate data-distribution vs kernel effect.

  1. Missing comparisons and stability:
  • m6NR: "PolySketchFormer is absent from the efficiency comparison in Figure-2... runtime comparison against PolySketchFormer is preferred"
  • ifi5: "approximation metric may be unstable. The relative error in Eq. 21 can become ill-conditioned when exact polynomial-kernel value is close to zero" and notes Table 4 inconsistency: text says d\in{64,128} but table shows d=128,192.

(d) What could adjust odds in rebuttal?

  • Clarify SlimPajama protocol as continued next-token pretraining, report tokens/steps, and provide FDA NLL before/after for BASED vs LLoPS to test catastrophic forgetting hypothesis.
  • Discuss data-dependent vs data-independent trade-off: add OOD or distribution-shift eval, or at least show train/test kernel approximation error separation and that learned \Theta do not collapse.
  • Bound kernel/attention output error, not just |W^*- \hat W|_F, and discuss effect of t=1 restriction; provide results for t=2 if feasible. Add PolySketchFormer to Fig 2 runtime under same m, and fix Table 4 vs text inconsistency.
  • If possible, provide small from-scratch pretraining result or longer continued training curve to show gap widens with scale. These would address m6NR's generalization concern and ifi5's optimality gap, and strengthen borderline accepts.
Final justification

Thanks the authors for rebuttal. Reviewers think that the authors's responses adequately addresses concerns so I intend to keep my accept recommendation.

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

(a) Summary of scientific claims and findings

The paper revisits polynomial-kernel linear attention. Exact degree-p kernel is infeasible as dimension scales as d^p. Prior work has relied on approximate polynomial kernels to address this, which consequently introduces NON-NEGLIGIBLE approximation error. The authors propose Learnable Low-Rank Polynomial Sketch (LLoPS), which represents each output feature as a product of learned linear projections. The method is motivated by an optimal low-rank factorization of a finite polynomial-kernel matrix and implemented through rank-one CP decompositions. Empirical results on zero-shot language benchmarks, Long Range Arena, and associative recall show improvements over several linear-attention baselines. Efficiency results in Fig 2 also shows that LLoPS is faster than BASED at seq 1k-10k, both much faster than softmax, using matmuls + element-wise products vs outer-product ops.

(b) Main strengths

  • m6NR: "[+] Clear theoretical framing of the optimal sketch problem. Theorem 3.1 provides a clean characterization... provides a principled target... rather than treating feature-map design as heuristic" and "[+] A unifying framework that subsumes prior polynomial sketches... BASED, and PolySketchFormer can all be recovered as special cases" and thorough evaluation showing faster than BASED.
  • ifi5: feature map simple and compatible with linear-time attention, connection between polynomial sketches and tensor decomposition clearly motivated, continued-training control for data/compute.
  • Jou3: addresses practical problem, technically sound with theoretical justification, well-written, related work and Sec 3.3 clearly contextualizes method, experimental results positive.

(c) Main weaknesses

  1. Data-dependent optimality does not imply generalization: Reviewers converge on this.
  • m6NR: "Missing discussion of why data-dependence is a strength rather than a weakness... Data-independent sketches carry a strong generalization argument... learned projection may overfit... FDA regression is suggestive of exactly this failure mode."

  • ifi5: "The optimality result is dataset-specific. Theorem 3.1 proves existence of optimal projections for a fixed pair of query and key matrices. It does not establish that a single learned feature map is optimal over unseen sequences" and "The practical method does not realize the stated optimum. LLoPS fixes the CP rank to (t=1), which substantially restricts the projection class." and "claimed strict improvement... Showing that BASED and related methods are special cases implies hypothesis class is more general, but does not guarantee strictly lower error, successful optimization, or improved generalization."

  1. Empirical scale and protocol:
  • Jou3: "Limited empirical evidence at a larger scale... for 1B models, LLoPS improves BASED+CT only from 42.16 to 42.91... gains over most comparable baseline appear rather small" and "Lack of training from scratch results... main experiments are based on continued training from BASED checkpoints, rather than pretraining models from scratch"

  • m6NR asks clarification: "Ambiguity in the post-trained with SlimPajama-6B evaluation protocol... whether this refers to instruction tuning or continuation of next-token-prediction pretraining" and suggests test: evaluate pre/post SlimPajama BASED checkpoints on FDA character NLL to separate data-distribution vs kernel effect.

  1. Missing comparisons and stability:
  • m6NR: "PolySketchFormer is absent from the efficiency comparison in Figure-2... runtime comparison against PolySketchFormer is preferred"
  • ifi5: "approximation metric may be unstable. The relative error in Eq. 21 can become ill-conditioned when exact polynomial-kernel value is close to zero" and notes Table 4 inconsistency: text says d\in{64,128} but table shows d=128,192.

(d) What could adjust odds in rebuttal?

  • Clarify SlimPajama protocol as continued next-token pretraining, report tokens/steps, and provide FDA NLL before/after for BASED vs LLoPS to test catastrophic forgetting hypothesis.
  • Discuss data-dependent vs data-independent trade-off: add OOD or distribution-shift eval, or at least show train/test kernel approximation error separation and that learned \Theta do not collapse.
  • Bound kernel/attention output error, not just |W^*- \hat W|_F, and discuss effect of t=1 restriction; provide results for t=2 if feasible. Add PolySketchFormer to Fig 2 runtime under same m, and fix Table 4 vs text inconsistency.
  • If possible, provide small from-scratch pretraining result or longer continued training curve to show gap widens with scale. These would address m6NR's generalization concern and ifi5's optimality gap, and strengthen borderline accepts.
Final justification

Thanks the authors for rebuttal. Reviewers think that the authors's responses adequately addresses concerns so I intend to keep my accept recommendation.

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

This paper addresses efficient long-context sequence modeling using linear attention. The primary goal is to improve polynomial-kernel-based linear attention, which has been shown to be a promising alternative to softmax attention in the literature. The authors claim that existing polynomial kernel approximations, such as BASED and PolySketchFormer, are suboptimal in the perspective of kernel approximation. To address this issue, the paper proposes LLoPS, a learnable feature projection method for approximating polynomial kernels more effectively. The authors also show that existing polynomial approximation techniques can be viewed as special cases of LLoPS. The experimental results show that LLoPS generally improves over existing linear attention baselines while maintaining the efficiency benefits of linear attention.

Strengths and weaknesses

Strengths

  • This paper addresses a practical problem and the proposed approach is technically sound with theoretical justifications.
  • The paper is generally well-written and easy to follow. In particular, the related work section and Sec. 3.3 clearly contextualizes the proposed method with respect to relevant works in the literature, e.g., BASED and PolySketchFormer.
  • The experimental results on standard benchmarks provide positive evidence for the effectiveness of the proposed approach.

Weaknesses

My main concerns are limited to experimental results.

(-) Limited empirical evidence at a larger scale.

Although the proposed method shows positive improvements, the gains over the most comparable baseline appear rather small, particularly for larger models. In Table 1, for the 1B models, LLoPS improves the BASED+CT only from 42.16 to 42.91. This suggests that the empirical advantages of the proposed approach may be limited when moving to a larger-scale language model. Since scalability is one of the main motivations for linear attention literature, it would be helpful if the authors could provide stronger evidence that the proposed approach leads to practically meaningful improvements at larger models and scales.

(-) Lack of training from scratch results.

Another limitation is that the main experiments are based on continued training from BASED checkpoints, rather than pretraining models from scratch under the same setting. I understand that full pretraining is extremely expensive, and I do not think that the lack of compute power should be penalized at academic venues. Nevertheless, this makes the empirical comparison less conclusive.

Overall, I maintain a positive view of this paper, as I believe it provides useful insights for the community. However, I find the empirical results somewhat underwhelming, especially considering the relatively small gains over the most comparable baseline at the larger model scale. I therefore recommend “borderline accept” as my preliminary rating, but I am open to raising my score depending on the authors’ response.

Questions

Please refer to my comments in the “weaknesses”

Limitations

The limitations are clearly stated in the main paper.

Final justification

I have carefully read the authors' rebuttal as well as the responses to other reviewers. I think that the authors's responses adequately addresses concerns raised by myself and other reviewers.

I intend to retain my original rating of borderline accept since I believe this paper delivers useful insights for efficient computing community. In particular, the theoretical analysis makes the technical components of this paper more clear. However, I do not consider further raising my rating as the experimental results are mainly contrained to relatively smaller models, although the linear attention mechanism would particularly benefit larger parameter models.

I would like to note that the lack of computing infrastructures, e.g., large GPU memory, should not be penalized in academic venues, and highlight that the lack of experimental results do not significantly undermine the overall contributions of this submission, with its strengths outweighing the weaknesses.

Formatting concerns

I notice no major issues regarding the paper formatting.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the constructive suggestions and agree that pretraining from scratch and evaluating models beyond 1B parameters would strengthen the empirical evidence. Unfortunately, both experiments are currently beyond our computational resources. The publicly available BASED checkpoints only include the 360M and 1B models used in our evaluation. Therefore, evaluating a larger model would require pretraining both BASED and LLoPS from scratch at that scale. Similarly, a controlled from-scratch comparison at the existing scales would require substantial pretraining compute and wall-clock time. We will explicitly acknowledge these limitations in the revised paper.

Within the available setting, the improvement at the 1B scale is moderate on average (42.16→42.9142.16 \rightarrow 42.91), but it is consistent across most evaluated tasks. Moreover, BASED+CT and BASED+LLoPS use the same initialization, continued-pretraining data, next-token-prediction objective, and training budget, making this a controlled comparison of the attention feature maps. We therefore interpret the results as evidence that LLoPS provides consistent improvements at both available model scales.

However, we agree that the current experiments do not establish its behavior at substantially larger scales, and we will avoid making claims about scaling beyond 1B parameters.

Reviewer Jou3 · CommentOpenReview ↗

Official Comment

Dear authors, I appreciate the response. I acknowledge that some of my concerns have been addressed, and particularly suggest that the authors should not overclaim their contributions w.r.t larger models without clear empirical evidence.

I have also carefully read the authors' responses to other reviewers, and I believe that the current responses adequately addresses the concerns, contingent on the upcoming experimental results until the end of the discussion period.

However, in its current form, I do not consider further raising my score, mainly due to the fact that my concerns on the experimental results are fundamentally unresolved -- to be fair "unresolvable" given the computing resources.

Authors · CommentOpenReview ↗

Thank you for the thoughtful follow-up and for carefully considering our responses. We understand your remaining concern and agree that stronger large-scale and from-scratch evidence would make the empirical conclusions more definitive. We will avoid overclaiming beyond the model scales evaluated in the paper. We are still working on the additional experiments that are feasible within the discussion period and will report the results as soon as they are available.

Reviewer ifi5OpenReview ↗
Rating
4/6
Confidence
2/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

This work addresses the central challenge of improving linear attention through more accurate polynomial-kernel approximation. The paper proposes Learnable Low-Rank Polynomial Sketch (LLoPS), which represents each output feature as a product of learned linear projections. The method is motivated by an optimal low-rank factorization of a finite polynomial-kernel matrix and implemented through rank-one CP decompositions. Experiments on zero-shot language benchmarks, Long Range Arena, and associative recall show improvements over several linear-attention baselines.

Strengths and weaknesses

Strengths

  • The proposed feature map is simple and compatible with linear-time attention.
  • The connection between polynomial sketches and tensor decomposition is clearly motivated.
  • The continued-training comparison with BASED attempts to control for additional training data and compute.

Weaknesses

  1. The optimality result is dataset-specific. Theorem 3.1 proves the existence of optimal projections for a fixed pair of query and key matrices. It does not establish that a single learned feature map is optimal over unseen sequences or an underlying data distribution.

  2. The practical method does not realize the stated optimum. LLoPS fixes the CP rank to t=1t=1, which substantially restricts the projection class. Theorem 3.4 bounds approximation of W∗W^*, but does not directly bound the induced kernel-matrix or attention-output error.

  3. The claimed strict improvement over prior methods is overstated. Showing that BASED and related methods are special cases implies that the hypothesis class is more general, but does not guarantee strictly lower error, successful optimization, or improved generalization.

  4. The approximation metric may be unstable.
    The relative error in Eq. 21 can become ill-conditioned when the exact polynomial-kernel value is close to zero. A stabilized metric and explicit train/test separation are needed.

Questions

Table 4 is inconsistent with the experimental description: Section B.2 states that the hidden dimension is evaluated at d∈{64,128}d \in \{64,128\}, whereas Table 4 reports results for d=128d=128 and d=192d=192. The authors should clarify which settings were actually used and correct either the table or the accompanying text.

Limitations

Yes

Final justification

Thank you for the response. It strengthens my understanding of this paper. However, I have to admit that I am unfamiliar with some pieces of related work, so I plan to keep my score at 4.

Formatting concerns

N/A

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful comments. We agree that several claims should be stated more precisely and will revise the paper accordingly.

1. Population-level optimality.

We agree that Theorem 3.1 is currently stated for a fixed pair of query and key matrices. However, Theorem 3.1 directly leads to the following population-level corollary, which we will add to the revision.

Suppose the rows of (Q) and (K) are sampled from fixed query and key distributions, and let zq=ψp(q)z_q=\psi_p(q), zk=ψp(k)z_k=\psi_p(k), where ψp\psi_p is the vectorization of p-th order outer product). The population-level objective is

Eq,k[(zq⊤zk−ϕQ(q)⊤ϕK(k))2].\mathbb{E}_{q,k} \left[\left(z_q^\top z_k-\phi_Q(q)^\top \phi_K(k)\right)^2\right].

Under standard finite-moment sampling assumptions, the empirical covariance operators converge to their population counterparts as the numbers of sampled query/key vectors increase. Consequently, the empirical optimal approximation error in Theorem 3.1 converges to the population-optimal error. Meanwhile, the corresponding optimal subspaces also converge. We will add this population corollary in our future revision.

2. Error of the practical (t=1) method.

2.1 Restriction of CP-Rank=1

We agree that fixing (t=1) does not generally realize the unrestricted optimal projections (W_Q^) and (W_K^). Instead, LLoPS uses structured approximations (\widehat W_Q) and (\widehat W_K), whose projection-space errors are characterized by Theorem 3.4.

As discussed in the paper, we found that (t=1) provides the best practical trade-off between expressiveness, optimization difficulty, and computational efficiency. Increasing (t) enlarges the hypothesis class and can theoretically improve the approximation of the optimal projections. However, it also introduces substantially more learnable parameters, increases training and inference costs, and makes optimization more difficult. In our experiments, (t=1) was sufficient to achieve strong approximation quality and downstream performance, while retaining the efficiency advantages of the proposed kernel.

2.2 Attention output error

We show below that these errors directly induce bounds on both the kernel matrix and the attention output.

Let

ψp(x)=vec⁡(x⊗p),ZQ=ψp(Q),ZK=ψp(K),\psi_p(x)=\operatorname{vec}(x^{\otimes p}),\qquad Z_Q=\psi_p(Q),\qquad Z_K=\psi_p(K),

where ψp\psi_p is applied row-wise. The optimal rank-(m) sketch produces

A∗=ZQWQ∗WK∗⊤ZK⊤,A^*=Z_QW_Q^*W_K^{*\top}Z_K^\top,

while the practical (t=1) LLoPS sketch produces

A^=ZQW^QW^K⊤ZK⊤.\widehat A=Z_Q\widehat W_Q\widehat W_K^\top Z_K^\top.

Define

EQ=W^Q−WQ∗,EK=W^K−WK∗.E_Q=\widehat W_Q-W_Q^*,\qquad E_K=\widehat W_K-W_K^*.

Then

W^QW^K⊤=(WQ∗+EQ)(WK∗+EK)⊤=WQ∗WK∗⊤+EQWK∗⊤+WQ∗EK⊤+EQEK⊤\widehat W_Q\widehat W_K^\top =(W_Q^*+E_Q)(W_K^*+E_K)^\top =W_Q^*W_K^{*\top} +E_QW_K^{*\top} +W_Q^*E_K^\top +E_QE_K^\top

Therefore,

A^−A∗=ZQ(EQWK∗⊤+WQ∗EK⊤+EQEK⊤)ZK⊤.\widehat A-A^*= Z_Q\left( E_Q W_K^{*\top} +W_Q^*E_K^\top +E_QE_K^\top \right)Z_K^\top.

Using the triangle inequality and

∣∣XYZ∣∣F≤∣∣X∣∣2∣∣Y∣∣F∣∣Z∣∣2,||XYZ||_F \le ||X||_2||Y||_F||Z||_2,

we obtain

∣∣A∗−A^∣∣F≤∣∣ZQ∣∣2∣∣ZK∣∣2(∣∣EQWK∗⊤∣∣F+∣∣WQ∗EK⊤∣∣F+∣∣EQEK⊤∣∣F) ≤∣∣ZQ∣∣2∣∣ZK∣∣2(∣∣EQ∣∣F∣∣WK∗∣∣2+∣∣WQ∗∣∣2∣∣EK∣∣F+∣∣EQ∣∣F∣∣EK∣∣F).||A^*-\widehat A||_F \le ||Z_Q||_2||Z_K||_2 \Big( ||E_QW_K^{*\top}||_F +||W_Q^*E_K^\top||_F +||E_QE_K^\top||_F \Big)\ \le ||Z_Q||_2||Z_K||_2 \left( ||E_Q||_F||W_K^*||_2 +||W_Q^*||_2||E_K||_F +||E_Q||_F||E_K||_F \right).

Theorem 3.4 characterizes the best (t=1) projection errors:

∣∣EQ∣∣F2=∣∣WQ∗∣∣F2−∑i=1m(τiQ)2,||E_Q||_F^2=||W_Q^*||_F^2-\sum_{i=1}^{m}(\tau_i^Q)^2,

and similarly,

∣∣EK∣∣F2=∣∣WK∗∣∣F2−∑i=1m(τiK)2,||E_K||_F^2=||W_K^*||_F^2-\sum_{i=1}^{m}(\tau_i^K)^2,

where τiQ\tau_i^Q and τiK\tau_i^K are the tensor spectral norms defined in Theorem 3.4.

Moreover,

∣∣ψp(x)∣∣2=∣∣vec⁡(x⊗p)∣∣2=∣∣x∣∣2p.||\psi_p(x)||_2= ||\operatorname{vec}(x^{\otimes p})||_2 =||x||_2^p.

Assuming the norm of query and key vectors are bounded, i.e.,

∣∣qi∣∣2≤BQ,∣∣kj∣∣2≤BK,||q_i||_2 \le B_Q,\qquad ||k_j||_2\le B_K,

we have

∣∣ZQ∣∣2≤∣∣ZQ∣∣F=(∑i=1nQ∣ψp(qi)∣22)1/2≤nQBQp||Z_Q||_2 \le ||Z_Q||_F= \left(\sum_{i=1}^{n_Q}|\psi_p(q_i)|_2^2\right)^{1/2} \le \sqrt{n_Q}B_Q^p
∣∣ZK∣∣2≤∣∣ZK∣∣F≤nKBKp||Z_K||_2 \le ||Z_K||_F \le \sqrt{n_K}B_K^p

Thus,

∣∣A∗−A^∣∣F≤nQnK,BQpBKpΓ||A^*-\widehat A||_F \le \sqrt{n_Qn_K},B_Q^pB_K^p\Gamma

where

Γ=(∣∣EQ∣∣F∣∣WK∗∣∣2+∣∣WQ∗∣∣2∣∣EK∣∣F+∣∣EQ∣∣F∣∣EK∣∣F).\Gamma= \left( ||E_Q||_F||W_K^*||_2 +||W_Q^*||_2||E_K||_F +||E_Q||_F||E_K||_F \right).

Finally, for the unnormalized attention outputs

Y∗=A∗V,Y^=A^V,Y^*=A^*V,\qquad \widehat Y=\widehat AV,

we obtain

 ∣∣Y∗−Y^∣∣F=∣∣(A∗−A^)V∣∣F≤∣∣A∗−A^∣∣F∣∣V∣∣2.\ ||Y^*-\widehat Y||_F =||(A^*-\widehat A)V||_F \le ||A^*-\widehat A||_F||V||_2.

Therefore,

∣∣Y∗−Y^∣∣F≤nQnK,BQpBKpΓ∣∣V∣∣2.||Y^*-\widehat Y||_F \le \sqrt{n_Qn_K},B_Q^pB_K^p \Gamma||V||_2.

The corollary above shows how Theorem 3.4 can be used to derive a bound for attention output. We will add this result as a corollary following Theorem 3.4 and clearly distinguish the unrestricted optimum from its practical low-CP-rank approximation.

3. Strict improvement over prior methods.

We agree that hypothesis-class inclusion alone does not guarantee a strictly smaller error for every pair of (Q,K). It only implies

inf⁡h∈HLLoPSL(h)≤inf⁡h∈HpriorL(h).\inf_{h\in\mathcal H_{\mathrm{LLoPS}}}\mathcal L(h) \le \inf_{h\in\mathcal H_{\mathrm{prior}}}\mathcal L(h).

Equality may occur when the optimal solution already satisfies the structural constraints of the prior method. Therefore, the strict claim applies to model expressiveness: LLoPS strictly generalizes the prior feature-map classes and can achieve a strictly smaller approximation error when the best solution lies outside those constrained classes. Whether this additional flexibility can be successfully optimized and improve generalization is an empirical question. Our kernel-approximation experiments consistently show lower held-out error across polynomial degrees and Transformer layers, while our zero-shot and LRA results show improved downstream performance in the evaluated settings. We will avoid the unconditional claim of a “strictly smaller approximation error” with the more precise statement that LLoPS guarantees a no-worse best-achievable error and empirically achieves lower error in the evaluated settings.

4. Stability and train/test separation. In our implementation, Eq. 21 is stabilized as

Eq,k[∣(q⊤k)p−ϕQ(q)⊤ϕK(k)∣∣(q⊤k)p∣+10−5].\mathbb{E}_{q,k} \left[ \frac{ \left|(q^\top k)^p-\phi_Q(q)^\top\phi_K(k)\right| }{ \left|(q^\top k)^p\right|+10^{-5} } \right].

The same ϵ=10−5\epsilon=10^{-5} is used for all methods, preventing division by zero and mitigating instability for near-zero kernel values. We will revise Eq. 21 to include this implementation detail explicitly.

We also follow the train/test split used in the BASED code: the feature maps are trained on the training split, while all reported approximation errors are computed on the held-out test split. We will clarify this separation in the experimental section.

5. Table 4 Typo

Thank you for pointing out the mistake. The dimension evaluated should be 128 and 192. We will correct the text in our future revision.

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

Linear attention with polynomial kernels have helped solve the quadratic complexity problem in attention mechanisms used in large language models. And this choice of polynomial kernels can lead to issues in computation of high-degree polynomial kernels which is infeasible for high-dimensional representations. Prior work has relied on approximate polynomial kernels to address this, which consequently introduces NON-NEGLIGIBLE approximation error.

The authors argue that when the ouput feature dimention is fixed, there exists an optimal sketch that minimzes the approximation error to the largest polynomial kernel, and prove that the linear projection for the projection for the subset of outer products of input vectors can achieve this optimal approximation.

The authors propose learnable a low-rank polynomial sketch framework that lowers the approximation error. This framework is called LLoPS.

Strengths and weaknesses

[+] Clear theoretical framing of the optimal sketch problem. Theorem 3.1 provides a clean characterization of the minimum possible loss projection under a fixed output dimension m, and the paper shows that this optimum is achievable via a linear projection. This provides a principled target against which existing methods can be compared, rather than treating feature-map design as heuristic engineering. [+] A unifying framework that subsumes prior polynomial sketches. Section 3 shows that element-wise polynomial feature maps, BASED, and PolySketchFormer can all be recovered as special cases of the LLoPS construction. [+] The authors do a thorough job in evaluating LLoPS against extensive existing literature, and (Figure 2) demonstrates that LLoPS is faster than BASED at long sequence lengths.

[-] Missing discussion of why data-dependence is a strength rather than a weakness. In lines 262–268, the authors argue that PolySketchFormer is a special case of LLoPS with fixed, randomized, sparse projection matrices rather than learned ones. Data-independent sketches carry a strong generalization argument by construction, whereas a learned projection may overfit the training distribution and degrade under distribution shift. The paper never engages with this trade-off. [-] I think, the FDA regression (Table 1) is suggestive of exactly this failure mode (weakness 1 above). The authors should provide a discussion and ideally, an OOD or distribution-shift experiment — arguing why the data-dependent nature of LLoPS is a strength rather than a weakness.

Questions
  1. Ambiguity in the "post-trained with SlimPajama-6B" evaluation protocol. The authors state that BASED models are also post-trained with SlimPajama-6B. It is unclear whether this refers to instruction tuning or a continuation of next-token-prediction pretraining to further initialize the model. I assume it's next token, but seems like a simple clarification to provide? This distinction is important both for interpreting the evaluation and for understanding any implicit data augmentation.

  2. If it is continued pretraining, the FDA hypothesis (catastrophic forgetting) is testable: evaluating the pre- and post-SlimPajama BASED checkpoints on character-level NLL of FDA would cleanly separate a data-distribution effect from a kernel-approximation effect. This analysis would substantially strengthen the FDA hypothesis and I look forward in the author rebuttal phase.

  3. PolySketchFormer is absent from the efficiency comparison in Figure-2. Given that Section 3 identifies PolySketchFormer as the closest analogue to LLoPS in the polynomial-sketch family, and given that the paper explicitly claims LLoPS provides a stricter approximation than PolySketchFormer under the same dimensional budget, a runtime comparison against PolySketchFormer (in addition to BASED and softmax) is preffered in section 4.

Limitations

yes

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thoughtful comments and constructive suggestions. We address each point below and will revise the manuscript accordingly.

1. Why data dependence can be a strength, and its trade-off with robustness

We agree that data-independent and data-dependent sketches provide different types of advantages, and that this trade-off should be discussed explicitly. A data-independent randomized sketch provides a distribution-agnostic approximation guarantee for the sketch itself and is therefore attractive when one seeks protection against arbitrary or worst-case query/key matrices. In contrast, a learned sketch uses information from the training representation distribution and may be more sensitive under sufficiently large distribution shifts.

However, exploiting the data distribution is also the main strength of a learned sketch and is widely used throughout modern machine learning. For example, practical quantization methods commonly use calibration data to identify important activation and weight directions and minimize the expected quantization error on representative inputs, rather than optimizing only a worst-case error over all possible inputs. Similar data-dependent principles are also used in pruning and low-rank compression. These methods are effective precisely because real model inputs and hidden representations are highly structured and far from worst-case.

The same principle applies to LLoPS. In a language model, query and key vectors are not arbitrary vectors: they are produced by learned projections from structured hidden representations and typically occupy a highly non-uniform subset of the ambient space. A data-dependent sketch can allocate its limited feature dimensions to directions that occur frequently or carry substantial energy under the target representation distribution. It therefore optimizes average-case performance under the relevant distribution, rather than exclusively targeting a worst-case input. When the test representation distribution is the same as, or sufficiently close to, the training distribution, this adaptation can yield lower expected kernel-approximation error and better model effectiveness. We therefore view data dependence as a useful inductive bias, while acknowledging the corresponding trade-off with worst-case robustness.

Prior evidence from PolySketchFormer (reference [Kacham et al.,2023] in our paper) also supports the practical benefit of learning the sketch. Its Figure 2 directly compares randomized and learned polynomial sketches and shows consistently lower perplexity for the learned variants on PG19 and Wiki-40B. The exact results in Appendix Tables 2 and 3 show the same trend across context lengths and matched sketch dimensions. The authors explicitly report substantial model-quality improvements from learning the sketches rather than randomly sampling them. This evidence demonstrates that data-dependent polynomial sketches can improve average-case language-model effectiveness. In our Appendix B.1, we further compare LLoPS with this learned neural-sketch baseline and show that LLoPS achieves substantially lower polynomial-kernel approximation error.

Moreover, the results in Table 1 of our paper also demonstrates that LLoPS does not collapes under real-world distribution shifts. The reported results are obtained under zero-shot evaluation on downstream benchmarks that are distinct from the continued-pretraining corpus. LLoPS improves the average performance over BASED+CT at both the 360M and 1B scales and achieves gains on most individual tasks. This suggests that the learned feature map transfers beyond the data on which it was optimized, rather than only reducing approximation error on the training distribution. We agree that zero-shot evaluation is not equivalent to a controlled OOD experiment and does not establish robustness under arbitrary distribution shifts. Nevertheless, it evaluates the model under distribution shifts that are more representative of common real-world language-model applications.

Regarding FDA, the observed regression does not isolate a failure caused by the data-dependent LLoPS sketch. At the 360M scale, FDA accuracy decreases from (17.42) for the original BASED checkpoint to (8.35) for BASED+CT and (7.53) for BASED+LLoPS. Thus, most of the regression is already present in BASED+CT, which does not use the LLoPS feature map. Moreover, continued pretraining updates the entire model, including the feed-forward layers, attention projections, normalization layers, and the hidden representations supplied to the kernel. The regression may therefore arise from corpus mismatch or catastrophic forgetting in components other than the feature map. A data-independent sketch provides a guarantee for sketch approximation, not an OOD-generalization guarantee for the full continually pretrained language model.

2. Clarification of the SlimPajama-6B training protocol

We thank the reviewer for requesting this clarification. “Post-trained with SlimPajama-6B” refers to continued pretraining with the standard next-token-prediction objective. The dataset contains roughly 6B tokens. The continued training has at most 1 epoch, and is usually early-stopped at around 10K steps.

3. FDA character-level NLL analysis

We appreciate this valuable suggestion. We are currently working on this experiment and will update the results during discussion phase

4. PolySketchFormer efficiency comparison

We appreciate this valuable suggestion. We are currently working on this experiment and will update the results during discussion phase

Authors · CommentOpenReview ↗

Additional Experiments

Thank you again for the helpful experimental suggestions. We have completed two additional analyses.

FDA character-level perplexity. We evaluated the original BASED-360M checkpoint, BASED after continued pretraining on SlimPajama-6B, and BASED+LLoPS after the same continued-pretraining budget:

Model FDA perplexity
BASED before continued pretraining 11.89
BASED after continued pretraining 12.07
BASED+LLoPS 11.94

Continued pretraining increases the BASED perplexity from 11.89 to 12.07, providing direct evidence of degradation on the FDA distribution without introducing LLoPS. Importantly, BASED+LLoPS achieves a perplexity of 11.94, which is lower than BASED after continued pretraining and close to the original BASED checkpoint. Thus, this controlled analysis does not support the hypothesis that the data-dependent LLoPS feature map causes additional FDA forgetting. Instead, it suggests that continued pretraining contributes to the regression, while LLoPS does not exacerbate it.

Although the increase from 11.89 to 12.07 appears numerically moderate, for sequence-level predictions, such differences can accumulate across tokens and substantially affect the relative likelihoods or rankings of candidate sequences. Therefore, a moderate character-level perplexity degradation may plausibly produce a larger change in the downstream FDA score. The remaining difference between perplexity and downstream accuracy also indicates that these metrics capture different aspects of model behavior.

PolySketchFormer efficiency comparison. We have also added PolySketchFormer (PSF) to the runtime evaluation. The original PSF paper evaluates sketch dimensions of 32 and 64; we use the smaller and faster setting (m=32), making the comparison favorable to PSF. All methods are evaluated using the same hardware, implementation environment, input dimension, sequence lengths, and number of forward passes.

Sequence length Softmax BASED PSF LLoPS
1,000 2.76 2.38 4.07 2.73
3,000 23.93 10.09 10.58 7.08
5,000 64.70 24.04 19.50 12.66
7,000 136.13 46.01 26.97 18.36
10,000 301.30 78.22 39.94 25.55

The reported values are total runtimes in seconds over 1,000 forward passes. LLoPS is consistently faster than PSF across all evaluated sequence lengths, achieving approximately 1.47–1.56x speedups despite using a substantially larger sketch dimension ((256) versus (32)).

We will add these results and the complete experimental configurations to the revised paper.

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

Missing a submission?

Loading the discussion…