Your AI Agent Isn’t Dumb. It Has ADHD
Summary
A 2023 Stanford study, "Lost in the Middle," and a 2025 follow-up by Laban et al. reveal that Large Language Models (LLMs) experience significant performance degradation, up to 30%, when critical information is placed in the middle of their context window. This "context drift" or "Lost in the Middle" effect causes LLMs to forget early instructions in multi-turn conversations, leading to 65% of enterprise AI failures in 2025 attributed to this issue during multi-step reasoning. The phenomenon is likened to ADHD executive dysfunction, where Transformer attention exhibits a recency bias, weighting tokens at the start and end of the context window more heavily. The core problem is not model intelligence but signal density and information architecture, where too much prose and loosely ranked instructions bury critical information.
Key takeaway
For AI Engineers designing agentic systems, you should proactively manage context windows to prevent instruction drift. Implement the "Echo of Prompt" technique by re-injecting core constraints, break complex workflows into discrete, checkpointed stages, and ruthlessly trim conversation history. These architectural changes will significantly improve workflow reliability and prevent your AI agents from losing track of instructions in multi-turn interactions.
Key insights
LLMs forget instructions mid-conversation due to context window attention bias, causing significant performance drops.
Principles
- Transformer attention has recency bias.
- Signal density impacts instruction recall.
- Context window is a limited resource.
Method
Three effective fixes include re-injecting condensed instructions before major decision points, breaking workflows into checkpointed stages, and aggressively trimming or summarizing conversation history to keep critical information at the edges.
In practice
- Re-inject core constraints as "Echo of Prompt".
- Implement "Checkpoint-and-Reload" for stages.
- Aggressively trim conversation history.
Topics
- Context Drift
- Lost in the Middle Effect
- Transformer Attention
- LLM Instruction Following
- Agentic AI Workflows
Best for: AI Engineer, Machine Learning Engineer, Prompt Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence in Plain English - Medium.