Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Distilling to Hybrid Attention Models via KL-Guided Layer Selection

About

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.

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

Related benchmarks

TaskDatasetResultRank
Question AnsweringSQuAD 2.0
F133.352
215
Long-context language modelingRULER
RULER Score0.911
204
Structured Web Data ExtractionSWDE
Performance91.09
126
Long-context language modeling evaluationFDA (test)
Score0.8004
120
Long-context UnderstandingRULER
Score91.1
66
Long-context recallLong-context Recall-intensive Tasks Suite SQuAD, FDA, SWDE
SQuAD Recall Accuracy54.1
48
Commonsense ReasoningCommonsense Reasoning Suite (PIQA, ARC-e, ARC-c, HellaSwag, WinoGrande)
PIQA Accuracy72.9
35
Long-context retrievalNeedle-in-a-Haystack
Retrieval Accuracy100
29
Commonsense ReasoningARC-e, ARC-c, PIQA, WinoG., HellaS.
ARC-e Accuracy72.7
25
Needle-In-A-Haystack RetrievalNIAH-Single-2 256K context
Accuracy34.6
23
Showing 10 of 25 rows

Other info

Follow for update