Writing
Long Context Is Not Memory
Gemini 1.5 makes a million tokens usable. A larger working set is not a system that decides what should survive the session.
Writing
Gemini 1.5 makes a million tokens usable. A larger working set is not a system that decides what should survive the session.
Notes
Google's Gemini 1.5 announcement made one number hard to ignore: one million tokens of context. The model ships with a standard 128K context window, while a limited group of developers and enterprise customers can test up to 1M tokens in private preview. Google says the model can find an inserted piece of information 99% of the time in a one-million-token "needle in a haystack" test.
That is a large step for working with codebases, long documents, video and mixed media. But I think the more useful distinction is what it does not solve.
A million-token context window is not the same thing as memory.
It gives a model a much larger working set. Memory is a system for deciding what should survive, how it should be stored, when it should be updated, and how it should return later. Those are different engineering problems.
It is easy to describe a long context window as memory because the model can "remember" something from much earlier in the prompt. Google itself uses that language carefully, describing long context as helping a model recall information during a session.
The phrase "during a session" matters.
Context is input state. If I place a design document, codebase and chat history into a prompt, the model can reason over that material while it remains inside the active context. If the next session does not contain the same material, there is no guarantee that the model has retained it. Nothing about a larger context window automatically creates a durable record.
Persistent memory needs at least three extra operations: write, select and retrieve. In a real system, it needs deletion, conflict handling, versioning and some idea of relevance as well.
This is closer to a database or storage hierarchy than to a larger prompt.
The easiest way to see the distinction is to separate retrieval from attention.
Retrieval-augmented generation puts an external search step in front of the model. A retriever selects a small set of documents or passages from a larger corpus, then sends those results into the model. The model never needs to see the whole corpus at once. The retrieval layer makes a relevance decision before generation begins.
A long-context model changes that balance. Instead of filtering aggressively before inference, we can place far more source material directly into the context and let the model resolve relevance inside its own computation.
Gemini 1.5 makes that approach much more practical. Google reports that 1.5 Pro can process around 700,000 words, an hour of video, 11 hours of audio, or large codebases inside a single prompt. That means fewer artificial boundaries between chunks of a project.
But "the model can see it" and "the model will use it correctly" are still separate claims.
Research published before Gemini 1.5 already showed why. The 2023 paper Lost in the Middle found that long-context language models could become less reliable depending on where relevant information appeared. Performance was often strongest when the needed information was near the beginning or end of the input, and weaker when it appeared in the middle.
Gemini 1.5's reported needle-retrieval results suggest a major improvement on this type of access. Yet needle retrieval is a narrow test: one piece of information is placed among distractors and the model is asked to recover it. Real project context is messier. It contains duplicated requirements, obsolete decisions, conflicting versions, half-finished notes and information that was once relevant but no longer is.
That creates what I would call context pollution. A bigger window reduces the need to throw information away, but it increases the amount of information the model must discriminate between.
The engineering problem moves from "How do I fit enough context?" to "What deserves to occupy the model's attention?"
The most interesting work may happen one layer above the model.
A useful memory system needs a policy for what becomes durable. A conversation contains many facts, but only a small subset should survive for future work. Some facts expire. Some should be attached to a project, not a person. Some should be replaced when a newer version exists. Some should never be stored at all.
Long context has no built-in answer to these questions. It only increases how much state can be presented at once.
MemGPT, published in 2023, is interesting here because it treats the problem more like an operating system. Instead of assuming the model should hold everything in one context, it proposes multiple memory tiers and moves information between them. The model gets a constrained active context while older or less relevant information can live in external storage and return when needed.
That architecture feels closer to where production systems need to go.
For me, the useful mental model is not "context versus retrieval" as competing approaches. It is a memory hierarchy:
A one-million-token window makes the working-memory tier much larger. It does not remove the other tiers.
This distinction matters more when AI is connected to real creative and technical workflows.
Take a Blender or game-development project. There may be asset naming rules, shader conventions, render settings, engine constraints, previous technical decisions, bug history, reference images and automation scripts. With a huge context window, it becomes tempting to send the entire project history into every request.
I would resist that design.
The better system is likely to keep durable project state outside the model, retrieve the parts related to the current task, then use long context when the task genuinely benefits from broad visibility. For example, reviewing a large codebase or comparing several versions of a production document may justify a wide context. Remembering that a project uses a specific coordinate convention or export rule should not require resending months of history.
This matters for cost and latency, but the larger issue is control. External memory can be inspected, edited, versioned and tested. A giant prompt is harder to reason about as a system boundary.
For founders building AI products, I would treat memory as infrastructure rather than a model feature. Store durable facts explicitly. Keep provenance. Track which memory was retrieved for a response. Separate user preferences from project state. Give old information a way to expire or be replaced.
Long context makes all of this easier because retrieval can be less brittle. We can fetch larger, more coherent blocks instead of slicing everything into tiny chunks. But it does not make memory architecture optional.
Context windows will probably keep growing. The value is obvious: fewer chunking artifacts, better codebase-level reasoning, longer multimodal inputs and richer in-context learning.
I do not expect that growth to eliminate retrieval or persistent storage. I expect the opposite: larger contexts will make the boundaries between storage, retrieval and inference more explicit.
As models become capable of consuming much larger working sets, application developers will have to decide what enters that set and why. The useful systems will probably combine long context with persistent, structured memory rather than choosing one or the other.
There is a useful analogy with 3D production. More VRAM lets me keep more geometry and textures available to the renderer, but it does not replace asset management. Capacity reduces one constraint. It does not decide which asset is current, which version is approved, or how the pipeline should reconstruct a scene tomorrow.
I think AI systems will end up with a similar separation.
The context window will become a larger workspace. Memory will remain the layer that decides what survives beyond it.
More