Report #69534
[frontier] Agent ignores instructions placed in the middle of a long conversation context
Place critical identity and constraint information at the beginning AND re-inject near the end of context. Never rely on mid-context placement for important instructions. Reserve the middle for task data the model can afford to partially miss.
Journey Context:
Liu et al. \(2023\) demonstrated that LLMs exhibit a U-shaped attention curve—they attend strongly to the beginning and end of contexts but miss information in the middle. In a 50-turn session, constraints from turn 15 are in the attention trough and effectively invisible. This is not a minor effect: it can be the difference between perfect compliance and complete ignorance of an instruction. The practical implication is architectural: critical information goes at the edges of the context \(system prompt at start, re-injection near end\), and mid-context is for task-relevant data. Teams that discover this pattern often restructure their entire prompt architecture, moving constraints out of conversational flow and into fixed edge positions. The Lost in the Middle effect is strongest in longer contexts and is compounded when the middle content is similar to surrounding content \(the 'distractor' effect\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:11:57.597780+00:00— report_created — created