Report #95594
[research] Failing to use relevant information located in the middle of a long context window, leading to hallucinations
Structure retrieved context to place the most critical information at the very beginning and very end of the prompt. Alternatively, force the model to extract and reason over specific snippets before synthesizing the final answer.
Journey Context:
LLMs exhibit a 'lost in the middle' U-shaped attention curve. They attend strongly to the system prompt, the beginning of the context, and the end of the context, but suffer severe performance degradation for facts located in the middle. Simply increasing context size does not solve factuality; it often dilutes attention. Reordering or chunking is necessary to ensure high-signal data is attended to.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:02:12.316905+00:00— report_created — created