CLLGFeb 11, 2025

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

arXiv:2502.07365v311 citationsh-index: 15Has CodeACL
Originality Incremental advance
AI Analysis

This addresses a practical problem for users of long-context LLMs who need reliable performance on short-text tasks, though it is an incremental improvement focused on a specific bottleneck.

The paper tackles the problem of short-text performance degradation in long-context large language models, identifying distribution drift and catastrophic forgetting as primary causes, and proposes LongReD to mitigate this issue while maintaining long-text handling capacity, with experiments showing effective preservation of short-text performance.

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 the reasons for this degradation remain insufficiently explored. In this work, we identify two primary factors contributing to this issue: distribution drift in hidden states and attention scores, and catastrophic forgetting during continual pre-training. To address these challenges, we propose Long Context Pre-training with Restoration Distillation (LongReD), a novel approach designed to mitigate short-text performance degradation through minimizing the distribution discrepancy between the extended and original models. Besides training on long texts, LongReD distills the hidden state of selected layers from the original model on short texts. Additionally, LongReD also introduces a short-to-long distillation, aligning the output distribution on short texts with that on long texts by leveraging skipped positional indices. Experiments on common text benchmarks demonstrate that LongReD effectively preserves the model's short-text performance while maintaining comparable or even better capacity to handle long texts than baselines. Our code is available at https://github.com/RUCAIBox/LongReD.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes