跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 机器学习

arXiv:2507.03340 (cs)
[提交于 2025年7月4日]

标题:Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency

作者:Naoki Nishikawa, Rei Higuchi, Taiji Suzuki
查看论文《Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Linear attention has attracted interest as a computationally efficient approximation to softmax attention, especially for long sequences. Recent studies have explored distilling softmax attention in pre-trained Transformers into linear attention. However, a critical challenge remains: how to choose the feature dimension that governs the approximation quality. Existing methods fix this dimension uniformly across all attention layers, overlooking the diverse roles and complexities of them. In this paper, we propose a principled method to automatically determine the feature dimension in linear attention using the concept of statistical degrees of freedom, which represent the effective dimensionality of the inputs. We provide a theoretical bound on the approximation error and show that the dimension chosen by our method achieves smaller error under a fixed computational budget. Furthermore, we introduce an efficient layerwise training strategy to learn nonlinear features tailored to each layer. Experiments on multiple pre-trained transformers demonstrate that our method improves the performance of distilled models compared to baselines without increasing the inference cost. Our findings also provide insight into how the complexity of the attention mechanism evolves across layers.
评论: 18 pages, 1 figure
主题: 机器学习 (cs.LG); 机器学习 (stat.ML)
引用方式: arXiv:2507.03340 [cs.LG]
  (或者 arXiv:2507.03340v1 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2507.03340

提交历史

来自:Naoki Nishikawa
[v1] 2025年7月4日 星期五 06:59:17 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-07
切换浏览方式为:
cs
stat.ML

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站