arXiv cs.AI· Anna Kuzina, Mart van Baalen, Paul N. Whatmough, Babak Ehteshami Bejnordi·· 2 小时前AI 评分41
Turnout:自适应注意力切换实现高效推理
Turnout: Adaptive Attention Switching for Efficient Reasoning
AI 导读
Turnout 是一种减少线性化精度损失的方法:对预训练全注意力模型做事后线性化,通过蒸馏训练线性路径并保留原全注意力路径,生成时由强化学习训练的策略控制各层何时从全注意力切换到线性注意力,奖励兼顾答案正确性与内存占用。推理任务上的评估显示,该自适应策略相比固定切换和静态混合基线取得更好的精度-效率 Pareto 前沿,同时保持线性化降低内存的优势。
正文 · 原文
Abstract:Post-hoc transformer linearization replaces the key-value cache of full attention, which grows linearly with generation length, with a fixed size state. This change reduces memory consumption but often hurts accuracy. In reasoning tasks, which require long generations, this effect is especially pronounced. In this work we introduce Turnout, a method that mitigates accuracy loss as a result of linearization, while maintaining its memory-reduction benefits. We apply post-hoc linearization to a pretrained full-attention model, training a linear path through distillation while leaving the original full-attention path unchanged. During response generation, the resulting hybrid model retains both paths and uses a learned policy to control when each layer switches from full to linear attention. We train the policy with reinforcement learning using a reward that balances answer correctness and memory use. Empirical evaluation of our method shows that the learned adaptive policy achieves a better accuracy-efficiency Pareto frontier on reasoning tasks compared to fixed switching and static hybrid baselines.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.27500 [cs.LG] |
| (or arXiv:2611.27500v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2611.27500 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Anna Kuzina [view email]
[v1]
Fri, 20 Nov 2026 11:49:13 UTC (2,578 KB)
来源:arXiv cs.AI · arxiv.org