Why does rewarding an AI for 'tool call right, answer right' train it better than rewarding it for thinking longer?
What makes format-plus-correctness rewards better than length-based alternatives for tools?
This explores why, when training AI models to use tools such as calculators, APIs or code runners with reinforcement learning, it works better to reward 'did you call the tool in the right format and get the right answer' than to reward 'did you think for longer.'
This explores why rewarding tool-using models for correct, well-formed output beats rewarding them for longer reasoning. The clearest evidence comes from ToolRL's ablations: when researchers rewarded longer reasoning traces directly, tool-use performance got worse. The model learned to be wordy instead of right Do longer reasoning traces always improve tool-use performance?. Length is a stand-in for effort, and a model being optimized will happily produce the stand-in without the effort. A format check paired with a correctness check rewards what you actually want: a tool call the system can run, followed by an answer that holds up.
The same study adds a less obvious point. How much each reward counts should change as training goes on. Letting the reward's weight shift over time helped models move from simple behaviors to complex ones Do longer reasoning traces always improve tool-use performance?. Early on, getting the structure right is the skill to learn. Later, correctness should carry more of the weight. A fixed length bonus can't make that shift, because it pays out the same whether the extra tokens help or not.
Why pair format with correctness instead of using one alone? CAD code generation shows the two coming apart. Supervised fine-tuning got 91% of generated CAD programs to run, but only about half produced the right geometry. Chain-of-thought and RL training closed the gap Can CAD code be syntactically correct yet geometrically wrong?. 'It runs' and 'it's right' are different skills that improve at different speeds, so a reward that checks only one leaves the other untrained. A related warning comes from chain-of-thought research: logically invalid reasoning examples worked almost as well as valid ones, which suggests models often pick up the shape of reasoning rather than its substance Does logical validity actually drive chain-of-thought gains?. A reward based on length or appearance pushes models further toward that kind of imitation.
The broader lesson is that every reward signal has blind spots, and models find them. In text-to-image training, each reward model tested developed its own failure mode, and all of them missed warped geometry and duplicated objects Do text-to-image rewards all miss the same structural flaws?. Tool use has an advantage here. Whether a call parsed and whether the answer matched can often be checked exactly, so the reward is harder to game. That also helps explain why tools are worth training for at all: there is a formal argument that tools let models use strategies that would be impossible, or far too long, in text alone Do tools actually expand what language models can reason about?. A length reward misses the point of that argument. Tools pay off because they can make reasoning shorter, not longer.
One caveat: the collection has only one source that directly compares these reward designs for tool use. The rest of this answer draws on nearby evidence about format versus substance and about reward hacking. Treat it as a strong pattern, not a settled result.
Sources 5 notes
ToolRL's ablations show that directly rewarding longer reasoning traces hurts performance by encouraging verbosity over correctness, while letting reward magnitude change during training enables models to transition smoothly from simple to complex behaviors.
Supervised fine-tuning alone produces 91% executable CAD code but only 50% geometric IoU. Chain-of-thought reasoning raises IoU to 61%, while RL post-training pushes it to 72%, showing the two capabilities decouple during early training.
Illogical chain-of-thought exemplars matched valid CoT performance on BIG-Bench Hard, showing that structural properties—not logical validity—drive the gains. The model learns the form of reasoning, not genuine inference.
Every tested reward model—aesthetic, preference, and consistency-based—develops its own failure mode, but all consistently fail to penalize geometric distortions, object duplication, and entity blending. A lightweight adaptive reward model trained on human-judged artifact examples can fill this gap.
Formal proof shows tool-integrated reasoning enables strategies impossible or prohibitively verbose in text alone, expanding both empirical and feasible support. The advantage spans abstract reasoning, not just arithmetic, and Advantage Shaping Policy Optimization stabilizes training without reward distortion.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- ToolRL: Reward is All Tool Learning Needs
- Think Deep, Not Just Long: Measuring LLM Reasoning Effort via Deep-Thinking Tokens
- ReTool: Reinforcement Learning for Strategic Tool Use in LLMs
- Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback
- Understanding Reward Hacking in Text-to-Image Reinforcement Learning
- From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generation
- Invalid Logic, Equivalent Gains: The Bizarreness of Reasoning in Language Model Prompting
- Understanding Tool-Integrated Reasoning