ExplorerData ScienceMachine Learning
Research PaperResearchia:202604.08025

Short Data, Long Context: Distilling Positional Knowledge in Transformers

Patrick Huber

Abstract

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 Posit...

Submitted: April 8, 2026Subjects: Machine Learning; Data Science

Description / Details

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.


Source: arXiv:2604.06070v1 - http://arxiv.org/abs/2604.06070v1 PDF: https://arxiv.org/pdf/2604.06070v1 Original Link: http://arxiv.org/abs/2604.06070v1

Please sign in to join the discussion.

No comments yet. Be the first to share your thoughts!

Access Paper
View Source PDF
Submission Info
Date:
Apr 8, 2026
Topic:
Data Science
Area:
Machine Learning
Comments:
0
Bookmark
Short Data, Long Context: Distilling Positional Knowledge in Transformers | Researchia