Introduction
Reinforcement Learning (RL) is a cornerstone of the reasoning capabilities found in modern Large Language Models (LLMs). However, a significant challenge remains: Credit Assignment. In a long reasoning chain, identifying which specific tokens or decision points contributed to a correct or incorrect final answer is difficult.
Existing methods like Proximal Policy Optimization (PPO) rely on a learned "critic" model to estimate token values, which is computationally expensive and prone to overfitting. Conversely, Group Relative Policy Optimization (GRPO) is more efficient but applies a uniform reward signal across entire sequences, failing to distinguish between critical decision points and deterministic filler text. This paper introduces TEMPO, a reinforcement learning algorithm designed to provide precise token-level credit assignment without the overhead of a learned critic.
Methodology: The TEMPO Framework
TEMPO (Tree-Estimated Mean Prefix Value) addresses the credit assignment problem through a two-step process:
- Prefix-to-Tree (P2T): During training, multiple responses are sampled for a single prompt. These responses are organized into a prefix tree where nodes represent shared token sequences and branches represent points of divergence.
- Nonparametric Value Estimation: Instead of a neural critic, TEMPO calculates values based on the empirical success rate of branches. If a specific prefix leads to a correct answer in 80% of sampled paths, its value is assigned as 0.8.
By calculating a Temporal Difference (TD) error based on this tree structure, TEMPO focuses the learning signal on "forks in the road"—high-stakes decision points where the model's choice directly impacts the outcome. Qualitative analysis indicates these branches often occur at critical planning steps (e.g., "let", "find") or diagnostic commitments in medical contexts.
Experimental Evaluation
The researchers evaluated TEMPO using Qwen3-1.7B and 4B models across several benchmarks, including MATH and MedQA for in-distribution testing, and AMC23 and MMLU-Medical for out-of-distribution generalization.
Key Results
TEMPO consistently outperformed both PPO and GRPO baselines in both accuracy and training efficiency:
- Superior Accuracy: On the MATH benchmark, TEMPO achieved 91.0% accuracy (Qwen3-4B), compared to 87.6% for GRPO and 87.4% for PPO. It also showed significant gains on difficult out-of-distribution sets like AMC23 (92.5% vs. 85.0% for GRPO).
- Enhanced Efficiency: TEMPO acts as a "drop-in" upgrade for GRPO, reaching peak baseline performance 1.4x to 1.6x faster in wall-clock time.
Discussion and Future Work
TEMPO's resistance to overfitting stems from its use of actual sample outcomes rather than a potentially hallucinating learned critic. However, the method's effectiveness is dependent on sample diversity; if a model is overly certain and produces identical samples, no branching occurs for the algorithm to exploit.
Future research may explore applying TEMPO to open-ended tasks where rewards are less easily verifiable than math or multiple-choice questions, or integrating tree-structured signals with multi-step verification and Retrieval-Augmented Generation (RAG).
Summary updated