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

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

计算机科学 > 机器学习

arXiv:2603.03459 (cs)
[提交于 2026年3月3日 (v1),最后修订于 2026年3月6日 (此版本, v2)]

标题:Half the Nonlinearity Is Wasted: Measuring and Reallocating the Transformer's MLP Budget

作者:Peter Balogh
查看论文《Half the Nonlinearity Is Wasted: Measuring and Reallocating the Transformer's MLP Budget》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:We investigate when transformer MLP nonlinearity is actually necessary. A gate with $d+1$ parameters decides when to replace the full MLP with a linear surrogate. Through systematic investigation across six models (162M-2.8B parameters), two architectures, and three corpora, we establish that nonlinearity need cannot be predicted from token identity: cross-corpus correlation is zero ($r < 0.05$). The routing decision is fully contextual. Despite weak per-instance predictability, the gate exploits a heavily skewed distribution where most MLP computations are near-linear, achieving 25-56% linear routing at <1% perplexity cost in GPT-2. In GPT-2 Large, 11 of 36 layers beat baseline with gating and no layer exceeds 3.7% all-linear cost. This success is architecture-dependent: Pythia models show higher costs, though Pythia-2.8B's full 32-layer sweep reveals one layer that narrowly beats baseline. As a proof of concept, we progressively replace middle-layer MLPs with frozen linear matrices: 5 of 24 layers linearize at zero cost. With a full training budget, 4 linearized layers yield a 10.2% perplexity improvement -- and a two-phase gated approach pushes this to 17.3%, beating a vanilla fine-tuning control and confirming that the nonlinear MLPs at these layers were actively harmful.
主题: 机器学习 (cs.LG); 计算与语言 (cs.CL)
引用方式: arXiv:2603.03459 [cs.LG]
  (或者 arXiv:2603.03459v2 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2603.03459

提交历史

来自:Peter Balogh
[v1] 2026年3月3日 星期二 19:16:14 UTC
[v2] 2026年3月6日 星期五 21:53:15 UTC
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-03
切换浏览方式为:
cs
cs.CL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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