ToolRL: Reward is All Tool Learning Needs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Qian, Cheng, Acikgoz, Emre Can, He, Qi, Wang, Hongru, Chen, Xiusi, Hakkani-Tür, Dilek, Tur, Gokhan, Ji, Heng
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916696576491520
author Qian, Cheng
Acikgoz, Emre Can
He, Qi
Wang, Hongru
Chen, Xiusi
Hakkani-Tür, Dilek
Tur, Gokhan
Ji, Heng
author_facet Qian, Cheng
Acikgoz, Emre Can
He, Qi
Wang, Hongru
Chen, Xiusi
Hakkani-Tür, Dilek
Tur, Gokhan
Ji, Heng
contents Current Large Language Models (LLMs) often undergo supervised fine-tuning (SFT) to acquire tool use capabilities. However, SFT struggles to generalize to unfamiliar or complex tool use scenarios. Recent advancements in reinforcement learning (RL), particularly with R1-like models, have demonstrated promising reasoning and generalization abilities. Yet, reward design for tool use presents unique challenges: multiple tools may be invoked with diverse parameters, and coarse-grained reward signals, such as answer matching, fail to offer the finegrained feedback required for effective learning. In this work, we present the first comprehensive study on reward design for tool selection and application tasks within the RL paradigm. We systematically explore a wide range of reward strategies, analyzing their types, scales, granularity, and temporal dynamics. Building on these insights, we propose a principled reward design tailored for tool use tasks and apply it to train LLMs using Group Relative Policy Optimization (GRPO). Empirical evaluations across diverse benchmarks demonstrate that our approach yields robust, scalable, and stable training, achieving a 17% improvement over base models and a 15% gain over SFT models. These results highlight the critical role of thoughtful reward design in enhancing the tool use capabilities and generalization performance of LLMs. All the codes are released to facilitate future research.
format Preprint
id arxiv_https___arxiv_org_abs_2504_13958
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ToolRL: Reward is All Tool Learning Needs
Qian, Cheng
Acikgoz, Emre Can
He, Qi
Wang, Hongru
Chen, Xiusi
Hakkani-Tür, Dilek
Tur, Gokhan
Ji, Heng
Machine Learning
Artificial Intelligence
Computation and Language
Current Large Language Models (LLMs) often undergo supervised fine-tuning (SFT) to acquire tool use capabilities. However, SFT struggles to generalize to unfamiliar or complex tool use scenarios. Recent advancements in reinforcement learning (RL), particularly with R1-like models, have demonstrated promising reasoning and generalization abilities. Yet, reward design for tool use presents unique challenges: multiple tools may be invoked with diverse parameters, and coarse-grained reward signals, such as answer matching, fail to offer the finegrained feedback required for effective learning. In this work, we present the first comprehensive study on reward design for tool selection and application tasks within the RL paradigm. We systematically explore a wide range of reward strategies, analyzing their types, scales, granularity, and temporal dynamics. Building on these insights, we propose a principled reward design tailored for tool use tasks and apply it to train LLMs using Group Relative Policy Optimization (GRPO). Empirical evaluations across diverse benchmarks demonstrate that our approach yields robust, scalable, and stable training, achieving a 17% improvement over base models and a 15% gain over SFT models. These results highlight the critical role of thoughtful reward design in enhancing the tool use capabilities and generalization performance of LLMs. All the codes are released to facilitate future research.
title ToolRL: Reward is All Tool Learning Needs
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2504.13958