atlas

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

NoLiMa: Long-Context Evaluation Beyond Literal Matching

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

Introduces NoLiMa, a needle-in-a-haystack benchmark whose question-needle pairs have minimal lexical overlap, requiring latent associative (one- and two-hop) reasoning, and evaluates 13+ long-context LLMs showing sharp degradation with context length.

Problem

Existing needle-in-a-haystack and long-context benchmarks contain literal matches between questions and relevant context, letting models exploit surface cues and overstating long-context ability.

Approach

Design needles and questions with minimal lexical overlap linked only by latent associations (world knowledge or commonsense, one or two hops), embedded in book haystacks filtered for distractors and false answers, so that surface matching has no utility.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase context length from the short-context baseline to 32KNoLiMa models · NoLiMa 32Kaccuracy: GPT-4o: 99.3 -> 69.7; 11 models drop below 50% of their base scoreHurt
Add CoT prompting (ablation)Llama 3.3 70B · NoLiMa one-hop 4Kaccuracy: 90.3 -> 95.6Helped
Add CoT prompting (ablation)Llama 3.3 70B · NoLiMa one-hop 32Kaccuracy: 56.2 -> 60.6Helped
Add CoT prompting (ablation)Llama 3.3 70B · NoLiMa two-hop 4Kaccuracy: 70.7 -> 82.4Helped
Add CoT prompting (ablation)Llama 3.3 70B · NoLiMa two-hop 32Kaccuracy: 25.9 -> 34.3Helped
Add a literal match by asking directly about the needle fact (ablation)Llama 3.3 70B · NoLiMa direct 32Kaccuracy: +Helped
Add literal-match multiple-choice answer options (ablation)Llama 3.3 70B · NoLiMa one-hop 32Kaccuracy: 56.2 -> 93.1Helped
Add literal-match multiple-choice answer options (ablation)Llama 3.3 70B · NoLiMa two-hop 32Kaccuracy: 25.9 -> 87.2Helped
Add an irrelevant sentence containing the query keyword (ablation)GPT-4o and Llama 3.3 70B · NoLiMa with distractorlength generalizationHurt
Increase associative reasoning from one hop to two hops (ablation)NoLiMa models · NoLiMa long contextsaccuracyHurt
Invert the order of character and needle keyword in the fact (ablation)NoLiMa models · NoLiMaaccuracyHurt
Use reasoning-based models instead of standard CoT promptingNoLiMa-Hard · 32KaccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: open-license books (10 books, each at least 50K tokens) as haystack source

Benchmarks: NoLiMa NoLiMa-Hard

Metrics: accuracy base score effective length (85% of base score threshold) normalized score

Baselines: GPT-4o Gemini 1.5 Pro Llama 3.3 70B Llama 3.1 405B Claude 3.5 Sonnet GPT-o1 GPT-o3 Mini DeepSeek R1-Distill-Llama-70B

Builds on: Needle-in-a-Haystack RULER BABILong Contriever

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