Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Data

Haoran Deng, Yingyu Lin, Zhenghao Lin, Xiao Liu, Yizhou Sun +2 more
10/29/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Long-context language models unlock advanced capabilities in reasoning, code generation, and document summarization by leveraging dependencies across extended spans of text. However, a significant portion of readily available long-text data lacks meaningful long-distance dependencies; most spans can be predicted using only local context. Training on such data is inefficient, making careful data selection crucial. Therefore, we introduce LongFilter, a framework for curating training data tailored to long-context pretraining. LongFilter measures the information gain provided by extended context by contrasting model predictions under long-context versus short-context settings, thereby identifying samples where long-range dependencies are essential. Experiments with LLaMA-3-8B, extending its context length from 8K to 64K, show that LongFilter efficiently selects high-quality data and yields substantial improvements on benchmarks such as HELMET, LongBench, and RULER.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{deng2025beyond,
  title  = {Beyond Length: Quantifying Long-Range Information for Long-Context LLM Pretraining Data},
  author = {Haoran Deng and Yingyu Lin and Zhenghao Lin and Xiao Liu and Yizhou Sun and Yi-An Ma and Yeyun Gong},
  year   = {2025},
  eprint = {2510.25804},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.25804v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.25804.svg)](https://codeofpaper.com/paper/2510.25804)

Discussion