ToolExpander: Extending the Frontiers of Tool-Using Reinforcement Learning to Weak LLMs
Fu Chen, Peng Wang, Xiyin Li, Wen Li, Shichi Lei, Dongdong Xiang
TL;DR
ToolExpander tackles training instability and data inefficiency in GRPO when applying tool-using reinforcement learning to small LLMs. It introduces Dynamic Multi-Round Hard Sampling to replace hard samples with high-quality few-shot data and Self-Exemplifying Thinking to enable autonomous generation and analysis of few-shot contexts, while discarding KL divergence in the core objective. The approach yields improved stability and tool-using accuracy on benchmarks like BFCL and APIBank, with notable gains for 1.5B models and measurable gains from self-generated reasoning. These techniques enhance data utilization and learning efficiency, enabling stronger performance in resource-constrained LLMs without relying on heavy reward engineering or large-scale prompts.
Abstract
Training Large Language Models (LLMs) with Group Relative Policy Optimization (GRPO) encounters a significant challenge: models often fail to produce accurate responses, particularly in small-scale architectures. This limitation not only diminishes performance improvements and undermines the potential of GRPO but also frequently leads to mid-training collapse, adversely affecting stability and final efficacy. To address these issues, we propose ToolExpander, a novel framework that advances tool-oriented reinforcement learning for resource-constrained LLMs through two key innovations:(1) Dynamic Multi-Round Hard Sampling, which dynamically substitutes challenging samples(those without correct outputs over 10 rollouts) with high-quality few-shot demonstrations during training, coupled with an exponential learning rate decay strategy to mitigate oscillations;(2) Self-Exemplifying Thinking, an enhanced GRPO framework that eliminates KL divergence and incorporates adjusted clipping coefficients, encouraging models to autonomously generate and analyze few-shot examples via a minimal additional reward (0.01).Experimental results demonstrate that ToolExpander significantly enhances tool-using capabilities in LLMs, especially in weaker small-scale models, improving both training stability and overall performance.
