Search papers, labs, and topics across Lattice.
This paper introduces Agent Memory Distillation (AMD), a novel framework that enhances the performance of small language models by transferring structured knowledge from a larger teacher agent through hierarchical memory systems. By constructing three types of memory鈥擶orkflow, Subtask, and Function鈥攆rom successful teacher trajectories, AMD enables small agents to proactively and reactively access critical knowledge, resulting in significant performance improvements on tool-use benchmarks. The evaluation demonstrates that AMD achieves average accuracy gains of 27.2%, 11.2%, and 3.4% across three different benchmarks, with Subtask memory being the most impactful component.
Small LLMs can achieve up to 27.2% accuracy gains by leveraging hierarchical memory from larger teacher agents, reshaping how we think about agent training.
Memory systems have shown promise for improving agent performance, but their potential remains largely unexplored for small language models, which struggle to generate sufficient successful trajectories on their own. We propose Agent Memory Distillation (AMD), a training-free framework that transfers structured knowledge from a large teacher agent to a small student agent through hierarchical memory. AMD constructs three complementary memory types from successful teacher trajectories: Workflow memory encodes task-level strategies, Subtask memory provides concrete behavioral examples at an intermediate granularity, and Function memory captures per-function calling conventions and common pitfalls. Workflow and Subtask memories are injected proactively at the start of each task, while Function memory is retrieved reactively upon tool-calling errors. We evaluate AMD on three tool-use benchmarks using four student models (4B-8B parameters) with GPT-5-mini as the teacher, achieving average accuracy gains of 27.2%p, 11.2%p, and 3.4%p on AppWorld, BFCL V3, and ToolSandbox, while consistently outperforming existing memory-based baselines. Further analysis shows that Subtask memory contributes the largest gains, teacher effectiveness depends on both teacher capability and student compatibility, and 4B-sized students benefit most from AMD.