1. Home
  2. Turing Post

Nov 24, 2025

Why AI forgets when you overload it

Kevin Hou

9 min → 1:19

Overview

AI engineers from Google DeepMind, Replit, and Sourcegraph explain why context windows bottleneck large language models and share practical strategies to manage limited memory through sub-agents, semantic search, and smaller tasks.

3 things to know

Yegge: Manage AI memory limits with small tasks

Steve Yegge says developers work around context window limitations by designing workflows with smaller, focused tasks.

More

The set of techniques used by developers to work around the limitations of the context window.

▶ Watch at 8:59

Doubling context quadruples computing cost, Turing Post says

Turing Post notes that because the computing cost of self-attention grows with the square of the number of tokens, doubling the context quadruples the cost and makes very large context windows extremely expensive and slow.

More

The computational cost of the self-attention mechanism increases with the square of the number of tokens (n²).

▶ Watch at 0:44

Turing Post: Passing memory limits makes AI forget

Turing Post explains that an AI model can only remember and process a limited amount of recent conversation and data at one time before exceeding this limit makes it forget earlier information.

More

Exceeding this limit causes the model to forget earlier information.

Also in this episode

Turing Post says transformer models compare all tokens

Turing Post explains that transformer models understand relationships and context through the self-attention mechanism, which compares every single token in the input against every other token.

More

This process is what allows the model to understand relationships and context.

Turing Post says mixing data types compounds context

Turing Post notes that dealing with text, images, and documents at the same time compounds the context problem because each data type adds to the overall size and complexity that needs to be processed.

▶ Watch at 3:36

Quotes

“Give it a small task, let it get it done, kill it. That's how you manage it.”

▶ Watch at 8:59

“I think code has gotten to the point where the tasks that people expect agents to do have gotten like very complex.”

▶ Watch at 3:36

“And the compute does not double with this attention. It quadruples.”

▶ Watch at 0:44

Full summary

Episode Overview

  • The episode explains the concept of the "context window" in large language models, using an analogy of a desk that collapses when overloaded to illustrate the problem of limited memory.
  • It identifies the self-attention mechanism in transformer models as the primary bottleneck, explaining that its computational cost grows quadratically, not linearly, with more information.
  • The host interviews several AI engineers from companies like Google DeepMind, Replit, and Sourcegraph to discuss why the context window is such a significant challenge in practice.
  • The experts share various strategies for managing the context window, ranging from breaking down tasks and using sub-agents to employing semantic search and simply "killing" the process after each small task.

Key Concepts

  • Context Window: The limited amount of recent conversational history and data that an AI model can "remember" and process at any given time. Exceeding this limit causes the model to forget earlier information.
  • Self-Attention Mechanism: The core architectural component of transformer models where every token in the input must be compared to every other token. This process is what allows the model to understand relationships and context.
  • Quadratic Complexity: The computational cost of the self-attention mechanism increases with the square of the number of tokens (n²). Doubling the context doesn't just double the cost; it quadruples it, making very large context windows extremely expensive and slow.
  • Context Management: The set of techniques used by developers to work around the limitations of the context window. This includes methods like summarizing conversations, using retrieval-augmented generation (RAG), and designing agentic workflows with smaller, focused tasks.
  • Multimodal Context: The problem is compounded when dealing with multiple types of data (text, images, documents) simultaneously, as each modality adds to the overall size and complexity of the context that needs to be processed.

Quotes

  • At 00:44 - "And the compute does not double with this attention. It quadruples." - The speaker explains the core technical reason why large context windows are so problematic, highlighting the inefficient scaling of the self-attention mechanism.
  • At 03:36 - "I think code has gotten to the point where the tasks that people expect agents to do have gotten like very complex." - Kevin Hou from Google DeepMind discusses how the increasing complexity of user demands, such as working with large codebases and multiple file types, is pushing the limits of what current context windows can handle.
  • At 08:59 - "Give it a small task, let it get it done, kill it. That's how you manage it." - Steve Yegge from Sourcegraph offers a blunt and practical solution to the context window problem, advocating for breaking work into discrete, disposable tasks rather than trying to maintain a long, continuous conversation.

Takeaways

  • To improve AI performance and reduce costs, keep the context window as small and focused as possible, providing only the most relevant information for the immediate task.
  • For complex problems, break them down into a series of smaller, independent sub-tasks. This approach, often used in agentic systems, prevents the context from becoming overloaded and confused.
  • Instead of feeding entire documents or codebases into the prompt, use tools like semantic search or Retrieval-Augmented Generation (RAG) to find and include only the specific snippets of information the model needs to complete its task.

Watch the full episode 9 min

Read along with the audio summary

Why does an artificial intelligence model act like a desk that collapses when you overload it? In this episode, which came out on November 24, 2025, the host interviews AI engineers from companies like Google DeepMind, Replit, and Sourcegraph. You will learn why AI memory is so limited and how developers work around it to improve performance and reduce costs.

Understanding the context window keeps your AI from forgetting. Push an AI model past its memory limit, and earlier parts of your conversation simply vanish. That limit is the context window, and overloading it makes the whole desk collapse.

How an AI actually understands relationships in your data. Transformer models rely on a core architectural component called the self attention mechanism. To understand context, the model has to compare every single token of input to every other token.

That constant comparison creates a massive math problem: doubling your input quadruples the cost. Because the computational cost grows with the square of the number of tokens, making context windows very large becomes extremely slow and expensive.

Smart context management helps you beat these memory limits. Instead of maintaining one long conversation, Steve Yegge from Sourcegraph suggests you give the AI a small task, let it finish, and then kill the process. To improve AI performance and reduce costs in your own work, break complex problems into smaller independent sub tasks and provide only the most relevant snippets instead of entire documents.

Adding images and documents makes the memory problem even harder. Kevin Hou from Google DeepMind notes that the coding tasks people expect agents to do have gotten very complex. Dealing with text, images, and documents simultaneously compounds the problem, because every new data type adds to the overall size and complexity of the context being processed.

To get the best performance and lowest cost from AI, keep the context window small, focused, and limited to only the most relevant snippets for the immediate task. Give it a small task, let it get it done, kill it. That's how you manage it.

More from Turing Post

Related Episodes