Your AI Agent Isn’t Dumb. It Has ADHD

· Source: Artificial Intelligence in Plain English - Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Robotics & Autonomous Systems · Depth: Intermediate, medium

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

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

Topics

Best for: AI Engineer, Machine Learning Engineer, Prompt Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence in Plain English - Medium.