• Blog
  • Docs
  • Careers
  • Get Support
  • Contact Sales
DigitalOcean
  • Browse all products

    Featured AI Products

    Managed Agents

    Run AI agents in the cloud with governed tool access

    New

    Learning Services

    Improve agents and models with evidence

    New

    Data Services

    Store, retrieve, and surface the context you need

    Inference Engine

    Run inference at scale with policy-driven routing

    Model Library

    Discover, compare, and evaluate AI models

    GPU Droplets

    GPU-powered virtual machines to build and run AI apps

    Browse all products
  • See all solutions

    AI/ML

    AI HR Knowledge Assistant

    Deploy AI tools developed for Human Resources

    AI Training GPU

    Accelerate model training with dedicated GPU infrastructure

    AI Recommendation Engine

    Build tools to personalize user experiences

    Multimodal AI

    Run models that process multiple data types

    GPU Clusters

    GPUs clustered together for large-scale tasks

    GPU Inference

    Serve models efficiently with optimized GPU compute

  • Community

    Blog

    The latest product releases and insights from our experts

    The Wave

    Content to level up your business

    Tutorials

    Our extensive library of technical articles

    Q&A

    Answers to your cloud and coding questions

    YouTube

    Educational content and tutorials

    Visit DigitalOcean's Community Site
  • Become a Partner

    About Partner Pod

    Discounts, revenue share, and more for businesses

    AI Partner Program

    Boost your AI business

    DigitalOcean Startups

    Resources and support to propel your startup

    Partners Directory

    Current list of DigitalOcean Partners

    Customer Stories

    Customers growing on DigitalOcean

    Need help? Talk to an expert
    Become a Partner
  • Pricing
  • Log in
  • Sign up
  • Log in
  • Sign up

Company

AboutLeadershipBlogCareersCustomersPartnersReferral ProgramAffiliate ProgramPressLegalPrivacy PolicySecurityBrandInvestor Relations

Products

Managed AgentsKnowledge BasesGPU DropletsBare Metal GPUsInference EngineData ServicesLearning ServicesInsightsEvaluationsModel LibraryMicroVMsDropletsKubernetesFunctionsApp PlatformLoad BalancersManaged DatabasesSpacesBlock StorageNetwork File StorageAPIUptimeSecrets ManagerCloud Security Posture Management (CSPM)Identity and Access Management (IAM)CloudwaysView all Products

Resources

Community TutorialsCommunity Q&AWrite for DOnationsCurrents ResearchDigitalOcean StartupsWavemakers ProgramCompass CouncilOpen SourceNewsletter SignupMarketplacePricingPricing CalculatorDocumentationRelease NotesCode of ConductShop Swag

Solutions

AI Training GPUGPU InferenceVPS HostingWebsite HostingVPNDocker HostingNode.js HostingWeb Mobile AppsWordPress HostingVirtual MachinesView all Solutions

Contact

SupportSalesReport AbuseSystem StatusShare your ideas
AboutLeadershipBlogCareersCustomersPartnersReferral ProgramAffiliate ProgramPressLegalPrivacy PolicySecurityBrandInvestor Relations
Managed AgentsKnowledge BasesGPU DropletsBare Metal GPUsInference EngineData ServicesLearning ServicesInsightsEvaluationsModel LibraryMicroVMsDropletsKubernetesFunctionsApp PlatformLoad BalancersManaged DatabasesSpacesBlock StorageNetwork File StorageAPIUptimeSecrets ManagerCloud Security Posture Management (CSPM)Identity and Access Management (IAM)CloudwaysView all Products
Community TutorialsCommunity Q&AWrite for DOnationsCurrents ResearchDigitalOcean StartupsWavemakers ProgramCompass CouncilOpen SourceNewsletter SignupMarketplacePricingPricing CalculatorDocumentationRelease NotesCode of ConductShop Swag
AI Training GPUGPU InferenceVPS HostingWebsite HostingVPNDocker HostingNode.js HostingWeb Mobile AppsWordPress HostingVirtual MachinesView all Solutions
SupportSalesReport AbuseSystem StatusShare your ideas

© 2026 DigitalOcean, LLC.

Sitemap
Engineering

Memory as Prediction

author

By Shuguang Chen

  • Updated: December 1, 2026
  • 7 min read
<- Back to blog home

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 ->

A faithful memory can still fail

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

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.

  • The memorization gap. What is memorized limits what can be served later. A summary can leave out a detail whose relevance only appears weeks afterward.
  • The serving gap. Memory is selected by how closely it matches the request, but people rarely restate their standing preferences, so the memory that would change the response may not rank highly. This is the gap in the hotel example.

Memory as a prediction problem

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.

How Leto works

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

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.

Memory indexing: keep the conversation, index it by facts

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.

Memory replay: compose context before the request arrives

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.

The utility loop: learn from what happened

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.

What we found

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

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

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

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

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

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

Figure 5. Long-context results for Leto and the six compared memory systems: answer accuracy on LoCoMo and LongMemEval, in percent. Higher is better.

Looking ahead

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.

Reference

Shuguang Chen and Salman Paracha. “Leto: Utility-Centric Agent Memory.” arXiv:2611.33005, 2026. https://arxiv.org/abs/2611.33005

About the author

Shuguang Chen
Shuguang Chen
Author

Share

  • Engineering

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
Sign up

Related Articles

Technical Deep Dive: Inside Ideogram's Rebuild—Serving a Flagship Model with DigitalOcean and AMD
Engineering

Technical Deep Dive: Inside Ideogram's Rebuild—Serving a Flagship Model with DigitalOcean and AMD

Maddy Osman
  • December 2, 2026
  • 7 min read

Read more

Benchmarking v5 Droplets: what the numbers say across real workloads
GPU

Benchmarking v5 Droplets: what the numbers say across real workloads

Debabrata Subudhiray

  • November 19, 2026
  • 4 min read

Read more

Build an On-Call Team of AI Agents on DigitalOcean MicroVMs
Engineering

Build an On-Call Team of AI Agents on DigitalOcean MicroVMs

Kushal Walia

  • November 18, 2026
  • 18 min read

Read more