Reproduce “Distilling LLM Agent into Small Models with Retrieval and Code Tools” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Minki Kang, Jongwon Jeong, Seanie Lee, Jaewoong Cho, Sung Ju Hwang

Researchers from KAIST, University of Wisconsin-Madison, and KRAFTON developed Agent Distillation, a framework that transfers advanced tool-using and interactive reasoning capabilities from large language model agents to small language models. This approach enables sLMs to achieve performance comparable to much larger models on complex factual and mathematical tasks.

Key insights

  • Distilling interactive, tool-augmented reasoning patterns rather than static reasoning traces allows sLMs to overcome their internal memory limitations and dynamically leverage external knowledge and computation.
  • The quality of teacher-generated trajectories is critical, and guiding the teacher's initial thought with a CoT-style prefix significantly improves the efficacy of the distilled agentic behavior.
  • Enhancing test-time robustness through techniques like sampling and consistency checks for actions (sag) is essential for small models to reliably interact with external tools and mitigate generation errors.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.