atlas

Research map / Large language models / Language, safety and interpretability

NExtLong: Toward Effective Long-Context Training without Long Documents

ICML 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Synthesizes long-context training data by splitting short documents into meta-chunks and interleaving retrieved hard-negative distractor chunks from a FAISS index of the pretraining corpus, enabling strong 128K/512K long-context models without long documents.

Problem

Long-context LLM training normally needs scarce non-synthetic long documents, and existing short-document concatenation synthesis methods (random, KNN, ICLM, Quest) lack an explicit mechanism for learning long-range dependencies.

Approach

Extend each meta-document by interleaving top-k semantically similar but distracting chunks (hard negatives) retrieved from a deduplicated pretraining corpus after each meta-chunk, placing the meta-chunk first, so dependent segments become long-range and the model must discriminate relevant context from distractors under standard next-token prediction.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on NExtLong negative-extended documents instead of Quest-synthesized documentsMeta-Llama-3-8B-base · HELMET (8K–128K average)Avg.: 55.25 -> 62.58Helped
Train on NExtLong negative-extended documents instead of Quest-synthesized documentsMeta-Llama-3-8B-base · HELMET (8K–128K average)Recall: 69.13 -> 82.56Helped
Train on NExtLong negative-extended documents instead of Quest-synthesized documentsMeta-Llama-3-8B-base · HELMET (8K–128K average)Re-rank: 22.35 -> 31.47Helped
Train on NExtLong negative-extended documents instead of Standard concatenationMeta-Llama-3-8B-base · RULER (8K–128K average)score: 76.68 -> 81.50Helped
Use NExtLong synthetic training data instead of ProLong long-document trainingLlama-3-8B base model · HELMET (8K–128K average)Avg.: 60.34 -> 65.76Helped
Use NExtLong rather than ProLong for long-context trainingLlama-3-8B Instruct · LongBench v2Overall: 27.2 -> 30.4Helped
Place the meta-chunk before hard negatives rather than after them (ablation)NExtLong · HELMET (8K–128K average)Avg.: 60.01 -> 62.58Helped
Place the meta-chunk before hard negatives rather than inserting it randomly (ablation)NExtLong · HELMET (8K–128K average)Avg.: 58.95 -> 62.58Helped
Combine Cosmopedia and FineWebEdu rather than use Cosmopedia alone (ablation)NExtLong · HELMET (8K–128K average)Avg.: 59.26 -> 62.58Helped
Combine Cosmopedia and FineWebEdu rather than use FineWebEdu alone (ablation)NExtLong · HELMET (8K–128K average)Avg.: 62.04 -> 62.58Helped
Use top-k similar hard negatives instead of low-similarity negatives (ablation)NExtLong · HELMET and RULERaverage performanceHelped
Use retrieved hard negatives instead of repeating meta-chunks (ablation)NExtLong · HELMET and RULERaverage performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: Cosmopedia v2 FineWeb-Edu UltraChat

Benchmarks: HELMET RULER LongBench v2 Needle-in-a-Haystack short-text suite (HellaSwag, LAMBADA, ARC, PIQA, WinoGrande, LogiQA)

Metrics: average accuracy/score across HELMET categories RULER score LongBench v2 accuracy attention-based long-dependency probe accuracy

Baselines: Standard concatenation KNN ICLM Quest Yarn-Llama-2-7b-128K DeepSeek-V2-Lite Yi-9B-200K Qwen2.5-7B Mistral-Nemo-Base Llama-3-8B-ProLong-512K-Base Llama-3.1-8B GPT-4o

Builds on: Quest ProLong HELMET RULER

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy