Large language model (LLM) agents rely on external memory to retain and reuse information across interactions. Existing memory systems treat memory as a record of the past and evaluate it by fidelity to the conversation. However, the value of memory lies in whether it improves the agent's response. A memory system decides what to memorize and what to serve before that response exists, and fidelity checks neither decision against it. Faithful memory can therefore fail to improve the response. We instead view memory as a prediction problem and present \textbf{\leto{}}, a memory system for LLM agents that focuses on the utility of memory to the future rather than on its fidelity to the past. Because future requests are unknown, \leto{} preserves access to conversation details through memory indexing, allowing information to remain available through its sources. When a request arrives, memory replay draws on this index to anticipate and supply the context the agent needs beyond what the request explicitly states. The utility of the served context remains uncertain until the response is generated, motivating a utility loop that uses response outcomes to refine future memory selection. We evaluate our system against six memory systems on five benchmarks across three scenarios. In personalization, it outperforms the strongest compared memory system by 16.3 percentage points in accuracy on PrefEval and by 3.1 points in task completion on PERMA. For long-horizon tasks, it achieves the best overall performance on MemoryArena averaged over five environments with a gain that increases with the chain depth. In long-context understanding, it is on par with retrieval over the raw history while serving fewer context tokens.
Figures & tables
Figure 1: An example of a request served from the same memory store under different 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.
Figure 2: Leto workflow. Memory indexing stores atomic facts as keys to their retained source. Memory replay composes the profile and task state that give context across requests. The utility loop gives each new memory a forecast u0(m) and serves retrieved memory whose index satisfies u≥τ , then updates the index from feedback.
PrefEval
PERMA C-S
PERMA C-M
System
Unaware
Halluc.
Incons.
Unhelp.
Acc.
MCQ
Comp.
MS
MCQ
Comp.
MS
No History
No Memory
74.00
24.20
0.00
0.40
1.40
53.66
74.23
1.00
56.69
60.51
1.00
Full History
Standalone (gpt-4o-mini)
65.40
31.00
0.20
0.10
3.30
78.01
81.56
1.17
71.34
63.69
1.62
RAG
54.20
31.70
1.00
0.00
13.10
70.45
83.69
1.87
68.15
61.78
1.73
Table 1: Personalization results. PrefEval after ten filler turns (%): four error types and accuracy (Acc.). Unaware: preference-unaware violation; Halluc.: hallucination; Incons.: inconsistency; Unhelp.: unhelpful response. Accuracy: the share of personalized responses, which satisfy the preference without violating or inventing one. PERMA type-3 (%): C-S / C-M: clean single- / multi-domain; Comp.: completion; MS: memory score (1–4), PERMA’s fidelity measure of the served context against the gold preferences. Bold: best value among the memory systems, the lowest for the four error types.
Figure 3: Preference availability and use on PrefEval. A preference counts as detected when at least 40% of its content words occur in the served context. Blue and gray circles show preference-following rates with and without detection, respectively.
Environment
Overall
System
Shopping
Travel
Search
Math
Physics
PS
SR
No History
No Memory
44.24 / 0.00
0.00 / 0.00
3.26 / 8.14
24.81 / 15.00
44.75 / 30.00
23.41
10.63
Full History
Standalone (gpt-5-mini)
53.94 / 0.67
2.30 / 0.00
3.03 / 3.17
31.07 / 20.00
61.39 / 50.00
30.34
14.77
RAG
49.69 / 0.00
1.50 / 0.00
5.85 / 13.57
33.07 / 22.50
57.85 / 45.00
29.59
16.21
Table 2: MemoryArena progress score (PS) and success rate (SR) in percent, as PS / SR per environment. Overall columns average the five environments equally. SR measures full-chain completion except in search, where it measures final-question success. Bold: best value among the memory systems.
Figure 4: Pass-rate gains over No Memory by chain position in MemoryArena shopping and search. N below the axis counts the chains reaching each position.
LoCoMo
LongMemEval
System
Tokens
Recall
Acc.
Tokens
Recall
Acc.
No History
No Memory
–
–
4.55
–
–
6.40
Full History
Standalone
27,834
–
74.42
111,569
–
51.60
RAG
1,999
–
74.61
9,813
–
66.40
Table 3: Long-context understanding on LoCoMo and LongMemEval S . Tokens: average tokens of retrieved memory per question (the full history for Standalone , which uses gpt-4o-mini). Recall: evidence recall (%), measured for the memory systems. Acc.: accuracy (%). Bold: best value among the memory systems.
Table 5: Useful rates against No Memory : the share of each benchmark’s graded units that the system passes and No Memory fails (%). Shopping uses step success. Standalone places the full history in the agent’s context (gpt-4o-mini; gpt-5-mini on MemoryArena). C-S / C-M: clean single- / multi-domain; Comp.: completion; Bold: highest value per row among the memory systems.
Full History
Compared Memory Systems
Our System
Benchmark
Outcome
Standalone
RAG
Mem0
LangMem
Hindsight
Letta
Zep
Memobase
Leto
PERMA
C-S MCQ
3.31
2.60
2.84
2.13
3.78
10.64
4.02
3.07
1.65
C-S Comp.
6.62
5.67
6.62
5.67
6.86
10.64
8.04
5.91
6.38
C-M MCQ
7.01
6.37
4.46
5.73
5.10
14.65
7.64
5.73
3.82
C-M Comp.
10.83
14.01
12.74
10.19
14.65
17.20
10.83
14.01
6.37
PrefEval
Accuracy
0.60
0.80
0.60
0.60
0.20
0.00
0.80
0.40
0.20
Appendix
Table 6: Harmful rates against No Memory : the share of each benchmark’s graded units that No Memory passes and the system fails (%). Shopping uses step success. Standalone places the full history in the agent’s context (gpt-4o-mini; gpt-5-mini on MemoryArena). C-S / C-M: clean single- / multi-domain; Comp.: completion; Bold: lowest value per row among the memory systems.
Category
Overall
System
Single-hop
Multi-hop
Temporal
Open-domain
Tokens
Accuracy
F1
No History
No Memory
5.59
2.48
1.56
11.46
–
4.55
2.99
Full History
Standalone (gpt-4o-mini)
86.33
72.70
48.29
62.50
27,834
74.42
46.52
RAG
82.05
62.41
72.27
53.12
1,999
74.61
54.32
Appendix
Table 7: LoCoMo results (%). Tokens: average tokens of retrieved memory per question (the full history for Standalone ). Bold: best value among the memory systems.
Category
Overall
System
SS user
SS assistant
SS preference
Multi- session
Knowledge update
Temporal reasoning
Abstention
Tokens
Accuracy
No History
No Memory
8.57
3.57
0.00
9.02
7.69
4.51
100.00
–
6.40
Full History
Standalone (gpt-4o-mini)
65.71
85.71
13.33
38.35
66.67
42.86
66.67
111,569
51.60
RAG
90.00
100.00
20.00
56.39
69.23
58.65
80.00
9,813
66.40
Appendix
Table 8: LongMemEval S results (%). The 30 abstention questions also count within their question types. SS: single-session. Tokens: average tokens of retrieved memory per question (the full history for Standalone ). Bold: best value among the memory systems.
Figure 5: Answer accuracy by evidence-recall band. Each cell shows its number of questions; hatched cells contain fewer than ten.