Knowing When to Ask: Segment-Level Credit Assignment for LLM Tool Use
Abhijit Kumar, Zoey WU, Mohit Suley
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › Tool-Integrated Reasoning · Type: new method · Keywords: LLM tool use, credit assignment, reinforcement learning, competence boundary, segment-level reward
Areas: LLM Reasoning › Agentic Reasoning › Tool Use in Agents; Evaluation & Benchmarks › Agent Capabilities and Memory › Agentic Tool Use; RL for LLMs & Agents › Language Model Agents › Credit Assignment for Reasoning
Summary
CARL introduces segment-level credit assignment that trains a critic on LLM rollouts to learn where parametric knowledge suffices and where external tools are needed, improving tool-use accuracy and reducing unnecessary calls.
Explained to a 5-year-old
Some computers don't know when to ask for help. We teach them to figure out if they know the answer or need a tool. We split the computer's work into pieces and give each piece a reward. This helps the computer decide when to use a tool and when not to. As a result, the computer gets better at answering questions and uses fewer unnecessary tools.
Explained to a 5-year-old, longer
A computer program can answer many questions on its own, but sometimes it needs extra help like a calculator. The program currently doesn't know when to ask for that help. Researchers want to teach the program to recognize its own knowledge limits. They do this by watching the program work on many problems and training a special judge to give feedback. The judge looks at each part of the work, like when the program writes code inside fences, and decides if that part was useful. By giving each part a small reward or penalty, the program learns where it should rely on itself and where it should call a tool. This training makes the program more accurate and reduces unnecessary tool calls. The new method works well on different types of questions, especially those that require multiple steps. It also helps smaller models improve a lot, making tool use more efficient overall.
For a technical reader
The paper addresses the issue that language models lack an internal sense of when they should rely on their own knowledge versus when they need external tools. Existing approaches either hard-code tool-invocation prompts or assign a single reward to the entire generated sequence, which cannot pinpoint which tool calls were helpful. The authors introduce a critic that is trained on the model’s own rollouts and splits each rollout at natural boundaries (e.g., code fences) to give each segment its own credit based on a binary outcome. This segment-level credit assignment lets the model learn a competence boundary, reducing unnecessary tool calls while preserving accuracy. Experiments on several benchmarks show significant gains in exact-match accuracy and fewer tool usages, especially for smaller models.
Problem
Language models lack an internal sense of when to rely on their own knowledge versus when to use external tools, and existing methods either hard-code tool prompts or assign a single reward to the whole trajectory, preventing precise identification of helpful tool calls.
Method
The approach trains a critic on the model’s own rollouts and decomposes each rollout at natural tool-use boundaries (e.g., code fences) to assign independent credit to each segment from a single binary outcome, enabling the model to learn where its parametric knowledge ends.
Results
The approach improves exact-match accuracy by 6.7 points at 7B and 10.6 points at 3B over the strongest trajectory-level baseline, with the largest gain of 8.3 EM at 7B and 9.0 EM at 3B on Musique, and reduces unnecessary tool calls by 56% while staying about 10 EM points more accurate on parametric questions.
Contributions
A segment-level credit assignment method that learns a model’s competence boundary from its own rollouts, enabling more precise tool-use decisions and better performance on compositional benchmarks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction