atlas

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

Structured Packing in LLM Training Improves Long Context Utilization

AAAI 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 5 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.

Proposes SPLiCe, which builds long training samples by retrieving mutually relevant documents (BM25, Contriever, repo structure) and briefly fine-tunes OpenLLaMA 3B/7B and CodeLlama 13B to improve long-context utilization.

Problem

Long-context language models often fail to utilize information in long inputs, especially in the middle; the question is how to organize training documents into training samples to improve long-context utilization.

Approach

Build training samples as trees of retrieved related documents (BM25, Contriever-MSMARCO, or repository structure), flattened into long sequences, so that semantic interdependence within a sample is increased, instead of randomly packing documents with BOS/EOS separators.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Pack related documents with SPLiCE instead of Example Packing3B FoT · TREC 32Kaccuracy: 73.9 -> 79.3Helped
Pack related documents with SPLiCE instead of Example Packing7B FoT · TREC 16Kaccuracy: 74.0 -> 79.0Helped
Pack related documents with SPLiCE instead of Example Packing13B FoT · DBpedia 16Kaccuracy: 95.8 -> 96.8Helped
Pack related documents with SPLiCE instead of Example Packing7B CL · DBpedia 16Kaccuracy: 96.2 -> 96.4Helped
Pack related documents with SPLiCE instead of Example Packing13B FoT · GSM8Kaccuracy: 21.9 -> 23.1Helped
Pack related documents with SPLiCE instead of Example Packing7B FoT · MMLU Allaccuracy: 36.2 -> 36.3No clear effect
Use SPLiCE-packed C code rather than Example Packing270M · arXivperplexity: 5.550 { $\pm$ .002} -> 5.463 { $\pm$ .002}Helped
Increase the probability of retrieving a random document from 0% to 90% (ablation)270M SPLiCE BM25 · arXivperplexity: 5.46 -> 5.55Hurt
Increase the probability of retrieving a random document from 0% to 90% (ablation)270M SPLiCE BM25 · Code Pythonperplexity: 2.81 -> 2.92Hurt
Increase SPLiCE-prepared C data proportion from 25% to 75% (ablation)270M SPLiCE BM25 · arXivperplexity: 5.43 -> 5.61Mixed

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama StarCoder StackExchange arXiv

Benchmarks: Needle In A Haystack TREC DBpedia Qasper HotPotQA MMLU GSM8K RULER key-value retrieval

Metrics: accuracy perplexity improvement with bootstrap confidence intervals

Baselines: Example Packing Within-Domain Example Packing starting checkpoint

Builds on: Focused Transformer CodeLlama long-context extension BM25 Contriever

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