Reproduce “ToolRL: Reward is All Tool Learning Needs” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Cheng Qian, Emre Can Acikgoz, Qi He, Hongru Wang, Xiusi Chen, Dilek Hakkani-Tür, Gokhan Tur, Heng Ji
ToolRL trains language models to choose and use tools with reinforcement learning, separating rewards for call format and correctness of tool names, parameter names, and values. On BFCL V3, Qwen2.5-7B-Instruct reaches 58.38% overall accuracy versus 36.53% for SFT4k, a 21.85-point difference. This evidence concerns GRPO training on annotated calls, not every tool-learning task.
Key insights
- Longer reasoning (measured by the length of the <think> field) is not consistently beneficial for tool-use tasks and can sometimes degrade performance.
- Fine-grained reward decomposition, which separately evaluates tool name, parameter names, and parameter values, provides richer and more effective learning signals than coarser granularities.
- Training GRPO from a 'cold start' (raw instruct model) often outperforms models initialized with Supervised Fine-Tuning (SFT), suggesting SFT can hinder generalization by promoting memorization.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.