Long-context / context-window extension
YaRN
YaRN: Efficient Context Window Extension of Large Language Models
Heavily superseded — a standard baseline that newer methods routinely beat
10 papers critique it · 8 beat it on benchmarks
What papers say
Verbatim critique sentences, each from a paper that cites YaRN as a baseline.
traditional approaches chen2023extending often suffer from a significant performance drop chen2023clex, ding2024longrope at the target length due to their limited generalization capability.
“the efficiency is relatively low. For example, to reach the context length of 128K tokens, using YaRN, one has to pretrain an LLM on 64K tokens.”
“rescaling factors derived from previous methods often fall short of achieving the effective target context length.”
“PI and YaRN suffer from slow motion, leading to lower Dynamic Degree”
“However, these static approaches do not account for the distinctive spectral progression of the diffusion process, where low-frequency structures are generated in the first sampling steps, while high-frequency details are resolved later”
“these methods typically require finetuning to achieve extension, which can be resource and time-intensive given the quadratic complexity of Transformers”
“methods like NTK, Dyn-NTK, and YaRN suffer from attention logit outliers due to their positional embedding interpolations”
“While NTK-By-Parts and YaRN have lower perplexity in language modeling tasks, PI has better fine-tuning performance on long-context downstream tasks that are more related to practical scenarios.”
“although YaRN improves the length extrapolation capability of RoPE to some extent, it still suffers from performance drop when being evaluated on very long sequences”
“these methods typically require additional fine-tuning on longer texts and have explicit extrapolation upper bounds.”
Beaten on benchmarks
Head-to-head results where a newer method reports beating YaRN. Values are copied from the source paper's tables — verify against the cited paper.
LaMPE beats YaRN
69.46 vs 5.02
Avg. · [64K extrapolation]
LaMPE: Length-aware Multi-grained Positional Encoding for Adaptive Long-context Scaling Without TrainingRULER beats YaRN
23.00 vs 5.86
LOFT Avg. · [Base model: Phi3-mini (3.8B)]
LongRoPE2: Near-Lossless LLM Context Window ScalingDyPE-YaRN beats YaRN
0.66 vs 0.41
Cross-Resolution Phase-Aligned Attention (CRPA) beats YaRN
0.563 vs 0.434
CLIP-IQA · [image generation]
One Attention, One Scale: Phase-Aligned Rotary Positional Embeddings for Mixed-Resolution Diffusion TransformerYaRN_PSC beats YaRN
2.05 vs 2.08
perplexity at 65536 tokens · [YaRN YaRN 64k context]
PSC: Extending Context Window of Large Language Models via Phase Shift Calibration
What to use instead
Recent methods in the same sub-problem, not yet superseded in the knowledge base — arXiv benchmark leaders, not vetted production recommendations.