When people ask for an AI with memory, they usually mean something quite ordinary.
Remember that I hate red-eye flights. Keep track of why our team rejected a design. Notice that my priorities changed last month. Do not ask me to explain the same project every Monday.
Today’s AI systems can approximate this. They save transcripts, extract facts, generate summaries, search a vector database, and paste whatever they find into the next prompt.
That is useful. But I would not call the problem solved.
It is closer to giving a very smart person a filing cabinet and hoping they pull out the right folder.
Memory is not the same as storage
A database can hold every conversation you have ever had with a machine. That does not mean the machine has a good memory.
Persistent memory has several jobs.
It has to decide what is worth keeping. It has to represent that information correctly. It has to find it at the right moment. It has to revise old memories when circumstances change. It has to forget things that are no longer valid or no longer permitted. And, finally, it has to use memory to make a better decision.
Most current systems are reasonably good at storing information.
Some are good at retrieving an explicitly requested fact.
The rest is much less settled.
Suppose I tell an assistant, “I may move to Lisbon next year.”
What should it store?
That I am moving to Lisbon? That I am considering a move? That I am interested in Lisbon? Should the memory expire after six months? Should the assistant bring it up when I ask about tax planning? When I book a vacation? When I mention that I am staying in California?
The original sentence is simple. The memory decision is not.
This is the first thing I would keep in mind: memory is a system property, not a feature of the language model alone.
Where memory lives today
There are four main places we can put machine memory. Each solves a different part of the problem.
The context window
The context window is the model’s working memory. It contains the text, tool results, and instructions available during the current inference.
Longer context windows help. They let a model reread more of the conversation. But a large context window is not persistent memory. Once the application stops sending that text, the model no longer has access to it.
There is another problem. Models do not use long contexts evenly. The “Lost in the Middle” experiments found that performance often falls when relevant information appears in the middle of a long input, even when the entire input fits inside the advertised context window. A fact being present is not the same as the model reliably using it.
A giant prompt is a large desk covered with papers. It is not an organized memory.
External memory
This is the most practical approach today.
The application stores information outside the model in a database, document store, vector index, graph, or event log. Before the model responds, a retrieval system selects a small set of relevant memories and adds them to the prompt.
MemGPT framed this as virtual memory: the context window acts like RAM, while external storage acts like disk. Later systems became more active about organizing the stored material. A-MEM, for example, creates linked notes with contextual descriptions, keywords, and relationships that can change as new memories arrive.
This is where much of the real progress is happening. External memory is editable. It can be inspected. It can have timestamps and permissions. A bad memory can be removed without retraining the whole model.
Those are not small advantages.
Neural memory
Another line of work adds a memory mechanism inside the network itself.
Titans, presented at NeurIPS 2025, combines attention with a neural long-term memory module that learns to retain information from earlier context. The idea is that attention handles precise short-range dependencies, while the neural memory compresses information from much longer sequences.
This is technically interesting. It could make models better at processing continuous streams without repeatedly searching an external database.
But neural memory creates a control problem. It is harder to inspect, harder to correct, and harder to prove that something has been deleted. That may be acceptable for learning patterns in a document stream. I would be more cautious about using it as the only home for private user information.
The model’s weights
We can also put memory into the model through fine-tuning, continued training, model editing, or test-time adaptation.
This creates durable changes. It is a reasonable place to learn a general skill or a stable pattern.
It is usually a poor place to store the fact that one particular user changed jobs.
Weight updates are expensive, difficult to reverse cleanly, and capable of affecting unrelated behavior. Continual-learning research also shows that performance declines after learning new tasks do not always mean the old knowledge is gone; sometimes the update has disrupted how the model accesses or expresses that knowledge. Either way, casually modifying the model after every conversation is risky.
A useful architecture should separate personal facts, task history, and learned skills rather than pushing all three into the same mechanism.
The state of the art looks better on a quiz than at work
Memory benchmarks have improved. So have the systems.
LongMemEval tests information extraction, reasoning across sessions, temporal reasoning, updates, and abstention. Its authors found that commercial assistants and long-context models suffered an accuracy drop of roughly 30 percent as interaction histories grew. They also showed that better indexing, time-aware retrieval, and smaller memory units helped.
More recent systems use temporal graphs, append-only histories, linked events, and multi-step retrieval rather than plain nearest-neighbor search. APEX-MEM, for example, preserves the evolution of information and resolves conflicts at retrieval time instead of simply overwriting old statements. It reports strong results on LoCoMo and LongMemEval.
So the field is moving.
But newer evaluations have exposed a more uncomfortable gap.
MemoryArena found that agents performing very well on existing long-context memory benchmarks could still perform poorly when they had to use earlier experience to guide later actions. AMA-Bench found that current memory systems often miss causal and objective information because they rely too heavily on lossy similarity search. Its proposed system improved over the baselines, but still reached only 57.22 percent accuracy.
That tells us something useful.
We are getting better at answering questions about the past. We are not yet consistently good at learning from the past.
The real gaps
1. Deciding what becomes a memory
Every durable memory begins with a judgment.
Was the statement serious? Temporary? Hypothetical? A joke? Did it come from the user, a tool, another agent, or the model’s own guess?
Many systems let an LLM summarize a conversation and write the result directly into memory. This is convenient, but it creates a dangerous transition.
A hallucination in an ordinary response may disappear after one turn. A hallucination written into memory becomes part of the system’s future state.
A proper memory writer should behave more like a careful editor. It should preserve the source, distinguish observation from inference, assign confidence, mark scope, and keep uncertain claims provisional.
“Carlos is moving to Lisbon” and “Carlos mentioned that he might move to Lisbon” are not equivalent memories.
2. Handling time and contradiction
People change their minds. Projects change direction. Relationships, jobs, addresses, medications, budgets, and preferences all change.
A memory system cannot treat facts as timeless key-value pairs.
Research in 2026 found that memory agents frequently reused invalid memories and struggled to reconcile evolving information. Other work has drawn a useful distinction between a memory’s validity and its visibility. A former address may no longer be valid as the user’s current address, but it should still be visible when the user asks where they lived three years ago.
The clean way to handle this is not to erase history whenever something changes.
Keep an append-only record of events. Build a separate view of what is currently believed to be true. Connect new claims to the facts they supersede. Give each claim a source and a period of validity.
That sounds more like accounting than human memory.
Good. Accounting has spent centuries dealing with revisions, attribution, and audit trails.
3. Retrieving memories that are relevant but not obvious
Vector search retrieves text that resembles the current query.
That is often helpful. It is also crude.
Suppose a user once said, “My father cannot climb stairs,” and months later asks the assistant to plan a family holiday. The new request may contain no words similar to the old statement. Still, the memory matters.
This is sometimes called a cue–trigger gap. The current prompt does not explicitly ask for the memory, yet a capable assistant should understand that the old information constrains the new task. LoCoMo-Plus was created specifically to test this kind of implicit use of goals, values, and user state, and it found that the problem remains difficult for current systems.
Retrieval therefore needs reasoning.
The system may need to infer that booking a hotel involves accessibility, search for relevant constraints, follow links between people and preferences, and check whether those constraints are still current.
That is closer to reconstructing a useful memory than fetching a matching sentence. Graph-based work in 2026 has shown gains from allowing retrieval to change as the model discovers intermediate evidence, rather than committing to a single top-k search at the start.
4. Turning memory into action
A machine can recall a preference and still ignore it.
It may correctly answer, “Your normal hotel budget is $250 per night,” then book a $400 room. It may know that a deployment failed because an API was rate-limited, then repeat the same rollout plan.
That is a memory failure, even though the fact was retrieved.
Mem2ActBench evaluates whether agents use prior information to select tools and fill in action parameters. MemoryArena tests whether experience from earlier sessions changes decisions in later ones. Both point to the same weakness: factual recall does not automatically become competent behavior.
The training signal needs to reward downstream consequences, not just accurate answers about stored text.
5. Knowing what to forget
A useful memory system cannot keep treating every old statement as equally active.
Some information should decay because it was casual and never repeated. Some should be archived because it is no longer current. Some should be removed because the user requested deletion. Some should remain in a private workspace but never cross into a shared one.
Forgetting does not have to mean destroying every historical trace immediately. It can also mean preventing a memory from influencing current decisions.
But the rules must be explicit.
Recent governance-focused benchmarks show that systems that perform well on ordinary question answering are much less reliable when memories are revoked, superseded, restricted in scope, or simply inappropriate to surface.
Perfect recall is not the goal. Controlled influence is.
6. Protecting the memory from attack
Persistent memory creates a new security boundary.
Anything capable of writing to memory can potentially poison future behavior. An attacker does not need to compromise the base model. They may only need to persuade an agent to store a false claim, a hidden instruction, or a misleading summary.
Work on agent memory injection has demonstrated query-only attacks against several production-oriented memory architectures and across tasks including code summarization, clinical support, and web shopping.
This changes how memory writes should be treated.
Writing a durable memory is a privileged operation. The system should know who supplied the information, whether that source was authorized, which agent or user may see it, and whether a more trusted source contradicts it.
In multi-agent systems, this becomes even harder. A fact may be valid for one role, private from another, and superseded by a more authoritative source. Current evaluations show that shared storage alone does not solve routing, provenance, access control, or conflict resolution.
What I would build today
I would not start with a single magical memory module. I would build a memory stack.
First, an evidence log. Every conversation turn, tool result, user correction, and important action would be stored as a timestamped event. The log would preserve the original source rather than only a generated summary.
Second, a memory compiler. A separate process would propose durable memories from those events. It would classify them as preferences, personal facts, task state, episodes, commitments, or procedural lessons. Sensitive or high-impact memories could require confirmation.
Third, a temporal claim graph. The system would store claims rather than pretend every extracted sentence is truth. Each claim would carry its source, timestamp, confidence, scope, and links to the claims it supports or supersedes.
For example:
The user prefers aisle seats.
Source: direct user statement.
Valid since: March 12.
Scope: personal travel.
Confidence: high.
Exceptions: overnight flights, where a window seat was later requested.
That is much more useful than a vector containing the words “aisle seat.”
Fourth, a retrieval planner. The agent would first ask what kind of memory the task requires. Current state? Historical episode? Preference? Prior failure? It could then run several targeted searches, inspect contradictions, and assemble a compact evidence packet.
The model should not receive the entire archive. It should receive the smallest set of memories needed for the decision, with dates and provenance attached.
Fifth, consolidation and retirement. Repeated events could become stable preferences. Similar episodes could be compressed into a higher-level lesson. Weak, unused memories could become less active. Superseded facts would remain available for historical questions but would stop shaping current recommendations.
Sixth, a separate path for skills. Personal facts should remain in an editable store. Reusable procedures could live in versioned prompts, tools, policies, or adapters. Updates to the model itself should happen slowly, after testing, rather than as an automatic side effect of conversation.
Seventh, a visible memory ledger. Users should be able to see what the system believes about them, where each memory came from, when it was used, and why it was considered relevant. They should be able to correct, pin, restrict, or delete it.
Without that, persistent memory becomes invisible personalization. That is hard to trust.
How we should measure it
A memory system should not be judged only by whether it answers questions about an old conversation.
I would track at least these failure modes:
- How often does the system store a claim that was never supported?
- How often does it fail to save something that later matters?
- How often does it retrieve an obsolete fact?
- Does it confuse a possibility with a commitment?
- Can it apply a preference without being explicitly reminded?
- Does memory improve actual task completion?
- Can it explain where a memory came from?
- Does a deletion request remove both the original record and its derived summaries?
- Can information cross user, project, or agent boundaries without permission?
- Can an attacker create a durable false memory?
- How much latency and cost does the memory process add?
The test also needs time.
A ten-turn conversation is not a serious test of persistent memory. The agent should be evaluated across interruptions, changing goals, contradictory updates, failed actions, and long stretches in which a memory is irrelevant before suddenly becoming useful.
That is much closer to how memory earns its value.
Where I think this goes
My bet is that reliable machine memory will arrive first as good systems engineering around mostly stable foundation models.
The foundation model will do the reasoning. An external memory runtime will handle evidence, time, permissions, consolidation, retrieval, and deletion. Neural memory may help compress long streams. Weight updates may help with durable skills. But personal and operational memories will mostly remain outside the model because that is where we can inspect and control them.
This is less elegant than a single model that learns everything continuously.
It is also more sensible.
A machine with flawless recall but poor judgment would be exhausting. A machine that remembers false information forever would be dangerous. And a machine that quietly builds a permanent profile without giving the user control would be hard to justify.
The target is not human-like memory.
It is disciplined memory: selective, temporal, evidence-backed, revisable, secure, and useful in the next decision.
Machines already know how to store the past. The open problem is teaching them how the past should—and should not—shape what they do next.