Lectures

Why AI Forgets the Middle

1:18:44

Plays from YouTube. Watch on YouTube

Why can an AI model accept a million tokens and still miss the one sentence that decides an answer? The context window tells us what fits, not how reliably a model locates, reconciles and uses evidence.

Follow a fictional spacecraft dossier from a 35% draft rule to a controlling 42% authorization and a 39% battery reading. Learn to derive causal attention, scaled dot-product softmax, rotary positional embeddings (RoPE), the cost of dense attention, and the memory required for million-token KV caches. See what FlashAttention, grouped-query attention, positional interpolation, sliding windows, eviction, and retrieval actually change.

Then examine why Needle-in-a-Haystack is not the same as long-document understanding. We connect Lost in the Middle, RULER, NoLiMa, HELMET and LongBench v2 to controlled experimental design, evidence-based scoring and practical remedies. The Helios-9 archive, every arithmetic example and every schematic are original; illustrative diagrams are never presented as measured model accuracy.

The central lesson: accepted context length, effective retrieval and grounded reasoning are three distinct capabilities. This feature is intended for curious programmers, machine-learning practitioners and anyone who wants to understand the real engineering and evaluation behind long-context AI.