English

Reducing Distraction in Long-Context Language Models by Focused Learning

Computation and Language 2024-11-12 v1

Abstract

Recent advancements in Large Language Models (LLMs) have significantly enhanced their capacity to process long contexts. However, effectively utilizing this long context remains a challenge due to the issue of distraction, where irrelevant information dominates lengthy contexts, causing LLMs to lose focus on the most relevant segments. To address this, we propose a novel training method that enhances LLMs' ability to discern relevant information through a unique combination of retrieval-based data augmentation and contrastive learning. Specifically, during fine-tuning with long contexts, we employ a retriever to extract the most relevant segments, serving as augmented inputs. We then introduce an auxiliary contrastive learning objective to explicitly ensure that outputs from the original context and the retrieved sub-context are closely aligned. Extensive experiments on long single-document and multi-document QA benchmarks demonstrate the effectiveness of our proposed method.

Keywords

Cite

@article{arxiv.2411.05928,
  title  = {Reducing Distraction in Long-Context Language Models by Focused Learning},
  author = {Zijun Wu and Bingyuan Liu and Ran Yan and Lei Chen and Thomas Delteil},
  journal= {arXiv preprint arXiv:2411.05928},
  year   = {2024}
}
R2 v1 2026-06-28T19:53:46.042Z