paper-with-me

홈 › Papers

Advancing Tool-Augmented Large Language Models: Integrating Insights from Errors in Inference Trees

2024-06-11 · Sijia Chen, Yibo Wang, Yi-Feng Wu, Qing-Guo Chen, Zhao Xu, Weihua Luo, Kaifu Zhang, Lijun Zhang

Tool-augmented large language models (LLMs) leverage tools, often in the form of APIs, to enhance their reasoning capabilities on complex tasks, thus taking on the role of intelligent agents interacting with the real world. The recently introduced ToolLLaMA model by Qin et al. [2024] utilizes the depth-first search-based decision tree (DFSDT) method for reasoning with $16000+$ real-world APIs, which effectively improves the planning and inferencing performance of tool-augmented LLMs compared to traditional chain reasoning approaches. However, their approach only employs successful paths from decision trees (also called inference trees) for supervised fine-tuning (SFT) during training, which does not fully exploit the advantages of the tree of thought. In this study, we propose an inference trajectory optimization framework based on the preference data extracted from decision trees to address this limitation. We first introduce a novel method for constructing preference data from the tree of thought, capitalizing on the failed explorations previously overlooked in the trees. Specifically, we generate an effective step-wise preference dataset, named ToolPreference, for tool use based on the ToolBench dataset. In the subsequent training phase, we first fine-tune the LLM with tool-usage expert trajectories and then use these step-wise preference pairs for direct preference optimization (DPO) to update the policy of the LLM, resulting in our ToolPrefer-LLaMA (TP-LLaMA) model. Our experiments demonstrate that by obtaining insights from errors in inference trees, TP-LLaMA significantly outperforms the baselines across almost all test scenarios by a large margin and exhibits better generalization capabilities with unseen APIs. At the same time, TP-LLaMA has also demonstrated superior reasoning efficiency compared to the baselines, making it more suitable for complex tool-usage reasoning tasks.

📄 PDF Abstract BibTeX arXiv:2406.07115

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Can Tool-augmented Large Language Models be Aware of Incomplete Conditions?

2024-06-18 · Seungbin Yang, ChaeHun Park, Taehee Kim, Jaegul Choo

Recent advancements in integrating large language models (LLMs) with tools have allowed the models to interact with real-world environments. However, these tool-augmented LLMs often encounter incomplete scenarios when us…

Gentopia: A Collaborative Platform for Tool-Augmented LLMs

2023-08-08 · Binfeng Xu, Xukun Liu, Hua Shen, Zeyu Han 외

Augmented Language Models (ALMs) empower large language models with the ability to use tools, transforming them into intelligent agents for real-world interactions. However, most existing frameworks for ALMs, to varying …

Advancing SLM Tool-Use Capability using Reinforcement Learning

2025-09-03 · Dhruvi Paprunia, Vansh Kharidia, Pankti Doshi arxiv

In an era where tool-augmented AI agents are becoming increasingly vital, our findings highlight the ability of Group Relative Policy Optimization (GRPO) to empower SLMs, which are traditionally constrained in tool use. …

Reinforcement Learning

OpenThinkIMG: Learning to Think with Images via Visual Tool Reinforcement Learning

2025-05-13 · Zhaochen Su, Linjie Li, Mingyang Song, Yunzhuo Hao 외

While humans can flexibly leverage interactive visual cognition for complex problem-solving, enabling Large Vision-Language Models (LVLMs) to learn similarly adaptive behaviors with visual tools remains challenging. A si…

Reinforcement Learning (RL)Visual Reasoning

Empowering Multimodal LLMs with External Tools: A Comprehensive Survey

2025-08-14 · Wenbin An, Jiahao Nie, Yaqiang Wu, Feng Tian 외 arxiv

By integrating the perception capabilities of multimodal encoders with the generative power of Large Language Models (LLMs), Multimodal Large Language Models (MLLMs), exemplified by GPT-4V, have achieved great success in…