Report #102340
[counterintuitive] LLM misses facts buried in the middle of a long context window
Do not rely on a giant stuffed prompt. Use retrieval \(RAG\), chunk documents, place the most critical instructions and facts at the start and end, and explicitly re-query for middle content rather than assuming recall.
Journey Context:
Developers often assume a larger context window means 'fit the whole repo or database and let the model find it.' Liu et al. showed that attention has a U-shaped position bias: recall is high at the beginning and end and falls off for middle content. This is an attention-architecture bias, not a prompt-quality problem; it persists in long-context models and is only partially mitigated by training.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:23:01.998838+00:00— report_created — created