Source-linked AI summary

Tool Verification for Test-Time Reinforcement Learning

Ruotong Liao, Nikolai Röhrich, Xiaohan Wang, Yuhui Zhang, Yasaman Samadzadeh, Volker Tresp, Serena Yeung-Levy

arXiv:2603.02203v1cs.AIcs.CL

TL;DR

TTRL adapts reasoning models on unlabeled test inputs, but unverified majority consensus can create biased rewards and incorrect mode collapse. T3RL adds external tool verification that upweights verified rollouts during voting, producing more reliable pseudo-labels. Across math benchmarks, it consistently improves over TTRL, with larger gains on harder problems.

  • Problem

    Unverified consensus in TTRL can select frequent wrong answers, assign them positive rewards, and reinforce incorrect mode collapse.

  • Method

    T3RL uses an LLM verifier and code interpreter to validate reasoning traces, then gives verified rollouts greater vote weight when forming pseudo-labels.

  • Results

    T3RL improves over TTRL across MATH-500, AMC, and AIME 2024, with larger gains on harder benchmarks and a maximum relative improvement of 31.6% on AIME2024.

  • Takeaways & Limitations

    T3RL frames test-time reinforcement learning as verified online data synthesis, where executable evidence supports more stable self-evolution.

  • Takeaways & Limitations

    Weak verifiers can mis-weight rollouts and make pseudo-labels less stable than vanilla majority voting, while easy tasks may gain little from verification despite its overhead.

Abstract

from arXiv · show

Test-time reinforcement learning (TTRL) has emerged as a promising paradigm for self-evolving large reasoning models (LRMs), enabling online adaptation on unlabeled test inputs via self-induced rewards through majority voting. However, a spurious yet high-frequency unverified consensus can become a biased and reinforced reward signal, leading to incorrect mode collapse. We address this failure mode with T^3RL (Tool-Verification for Test-Time Reinforcement Learning), which introduces test-time tool verification into reward estimation. Concretely, a verifier uses an external tool as evidence (e.g., from code execution) to upweight verified rollouts in a verification-aware voting, producing more reliable pseudo-labels for training. Across various math difficulties (MATH-500, AMC, and AIME 2024) and diverse backbone types, T^3RL significantly improves over TTRL, with larger gains on harder problems. More broadly, T^3RL can be viewed as verified online data synthesis, highlighting test-time tool verification as a key mechanism for stabilizing self-evolution.

1. Introduction

TTRL enables unlabeled test-time adaptation through self-induced rewards, but unverified consensus can reinforce incorrect modes. T3RL adds tool-backed verification and weighted voting to make reward estimation more reliable.

  • TTRL updates large reasoning models on unlabeled test inputs by generating multiple traces, majority-voting a pseudo-label, and deriving reinforcement-learning rewards.
  • Unverified consensus can select a frequent wrong answer, assign positive rewards to incorrect rollouts, and amplify errors through a vicious reinforcement cycle.
  • T3RL addresses false-popular mode collapse by integrating external verification into reward estimation and shifting learning from frequent modes toward verified modes.
  • Its verifier extracts rollout answers, converts reasoning traces into Python, and uses a code interpreter to judge validity.
  • T3RL improves performance across MATH500, AMC, and AIME2024, with a maximum relative improvement of 31.6% on AIME2024 and larger gains on harder benchmarks.
  • The method is also reported as robust and test-time compute-efficient, and its performance can improve with stronger verifiers.

2. Related Works

Related work spans test-time verification, test-time training, and test-time reinforcement learning. T3RL extends these directions by introducing tool verification for evidence-grounded self-evolution.

  • Verification for Test Time Scaling: Test-time scaling uses external verifiers to evaluate additional computation and select outputs from multiple candidates during inference.
  • Test-Time Training: Test-time training adapts model parameters during inference, while TTRL removes explicit labeled data by learning from unlabeled test inputs.
  • T3RL: T3RL combines an LLM verifier, tool execution, and verification-weighted voting to ground reward signals for test-time reinforcement learning.
  • T3RL: The paper identifies test-time verification for self-evolution, especially tool verification for evidence-grounded self-evolution, as an unaddressed direction in prior work.

3. The Failure Mode: How Unverified Consensus Induces Reward Bias

TTRL constructs rewards from consensus on sampled outputs rather than ground-truth labels. Because consensus can favor a frequent incorrect mode, reinforcement learning may amplify the error into mode collapse.

  • 3.1. Test Time Reinforcement Learning: TTRL generates multiple candidate outputs and uses majority voting to derive a consensus pseudo-label without ground-truth labels.
  • 3.2. The Failure Mode: A wrong label can be selected whenever an incorrect high-frequency answer has a non-zero probability of defeating the correct answer in the vote.
  • 3.2. The Failure Mode: Majority-based rewards reinforce rollouts agreeing with a false pseudo-label while giving truthful rollouts zero reward.
  • 3.2. The Failure Mode: The resulting RL update increases future sampling of the incorrect mode, further raising its vote share and driving incorrect mode collapse.

4. Method: Tool Verification for Test Time Reinforcement Learning

T3RL replaces unverified majority voting with tool-verified, verification-weighted consensus for test-time reinforcement learning. An external verifier compiles rollouts into executable Python, checks them with a code interpreter, and uses the resulting validity signals to shape rewards and pseudo-labels.

  • Framework overview: T3RL integrates tool verification into test-time reinforcement learning to produce more grounded reward estimates.The framework replaces ordinary aggregation with verification-aware voting and retains the TTRL training objective while replacing its pseudo-label.
  • Verifier: The verifier samples rollouts, extracts candidate answers, and returns a verifier-derived answer together with a binary executable-check indicator.Its implementation generates tool-calling queries, executes the verification tool, and returns verification results.
  • Verification tool: The verification tool supplies external, deterministic, executable evidence by running verifier-generated Python programs and returning their outputs.The verifier contrasts the tool result with each rollout’s extracted candidate answer to produce a tool-verified validity indicator.
  • Verification weight: Verified rollouts receive increased voting weight, while unverified rollouts retain unit weight in the verification-aware consensus.A fixed scalar ω ≥1 assigns ω votes to verified rollouts, allowing the consensus to shift toward a verified answer when its cumulative weight is sufficient.
  • Reward calculation: The final reward remains binary but is anchored to the verification-aware consensus rather than the standard majority-vote pseudo-label.T3RL computes rewards consistently with TTRL after substituting the robust verification-aware consensus into the training pipeline.

5. Experiments

T3RL is evaluated across mathematical benchmarks, backbone types, and ablations of verification components. It consistently improves over TTRL, with larger gains on harder benchmarks and strongest performance from moderate verification weighting.

  • Main Results: T3RL repeatedly outperforms TTRL across all evaluated models and benchmarks.The evaluation covers MATH-500, AMC, and AIME 2024 across diverse backbone configurations.
  • Main Results: 3.5% average gain on MATH-500, 9.7% on AMC, 19.8% on AIME 2024, and 11.0% overall.For Qwen-Math-1.5B, gains are 73.0 to 74.6 on MATH-500, 48.9 to 50.9 on AMC, and 15.8 to 20.8 on AIME 2024.
  • Main Results: T3RL improves across vanilla, math-specialized, and instruction-tuned backbones, indicating benefits across model families and alignment regimes.The largest cited gains are +31.6% for Qwen-Math-1.5B on AIME 2024, +17.1% for Qwen-2.5-1.5B on AIME 2024, and +17.8% for Llama-3.2-1B-Instruct on AMC.
  • Main Results: Harder benchmarks benefit more: relative gains are largest on AIME 2024 and smaller on AMC and MATH-500.Within MATH-500, the hardest L5 level has the largest gain because longer computation chains accumulate more errors that tool execution can check.
  • Ablation Studies: LLM self-verification improves TTRL without code execution, while code execution provides an additional lift beyond verifier-only checking.With a 1.5B verifier, tool execution improves AIME from 18.3 to 20.8; with a 7B verifier, it improves AIME from 20.0 to 21.7.
  • Ablation Studies: Moderate verification weighting performs best, while under-weighting or over-weighting verified rollouts degrades accuracy.The strongest cited setting is c=5, achieving AIME 20.8 and MATH 74.6; excessive weighting can reduce learning-signal diversity.

6. Discussions and Analysis

T3RL treats tools as verification evidence rather than policy actions, using verified rollouts to improve reward quality, stability, and compute efficiency. Its benefits increase with benchmark difficulty and verifier or rollout scaling, while weak verifiers and easy tasks limit gains.

  • Tool calling vs. verification: T3RL restricts tool use to a verifier, avoiding the mixed reasoning and tool-use errors introduced when the policy directly calls tools.TTRL-AGENT degraded relative to TTRL, whereas T3RL produced consistent positive gains.
  • Training robustness: T3RL reduces run-to-run variability by anchoring reward construction with tool verification.Across runs, T3RL showed substantially lower dispersion in peak performance than TTRL after 100 steps.
  • Test-time computation allocation: Verification-shaped rewards improve quality per rollout, allowing higher accuracy with substantially fewer test-time computations than brute-force scaling.The study compares TTRL with N=64 against T3RL using N ∈ {16, 32, 64}.
  • Verifier scaling: Larger verifiers consistently improve T3RL, raising Qwen-Math-2.5 results from 20.8 →21.7 on AIME 2024, 50.9 →51.5 on AMC, and 74.4 →74.9 on MATH500.The verifier size varies from 1.5B to 7B.
  • Rollout scaling: Larger rollout budgets consistently improve T3RL because more candidates increase diversity and the chance that verified rollouts receive higher vote mass.The ablation varies N ∈ {16, 32, 64}.
  • Failure modes: Weak verifiers can mis-weight rollouts and make pseudo-labels less stable than vanilla majority voting, while verification adds limited benefit on already-easy tasks.Underpowered verifiers may introduce noisy tool-calling signals; easy tasks rarely produce false labels.

7. Conclusion

T3RL introduces test-time verification into unlabeled test-time reinforcement learning, suppressing spurious rewards with tool verification. Across heterogeneous backbones and math benchmarks, it delivers consistent gains and frames test-time RL as verified online data synthesis.

  • T3RL suppresses spurious rewards by introducing test-time verification into reinforcement learning from unlabeled test data.
  • Experiments across heterogeneous backbones and math benchmarks show consistent gains from tool verification.
  • T3RL frames sampled rollouts as reliable training instances once verified with executable evidence, supporting more stable self-evolution.

Impact Statement

The paper presents test-time verification as a way to stabilize self-evolution by encouraging external evidence checks. It also highlights risks from imperfect verifiers and inherited tool or data-source vulnerabilities.

  • Test-time verification is presented as a mechanism for stabilizing self-evolution by reducing error reinforcement and self-consistency-driven failure modes.
  • Imperfect verifiers and underlying tools or data sources can introduce biases and vulnerabilities into verification pipelines.

A. Verifier System Prompt

The verifier system prompt is designed to produce reliable, independent, and parsable tool-assisted verification. It assigns an expert role, requires independent recomputation, and permits candidate traces only as hints.

  • The verifier prompt assigns the external model the role of an expert mathematician and Python programmer.This role is intended to encourage rigorous script formulation.
  • Independent recomputation instructs the verifier not to assume the reasoning trace is correct and to recompute the answer directly.This design mitigates confirmation bias and supports verification from the original problem statement.
  • The candidate reasoning trace is used as a hint, allowing mathematical intuition to guide verification without binding the verifier to flawed arithmetic execution.
  • Figure 10 presents the system prompt used to guide the external LLM verifier.

B. Failure Case: Small Verifiers

An undersized verifier can degrade T3RL by producing unreliable executable checks that destabilize reward estimation. The documented failures include copying candidate answers, invalid code generation, and execution failures.

  • A weak 0.5B verifier can degrade performance against standard TTRL by injecting noise rather than reliable evidence into the reward signal.The failure is attributed to limited instruction-following capacity during verification.
  • Blind copying causes the verifier to print a trace’s final answer without independently checking it, creating a false-positive verification signal.The verifier may hallucinate pseudo-reasoning in comments while bypassing actual computation.
  • Formatting and compilation errors prevent the verifier from consistently producing executable Python for automated validation.Reported problems include malformed delimiters, missing imports, syntax hallucinations, and endless comments.
  • Execution failures return unreliable validity checks and further destabilize reward estimation.This is the downstream consequence of the verifier’s structural and syntax failures.
  • T3RL therefore requires a minimum verifier-capacity threshold; below it, the verifier becomes an additional source of stochastic noise.The paper frames this threshold as necessary for reliable grounding.
Loading 2603.02203v1…