Reproduce “Long documents make a training batch smaller than it looks, but only slightly: a measurement in full context” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Hanyu Yang
The authors measure within-document gradient variance during long-context pretraining by scoring each 512-target block with its preceding document context, rather than alone. In Qwen2.5-1.5B at 16K tokens, the ratio is 1.27 for repositories (97.5% document-bootstrap interval 1.24–1.29), below the preregistered 1.5 threshold but above 1. The study measures variance, not training outcomes.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.