Preprint
Large Language Models

Longred: Mitigating short-text degradation of long-context large language models via restoration distillation

January 1, 2025

0

Citations

0

Influential Citations

Venue

2025

Year

Abstract

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

Analysis

Why This Paper Matters

Long-context large language models (LLMs) have become increasingly important for tasks like document summarization, code generation, and multi-turn dialogue. However, the common practice of extending context windows via positional encoding scaling and continual pre-training often leads to a significant drop in performance on short-text tasks—a phenomenon the authors term 'short-text degradation.' This is a critical issue because real-world deployments rarely use only long inputs; users frequently alternate between short queries and long documents. The paper highlights this overlooked trade-off and proposes a practical solution.

Longred introduces a restoration distillation method that leverages a frozen short-context teacher model to guide the long-context student during training. This approach is elegant because it does not require additional data or architectural changes; it simply adds a distillation loss on short-text examples to the existing long-context training objective. The paper's significance lies in its focus on preserving general capabilities while extending context, which is a key requirement for robust and reliable LLM deployment.

Technical Contributions

  • Problem identification: Clearly defines and analyzes short-text degradation in long-context LLMs, showing that it is a systematic issue arising from the adaptation process.
  • Restoration distillation: Proposes a teacher-student framework where a frozen short-context model provides soft targets for short-text data, preventing catastrophic forgetting of short-text abilities.
  • Training objective: Combines the standard long-context loss with a distillation loss, balancing long-context learning and short-text preservation.
  • Compatibility: The method is architecture-agnostic and can be applied to any long-context adaptation pipeline, making it widely applicable.

Results

The paper reports that Longred effectively mitigates short-text degradation, with significant improvements over baseline continual pre-training methods. While the abstract does not provide specific numerical metrics, it indicates that the method maintains competitive long-context performance, suggesting that the trade-off is favorably resolved. The authors likely evaluate on standard benchmarks for both short-text (e.g., MMLU, HellaSwag) and long-context (e.g., LongBench) tasks, but exact numbers are not available in the abstract.

Significance

This work addresses a fundamental challenge in scaling LLMs: how to extend capabilities without sacrificing existing ones. The restoration distillation approach offers a simple yet effective solution that can be integrated into existing training pipelines, potentially becoming a standard practice for long-context adaptation. By preserving short-text performance, Longred enhances the practical usability of long-context LLMs, making them more reliable for diverse real-world applications. This research also opens avenues for further exploration of distillation-based methods for other capability preservation scenarios, such as multilingual or multi-task learning.