Can outcome-only rewards teach code interpreter timing without executability signals?
Does an RL reward that only checks final answer correctness, ignoring code quality or executability, teach models when and how to invoke code interpreters? This tests whether strategy learning requires direct feedback on tool execution.
ReTool's reinforcement learning stage uses what the authors call "a rule-based accuracy reward" that checks only whether the boxed final answer matches the ground truth; they state they "simplify the reward design aim to alleviate reward hacking and promote more diverse problem-solving behaviors based on mere outcome feedback without considering code executability reward." Under that single, coarse signal, the paper's tracked metrics show the model's tool use growing more disciplined over RL training: code ratio rises to "nearly 98%" of responses, average code lines end up "nearly fivefold higher" than before RL, and code invocation timing "advances during the RL training process," meaning the model learns to call the interpreter earlier in its reasoning. The paper also reports that the model "exhibits an emergent ability to self-correct non-executable code, despite the absence of explicit training data for code self-correction" — the "aha moment" the authors highlight.
The mechanism split is explicit: a cold-start SFT stage first builds a code-augmented reasoning dataset (Dinit transformed into DCI, filtered by format and answer verification) so the model has "an initial competency in tool usage and execution result analysis." RL then takes over to find "the optimal tool manipulation reasoning strategy," with policy rollouts in which "the policy LLM will collaborate with a code sandbox" and only the end-task correctness reward is propagated through that whole multi-turn, code-interleaved trajectory — no term scores the code's style, efficiency, or even whether it runs, only whether the final boxed answer is right.
This sharpens a pattern also visible in Does RL teach reasoning or just when to use it?: cold start/pretraining supplies the raw capability (here, writing and reading code), and RL's distinctive job is to learn the strategy of when to deploy it. It is also a concrete instance of Can simple rewards alone teach complex domain reasoning? — self-correction behavior appears without any reward term aimed at it, from accuracy feedback alone. And it is an empirical case of what Do tools actually expand what language models can reason about? proves formally: RL discovers that routing calculation through an executable tool, rather than through text, is the more exploitable strategy once the sandbox is available as an action.
The excerpt does not explain why self-correction specifically emerges — only that it was observed and that no training data targeted it — so the causal story beyond "outcome reward plus code sandbox access" is not given. It also reports these dynamics only on the AIME2024/AIME2025 math olympiad benchmarks, so whether an outcome-only reward shapes tool-use strategy this cleanly in domains with noisier or partial-credit verification is untested here.
Inquiring lines that read this note 6
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Can visual rendering-based rewards effectively improve code and layout quality?- How do executability and geometric accuracy rewards interact during training?
- Does format reward contribute independently to CAD-Coder's final performance?
Related concepts in this collection 4
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Does RL teach reasoning or just when to use it?
Does reinforcement learning in thinking models actually create new reasoning abilities, or does it simply teach existing capabilities when to activate? This matters for understanding where reasoning truly emerges.
both show RL's role is teaching strategic timing/deployment of a capability rather than creating it from scratch
-
Can simple rewards alone teach complex domain reasoning?
Does reinforcement learning on difficult problems with basic accuracy rewards produce sophisticated reasoning strategies without explicit chain-of-thought training? This challenges assumptions about what domain AI models need to learn effectively.
same pattern: sophisticated behavior (self-correction) emerges from a simple outcome reward alone
-
Do tools actually expand what language models can reason about?
Explores whether tool access fundamentally breaks through reasoning limits in pure-text models, or merely optimizes existing capabilities. Understanding this distinction clarifies whether tools are luxury features or necessity for genuine capability growth.
ReTool is an empirical instance of RL discovering the tool-use strategies this paper proves are reachable
-
Can tool use make reinforcement learning more sample efficient?
Does integrating code execution into an RL loop reduce the number of training steps needed to reach a target accuracy, compared to pure text-based reasoning?
sibling note on this paper's step-efficiency result
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Training Language Models to Self-Correct via Reinforcement Learning
- ReTool: Reinforcement Learning for Strategic Tool Use in LLMs
- Learning to Reason without External Rewards
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding
- Crossing the Reward Bridge: Expanding RL with Verifiable Rewards Across Diverse Domains
- The Surprising Effectiveness of Negative Reinforcement in LLM Reasoning
- Spurious Rewards: Rethinking Training Signals in RLVR
- A Survey on Post-training of Large Language Models
Original note title
ReTool's outcome-only accuracy reward teaches code-interpreter timing and self-correction without an executability signal