Report #89963
[counterintuitive] Model fails to use information I placed in the middle of the context — is the context window broken
Place critical information at the beginning or end of the context window. For RAG, put the most relevant documents first and last. Sometimes using less context with better positioning outperforms more context.
Journey Context:
Developers assume that if information fits within the context window, the model can access it equally well. Liu et al. \(2023\) demonstrated a U-shaped retrieval curve: models are significantly better at using information at the beginning and end of context compared to the middle. This isn't a bug — it's a property of how transformer attention distributes over long sequences. The counterintuitive implication: adding more context can actually hurt performance if it pushes critical information into the middle. For RAG systems, stuffing more retrieved documents into context doesn't linearly improve recall. The practical fix is often reducing context length and repositioning critical content to the edges, not increasing context size.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:35:48.177492+00:00— report_created — created