the.ai

Context / Methods

verified

Long-Context Training

A model does not get a long context by having its positions rescaled; it gets one by then being trained on long sequences. That training stage is short compared with pretraining and surprisingly particular about its data — most long documents are long by accident rather than because anything in them depends on anything far away.

Viz primitive · budget-splitshort-range-pairs = 60

short-range-pairs holds 75% of the budget; rest holds the remaining 25%.

Token pairs at short range the model trained on, against the long-range pairs it saw, in equal units. Drag the pretraining share up to watch long-range dependencies become a rounding error — which is the honest reason long-context ability is thinner than the window suggests.

60

Reviewed by opendroid · 2026-08-18

  • arXiv:2402.10171 — Data Engineering for Scaling Language Models to 128K Context
  • arXiv:2309.00071 — YaRN: Efficient Context Window Extension of Large Language Models