Long Context LLMs Put To The Test
Digital information technology concept. Cybersecurity and protection system from online crime threats. Data Analytics or Data Science. Binary code polygons connected on dark blue background.
Long context window is one of the most hyped features for modern LLMs. Vendors advertise 128k, 200k, even 1M-token windows, but a big context number on the spec sheet does not guarantee the model can retrieve facts buried hundreds of pages back. Many models suffer from “lost in the middle” syndrome: information near the start and end of the file is easy to recall, while content in the middle gets forgotten.
We ran a controlled blind test to measure true recall, not just whether the model can accept a large text input.
Test Setup
- Test corpus: A 112,000-token custom document bundle combining technical manuals, legal clauses, meeting transcripts, product specs, and scattered unique hidden Easter-egg facts
- Hidden checkpoints: 15 unique facts planted at different positions: early section, middle section, late section
- Evaluation metrics: ✅ Correct recall of exact values, names, dates, clause numbers ⚠️ Partial or approximate answers ❌ Hallucinated facts, “I don’t know” when the fact exists
- Prompt rule: No summaries, no chunking, no RAG. The full document was loaded as one single context.
- Scoring: Recall percentage across all 15 hidden checkpoints
Comparison Table
表格
| Model | Advertised Context | Measured Recall Rate | Lost-in-Middle Severity | Local / Cloud | Best Fit |
|---|---|---|---|---|---|
| Claude 3.7 Sonnet | 200k tokens | 92% | Low | Cloud | Contracts, long legal & technical docs |
| GPT-4o | 128k tokens | 83% | Moderate | Cloud | General research, mixed document sets |
| Gemini Advanced (Gemini 2.5 Pro) | 1M tokens | 81% | Moderate | Cloud | Very large books, multi-file dumps |
| Qwen2.5 72B Instruct | 128k tokens | 78% | Moderate | Local GGUF | Self-hosted document review |
| Llama 3.1 70B Instruct | 128k tokens | 74% | High | Local GGUF | Budget local long-context jobs |
| Mistral Large 2 | 128k tokens | 71% | High | Cloud | Fast bulk summarization |
Individual Breakdown
1. Claude 3.7 Sonnet — Long Context Winner
Claude 3.7 Sonnet dominated our recall test. It had the weakest “lost in the middle” effect out of all models we tried. It reliably pulled exact numbers, specific clause wording, and minor throwaway details from the center of the huge document stack.
Pros: Excellent deep retrieval, clean citation back to sections, handles dense legal and technical prose, low hallucination rate on lookup tasks. Cons: Expensive per-token cost for massive inputs; no local version. Best for: Contract review, audit documents, lengthy research papers, compliance work. Our top pick when you need to trust deep recall.
2. GPT-4o
GPT-4o’s 128k window performed solidly, though middle-section recall dropped noticeably compared to Claude. It excels at synthesizing and comparing information across different parts of the text, even if it occasionally misremembers precise numeric values.
Pros: Great multimodal pairing, fast inference, strong reasoning alongside document lookup. Cons: Middle-region facts are the weak spot; struggles with highly granular lookup tasks. Best for: Research synthesis, market report analysis, creative manuscript review.
3. Gemini 2.5 Pro (Gemini Advanced)
Gemini’s headline 1M-token window sounds impressive, but our test shows raw window size is not everything. It can ingest enormous files, but recall accuracy degrades steadily as you move away from the start and end of the context. Pros: Can accept extremely large single uploads, good for combining dozens of separate documents into one prompt. Cons: Inconsistent deep recall; prone to skipping subtle details buried deep in the middle. Best for: Broad overviews and high-level takeaways from massive archives, not precision fact checking.
4. Qwen2.5 72B Instruct (Local)
Qwen2.5 72B is the best local option for long context. At Q4_K_M quantization it can run on high-end consumer GPUs, and its recall is respectable for a self-hosted model. It is a strong choice if you cannot send sensitive documents to cloud APIs.
Pros: Fully local, no external data sharing, strong multilingual support, open weights. Cons: Slower token speed than cloud models, middle-section dropoff is clear. Best for: Private internal documents, sensitive company notes where cloud upload is forbidden.
5. Llama 3.1 70B Instruct
Llama 3.1 70B supports 128k tokens, but its lost-in-middle bias is pronounced. It works well for skimming, outlining, and extracting main themes, but we would not trust it for precise fact retrieval from deep within long files. Pros: Huge community, lots of fine-tunes available, flexible self-hosting. Cons: Not reliable for detail-critical lookup work. Best for: Summarization, extracting key themes, first-pass document triage.
6. Mistral Large 2
Mistral Large 2 is fast and cheap, but it had the lowest recall in our lineup. It is optimized for quick summaries rather than deep forensic lookup. Pros: Low pricing, fast generation. Cons: Frequent missed details; not recommended if you need exact fact retrieval. Best for: Quick high-level summaries only.
Key Testing Rules
- We avoided RAG entirely. This test measured native context retention built into the model.
- All documents were plain text, no images embedded. Multimodal long-context performance would be a separate test.
- We used the same retrieval-style prompt for every run: “Find this specific detail and quote the exact sentence.”
- We repeated each checkpoint three times to rule out random variance.
Important Long Context Myths Debunked
- Bigger window ≠ better memory. Gemini’s 1M-token window can hold more text, but its ability to find middle details is not better than Claude’s smaller 200k window.
- “Lost in the middle” is real. Nearly all LLMs prioritize content at the beginning and end of the context. This is the biggest limitation of native long context.
- Long context is expensive. Token costs add up fast. For many workflows, RAG is cheaper and more reliable than dumping everything into a single prompt.
- Local long-context models need heavy hardware. Even 70B quantized models demand lots of VRAM and system RAM offload, which slows generation.
Final Verdict
- Best overall for precise deep recall: Claude 3.7 Sonnet
- Best local privacy-focused long context pick: Qwen2.5 72B Instruct
- Broad overview of massive archives: Gemini 2.5 Pro
- Avoid relying on Llama 3.1 70B or Mistral Large 2 for precision fact checking deep in large documents.
Practical tip: If your priority is reliable lookup, pair long-context LLMs with RAG instead of relying purely on native context retention.