NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Optimizing Agent Tool-Use via Trajectory-based Insight Evolution

Hanchen Qiu, Haojia Zhu, Yifan Meng, Jiahui Jin

NeurIPS page · Open on the map

Category: LLM Agents, Evals & Benchmarks › Tool-Augmented Agent Systems · Type: new method · Keywords: LLM agent tool use, tool documentation evolution, contrastive trajectory generation, insight extraction, agent reliability

Areas: AI Agents › Agent Optimization and Evaluation › Agentic Tool Use; Evaluation & Benchmarks › Agent Capabilities and Memory › Agentic Tool Use; RL for LLMs & Agents › Language Model Agents › Agentic Tool Use

Summary

OpTool is an evolutionary framework that iteratively refines tool documentation to improve LLM agents' tool-use accuracy and task success.

Explained to a 5-year-old

Some computer helpers called LLM agents need to use tools like calculators or maps to do tasks. They get instructions for these tools, but sometimes the instructions are confusing or missing. The paper creates a way for the helpers to look at many times they tried to use tools and learn what went wrong. Then they use what they learned to make the instructions better so they can use the tools more correctly. This helps the helpers finish tasks more often and work even when the tools change a lot.

Explained to a 5-year-old, longer

Imagine a smart robot friend that can talk and help you with things like checking the weather or ordering food. To do these things, it needs to use tools, which are like special functions it can ask to work for it. These tools come with instructions, but sometimes the instructions are unclear or not complete. The paper describes a way for the robot friend to try using the tools many times and remember what happened each time. By looking at all those tries, it can see where it made mistakes and understand what the tool really needs. Then it uses that understanding to improve the instructions, making them clearer and more helpful. This process repeats, getting better and better each time the robot learns from its past attempts. As the instructions get better, the robot can use the tools more accurately and finish tasks without confusion. This also helps when the tools are updated or changed, because the robot can quickly adapt the new instructions. The result is that the robot friend can rely on its tools more often and succeed at more complex jobs. It makes the robot more trustworthy and useful for people who need quick and reliable help. Overall, the method makes tool-using smarter and more dependable for computer helpers.

For a technical reader

OpTool is an evolutionary framework that treats tool documentation as a mutable configuration to improve how LLM agents use external tools. It works in three stages: first, it generates many possible tool-use sequences using contrastive beam search; second, it extracts useful insights from those sequences by assigning credit globally; third, it iteratively refines the documentation based on those insights. By continuously updating the documentation, the system can adapt quickly when tools are updated or when the existing instructions are ambiguous. Experiments across several domains show that OpTool raises tool-call accuracy and overall task success rates compared to static documentation. This approach offers a practical way for engineers to maintain reliable tool integration without extensive manual tuning or large-scale retraining.

Problem

LLM agents often struggle to correctly use external tools when documentation is ambiguous or insufficient, leading to misaligned tool calls and task failures. Existing approaches for improving tool-use are computationally expensive and cannot quickly adapt to frequently updated toolkits.

Method

The approach treats tool documentation as an evolvable configuration and proceeds through three stages: generating diverse tool-use trajectories via contrastive beam search, extracting insights from these trajectories using global credit assignment, and iteratively refining the documentation to address information gaps.

Results

The approach achieves notable improvements in tool call accuracy and task success rates across multiple domains.

Contributions

It introduces an evolutionary framework for automatically refining tool documentation and a method for extracting insights from tool-use trajectories. The paper demonstrates robust performance gains for tool-based LLM agents across multiple domains.

Practical relevance

It enables LLM agents to reliably use external tools even when documentation is ambiguous or frequently updated, enhancing their practicality in real-world applications.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction