atlas

Research map / Architectures and efficiency / Attention and transformers

Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculum

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 4 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 dataset decomposition, which splits tokenized documents into power-of-two length buckets and trains with variable sequence length and batch size under a length curriculum, yielding faster and more accurate LLM pretraining than concat-and-chunk.

Problem

Fixed-length concat-and-chunk pretraining mixes unrelated documents within sequences, wastes attention compute on cross-document tokens, and breaks documents into short chunks, hurting accuracy and training efficiency at long context lengths.

Approach

Decompose each document into adjacent power-of-two length subsequences stored in length buckets, so every sequence comes from a single document; sample buckets per step with a tunable length curriculum and variable batch size so token count per step stays constant while attention cost tracks actual lengths.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use dataset decomposition with Grow-P2 curriculum and 8 cycles instead of fixed-length concat-and-chunkOpenLM-1B pretraining · Regular evaluationsaverage accuracy: 51.5 -> 54.4Helped
use dataset decomposition with Grow-P2 curriculum and 8 cycles instead of fixed-length concat-and-chunkOpenLM-1B pretraining · Long-context evaluationsaverage accuracy: 27.5 -> 30.9Helped
use dataset decomposition with Grow-P2 curriculum and 8 cycles instead of fixed-length concat-and-chunkOpenLM-1B pretraining · Trainingstep time (ms): 304 -> 244Helped
add document maskingBaseline-8k · Regular evaluationsaverage accuracy: 51.5 -> 52.4Helped
add document maskingBaseline-8k · Long-context evaluationsaverage accuracy: 27.5 -> 27.1Hurt
train only on sequences of length 1024 rather than the natural mixture (ablation)OpenLM-1B with dataset decomposition · MDQAaverage accuracy: 21.9 -> 0.2Hurt
exclude sequences longer than 2k (ablation)OpenLM-1B with dataset decomposition · MDQAaverage accuracy: 21.9 -> 8.1Hurt
exclude sequences shorter than 1k (ablation)OpenLM-1B with dataset decomposition · MDQAaverage accuracy: 21.9 -> 22.1Helped
use Grow-P2 curriculum with 8 cycles instead of uniform sampling (ablation)OpenLM-1B with ≥256 mixture · MDQAaverage accuracy: 23.0 -> 28.0Helped
use Grow-P2 curriculum with 8 cycles instead of one cycle (ablation)OpenLM-1B with ≥256 mixture · MDQAaverage accuracy: 25.9 -> 28.0Helped
reverse the length curriculum from long-to-short instead of short-to-long (ablation)OpenLM-1B with ≥256 mixture · Regular evaluationsaverage accuracy: 54.4 -> 50.3Hurt
use Grow-P100 with 8 cycles instead of Grow-P2 with 8 cycles (ablation)OpenLM-1B with ≥256 mixture · MDQAaverage accuracy: 28.0 -> 24.1Hurt

Surprising findings

Limitations

Experimental setup

Datasets: RefinedWeb DataComp-LM Natural Questions-Open PIQA COPA OpenBookQA LAMBADA HellaSwag Winograd WinoGrande SQuAD BoolQ

Benchmarks: PIQA COPA OpenBookQA LAMBADA HellaSwag Winograd WinoGrande SQuAD BoolQ CoQA Jeopardy ARC-Easy

Metrics: accuracy training step time (ms) time-to-accuracy speedup data efficiency

Baselines: Baseline-8k concat-and-chunk Baseline-8k+DM document masking Pack-8k+DM best-fit packing ICLM in-context pretraining Baseline-2k

Builds on: OpenLM FlashAttention2 RoPE in-context pretraining best-fit packing

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