Report #40889
[counterintuitive] model ignores information in middle of long context
Place critical information at the beginning or end of the context window. Use RAG to retrieve only the most relevant chunks rather than stuffing entire documents. When long context is unavoidable, front-load or append the key instructions and data — never bury them in the middle.
Journey Context:
The widespread assumption is that if information fits within the context window, the model can effectively use it — making 'more context' always better. Liu et al. \(2023\) demonstrated a U-shaped performance curve: models effectively use information at the beginning and end of their context but fail to retrieve information from the middle, even in contexts well within their stated limits. This 'lost in the middle' effect means adding more context can actively hurt performance by pushing relevant information into the dead zone. The practical failure mode is developers stuffing 100k tokens of documentation into context and wondering why the model ignores a critical detail buried at position 50k. The fix is counterintuitive: less context, strategically placed, outperforms more context. Use retrieval to find the 2-3 most relevant passages rather than including entire documents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:06:07.665115+00:00— report_created — created