NoLiMa
Models find a needle in a long haystack when the question and the needle share almost no words, so they must infer a latent link. Accuracy is compared across context lengths.
At 32K tokens, 10 of 12 tested models fell below half their short-context score. Data uses an Adobe Research License for non-commercial use. About 210 GitHub stars.
- Made by
- Adobe Research and LMU Munich (Modarressi et al.)
- Released
- February 2025
- Kind
- Finding facts in long inputs
- Level
- Everyday
- Scored
- Checked automatically
- Answers
- Short answer
- Tasks
- All public
- Measures
- Capability
- Language
- English
- Interaction
- Single turn
- Refresh
- One fixed set
- Run by
- Anyone
- Strongest model tested
-
Gemini 2.5 Flash May 2025 #116 on the capability index
- Last model added
- May 2025
- Updated automatically
- Yes, daily
- Scores refreshed
- November 24th, 2026
In the authors’ words
Recent large language models (LLMs) support long contexts ranging from 128K to 1M tokens. A popular method for evaluating these capabilities is the needle-in-a-haystack (NIAH) test, which involves retrieving a "needle" (relevant information) from a "haystack" (long irrelevant context). Extensions of this approach include increasing distractors, fact chaining, and in-context reasoning. However, in these benchmarks, models can exploit existing literal matches between the needle and haystack to simplify the task. To address this, we introduce NoLiMa, a benchmark extending NIAH with a carefully designed needle set, where questions and needles have minimal lexical overlap, requiring models to infer latent associations to locate the needle within the haystack. We evaluate 13 popular LLMs that claim to support contexts of at least 128K tokens. While they perform well in short contexts (<1K), performance degrades significantly as context length increases. At 32K, for instance, 11 models drop below 50% of their strong short-length baselines. Even GPT-4o, one of the top-performing exceptions, experiences a reduction from an almost-perfect baseline of 99.3% to 69.7%. Our analysis suggests these declines stem from the increased difficulty the attention mechanism faces in longer contexts when literal matches are absent, making it harder to retrieve relevant information. Even models enhanced with reasoning capabilities or CoT prompting struggle to maintain performance in long contexts. We publicly release the dataset and evaluation code at https://github.com/adobe-research/NoLiMa.
GPT-4.1 leads with 89.1% among models released by May 2025
Best score per model from the benchmark's own leaderboard, read on November 24th, 2026. Where a model ran with several settings or harnesses, we keep its best.
The newest model with a score here came out in May 2025, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- Claude Fable 5.2
- GPT-6.2 Astra
-
Gemini 4 Carbon
- GPT-6 Astra
- and 16 more
- 89.1 GPT-4.1
- 88.7 GPT-4o
- 72.9
Llama 3.3 70B Instruct
- 71.7
Gemini 2.5 Flash
- 68.7
Gemini 1.5 Pro
- 67.8
Gemini 2.0 Flash
- 67.0
Llama 3.1-70B
- 65.8
Llama 3.1-405B
- 64.0 Claude 3.5 Sonnet (October 2024)
- 63.3 Jamba 1.5 Mini
- 58.0
Mistral Large 2
- 56.1
Llama 4 Maverick
- 54.2 GPT-4.1 mini
- 48.3
Gemini 1.5 Flash
- 47.5
Command R+
- 44.8
Llama 4 Scout
- 41.6
Gemma 3 27B
- 39.5 GPT-4o mini
- 38.8
Llama 3.1-8B
- 38.0
Gemma 3 12B
- 33.9 GPT-4.1 nano
- 18.8
Gemma 3 4B
- 1 GPT-4.1 89.1%
- 2 GPT-4o Nov 2024 88.7%
- 3
Llama 3.3 70B Instruct 72.9%
- 4
Gemini 2.5 Flash May 2025, Thinking disabled 71.7%
- 5
Gemini 1.5 Pro Sep 2024 68.7%
- 6
Gemini 2.0 Flash Feb 2025 67.8%
- 7
Llama 3.1-70B 67%
- 8
Llama 3.1-405B 65.8%
- 9 Claude 3.5 Sonnet (October 2024) 64%
- 10 Jamba 1.5 Mini 63.3%
- 11
Mistral Large 2 Nov 2024 58%
- 12
Llama 4 Maverick 56.1%
- 13 GPT-4.1 mini 54.2%
- 14
Gemini 1.5 Flash Sep 2024 48.3%
- 15
Command R+ 47.5%
- 16
Llama 4 Scout 44.8%
- 17
Gemma 3 27B 41.6%
- 18 GPT-4o mini 39.5%
- 19
Llama 3.1-8B 38.8%
- 20
Gemma 3 12B 38%
- 21 GPT-4.1 nano 33.9%
- 22
Gemma 3 4B 18.8%
Source: Official NoLiMa leaderboard
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | GPT-4.1 | 89.1% | Apr 2025 | Official leaderboard | |
| 2 | GPT-4o Nov 2024 | 88.7% | Nov 2024 | Official leaderboard | |
| 3 | | 72.9% | Dec 2024 | Official leaderboard | |
| 4 | | 71.7% | Thinking disabled | May 2025 | Official leaderboard |
| 5 | | 68.7% | Sep 2024 | Official leaderboard | |
| 6 | | 67.8% | Feb 2025 | Official leaderboard | |
| 7 | | 67% | Jul 2024 | Official leaderboard | |
| 8 | | 65.8% | Jul 2024 | Official leaderboard | |
| 9 | Claude 3.5 Sonnet (October 2024) | 64% | Oct 2024 | Official leaderboard | |
| 10 | Jamba 1.5 Mini | 63.3% | Aug 2024 | Official leaderboard | |
| 11 | | 58% | Nov 2024 | Official leaderboard | |
| 12 | | 56.1% | Apr 2025 | Official leaderboard | |
| 13 | GPT-4.1 mini | 54.2% | Apr 2025 | Official leaderboard | |
| 14 | | 48.3% | Aug 2024 | Official leaderboard | |
| 15 | | 47.5% | Aug 2024 | Official leaderboard | |
| 16 | | 44.8% | Apr 2025 | Official leaderboard | |
| 17 | | 41.6% | Mar 2025 | Official leaderboard | |
| 18 | GPT-4o mini | 39.5% | Jul 2024 | Official leaderboard | |
| 19 | | 38.8% | Jul 2024 | Official leaderboard | |
| 20 | | 38% | Mar 2025 | Official leaderboard | |
| 21 | GPT-4.1 nano | 33.9% | Apr 2025 | Official leaderboard | |
| 22 | | 18.8% | Mar 2025 | Official leaderboard |
Rankings by part
We read 8 parts from the benchmark’s own leaderboard in 2 groups: standard lengths and extended lengths. Each ranks models on one part of the test. GPT-4o leads 4 of them, and GPT-4.1 leads the other 4. Arrows show how far a model moved from its overall rank among the models we track.
1K
22 models we track have a score here.
- 1 GPT-4o Nov 2024 ↑1 98.1%
- 2 GPT-4.1 ↓1 95.6%
- 3
Llama 3.3 70B Instruct 94.2%
- 4
Llama 3.1-70B ↑3 91%
- 5
Gemini 2.5 Flash May 2025 ↓1 90.1%
- 6
Llama 3.1-405B ↑2 89%
- 7
Gemini 2.0 Flash Feb 2025 ↓1 87.7%
- 8
Gemini 1.5 Pro Sep 2024 ↓3 86.4%
- 9
Mistral Large 2 Nov 2024 ↑2 86.1%
- 10 Claude 3.5 Sonnet (October 2024) ↓1 85.4%
2K
22 models we track have a score here.
- 1 GPT-4o Nov 2024 ↑1 98%
- 2 GPT-4.1 ↓1 95.2%
- 3
Gemini 2.0 Flash Feb 2025 ↑3 87.5%
- 4
Llama 3.3 70B Instruct ↓1 87.4%
- 5
Gemini 2.5 Flash May 2025 ↓1 86.1%
- 6
Mistral Large 2 Nov 2024 ↑5 85.5%
- 7
Llama 3.1-405B ↑1 85%
- 8 Claude 3.5 Sonnet (October 2024) ↑1 84%
- 9
Gemini 1.5 Pro Sep 2024 ↓4 82.7%
- 10
Llama 3.1-70B ↓3 81.8%
4K
22 models we track have a score here.
- 1 GPT-4o Nov 2024 ↑1 95.7%
- 2 GPT-4.1 ↓1 91.7%
- 3
Llama 3.3 70B Instruct 81.5%
- 4
Gemini 2.5 Flash May 2025 79.4%
- 5
Gemini 2.0 Flash Feb 2025 ↑1 77.9%
- 6 Claude 3.5 Sonnet (October 2024) ↑3 77.6%
- 7
Gemini 1.5 Pro Sep 2024 ↓2 75.4%
- 8
Llama 3.1-405B 74.5%
- 9
Mistral Large 2 Nov 2024 ↑2 73.3%
- 10
Llama 3.1-70B ↓3 71.2%
8K
22 models we track have a score here.
- 1 GPT-4o Nov 2024 ↑1 89.2%
- 2 GPT-4.1 ↓1 87.5%
- 3
Llama 3.3 70B Instruct 72.1%
- 4
Gemini 2.5 Flash May 2025 68.2%
- 5
Gemini 2.0 Flash Feb 2025 ↑1 64.7%
- 6
Gemini 1.5 Pro Sep 2024 ↓1 63.9%
- 7
Llama 3.1-70B 62.7%
- 8 Jamba 1.5 Mini ↑2 62.2%
- 9 Claude 3.5 Sonnet (October 2024) 61.7%
- 10
Llama 3.1-405B ↓2 60.1%
16K
22 models we track have a score here.
- 1 GPT-4.1 84.9%
- 2 GPT-4o Nov 2024 81.6%
- 3
Llama 3.3 70B Instruct 59.5%
- 4
Gemini 2.5 Flash May 2025 57.9%
- 5
Gemini 1.5 Pro Sep 2024 55.5%
- 6 Jamba 1.5 Mini ↑4 52.7%
- 7
Llama 3.1-70B 51.8%
- 8
Llama 3.1-405B 48.4%
- 9
Gemini 2.0 Flash Feb 2025 ↓3 48.2%
- 10 GPT-4.1 mini ↑3 46.2%
32K
22 models we track have a score here.
- 1 GPT-4.1 79.8%
- 2 GPT-4o Nov 2024 69.7%
- 3
Gemini 2.5 Flash May 2025 ↑1 48.4%
- 4
Gemini 1.5 Pro Sep 2024 ↑1 48.2%
- 5 Jamba 1.5 Mini ↑5 43.6%
- 6
Llama 3.1-70B ↑1 43.2%
- 7
Llama 3.3 70B Instruct ↓4 42.7%
- 8
Gemini 2.0 Flash Feb 2025 ↓2 41%
- 9 GPT-4.1 mini ↑4 38.8%
- 10
Llama 3.1-405B ↓2 38%
64K
3 models we track have a score here.
- 1 GPT-4.1 69.7%
- 2 GPT-4o Nov 2024 62.4%
- 3
Gemini 2.0 Flash Feb 2025 ↑3 33%
128K
3 models we track have a score here.
- 1 GPT-4.1 64.7%
- 2 GPT-4o Nov 2024 56%
- 3
Gemini 2.0 Flash Feb 2025 ↑3 16.4%
Everything the board measures
The benchmark’s own leaderboard publishes 14 numbers for each entry: the headline score, 8 parts of the test and 5 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.
- Headline
- Headline score
- Parts
- 1K
- 2K
- 4K
- 8K
- 16K
- 32K
- 64K
- 128K
- Other measures
- Base score
- Base score threshold
- Effective context length below 1K
- Claimed context length
- Effective context length
Nothing matches.
- Headline
- Headline score
- Parts
- 1K
- 2K
- 4K
- 8K
- 16K
- 32K
- 64K
- 128K
- Other measures
- Base score
- Base score threshold
- Effective context length below 1K
- Claimed context length
- Effective context length
Nothing matches.
- Headline
- Headline score
- Parts
- 1K
- 2K
- 4K
- 8K
- 16K
- 32K
- 64K
- 128K
- Other measures
- Base score
- Base score threshold
- Effective context length below 1K
- Claimed context length
- Effective context length
Nothing matches.
- OpenAI
- Meta
- AI21 Labs
- Google DeepMind
- Cohere
- Anthropic
- Mistral AI
- not in our model list
2 models have held number one on the official leaderboard since its release in February 2025
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Official NoLiMa leaderboard
GPT-4o on the official leaderboard passed 85% in November 2024
Models released before it came out already scored that high. All the scores we have, one dot each, so a model tested at several settings appears more than once.
Source: Official NoLiMa leaderboard
No lab model card reports it yet
We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark.
More in Long context
- MRCR v2 In use Multi-round coreference: retrieve the n-th of several similar requests hidden in a long synthetic conversation, up to 1M tokens.
Muse Spark 1.3 98.5%
- LongBench v2 In use 503 multiple-choice questions over 8K-2M-word contexts (QA, dialogue, code repos, structured data). Accuracy.
Inkling 2 Small 70.6%
- GraphWalks In use A graph is given as an edge list in long context. The model answers BFS or parent queries, scored by F1. Claude Fable 5 99.96%
- OpenAI MRCR v2 In use Models read a long synthetic chat that hides 2, 4 or 8 identical writing requests and must reproduce the response to the i-th one. Scored by mean string match ratio per context bin.
Gemini 3.7 Flash 89%
- CL-bench In use Model must learn new knowledge from a supplied long context (rules, procedures, data) and solve tasks. Strict LLM-verified rubrics. GPT-5.4 27.9%
- AA-LCR 1.1 In use Models answer 100 questions that need reasoning across sets of real documents of about 100K tokens. An LLM equality checker with a fixed system prompt compares each answer with the key.
Step 5 Preview 88.3%
Data audit
All 8 checks pass. Every benchmark
Catalog record 2 pass
- Pass Task access All tasks are public.
- Pass Confidence Checked against a primary source.
Scores 2 pass 3 notes
- Pass Independent runs Scores from the official leaderboard (22 entries).
- Pass Models scored 22 models we track.
- Note Newest score The newest came 18 months ago, in May 2025, for Gemini 2.5 Flash. That’s expected for a saturated test.
- Note Frontier models None of the top 10 has a score, which is fine for a retired test. The strongest tested is Gemini 2.5 Flash (#116).
- Note Headroom Saturated. The best is 89.1%, past 85% since November 2024.
Leaderboard import 3 pass
- Pass Importer We read the board on github.com: 22 rows for models we track at the last read.
- Pass Last read November 24th, 2026.
- Pass Read worked The last read worked.
Consistency 1 pass 2 notes
- Note Lab claims No model has both a lab number and an independent run.
- Pass Known issues No published audit found problems.
- Note Epoch AI review Epoch AI hasn’t reviewed it.