atlas

Research map / Large language models / Language, safety and interpretability

LongRoPE2: Near-Lossless LLM Context Window Scaling

ICML 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LongRoPE2, which extends LLaMA3-8B and Phi3-mini-3.8B to a 128K effective context using evolutionary search over RoPE rescaling factors guided by needle-driven perplexity, plus mixed context window training that preserves short-context performance, using 10B tokens.

Problem

Context window extension of pre-trained LLMs suffers from RoPE out-of-distribution issues, so existing rescaling methods fail to reach the effective target length and degrade short-context performance, and restoring it typically needs costly mid-training.

Approach

Hypothesizes that insufficient training in higher RoPE dimensions lengthens their empirical rotation periods, shifting the real critical dimension earlier; searches rescaling factors with evolutionary search scored by perplexity on only needle answer tokens in synthetic long data, and trains with mixed short (original RoPE, packed with attention masks) and long (rescaled RoPE) windows.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use needle-driven PPL rather than standard PG19 document PPL to guide rescaling search (ablation)LongRoPE2 rescaling search · RULER 128kaverage score: 50.23 -> 58.81Helped
use needle-driven PPL rather than standard PG19 document PPL to guide rescaling search (ablation)LongRoPE2 rescaling search · RULER 128kaverage score: 78.68 -> 82.03Helped
add mixed context window training (short sequences with original RoPE and long sequences with rescaled RoPE) (ablation)LongRoPE2 · GSM8Kscore: 64.67 -> 73.62Helped
add mixed context window training (short sequences with original RoPE and long sequences with rescaled RoPE) (ablation)LongRoPE2 · RULER 128kaverage score: 56.22 -> 58.81Helped
apply the practical critical dimension to YaRN (YaRN-rcd) (ablation)YaRN · RULER 128kaverage score: 39.37 -> 44.39Helped
apply the practical critical dimension to NTK (NTK-rcd) (ablation)NTK · RULER 128kaverage score: 49.37 -> 54.42Helped
search all RoPE dimensions instead of only dimensions at and above d_rcd (ablation)LongRoPE2 · RULER 128kaverage score: 58.81 -> 57.34Hurt
search all RoPE dimensions instead of only dimensions at and above d_rcd (ablation)LongRoPE2 · RULER 128kaverage score: 82.03 -> 78.07Hurt
add mixed context window training (short sequences with original RoPE and long sequences with rescaled RoPE) (ablation)LongRoPE2 · MMLUscore: 66.56 -> 70.07Helped

Surprising findings

Limitations

Experimental setup

Datasets: PG19 RedPajama-v1 RedPajama-v2 StarCoder FineWeb-Edu

Benchmarks: RULER Needle in a Haystack LOFT InfiniteBench LongBench MMLU MMLU-Pro HellaSwag TruthfulQA GSM8K

Metrics: accuracy average score perplexity

Baselines: YaRN NTK LongRoPE LLaMA3.1-8B-128k

Builds on: RoPE LongRoPE YaRN NTK-aware scaling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy