atlas

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

What is Wrong with Perplexity for Long-context Language Modeling?

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 2 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.

The paper explains why perplexity fails as a long-context metric, proposes LongPPL (perplexity over key tokens identified by long-short context contrast) and LongCE (a reweighted cross-entropy loss for long-context fine-tuning).

Problem

Perplexity is widely used to evaluate long-context capability of LLMs but correlates poorly with long-context benchmark performance; the reason is unclear.

Approach

Most tokens are long-context-agnostic, so averaging PPL over all tokens obscures performance. Key tokens are identified by a causal long-short difference (LSD) plus long-context likelihood (LCL) criterion; LongPPL averages only over these tokens, and LongCE upweights them during fine-tuning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace uniform CE training with LongCE token reweightingLlama-2-7B · LongEval, PG-19 + EABF, 200 stepsaccuracy: 24.0 -> 46.0; (+22.0)Helped
Replace uniform CE training with LongCE token reweightingLlama-2-7B · LongBench, PG-19 + EABF, 200 stepsaverage score: 26.9 -> 28.2; (+1.3)Helped
Replace uniform CE training with LongCE token reweightingLlama-2-7B · RULER, PG-19 + EABF, 200 stepsscore: 42.7 -> 49.7; (+7.0)Helped
Use hard key-token selection instead of standard PPL over all tokensLongPPL · LongBenchPearson correlation: -0.18 -> -0.96Helped
Use soft influence weights instead of hard key-token selection (ablation)LongPPL · LongBenchPearson correlation: -0.96 -> -0.43Hurt
Remove the LCL criterion from key-token selection (ablation)LongPPL · Long-context benchmarkscorrelationHurt
Use the evaluated model itself as the key-token evaluator (ablation)LongPPL · Long-context benchmarksability to reflect model performanceHurt
Select re-occurred N-grams instead of key tokens (ablation)PPL-based long-context evaluation · LongEvalPearson correlation: LongPPL -0.90; PPL (N-gram) -0.11Hurt
Set LongPPL thresholds to alpha=2, beta=-1 instead of the default (ablation)LongPPL · LongEvalPearson correlation: -0.90 -> -0.94Helped
Set LongPPL thresholds to alpha=2, beta=-1 instead of the default (ablation)LongPPL · RULERPearson correlation: -0.90 -> -0.96Helped
Set LongCE short context length K=1k and sliding window length d=1k (ablation)LongCE · LongEval, PG-19 + EABF, 200 stepsaccuracy: 46.0 -> 48.0Helped
Set LongCE short context length K=1k and sliding window length d=1k (ablation)LongCE · LongBench, PG-19 + EABF, 200 stepsaverage score: 28.2 -> 26.9Hurt

Surprising findings

Limitations

Experimental setup

Datasets: GovReport LongEval LongBench RULER PG-19 Pile-arxiv MMLU ARC-Challenge RACE BigBench Hard TruthfulQA CommonsenseQA

Benchmarks: LongBench LongEval RULER Needle-in-a-Haystack MMLU ARC-Challenge RACE BigBench Hard TruthfulQA CommonsenseQA

Metrics: Pearson correlation accuracy average score perplexity

Baselines: PPL LongRecipe Standard cross-entropy (CE) loss

Builds on: position interpolation EABF perplexity

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