Long Context & Efficient Sequences · 2023
Context Extension (Position Interpolation / NTK / YaRN)
A family of RoPE-rescaling methods (Position Interpolation, NTK-aware scaling, YaRN) that extend a pretrained transformer's usable context window with little or no retraining by remapping rotary position frequencies instead of pretraining longer.
Editorial record
Plain-language summary
Transformers trained with rotary position embeddings degrade sharply when run past their training context length because they encounter position rotations never seen in training. These methods rescale the RoPE frequencies so longer positions map back into the range the model already learned: Position Interpolation linearly compresses positions, NTK-aware scaling adjusts per-frequency to preserve high-frequency detail, and YaRN combines frequency-selective interpolation with an attention-temperature correction. The result is context windows extended by large factors (e.g. 4x-16x) after only brief fine-tuning or none at all, avoiding the cost of pretraining from scratch on long sequences.
Knowledge graph
Relationships
Descendants
ExtendsEvidence: Direct
RoFormer: Rotary Position Embedding (RoPE)
YaRN rescales RoPE for context extension
P-423
Source record
Provenance
- Record ID
- P-423
- Record created
- 2026-07-13
- Last reviewed
- 2026-07-14
- Record version
- 2
- https://arxiv.org/abs/2309.00071
- arXiv:2309.00071
Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.