Turnout:面向高效推理的自适应注意力切换方法
Turnout: Adaptive Attention Switching for Efficient Reasoning
研究者提出 Turnout,对预训练全注意力模型做事后线性化,并在生成时用强化学习策略控制每层何时从全注意力切换到线性注意力。该方法在推理任务上取得比固定切换和静态混合基线更好的精度与效率帕累托前沿,同时保留线性化带来的显存降低收益。
arXiv:2611.27500v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org