ToolRL: Reward is All Tool Learning Needs

Cheng Qian, Emre Can Acikgoz, Qi He, Hongru Wang, Xiusi Chen, Dilek Hakkani-Tur, Gokhan Tur, Heng Ji

arXiv:2504.13958 · 2026-07-27 공개 · arXiv · PDF

reinforcement-learning benchmark-evaluation llm-training grpo policy-optimization supervised-fine-tuning reward-design llm-generalization

Abstract

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.

한국어 요약

한 줄 요약

ToolRL은 강화학습 기반의 보상 설계를 통해 LLM의 도구 사용 능력을 17% 향상시키는 체계적인 연구이다.

핵심 기여도

핵심 아이디어

기존의 도구 사용 학습은 SFT를 통해 이루어졌으나, 이는 복잡한 상황에서 일반화 능력이 제한된다. 본 연구는 도구 통합 추론(TIR)에서 강화학습, 특히 GRPO 알고리즘을 활용한 보상 설계의 중요성을 강조한다. TIR는 다단계, 다중 도구 사용이 필요한 상황에서 모델이 적절한 도구를 선택하고, 중간 결과를 해석하며, 전략을 실시간으로 조정해야 하기 때문에, 단순한 정답 일치와 같은 거친 보상 신호는 부적절하다. 따라서 본 연구는 보상의 종류, 스케일, 세분성, 시간적 변화를 고려한 체계적인 보상 설계를 제안하며, 이를 통해 모델이 보다 유연하고 일반화된 도구 사용 능력을 얻도록 유도한다.

기술적 접근법

주요 결과

의의 및 한계

본 연구는 도구 사용 학습에서 강화학습, 특히 GRPO 기반 보상 설계의 효과성을 입증하며, LLM을 에이전트로 확장하는 기초를 제공한다. 특히, 보상 설계가 단순한 정답 일치를 넘어, 다중 도구 사용, 중간 결과 해석, 전략적 조정을 가능하게 하는 핵심 요소임을 밝혔다. 그러나 본 연구는 특정 도구 세트와 벤치마크에 국한된 실험을 기반으로 하므로, 보다 다양한 도구와 실제 세계 상황에서의 일반화 능력을 검증하는 추가 연구가 필요하다. 또한, 보상 설계는 모델 아키텍처나 학습 데이터에 따라 달라질 수 있으므로, 보다 유연한 보상 전략 개발이 요구된다.

실용적 활용

ToolRL은 과학적 발견, 연구 자동화, 일상적 의사결정 등 다양한 도구와 상호작용이 필요한 분야에서 LLM의 능력을 향상시키는 데 활용될 수 있다. 특히, 계산 정확도, 실시간 정보 접근, 다중 단계 추론이 요구되는 산업 현장에서 유용할 것으로 기대된다.