ToolMem: Enhancing Multimodal Agents with Learnable Tool Capability Memory

Yunzhong Xiao, Yangmin Li, Hewei Wang, Yunlong Tang, Zora Zhiruo WangarXiv 2025 · DOI

Introduction

In the rapidly evolving landscape of artificial intelligence, agents have transitioned from executing simple scripts to orchestrating complex workflows using "neural tools"—large language models (LLMs) and vision-language models (VLMs). However, unlike deterministic software (e.g., a calculator), neural tools exhibit "fuzzy" behavior. Their performance is often unpredictable; for instance, a specific image generator might excel at natural landscapes but fail to render legible text.

Current multimodal agents typically rely on static, human-authored tool descriptions. This approach lacks the ability to learn from experience. When an agent encounters a tool failure, it often repeats the same mistake in future tasks because it lacks a mechanism to "snowball" its understanding of tool-specific expertise. To address this, researchers from Carnegie Mellon and the University of Rochester have introduced ToolMem, a framework that equips agents with a structured, learnable memory of tool capabilities.

The ToolMem Framework

ToolMem enables agents to build a persistent knowledge base of what their tools can and cannot do by summarizing past successes and failures into a structured taxonomy.

ToolMem enables agents to select the best tool by retrieving past performance insights (ToolMem) for specific capabilities like text rendering and lifestyle themes.

The framework operates through three core mechanisms:

  1. Structured Memory Initialization: Memory is organized by proficiency levels (e.g., Proficient at, Good at, Bad at, Weak at), facilitating targeted retrieval and systematic updates.
  2. Memory Induction: Instead of storing raw interaction logs, which are often noisy, ToolMem uses an LLM to "induce" concise capability entries. It distills the task, tool output, and feedback into high-level lessons.
  3. Dynamic Update Mechanism: Utilizing a Retrieval-Augmented Generation (RAG) approach, the system refines existing memory entries. When new experiences occur, it retrieves similar past entries and merges or expands them to maintain a compact and relevant knowledge base.

At inference time, when presented with a new query, the agent retrieves the most relevant "lessons learned" to ground its tool selection and performance prediction.

Evaluation and Datasets

The researchers evaluated ToolMem across two primary benchmarks:

  • BIGGEN BENCH: A diverse text-generation benchmark involving 103 different language models across tasks like reasoning and safety.
  • GENAI-BENCH: A text-to-image benchmark focusing on compositional challenges such as spatial relations, object counting, and negation.

The study utilized a variety of tools, including proprietary models (GPT-3.5, Claude 3, DALL-E 3, Midjourney 6) and open-source alternatives (Llama 3 70B, Qwen, SDXL, Gemma).

Key Results

The integration of learnable memory yielded significant quantitative improvements:

  • Performance Prediction: ToolMem-augmented agents predicted tool performance with 14.8% higher accuracy in text and 28.7% higher accuracy in multimodal scenarios compared to baseline agents.
  • Optimal Tool Selection: Accuracy in choosing the best tool among multiple candidates increased by 21% on GENAI-BENCH and 24% on BIGGEN BENCH.
  • Ranking Fidelity: The Pearson correlation between predicted scores and actual output quality improved by 76.7% for text-generation tools.

A critical insight from the study is that summarized capability entries are superior to raw "few-shot" examples. Raw examples often introduce distracting noise, whereas ToolMem’s distilled "intuitions" provide the clarity needed for better decision-making. Furthermore, memory augmentation was particularly effective for mid-tier models, helping them narrow the performance gap with top-tier closed models by "knowing their own limits."

Conclusion and Future Work

ToolMem demonstrates that a structured, learnable memory is essential for reliable multimodal agents. However, the framework currently depends on the quality of the feedback mechanism (e.g., an LLM-as-a-judge) and assumes that tool capabilities remain static over time. Future research will likely focus on "human-in-the-loop" memory consolidation and adapting to versioned tools that evolve. By enabling agents to learn from their own history, ToolMem paves the way for more autonomous and dependable AI systems.

Summary updated

BibTeX
@misc{xiao2025toolmem,
  author = {Yunzhong Xiao and Yangmin Li and Hewei Wang and Yunlong Tang and Zora Zhiruo Wang},
  title = {{ToolMem: Enhancing Multimodal Agents with Learnable Tool Capability Memory}},
  year = {2025},
  eprint = {2510.06664},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.06664},
}
Figure