← Back to Paper Radar

Agent Memory Distillation: Empowering Small LLM Agents with Hierarchical Teacher Memory

Taeil Kim, Kangsan Kim, Sung Ju Hwang
Conference on Empirical Methods in Natural Language Processing | 2026

Reading guide · Based on sections of the original paper

The authors propose AMD, a training-free method in which a large teacher agent (GPT-5-mini) builds three tiers of memory from its successful tool-use trajectories: task-level workflow prose, subtask-level code examples, and per-function examples retrieved when a call fails. Small 4B–8B student agents then use this memory, which the authors argue overcomes the capability gap that limits naive memory transfer.

Why read this

This is useful for practitioners running small open models on API- or function-calling agents who want teacher-derived gains without fine-tuning, and who need to judge how much of the headline improvement survives when memory comes from tasks other than the ones being evaluated.

What the authors found

  • Across four students (Qwen3-4B/8B, Gemma4-E4B, Llama3.1-8B), the authors report average absolute gains over zero-shot of 27.2 points on AppWorld (168 tasks), 11.2 on BFCL V3 multi-turn base (200 tasks) and 3.4 on ToolSandbox (129 scenarios). Each result is the mean of two runs. The ReasoningBank, MemP and SASM baselines were reported only for Qwen3-4B and Gemma4-E4B, and they were inconsistent, sometimes falling below zero-shot. AMD vs. Baselines
  • When memory-construction and evaluation tasks are kept disjoint (Qwen3-4B only), the full configuration still beats zero-shot on every benchmark. The gains are smaller than in the main setting: AppWorld reaches 41.07% (7:3 cross-split) and 46.43% (self-excluded retrieval), against 49.40% in the main experiments. BFCL V3 reaches about 31%, against 38.50%. Results
  • In the ablation, subtask memory added to workflow memory gives the largest increment, for example +25.0 points for Qwen3-4B on AppWorld. On AppWorld, subtask memory written as prose instead of code drops accuracy from 49.40% to 23.21%. 5.1 Ablation on Memory Components

Main limitation

The headline results, including students matching or surpassing the teacher, use teacher memory built from the same benchmark tasks the students are evaluated on. The disjoint tests that address this cover only Qwen3-4B and show reduced gains. The authors also acknowledge three further limits: memory is frozen offline, evaluation covers only structured text tool-use benchmarks, and the best teacher depends on student compatibility. B.3 Robustness of Distilled Memory under Disjoint Evaluation

Where to start

B.4 Robustness of Distilled Memory across Repeated Runs · Tables 5 and 6 give the five-run variance and the per-benchmark disjoint-evaluation numbers. These are the evidence for whether the gains transfer to unseen tasks.

Abstract

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.

Generated automatically from paper sections on 2026-11-28.