Report #76670
[counterintuitive] Model ignores information I provided in the middle of a long context — needs better prompt?
Place critical instructions and key information at the very beginning or very end of the context window. For long contexts, use targeted retrieval to surface only relevant sections rather than dumping entire documents. Restructure so nothing important is buried in the middle.
Journey Context:
The common belief is that providing more context is always better — if the information is in the prompt, the model will find and use it. Liu et al. \(2023\) demonstrated that LLMs exhibit a U-shaped performance curve for information retrieval from long contexts. Information at the beginning \(primacy effect\) and end \(recency effect\) is reliably found, but information in the middle is effectively invisible. This is a property of how transformer attention distributes weight across positions, not a bug. Adding more context beyond what is needed does not linearly improve performance — it actively hurts by diluting attention to relevant information. The common practice of appending full codebases or long documents as context is counterproductive beyond a few thousand tokens. The fix is not better prompting but better information placement and context curation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:17:00.139012+00:00— report_created — created