ToolMem: Enhancing Multimodal Agents with Learnable Tool Capability Memory
Yunzhong Xiao, Yangmin Li, Hewei Wang, Yunlong Tang, Zora Zhiruo Wang
TL;DR
ToolMem introduces a learnable, structured memory of tool capabilities for multimodal agents to cope with uncertain neural-tool outputs. It initializes a proficiency-based memory taxonomy, learns from interaction experiences via a memory-induction module, and updates memories through retrieval-augmented generation. In extensive experiments on text-generation and text-to-image tasks, ToolMem significantly improves tool performance prediction (e.g., MAE/RMSE reductions and higher Pearson correlations) and enhances tool selection accuracy across diverse tool pairs, especially when capability gaps are large. This memory-guided approach enables adaptive, data-driven tool choices without retraining, advancing robust multi-tool reasoning in dynamic generative settings.
Abstract
Agents utilizing tools powered by large language models (LLMs) or vision-language models (VLMs) have demonstrated remarkable progress in diverse tasks across text and visual modalities. Unlike traditional tools such as calculators, which give deterministic outputs, neural tools perform uncertainly across task scenarios. While different tools for a task may excel in varied scenarios, existing agents typically rely on fixed tools, thus limiting the flexibility in selecting the most suitable tool for specific tasks. In contrast, humans snowball their understanding of the capabilities of different tools by interacting with them, and apply this knowledge to select the optimal tool when solving a future task. To build agents that similarly benefit from this process, we propose ToolMem that enables agents to develop memories of tool capabilities from previous interactions, by summarizing their strengths and weaknesses and storing them in memory; at inference, the agent can retrieve relevant entries from ToolMem, and select the best tool to solve individual tasks more accurately. We evaluate ToolMem on learning varied text generation and text-to-image generation neural tools. Compared to no-memory, generic agents, we find ToolMem-augmented agents predict tool performance 14.8% and 28.7% more accurately across text and multimodal generation scenarios. Moreover, ToolMem facilitates optimal tool selection among multiple choices by 21% and 24% absolute increases in respective scenarios.
