By Shuguang Chen
An AI agent that serves the same user, or works on the same task, across many sessions needs memory of what earlier sessions established: a preference the user expressed weeks ago, or the state of an unfinished task. Today’s memory systems treat that memory as a record of the past. They extract facts or write summaries from each session, retrieve the memory most similar to an incoming request, and are evaluated by fidelity: how completely the memory covers the conversation, and how often the retrieved memory contains the right evidence.
Read the full paper, Leto: Utility-Centric Agent Memory ->
The value of memory lies in whether it improves the agent’s response, and fidelity does not ensure that. Suppose a user asks an agent to “book me a hotel near the workshop venue.” Memory holds the workshop’s dates and venue, the user’s late flight, and the fact that the user uses a wheelchair. A system that selects memory by how closely it matches the request serves the first two, and the agent books a hotel near the venue that can only be entered by stairs. Nothing was forgotten. The wheelchair was in memory the whole time, and it was not served because the request never mentioned it. With that one memory in its context, the agent books an accessible hotel instead (Figure 1).

Figure 1. One request served from the same memory under two criteria. Selection by fidelity serves the memory that matches the request. Selection by utility serves the memory the response needs. Hotel names and details are fictional.
The example shows one of two gaps that fidelity leaves open. A memory system makes two decisions, what to memorize when a conversation ends and what to serve when a request arrives, and it makes both before the response exists.
Both gaps arise for the same reason: a memory decision has to anticipate what a response will need before anyone can see its effect. So we treat each decision as a prediction. When a conversation ends, the system predicts which information will matter for future requests. When a request arrives, it predicts which memory the response needs. The request is evidence of that need, but it doesn’t spell it out. We call the value of memory to the response its utility, and we measure it by outcomes: the same agent on the same request, once with the served memory and once with no memory. Utility is positive when memory turns a failure into a success, zero when the memory is redundant or goes unused, and negative when it misleads the agent.
Our new paper, “Leto: Utility-Centric Agent Memory,” presents Leto, a memory system built on this view. Evaluated against six memory systems on five benchmarks, Leto achieves the best overall performance among them in personalization, long-horizon tasks, and long-context understanding.
Leto manages memory through three mechanisms (Figure 2). Each one responds to something the system cannot know at the moment it has to decide.

Figure 2. The Leto workflow. Memory indexing stores atomic facts as keys to their retained sources. Memory replay composes the profile and the task state that give context across requests. The utility loop gives each new memory a forecast, serves retrieved memory whose index meets a threshold, and updates the index from feedback.
At the end of a conversation, nobody knows what future requests will ask for. A memory system can err in two directions, and the costs are not the same. Keeping something that is never needed costs storage. Discarding a detail hurts every later request that depends on it.
Leto therefore keeps every conversation and builds an index over it. The index is made of atomic facts: single, self-contained claims such as “the user’s flight lands at 9 pm on September 13.” Most memory systems serve the extracted facts themselves. Leto uses each fact as a key, and the value it points to is the fact’s source, the span of messages it was extracted from. When a fact matches a request, the agent receives the source with its original wording and qualifications, so information the fact left out is still there. When a new fact revises an older one, the older one is superseded but not deleted, and the index can tell what holds now from what once held.
Retrieval works from the request, so it can miss whatever the request leaves unstated. Between conversations, Leto re-reads what its store holds and composes a standing context that the next conversation starts with. It has two parts. A user profile carries what holds for the user regardless of the request, such as standing preferences, constraints, and instructions on how to act. For a long-running task, a task state shows where the task stands and how it got there.
Both are written before any request arrives, so they reach the agent whether or not the request resembles them. In the hotel example, this is how “uses a wheelchair” gets into the context.
Whether a memory will help can’t be observed when it is written. Leto gives each memory a utility index: an initial forecast, revised by the outcome observed each time the memory is served. The outcomes come from signals in the conversation itself. A confirmation, or a use of the memory, counts as positive, and a correction counts as negative. These are the interaction signals from our earlier work (arXiv:2604.00356). A retrieved memory is served only if its index meets a threshold, and when more is retrieved than the context budget allows, memory with a higher index goes first. A low index never deletes anything. Keeping a memory and serving it are separate decisions, so priorities can change as feedback accumulates.
We compared Leto with six memory systems (Mem0, LangMem, Hindsight, Letta, Zep, and Memobase) on five benchmarks in three scenarios. We also ran three baselines: the agent with no memory, the agent with the complete history in its context, and retrieval-augmented generation (RAG) over the raw history. The scenarios differ in how much the request says about what it needs.
Personalization requires an agent to apply information from earlier interactions even when the current request leaves it unstated.
PrefEval tests whether an agent follows a preference the user stated earlier in the conversation. Leto reaches 60.5% accuracy, 16.3 percentage points above the strongest compared memory system, which reaches 44.2% (Figure 3). RAG reaches 13.1%, and the agent with the complete history reaches 3.3%. Leto serves the preference in a short user profile written without reading the request, so it reaches the agent even when the request looks nothing like it.
PERMA evaluates personalization across a user’s longer interaction history. Leto completes 76.5% of tasks averaged over the benchmark’s two conditions, 3.1 points above the strongest compared memory system. The advantage is clearest on tasks that draw on preferences from several domains (7.6 points). It does not extend to single-domain tasks, where RAG completes the most. PERMA also reports a fidelity score for the served context, and that score does not track task performance: on multi-domain tasks, the system with the highest fidelity score has the lowest accuracy and the lowest completion rate.

Figure 3. Personalization results for Leto and the six compared memory systems, in percent. Higher is better. PrefEval: preference-following accuracy. PERMA: task completion averaged over the benchmark’s two conditions. The PERMA columns start at 58.6, not at zero.
Long-horizon tasks require an agent to carry information from earlier interactions into later decisions.
MemoryArena chains interdependent subtasks across shopping, travel, search, math, and physics, so a later step depends on what earlier steps established. Averaged over the five environments, Leto achieves the highest progress score (32.0%) and success rate (18.3%) of all the methods we compared, baselines included (Figure 4). Its gain over the agent with no memory grows as a chain gets longer: the request for a later step rarely restates what the earlier ones settled, and Leto supplies it as the task state at the start of every round.

Figure 4. Long-horizon results on MemoryArena for Leto and the six compared memory systems, in percent. Higher is better. Progress score and success rate are averaged equally over the five environments. The columns start at 21.3 and 1.0, not at zero.
Long-context understanding requires an agent to recover details and relationships from earlier conversations.
LoCoMo and LongMemEval ask questions about details in long conversation histories. These questions usually say what they are looking for, so plain retrieval over the raw history is already effective. Leto has the highest accuracy among the memory systems on both benchmarks, 71.8% on LoCoMo and 73.2% on LongMemEval (Figure 5). Against RAG, it is 2.8 points lower on LoCoMo and 6.8 points higher on LongMemEval, and RAG retrieves about 1.7 times and eight times as many tokens to get there.

Figure 5. Long-context results for Leto and the six compared memory systems: answer accuracy on LoCoMo and LongMemEval, in percent. Higher is better.
Leto leads the compared memory systems in three scenarios that place different demands on memory, which suggests that utility is a general criterion for memory design. We hope this view moves memory systems from how faithfully they record the past toward how much they improve what the agent does next.
We plan to learn utility forecasts from feedback, so that memory systems better anticipate what future interactions will need. We also want to understand how to attribute an outcome to an individual memory, and how utility transfers from one agent to another.
For the full method, results, and analysis, read the paper.
If you’re interested in learning when managed memory for AI agents becomes available at DigitalOcean, sign up here.
Shuguang Chen and Salman Paracha. “Leto: Utility-Centric Agent Memory.” arXiv:2611.33005, 2026. https://arxiv.org/abs/2611.33005

Kushal Walia

Braden Bassingthwaite