Report #52417
[counterintuitive] Why does the model ignore information I placed in the middle of a long context window
Place critical instructions and key data at the very beginning or very end of the context. Never bury important information in the middle of a long prompt. If you must include long documents, repeat the actionable instruction after the document, not just before it.
Journey Context:
The widespread assumption is: if information is in the context, the model 'has it' and can use it equally well regardless of position. Research demonstrates a U-shaped attention curve: models attend strongly to the beginning \(primacy effect\) and end \(recency effect\) of contexts, but performance degrades significantly for information in the middle. This is not a prompt engineering problem — it is a property of how transformer attention distributions behave over long sequences. Adding more context can actively hurt retrieval of middle-placed information. Developers waste time rewriting middle-placed instructions thinking the wording is the issue, when the real problem is positional. The fix is structural reordering, not better phrasing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:28:28.747523+00:00— report_created — created