Abstract
Reinforcement Learning (RL) has proven effective for aligning Large Language Models (LLMs) for complex tasks, yet standard methods like Group Relative Policy Optimization (GRPO) often fail when applied to small-scale models. These "weak" models frequently encounter "hard samples"—queries where no correct response is generated across multiple rollouts—leading to training instability and "mid-training collapse." We introduce ToolExpander, a framework that stabilizes training by dynamically replacing hard samples with few-shot guidance and incentivizing models to generate self-exemplifying context. Our results show that ToolExpander significantly reduces hard samples and enables 1.5B and 7B models to outperform larger counterparts on tool-use benchmarks.
Introduction
The alignment of LLMs for tool-calling tasks typically relies on RL to optimize reasoning paths. However, smaller models (e.g., 1.5B parameters) struggle with the sparse rewards inherent in GRPO. When a model fails to produce a single correct answer in a rollout set, it receives no gradient signal. This lack of feedback results in low data utilization and performance degradation. While increasing rollouts is a common fix, it is computationally expensive and yields diminishing returns. ToolExpander addresses this by ensuring consistent learning signals through dynamic data substitution.
Methodology: The ToolExpander Framework
ToolExpander introduces two core innovations to the RL pipeline to support resource-constrained models:
1. Dynamic Multi-Round Hard Sampling
Instead of discarding failed samples, the framework identifies "hard samples" (zero success in 10 rollouts) and replaces them with high-quality few-shot demonstrations. This ensures the model always has a "gold standard" to learn from, maintaining a steady gradient flow. To maintain stability during these data shifts, the framework employs an exponential learning rate decay strategy.
2. Self-Exemplifying Thinking
We modify the GRPO framework to encourage models to "think" by generating their own few-shot examples within <examples> tags before providing a final answer. A small reward (0.01) is granted for generating three or more distinct, correct examples. Notably, the authors found that removing the standard KL divergence constraint reduced computational overhead without sacrificing performance, allowing for more effective exploration.
Key Results and Discussion
ToolExpander effectively prevents training collapse in small models and improves data utilization across multiple benchmarks including BFCL, APIBank, and ACEBench.
Reduction in Hard Samples
Experiments across various model sizes demonstrate that providing few-shot guidance is significantly more efficient than increasing rollout counts. While increasing rollouts from 10 to 32 only reduced hard samples by 5–8%, ToolExpander’s guidance strategy achieved a 15–20% reduction on average.
Benchmark Performance
On the APIBank benchmark, the Qwen2.5-7B model trained with ToolExpander achieved an accuracy of 81.76%, a substantial leap from the 62.66% achieved by standard GRPO and surpassing the previous state-of-the-art Tool-N1 (77.89%). These results suggest that for small models, the strategy for data utilization is often more critical than raw parameter count.
Conclusion
ToolExpander demonstrates that small LLMs can achieve high-level tool-use proficiency when RL training is stabilized through dynamic guidance. By transforming failures into learning opportunities and encouraging self-exemplification, the framework paves the way for deploying efficient, high-performance models in resource-constrained environments. Future work will explore the scalability of self-exemplifying thinking in multi-turn scenarios and investigate architectural limits of 1.5B models.
Summary updated