paper-with-me

Papers

Short Data, Long Context: Distilling Positional Knowledge in Transformers

2026-04-07 · Patrick Huber, Ernie Chang, Chinnadhurai Sankar, Rylan Conway, Igor Fedorov, Md Rifat Arefin, Adithya Sagar 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.

📄 PDF Abstract BibTeX arXiv:2604.06070

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge Distillation

Similar Papers 제목 키워드 기반

Randomized YaRN Improves Length Generalization for Long-Context Reasoning

2026-06-22 · Manas Mehta, Fangcong Yin, Greg Durrett arxiv

Large language models (LLMs) are typically pretrained on short sequences and then extended to work on longer sequences with additional training. However, such LLMs still struggle to further generalize to very long sequen…

Coreference Resolution

LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillation

2025-02-11 · Zican Dong, Junyi Li, Jinhao Jiang, Mingyu Xu 외

Large language models (LLMs) have gained extended context windows through scaling positional encodings and lightweight continual pre-training. However, this often leads to degraded performance on short-text tasks, while …

Recall with Reasoning: Chain-of-Thought Distillation for Mamba's Long-Context Memory and Extrapolation

2025-05-06 · Junyu Ma, Tianqing Fang, Zhisong Zhang, Hongming Zhang 외

Mamba's theoretical infinite-context potential is limited in practice when sequences far exceed training lengths. This work explores unlocking Mamba's long-context memory ability by a simple-yet-effective method, Recall …

Mamba

Do LSTMs Learn Compositionally?

2019-05-28 · Naomi Saphra, Adam Lopez

LSTM-based language models exhibit compositionality in their representations, but how this behavior emerges over the course of training has not been explored. Analyzing synthetic data experiments with contextual decompos…

EndPrompt: Efficient Long-Context Extension via Terminal Anchoring

2026-05-14 · Han Tian, Luxuan Chen, Xinran Chen, Rui Kong 외 arxiv

Extending the context window of large language models typically requires training on sequences at the target length, incurring quadratic memory and computational costs that make long-context adaptation expensive and diff…