Knowing When to Ask: Segment-Level Credit Assignment for LLM Tool Use

Abhijit Kumar, Guihua Wu, Mohit SuleyNeurIPS 2026

TL;DR

Humans intuitively reach for a calculator to solve $347 \times 28$, yet answer $2 + 2$ from memory; standard LLMs lack this self-awareness and blindly invoke tools even when they already know the answer. CARL (Competence-Aware Reinforcement Learning) teaches models the boundaries of their own knowledge by breaking tool-use episodes into natural segments and scoring how much each step actually improves the odds of getting the final answer right. The result is a leaner, more accurate model that knows when to ask for help—unlocking massive gains, especially for smaller models.

What Problem Does This Paper Address?

Bolting a search engine or Python interpreter onto an LLM doesn't automatically make it wise about when to use them. Prompting frameworks like ReAct rely on external instructions rather than the model's internal sense of competence. Meanwhile, recent reinforcement learning (RL) methods typically reward or punish an entire multi-step trajectory based on a single final outcome (right or wrong).

This trajectory-level credit creates a messy, coupled problem: if a model stumbles through a useless search, makes a great second search, and gets the right answer, every step gets reinforced equally. Worse, if the model wastes time searching for "2 + 2" and answers "4", it gets rewarded for an unnecessary tool call. Some methods try to fix this by hiring a giant external LLM judge (like GPT-4) to grade intermediate steps, but an external judge doesn't know what a smaller student model actually holds in its own weights.

Methods

The authors observe that unlike pure chain-of-thought reasoning—where deciding where one "thought" ends and another begins is notoriously fuzzy—tool use has crystal-clear, structural boundaries (like code fences and tool outputs).

CARL frames tool use as a Semi-Markov Decision Process (SMDP) and slices every rollout into three distinct segment types:

  1. Invoke: Generating reasoning and writing code/search queries.
  2. Assimilate: Reading raw tool output (stdout) and distilling it into a clean <context> block (which replaces the raw output to keep the context tidy).
  3. Commit: Producing the final answer.
Figure 1: Rollout pipeline in CARL. Each tool-use trajectory decomposes into three segment types (invoke, assimilate, commit) with structurally observable boundaries. After invoke, the rollout loop executes the code and captures stdout; after assimilate, it replaces the raw stdout with the model’s <context> block. The critic Vϕ evaluates the context at each boundary; the advantage of each segment is the change in Vϕ across it, with the terminal reward R replacing the final Vϕ at EOS. MuSiQue is excluded from training, MuSiQue example shown is for illustration only.

Instead of step-level human labels or external judges, CARL attaches a lightweight critic (value head) to the LLM's backbone and trains it strictly on binary final outcomes ($1$ for exact match, $0$ otherwise) from the model's own rollouts. At each segment boundary, the critic predicts the probability of eventual success, $V(s)$.

The "advantage" (credit) of any segment is simply how much it moved the needle: $V(s_{\text{next}}) - V(s_{\text{current}})$. A helpful search spikes $V$; a botched extraction tanks $V$ (allowing opposing signs within the same trajectory!); and an unnecessary search on an easy question barely moves $V$ because $V(s_0)$ was already near $1.0$. To prevent early random critic gradients from wrecking the shared LLM backbone, CARL introduces a crucial curated critic warm-up phase before standard PPO training begins.

Datasets

No new benchmarks are introduced; instead, the authors curate a suite of five existing datasets spanning Python execution and BM25 Wikipedia search:

  • In-domain training & evaluation (~170K merged training questions): GSM8K (grade-school math; mostly solvable from memory to test if the model learns to skip tools), HotpotQA, and 2WikiMQA (2-hop factual QA).
  • Held-out (out-of-distribution) evaluation: FinQA (2–3 hop numerical reasoning over financial tables) and MuSiQue (hard compositional 2–4 hop search questions).

Key Insights and Ideas

  • Selectivity emerges naturally from self-calibration: CARL has no explicit penalty for calling tools. Yet, because the critic learns that $V(s_0)$ is already high on questions within the model's parametric memory ("Tier 2" questions), invoking a tool yields near-zero advantage. The policy naturally learns to just answer directly.
  • Opposing credit within a single run: Because invoke and assimilate are scored separately, CARL can reward a great search query ($V \uparrow$) while immediately penalizing a sloppy summary that misreads units ($V \downarrow$) inside the exact same episode.
  • Small models win the most: Knowing when to ask for help disproportionately benefits models with smaller parametric memory. A 3B model knows fewer facts than a 7B model, making sharp tool routing a practical substitute for sheer parameter count.
Figure 2: V (s0) calibration drives faster training and emergent selectivity. (a) Calibration of V (s0) under three warm-up regimes (Appendix H). Full warm-up uses curated rollouts; random-data warm- up uses the same step budget without tier-based curation; cold start omits separate critic warm-up. (b) Held-out accuracy across 500 PPO steps (4-dataset average from the 2,500-question evaluation pool). CARL surpasses Search-R1 PPO at step ∼100 (7B) / ∼150 (3B). (c) Tier 2 tool-use rate. CARL peaks then settles (∼39% at 7B); Search-R1 PPO climbs monotonically toward 84–88%.

Key Results

Evaluated on Qwen2.5 (3B and 7B) and Llama 3.1 (8B):

  • Accuracy boosts: On the three search benchmarks, CARL improves average Exact Match (EM) by +6.7 points at 7B and +9.6 points at 3B over the strongest RL baselines (Search-R1 PPO at 7B, GRPO at 3B). Gains peak on held-out multi-hop MuSiQue (+8.3 EM at 7B, +9.0 to +12.5 EM at 3B depending on the baseline).
  • Sharp competence detection: The 7B critic separates tool-dependent questions from parametrically solvable ones with 0.93 AUC (0.85 at 3B).
  • Fewer wasted calls, better accuracy: On questions the 7B model already knows how to answer, CARL cuts unnecessary tool use by 53% compared to Search-R1 PPO (38.6% vs. 82.6% tool rate) while scoring 9.8 EM points higher (87.0 vs. 77.2 EM)—avoiding distracting search noise. Generation length drops by up to 36% on in-domain search tasks.
  • Retrieval is the remaining ceiling: Swapping local BM25 search for a commercial search API at inference time jumps 7B MuSiQue accuracy from 30.4 to 45.0 EM.

Limitations and Future Work

  • Warm-up overhead: Segment-level PPO needs a calibrated critic first; skipping the initial base-model rollout warm-up costs ~9 EM on HotpotQA at 7B.
  • Uniform intra-segment credit: Every token inside a single segment shares one scalar advantage, meaning partially useful extractions aren't differentiated at the token level.
  • Serving friction: Current LLM inference engines (like vLLM) are built for uninterrupted decoding, requiring awkward round-trips and partial re-prefills when pausing at segment boundaries.
  • Future directions: Extending invoke/assimilate/commit to complex multi-agent and API ecosystems, or using $V(s_0)$ as a fast inference-time router to dispatch hard queries from tiny on-device models to larger cloud models.

Summary updated

BibTeX
@inproceedings{kumar2026knowing,
  author = {Abhijit Kumar and GUIHUA WU and Mohit Suley},
  title = {{Knowing When to Ask: Segment-Level Credit Assignment for LLM Tool Use}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=rzZuYaw8zp},
}
Figure