SYNTHESIS NOTE
Topics›Reinforcement Learning›this note

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.

Synthesis note · 2026-11-18 · sourced from Reinforcement Learning

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 reliably do benchmark metrics reflect actual model capability? How important is reward engineering relative to pretraining for reasoning? How can reward models overcome their inherent blindspots and biases?

Related concepts in this collection 4

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
15 direct connections · 143 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

ReTool's outcome-only accuracy reward teaches code-interpreter timing and self-correction without an executability signal