Jargonautica
Language Models Specifically

Context Length Extension

Also called: RoPE Scaling, Long Context

Making a model handle longer inputs than it was trained on. It is largely a matter of adjusting how position is encoded, and it works up to a point before quality quietly degrades. A model advertised at a million tokens has usually been extended, not trained, at that length.

Technical view

Techniques interpolate or rescale rotary position embeddings, sometimes with frequency-dependent adjustment, often followed by brief fine-tuning at the longer length. Evaluation should go beyond needle-in-a-haystack retrieval to tasks requiring aggregation across distant passages, where extended models degrade first. Serving cost also rises sharply with length, so the practical limit is often economic rather than architectural.


Part of AI Terminology Index, section: Language Models Specifically.

How it connects

Context Length Extension links to 8 other terms. The faint lines are links between those terms. See it in the full graph.

Context WindowContext WindowLost in the MiddleLost in the MiddleCache-augmented GenerationCache-augmented Gen…Needle in a HaystackNeedle in a HaystackPositional EncodingPositional EncodingCost Per TaskCost Per TaskAttention SinkAttention SinkLinear AttentionLinear AttentionContext Length Extension