arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.20569cs.CLcs.AI
收藏

通过KL引导的层选择 distilling 到混合注意力模型

Distilling to Hybrid Attention Models via KL-Guided Layer Selection

Allen Institute for AI(艾伦人工智能研究所);MIT(麻省理工学院);MIT-IBM Watson AI Lab(麻省理工-IBM沃森人工智能实验室);Stony Brook University(石溪大学)

Yanhong Li, Songlin Yang, Shawn Tan, Mayank Mishra, Rameswar Panda, Jiawei Zhou, Yoon Kim

AI总结:

本文提出通过KL引导的层选择方法,将预训练的softmax注意力Transformer distilling 到混合架构中,以提高LLM推理效率。

摘要:

将预训练的softmax注意力Transformer distilling 到更高效的混合架构中,该架构交替使用softmax和线性注意力层,是提高LLM推理效率的一种有前途的方法,而无需进行昂贵的从头预训练。转换过程中的关键因素是层选择,即决定哪些层转换为线性注意力变体。本文描述了一种简单且高效的层选择配方,该配方通过在通用文本数据上进行少量训练来获得层重要性分数。一旦层被选择,我们使用最近的distillation流程本身[RADLADS;],该流程包括注意力权重转移、隐藏状态对齐、基于KL的分布匹配,随后进行少量微调。我们发现这种方法在层选择方面比现有方法更有效,包括基于固定比例均匀交错线性注意力的启发式方法,以及依赖专用诊断数据集的更复杂方法。

英文摘要:

Distilling pretrained softmax attention Transformers into more efficient hybrid architectures that interleave softmax and linear attention layers is a promising approach for improving the inference efficiency of LLMs without requiring expensive pretraining from scratch. A critical factor in the conversion process is layer selection, i.e., deciding on which layers to convert to linear attention variants. This paper describes a simple and efficient recipe for layer selection that uses layer importance scores derived from a small amount of training on generic text data. Once the layers have been selected we use a recent pipeline for the distillation process itself \citep[RADLADS;][]{goldstein2025radlads}, which consists of attention weight transfer, hidden state alignment, KL-based distribution matching, followed by a small amount of finetuning. We find that this approach is more effective than existing approaches for layer selection, including heuristics that uniformly interleave linear attentions based on a fixed ratio, as well as more involved approaches that rely on specialized diagnostic datasets.

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

↑