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

Hugging Face Daily Papers Papers

Summary

The paper introduces Agent Memory Distillation (AMD), a training-free framework that transfers structured knowledge from a large teacher agent to a small student agent via hierarchical memory, improving tool-use benchmark performance by 3.4–27.2 percentage points.

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.
Original Article
View Cached Full Text

Cached at: 08/11/26, 06:19 AM

Paper page - Agent Memory Distillation: Empowering Small LLM Agents with Hierarchical Teacher Memory

Source: https://huggingface.co/papers/2608.07169

Abstract

Memorysystemshaveshownpromiseforimprovingagentperformance,buttheirpotentialremainslargelyunexploredforsmalllanguagemodels,whichstruggletogeneratesufficientsuccessfultrajectoriesontheirown.WeproposeAgentMemoryDistillation(AMD),atraining-freeframeworkthattransfersstructuredknowledgefromalargeteacheragenttoasmallstudentagentthroughhierarchicalmemory.AMDconstructsthreecomplementarymemorytypesfromsuccessfulteachertrajectories:Workflowmemoryencodestask-levelstrategies,Subtaskmemoryprovidesconcretebehavioralexamplesatanintermediategranularity,andFunctionmemorycapturesper-functioncallingconventionsandcommonpitfalls.WorkflowandSubtaskmemoriesareinjectedproactivelyatthestartofeachtask,whileFunctionmemoryisretrievedreactivelyupontool-callingerrors.WeevaluateAMDonthreetool-usebenchmarksusingfourstudentmodels(4B-8Bparameters)withGPT-5-miniastheteacher,achievingaverageaccuracygainsof27.2%p,11.2%p,and3.4%ponAppWorld,BFCLV3,andToolSandbox,whileconsistentlyoutperformingexistingmemory-basedbaselines.FurtheranalysisshowsthatSubtaskmemorycontributesthelargestgains,teachereffectivenessdependsonbothteachercapabilityandstudentcompatibility,and4B-sizedstudentsbenefitmostfromAMD.

View arXiv pageView PDFProject pageGitHub0Add to collection

Get this paper in your agent:

hf papers read 2608\.07169

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2608.07169 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2608.07169 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2608.07169 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

DuoMem: Towards Capable On-Device Memory Agents via Dual-Space Distillation

Hugging Face Daily Papers

DuoMem is a dual-space distillation framework that transfers procedural problem-solving from large language models to compact student models via context-space and parameter-space distillation, achieving high performance with minimal additional parameters and improved inference speed. It boosts a 4B model from 4.3% to 77.9% task success rate on ALFWorld.

More Memory, Worse Agents: Error Reproduction and Anti-Persistence in LLM Agents

Hugging Face Daily Papers

This paper shows that accumulating more memory can degrade LLM agent performance through error reproduction, where stored mistakes regenerate themselves via new abstractions. It proposes Anti-Persistence, a method that keeps trajectories but reconstructs task-specific guidance on demand, achieving higher success and lower LLM-call cost across benchmarks.

AdMem: Advanced Memory for Task-solving Agents

arXiv cs.AI

This paper introduces AdMem, a unified memory framework for LLM-based agents that integrates semantic, episodic, and procedural memory with a bi-level short-term and long-term store, using a multi-agent architecture for automatic memory generation and adaptive retrieval. Experiments show improved robustness and success on long multi-turn tasks.