atlas

Research map / Architectures and efficiency / Attention and transformers

SkyLadder: Better and Faster Pretraining via Context Window Scheduling

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 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.

Shows that shorter pretraining context windows beat longer ones under a fixed token budget, and proposes SkyLadder, a short-to-long context window schedule that improves standard benchmarks and speeds up training by up to 22%.

Problem

Long-context pretraining is assumed to help, but under a fixed token budget it is unclear whether longer context windows improve or hurt pretraining, and how to balance long-context capability against pretraining effectiveness and efficiency.

Approach

Schedule the attention context window during pretraining from a tiny size (8 tokens) linearly up to the target length (e.g., 8K/32K) by applying block-wise local causal masks to packed sequences, which can be combined with intra-document masking and requires no change to the data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Schedule the context window short-to-long instead of keeping it constant longRandom-packed 1B pretraining on CC · Standard benchmarksaverage accuracy: 46.3 -> 50.0 { (+3.7)}Helped
Schedule the context window short-to-long with Random packing1B pretraining on CC · Reading comprehension benchmarksaverage accuracy: 25.5 -> 30.2 { (+4.7)}Helped
Schedule the context window short-to-long with Random packing1B pretraining on CC · Long benchmarksaverage accuracy: 15.3 -> 14.3Hurt
Schedule the context window short-to-long with IntraDoc masking1B pretraining on CC · Standard benchmarksaverage accuracy: 47.4 -> 49.3 { (+1.9)}Helped
Schedule the context window short-to-long with IntraDoc masking1B pretraining on CC · Reading comprehension benchmarksaverage accuracy: 28.7 -> 29.1 { (+0.4)}No clear effect
Schedule the context window short-to-long with IntraDoc masking1B pretraining on CC · Long benchmarksaverage accuracy: 13.0 -> 13.2No clear effect
Schedule context short-to-long rather than constant long at 32K1B pretraining on FineWeb-Pro · Standard benchmarksaverage accuracy: 50.7 -> 54.3 { (+3.6)}Helped
Schedule context short-to-long rather than constant long at 32K1B pretraining on FineWeb-Pro · Long benchmarksaverage accuracy: 9.7 -> 13.5 { (+3.8)}Helped
Use short-to-long rather than long-to-short scheduling (ablation)1B pretraining on FineWeb-Pro · Long benchmarksaverage accuracy: 10.7 -> 12.3 { (+1.2)}Helped
Replace linear scheduling with sinusoidal scheduling (ablation)1B pretraining at 32K on FineWeb-Pro · Long benchmarksaverage accuracy: 13.5 -> 14.2Helped
Use exponential instead of linear short-to-long scheduling (ablation)1B pretraining at 32K on FineWeb-Pro · Long benchmarksaverage accuracy: 13.5 -> 11.5Hurt
Use continual pretraining with an abrupt 4K-to-32K switch instead of a gradual schedule (ablation)1B pretraining at 32K on FineWeb-Pro · Standard benchmarksaverage accuracy: 50.7 -> 52.9Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama CommonCrawl FineWeb-Pro Python code corpus

Benchmarks: HellaSwag ARC-Easy ARC-Challenge CommonsenseQA OpenBookQA PIQA Social-QA Winogrande MMLU HotpotQA SQuAD NQ

Metrics: accuracy perplexity exact match pass@k training time FLOPs

Baselines: Random packing IntraDoc BM25 packing Dataset Decomposition continual pretraining schedule

Builds on: TinyLlama Flash Attention 2 Dataset Decomposition RoPE

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