arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.14219cs.LGcs.AIcs.CL
收藏

用于高效线性注意力的可学习低秩多项式概型

Learnable Low-Rank Polynomial Sketch for Effective Linear Attention

University of California Los Angeles(加州大学洛杉矶分校)

Zongyue Qin, Haoran Deng, Jason Cong, Yizhou Sun

AI总结:

针对线性注意力多项式核近似误差问题,提出可学习低秩多项式概型LLoPS,其近似误差更小,在多基准测试中性能优于多种线性注意力基线。

摘要:

Transformer中的Softmax注意力在序列长度上具有二次复杂度,使其在长上下文应用中难以实用。线性注意力通过将指数核替换为可实现线性时间计算的替代函数缓解了该问题。在现有线性注意力方法中,近期研究表明多项式核特别有效,因为它们表现出与Softmax注意力类似的稀疏和尖峰行为,即强调大点积同时抑制无关交互。然而,高维表示下无法精确计算高阶多项式核,因此现有工作依赖近似多项式核,这引入了不可忽略的近似误差。本文从多项式核近似的角度指出,现有线性注意力方法仍非最优,提出可学习低秩多项式概型(LLoPS),这是一种用于近似线性注意力中多项式核的原则性且灵活的框架。我们的方法学习一种低秩多项式概型,其可证明比现有方法实现更小的近似误差。实验结果显示,与多种线性注意力基线相比,LLoPS在广泛基准测试中取得了最高性能。

英文摘要:

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 \textbf{L}earnable \textbf{Lo}w-Rank \textbf{P}olynomial \textbf{S}ketch (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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑