Long-lived Web assistants require effective memory and retrieval mechanisms to access information from past user interactions. While these capabilities can be learned through specialized policies, it remains unclear whether specialists trained independently in different environments can be effectively composed without joint optimization. This paper investigates compositional transfer through policy distillation. Memory-writing and sequential retrieval policies are independently distilled from frontier-model action trajectories into 3B models and combined with a fixed answer generator without downstream training. On a LongMemEval-based benchmark, the distilled composition achieves 73.1% accuracy, compared with 36.2% for a composition of existing RL-trained specialists, and also outperforms the evaluated RL-trained compositions on PersonaMem-v2. Component ablations reveal that improvements in individual policies depend on their composition, highlighting the importance of cross-specialist compatibility. Further task-specific adaptation improves accuracy to 75.2% on LongMemEval through RL and 48.9% on PersonaMem-v2 through supervised distillation. These findings demonstrate the effectiveness of independent specialist distillation for modular multi-agent systems. Source code and datasets of teacher-generated memory-editing and retrieval trajectories are released to facilitate reproducibility and further research.
Figures & tables
Figure 1. Accuracy–time trade-off on LongMemEval with a fixed GPT-6.1-sol reader. Without downstream adaptation, independently distilled specialists outperform the evaluated RL-trained compositions and approach GLM-5.3-Flash accuracy with 12.4 × less processing time. The dashed line marks GPT-6.1-sol accuracy.
Figure 2. Overview of specialist training, composition, and task-specific adaptation. (I) Independent distillation: teacher memory edits and Wikipedia search trajectories supervise separate writer and retriever specialists. (II) Composition: the writer builds persistent memory from conversational sessions; the retriever searches it iteratively, and the reader answers from retrieved records. (III) Task adaptation: SFT adapts the writer first, then the retriever on teacher search traces over the resulting memory. RL updates only the retriever, keeping the writer and memory fixed. The reader remains fixed in both settings.
Figure 3. Standalone accuracy of retrieval (left) and memory (right) specialists before composition.
LongMemEval
PersonaMem-v2
Memory
Retrieval
Accuracy (%)
Searches
Memory (KB)
Time (min)
Accuracy (%)
Searches
Memory (KB)
Time (min)
Specialists
Qwen2.5-3B
Qwen2.5-3B
4.69
2.43
13.1
23.1
33.02
1.34
10.9
7.4
Mem- α
Search-R1
36.23
1.40
175.4
13.0
32.79
0.86
307.4
42.6
Mem- α
CoRAG
32.63
3.95
175.4
12.6
36.49
3.91
307.4
42.6
Distilled
Distilled
73.11
2.84
94.3
7.5
40.31
3.36
232.9
27.8
Table 1. Dialogue performance on LongMemEval and PersonaMem-v2. All systems use a GPT-6.1-sol reader. Searches is the mean number of search calls per question, averaged over users. Memory is the mean stored text per user in KB. Time is the mean total time per user for memory construction and retrieval, in minutes, excluding the reader. Local runs use one A100, or eight for GLM. Bold and underlined values indicate the best and second-best accuracy among non-frontier systems.
Configuration
Accuracy (%)
Searches
BM25 top-3
59.22
1.00
BM25 top-12
65.16
1.00
Qwen2.5-3B
64.92
2.12
Distilled & Adapted (RL)
75.17
3.35
Table 2. Sequential retrieval versus single-query BM25 on LongMemEval. All configurations use the same memory and reader.
Figure 4. Component impact ablation. Single-specialist replacements show uneven transfer, whereas pairing both distilled specialists maximizes accuracy on both benchmarks.
Figure 5. Effect of the memory source used for retriever SFT. Both variants use the adapted student writer at evaluation.
Long-term memory lets LLM agents personalize, stay consistent, and reuse what worked before. Parametric memories need training, consolidation can lose details for good, and keeping every record leaves a growing store to search. We present MIRIX-2.0, a multi-agent memory system designed to be practical, accurate, and efficient at once. It is the most accurate of the compared systems on four of five QA benchmarks. It reaches 91.4% on LoCoMo and 72.6% on LongMemEval-S, where it leads the strongest baseline by 14.3 points, and with AutoDream disabled it gains 31.0 and 22.0 points over HyperMem on single-hop and multi-hop document QA. As procedural memory, it yields the highest mean success among the compared memory methods on ALFWorld and WebShop and reaches 49.2% on MetaClaw-Bench, against 44.0% for MetaClaw's skill library. Six typed memory agents keep complete records as the system of record, and a provenance hypergraph indexes episodic and semantic records with n-ary frames that cite their rows. Retrieval runs under explicit budgets, so the evidence a question inspects does not grow with the history. AutoDream merges duplicate anchors outside the write path without rewriting any record, and it distills task sessions into skills. With AutoDream disabled, MIRIX-2.0 answers faster than HyperMem on all five timed benchmarks. It needs no fine-tuning, runs with closed and open models, and its code is public.
Memory systems are becoming a core component of LLM agents, but constructing and maintaining memory remains expensive because it relies on repeated calls to large proprietary language models. This cost creates a major barrier to deploying memory-enhanced agents at scale. In this paper, we present Pseudo Self-Distillation (PSD), a framework that enables small language models (SLMs) to construct hierarchical memory representations by distilling behavior from a strong black-box oracle through a multi-stage training pipeline. Standard distillation methods require access to teacher logits or hidden states, which closed models do not expose. Unlike conventional self-distillation settings, where supervision is derived from a model's own predictions, sampled rollouts, or aggregated outputs, PSD enables a single-model distillation setup while channeling external oracle knowledge through the prompt. PSD uses a single small model in two roles: a teacher that sees a privileged prompt containing the oracle's answer as reference context, and a student that sees only the task prompt. The student learns to reproduce the teacher's output distribution, absorbing oracle-guided behavior into its own weights without accessing the oracle's internals. On LoCoMo, PSD-trained Qwen3-0.6B, 1.7B, and 4B match or exceed GPT-4.1-mini on downstream retrieval at a fraction of the deployment cost, with off-policy PSD achieving the strongest results across most conditions. We further show that this memory-construction capability transfers out-of-distribution to LongMemEval, despite the students being trained exclusively on LoCoMo with no exposure to LongMemEval data.
Agent memory enables large language model (LLM) agents to reuse past experiences without updating their parameters. However, semantic similarity alone does not guarantee memory usefulness: downstream performance depends on how memories are selected and presented to the agent. We propose MemComposer, a memory composer that jointly examines the current query and retrieved candidates to decide which experiences to include, how many to select, and how to order them. We train the composer using Experience Policy Optimization (ExPO), a GRPO-based framework that evaluates assembled memory contexts through complete agent interactions and uses task-success feedback to optimize the assembly policy. Across three τ2-bench domains with two frozen executors, MemComposer outperforms the strongest baseline for each executor while reducing average memory-token usage by 16.9% and 4.9%, respectively. The learned policy also transfers to unseen domains, executors, and memory banks, and benefits from memories generated by stronger models without further training. These results demonstrate the value of learning query-specific memory assembly using downstream task feedback.