Short Data, Long Context: Distilling Positional Knowledge in Transformers
On the map: Knowledge distillation → Knowledge distillation for LLMs
Abstract (arXiv)
Extending the context window of language models typically requires expensive long-context pre-training, posing significant challenges for both training efficiency and data collection. In this paper, we present evidence that long-context retrieval capabilities can be transferred to student models through logit-based knowledge distillation, even when training exclusively on packed short-context samples within a long-context window. We provide comprehensive insights through the lens of Rotary Position Embedding (RoPE) and establish three key findings. First, consistent with prior work, we show that phase-wise RoPE scaling, which maximizes rotational spectrum utilization at each training stage, also achieves the best long-context performance in knowledge distillation setups. Second, we demonstrate that logit-based knowledge distillation can directly enable positional information transfer. Using an experimental setup with packed repeated token sequences, we trace the propagation of positional perturbations from query and key vectors through successive transformer layers to output logits, revealing that positional information systematically influences the teacher's output distribution and, in turn, the distillation signal received by the student model. Third, our analysis uncovers structured update patterns in the query state during long-context extension, with distinct parameter spans exhibiting strong sensitivity to long-context training.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Knowledge distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 10 of its 11 references that are in the map. First posted on arXiv 7 Apr 2026.
Builds on
10 of 11 references.
References · 10
- 2017Attention Is All You Needcited by 60,361
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2023Scaling Laws of RoPE-based Extrapolationcited by 125
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 47
- 2025LongRoPE2: Near-Lossless LLM Context Window Scalingcited by 24
- 2025Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddingscited by 10
- 2025CoSMoEs: Compact Sparse Mixture of Expertscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptation
- 2021Distilling Linguistic Context for Language Model Compression
- 2026DistillLens: Symmetric Knowledge Distillation Through Logit Lens
- 2023A Comparative Analysis of Task-Agnostic Distillation Methods for Compressing Transformer Language Models
- 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tell
- 2025Knowledge Distillation and Dataset Distillation of Large Language Models: Emerging Trends, Challenges, and Future Directions
- 2025A Survey on Transformer Context Extension: Approaches and Evaluation
- 2025SeqPE: Transformer with Sequential Position Encoding