Reproduce “Memento: Fine-tuning LLM Agents without Fine-tuning LLMs” 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

Huichi Zhou, Yihang Chen, Siyuan Guo, Xue Yan, Kin Hei Lee, Zihan Wang, Ka Yiu Lee, Guchun Zhang and 3 more

Memento lets deep-research agents use earlier task outcomes without changing the base language model’s weights. Its planner retrieves prior cases, while a learned parametric retriever uses success feedback to select useful references. With the planner and executor held fixed, case-based reasoning raises weighted-average F1 from 59.9 to 66.6 and PM from 72.2 to 80.4 on DeepResearcher, in these evaluations.

Key insights

  • Low-cost continual adaptation for LLM agents is achievable by learning to effectively retrieve and reuse past cases from an evolving memory.
  • Formalizing case-based reasoning within an M-MDP and optimizing case selection with soft Q-learning offers a principled non-parametric continual learning approach.
  • A small, carefully selected set of high-quality retrieved cases is more beneficial than a large quantity, highlighting the importance of memory curation for performance.

Summary by alphaXiv.

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