betaFeedback

WorksComputer Science

Bellman-Consistent Trajectory RL for LLM Arithmetic Reasoning

Abstract

To address sparse terminal rewards in LLM arithmetic reasoning, we propose a Bellman-consistent trajectory RL method. Our framework introduces Trajectory Bellman Residual Minimization (TBRM) to transform sparse rewards into dense token-level signals. We integrate a Reinforce Leave-One-Out (RLOO) group strategy to reduce gradient variance of Bellman residuals and use hindsight goal relabeling to accelerate intermediate learning. Evaluated on the Countdown task, our method alleviates optimization bottlenecks and stabilizes gradient variance significantly better than GRPO. The TBRM-RLOO framework boosts Pass@1 to 0.55–0.64 and achieves a state-of-the-art Pass@16 accuracy of 76.0–84.0%, outperforming the SFT, IPO/DPO, and RLOO baselines. Our approach demonstrates exceptional single-sample efficiency and successfully circumvents standard performance plateaus via test-time scaling.

Extended Abstract

Motivation Training Large Language Models (LLMs) for multi-step arithmetic reasoning remains a significant challenge due to sparse terminal rewards and the lack of intermediate guidance. In tasks like Countdown, where models must generate sequential operations to reach a target number, rewards are only allocated at the sequence’s end. Standard reinforcement learning approaches assign credit solely to the final step, leaving intermediate reasoning steps without meaningful learning signals. This project addresses this critical bottleneck: the fundamental mismatch between sparse terminal rewards and the dense, step-wise supervision required to learn effective sequential strategies and intermediate representations.

Method To overcome this, we propose a Bellman-consistent trajectory RL framework with three core objectives: (1) transforming sparse terminal rewards into dense token-level supervision via Trajectory Bellman Residual Minimization (TBRM); (2) reducing gradient variance during optimization using a Reinforce Leave-One-Out (RLOO) or Group Relative Policy Optimization (GRPO) strategy; and (3) enabling effective intermediate step learning via hindsight goal relabeling. We evaluate our framework on the Countdown task, conducting ablation studies to quantify each component’s contribution to reasoning accuracy and training stability.

Implementation Our method builds on TBRM, utilizing soft reward and Q-functions to provide analytical solutions that allow a single LLM to serve as the Q, V, and policy functions, significantly reducing optimization complexity. The soft performance difference lemma guarantees that TBRM satisfies the optimal BRM solution, preserving token-level consistent optimization for the final reward. Additionally, we prove that the RLOO grouping strategy considerably reduces the variance of soft Bellman residuals, enhancing training stability. Finally, hindsight goal relabeling is applied to failure samples to strengthen intermediate reasoning steps. We evaluate our approach on the Countdown task, benchmarking against standard policy gradient methods and ablated baselines.

Results The TBRM-RLOO framework significantly reduces gradient variance compared to vanilla TBRM or TBRM-GRPO, leading to superior training stability and performance, with hindsight goal relabeling further accelerating learning efficiency. TBRM-RLOO improves rollout accuracy from 0.61 to 0.73 (+20%), Pass@1 from 0.55 to 0.56, and Pass@16 from 0.74 to 0.84 (+14%). Incorporating hindsight goal relabeling further boosts Pass@1 to 0.64. RLOO grouping consistently outperforms the GRPO strategy. Compared to SFT, IPO/DPO, RLOO, and vanilla TBRM, our method achieves the top overall Pass@16 performance at 84.0%, outperforming the RLOO baseline by 10.0% (absolute) and SFT by 8.0%. It also exhibits superior single-sample efficiency, dominating the low-compute regime (56.1-64.0% Pass@1 within 100 steps), and successfully circumvents the 72.0% plateau encountered by existing methods via test-time scaling.

Discussion Our results demonstrate that a Bellman-consistent trajectory RL method combined with RLOO variance reduction and hindsight goal relabeling significantly improves LLM performance on multi-step arithmetic tasks. The TBRM framework effectively densifies sparse rewards into token-level supervision, while the RLOO strategy stabilizes training by mitigating optimization variance stemming from prompt or problem difficulty. Hindsight goal relabeling enriches data and accelerates intermediate step learning. While constrained by model complexity and broader task generalization, our findings suggest that this framework provides a robust blueprint for training LLMs on complex, sparsely rewarded reasoning tasks.

Conclusion We introduced a Bellman-consistent trajectory RL method that successfully transforms sparse rewards into dense token-level supervision via TBRM, stabilizes optimization via RLOO variance reduction, and enhances sample efficiency through hindsight goal relabeling. Our framework achieves top-tier results on the Countdown task, balancing exploration and exploitation while successfully bypassing traditional performance plateaus. Future work will investigate the scalability of this approach across diverse multi-step reasoning domains.

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities across a broad spectrum of natural language processing tasks. However, multi-step arithmetic reasoning remains a significant frontier and a core challenge [9]. Tasks such as the Countdown game require the model to plan, execute, and verify a precise sequence of arithmetic operations to arrive at a target number [7, 8, 10]. In these complex, multi-step settings, Reinforcement Learning (RL) has emerged as a core paradigm for enhancing reasoning capabilities via reward-driven optimization [12, 16, 6]. Existing approaches typically fall into two categories: online policy-gradient methods (e.g., REINFORCE, PPO, RLOO) that optimize token-level policies directly from trajectory rollouts, and preference-based optimization methods (e.g., DPO, IPO) that align models offline using pairwise critique datasets.

Despite these algorithmic advances, training LLMs for sequential arithmetic reasoning is bottlenecked by three major challenges:

  1. Sparse Terminal Rewards vs. Dense Supervision: Standard RL approaches assign credit only at the final step based on the correctness of the final output. This leaves intermediate reasoning tokens without local, step-wise learning signals, making it difficult for the model to learn effective intermediate representations [11].

  1. High Gradient Variance: Large action spaces and the structural inconsistency between policy and parameter spaces—both inherent to token-level generation—lead to severe training instability and high gradient variance during online trajectory rollouts [15].

  1. Poor Sample Efficiency: Standard online RL requires a prohibitive volume of environmental interactions, heavily taxing computational resources when high-quality trajectories are rare ([16]).

To address these fundamental limitations, this project introduces a Bellman-consistent trajectory RL method tailored for LLM arithmetic reasoning. Our framework leverages Trajectory Bellman Residual Minimization (TBRM) ([19]) to transform sparse terminal rewards into dense, token-level supervision signals. By shifting the optimization objective from individual transitions to the entire rollout, TBRM provides a value-based method for reasoning that operates effectively with just a single rollout, bypassing the need for separate critic networks or complex importance ratios.

To stabilize training dynamics and maximize data utility, we integrate a grouping statistical strategy drawing on Reinforce Leave-One-Out (RLOO) ([1]) or Group Relative Policy Optimization (GRPO) ([15]), which drastically reduces variance during gradient optimization via multi-sample group baselines. Finally, we employ hindsight goal relabeling ([2]) to replay high-reward historical trajectories, accelerating the learning of intermediate reasoning steps from sparse feedback.

We evaluate our proposed Bellman-consistent trajectory RL framework on the rigorous Countdown task. Empirical results demonstrate that our method significantly alleviates optimization bottlenecks and stabilizes gradient variance compared to SFT, IPO/DPO, and RLOO baselines. Specifically, our approach boosts Pass@1 to 55.0–64.0% and achieves a state-of-the-art Pass@16 accuracy of 76.0–84.0%. This demonstrates exceptional single-sample efficiency—driven by TBRM and hindsight goal relabeling—while successfully circumventing standard performance plateaus via test-time scaling. Ultimately, this framework provides a good blueprint for training LLMs on complex, sparsely rewarded reasoning tasks, with potential applications extending well beyond arithmetic to broader multi-step reasoning domains.

Related Work

RLHF and Preference Alignment for Mathematical Reasoning

Reinforcement Learning from Human (or AI) Feedback has become the standard for aligning LLMs with complex downstream tasks ([13]). Early frameworks relied primarily on token-level policy gradient methods like REINFORCE ([18]) and Proximal Policy Optimization (PPO) ([15]). While PPO optimizes token policies directly from online trajectory rollouts, it fundamentally suffers from a lack of intermediate feedback and high gradient variance during long rollouts, especially when reward signals are sparse.

To circumvent the instability and computational overhead of training separate online reward and critic models, preference-based optimization methods such as Direct Preference Optimization (DPO) ([14]) and Identity Policy Optimization (IPO) ([1]) have been introduced. These methods bypass online sampling entirely by directly optimizing a preference loss over an offline dataset of pairwise comparisons. However, because offline preference methods lack exploratory online rollouts, they can struggle to discover novel, valid mathematical paths in challenging reasoning tasks.

More recently, group-based multi-sample baseline methods such as Reinforce Leave-One-Out (RLOO) ([1]) and Group Relative Policy Optimization (GRPO) ([16]) have gained traction. These algorithms reduce policy gradient variance by computing advantages relative to a group of outputs sampled from the same prompt, stabilizing training without requiring a separate critic network. However, they still inherently rely on sparse terminal rewards and lack native token-level credit assignment. In a different direction, Zhu et al. (2025) propose FlowRL, which replaces reward maximization with flow-based distribution matching, learning to balance the full reward distribution across trajectories rather than optimizing a scalar signal directly.

Bellman Residual Minimization

Value-based reinforcement learning relies heavily on the Bellman equation to propagate rewards backward through time ([4, 17]). Traditional Bellman Residual Minimization (BRM) aims to minimize the squared error of the Bellman equation across individual transitions ([3]). However, classical BRM is severely limited by the fundamental double sampling problem under non-linear transitions ([5]). Specifically, obtaining an unbiased gradient of the Bellman residual requires two independent samples of the next state from the same current state-action pair. In environments with non-linear transitions or vast token action spaces, single-sample estimates become heavily biased, which severely limits the stability of stochastic residual optimization ([4, 5]).

Our work departs from traditional BRM by utilizing Trajectory Bellman Residual Minimization (TBRM) that has been proposed in Yuan et al. [19]. Instead of minimizing errors over isolated transitions, TBRM shifts the objective to the scale of the entire rollout trajectory. This formulation allows us to derive a simple, value-based method explicitly tuned for LLM reasoning text. By evaluating consistency across the complete trajectory, TBRM effectively sidesteps the double sampling problem, allowing for stable optimization using only a single rollout sample per prompt without a dedicated critic network.

Hindsight Goal Relabeling

Originally introduced in goal-conditioned reinforcement learning, Hindsight Goal Relabeling (HGR) addresses the challenge of sparse rewards by treating failed trajectories as successful rollouts for alternative goals ([2]). By dynamically relabeling unsuccessful attempts with the actually achieved states, HGR transforms counterfactual experiences into valuable training data, thereby maximizing sample efficiency.

In this work, we adapt HGR to the domain of multi-step arithmetic reasoning in LLMs. Specifically, when a model generates an incorrect final answer, we relabel the intermediate multi-step derivation with its actual mathematical outcome, effectively converting a failed rollout into a successful demonstration for a modified problem context. This mechanism enables the model to extract meaningful gradient signals from its own errors, accelerating the optimization of intermediate reasoning steps when the ground-truth reward is highly sparse. While HGR is heavily utilized in continuous control and robotic manipulation, its application to structured language generation and complex reasoning tasks is a novel extension that yields significant gains in convergence speed and final task accuracy.

Method

The proposed method introduces a unified value-based framework for reinforcing multi-step language model reasoning without relying on separate critic architectures or complex importance sampling ratios. As illustrated in Figure 1, the framework consists of three tightly integrated components:

Overview of the Bellman-consistent trajectory RL framework

Figure 1. Overview of the Bellman-consistent trajectory RL framework, detailing the coupling of Trajectory Bellman Residual Minimization (TBRM) with group-wise RLOO baseline adjustment and hindsight goal relabeling.

  1. Trajectory Bellman Residual Minimization (TBRM): A value-based objective that maps token logits directly to action-values, converting sparse terminal signals into dense token-level supervision while preserving token-level consistency.

  2. Reinforce Leave-One-Out (RLOO) Grouping Strategy: A variance-reduction technique tailored to group-wise Bellman residuals to stabilize policy updates.

  3. Hindsight Goal Relabeling (HGR): An experience augmentation strategy that transforms failed rollouts into high-value successful trajectories to accelerate intermediate learning.

Trajectory Bellman Residual Minimization (TBRM)

Under the Kullback-Leibler (KL) regularized reinforcement learning paradigm with a reference policy πref\pi_{\mathrm{ref}}, the TBRM objective maximizes the regularized trajectory-level return (Yuan et al. [19]):

Jβ(π)=βEτ∼π[Rβ(τ)−log⁡π(τ)]=βEτ∼π[∑h=1H(Rβ(sh,ah)−log⁡π(ah∣sh))](1)\begin{aligned} J_{\beta}(\pi) = \beta\mathbb{E}_{\tau\sim\pi} \left[R_{\beta}(\tau) - \log\pi(\tau)\right] \\ &= \beta\mathbb{E}_{\tau\sim\pi} \left[\sum_{h=1}^{H} \left(R_{\beta}(s_h,a_h) - \log\pi(a_h|s_h)\right)\right] \tag*{(1)} \end{aligned}

where β>0\beta> 0 is the temperature hyperparameter, and Rβ(sh,ah)R_{\beta}(s_h,a_h) is the token-level soft reward function:

Rβ(sh,ah)=r(sh,ah)β+log⁡πref(ah∣sh)(2)R_{\beta}(s_h,a_h) = \frac{r(s_h,a_h)}{\beta} + \log\pi_{\mathrm{ref}}(a_h|s_h) \tag*{(2)}

The optimal policy maximizing the regularized objective, πβ∗=arg⁡max⁡πJβ(π)\pi^{*}_{\beta} = \arg\max_{\pi} J_{\beta}(\pi), can be derived analytically in closed form as a reweighted softmax distribution. Depending on whether the reference policy is explicitly decoupled or implicitly absorbed, the solution can be equivalently expressed in two standard forms [19]:

πβ∗(ah∣sh)∝πref(ah∣sh)exp⁡(Qr∗(sh,ah)/β)orπβ∗(ah∣sh)∝exp⁡(QRβ∗(sh,ah))\pi^{*}_{\beta}(a_h|s_h) \propto\pi_{\mathrm{ref}}(a_h|s_h) \exp\left(Q^{*}_{r}(s_h,a_h)/\beta\right) \quad\text{or} \quad\pi^{*}_{\beta}(a_h|s_h) \propto\exp\left(Q^{*}_{R_{\beta}}(s_h,a_h)\right)

where QRβ∗(sh,ah)=Qr∗(sh,ah)+βlog⁡πref(ah∣sh)Q^{*}_{R_{\beta}}(s_h,a_h) = Q^{*}_{r}(s_h,a_h) + \beta\log\pi_{\mathrm{ref}}(a_h|s_h) represents the optimal action-value function.

Consequently, the soft Bellman operator Tβ\mathcal{T}_{\beta} for the QQ function can be expressed in closed form as:

(TβQ)(s,a):=Rβ(s,a)+γEs′∼P(⋅∣s,a)[VQ(s′)]=Rβ(s,a)+γlog⁡∑a′∈Aexp⁡(Q(s′,a′))(3)\begin{aligned} (\mathcal{T}_{\beta}Q)(s,a) &:= R_{\beta}(s,a) + \gamma\mathbb{E}_{s'\sim P(\cdot|s,a)}[V_Q(s')] \\ &= R_{\beta}(s,a) + \gamma\log\sum_{a'\in\mathcal{A}} \exp\left(Q(s',a')\right) \tag*{(3)} \end{aligned}

where s′s' is the deterministic next state resulting from taking action aa in state ss, and γ\gamma is the discount factor (often set to 1 in finite-horizon token generation).

Under the autoregressive language modeling setting, state transitions are deterministic: the state shs_h consists of the prompt concatenated with all generated tokens up to step h−1h-1, and the action aha_h is the next token in the vocabulary A\mathcal{A}. We parameterize the action-value function QθQ_{\theta}, the value function VθV_{\theta}, and the resulting policy πθ\pi_{\theta} directly via the model’s unnormalized log-probabilities (logits) without an independent critic network:

Qθ(s,a):=logit⁡θ(s,a);Vθ(s):=log⁡∑a′∈Aexp⁡(logit⁡θ(s,a′));log⁡πθ(a∣s)=Qθ(s,a)−Vθ(s)Q_{\theta}(s,a) := \operatorname{logit}_{\theta}(s,a); \quad V_{\theta}(s) := \log\sum_{a'\in\mathcal{A}} \exp(\operatorname{logit}_{\theta}(s,a')); \quad\log\pi_{\theta}(a|s) = Q_{\theta}(s,a) - V_{\theta}(s)

where Vθ(s)V_{\theta}(s) is the log-sum-exp operator over the token vocabulary.

In deterministic environments, classical Bellman Residual Minimization (BRM) minimizes the squared per-step temporal difference error over a trajectory dataset D\mathcal{D}:

LDBRM(θ)=1∣D∣∑τ∈D∑h=1H(logit⁡θ(sh,ah)−(Tβlogit⁡θ)(sh,ah))2=1∣D∣∑τ∈D∑h=1H(logit⁡θ(sh,ah)−r(sh,ah)β−log⁡πref(ah∣sh)−log⁡∑a′∈Aexp⁡(logit⁡θ(sh+1,a′)))2(4)\begin{aligned} \mathcal{L}_{\mathcal{D}}^{\mathrm{BRM}}(\theta)=\frac{1}{\lvert\mathcal{D}\rvert}\sum_{\tau\in\mathcal{D}}\sum_{h=1}^{H}\left(\operatorname{logit}_{\theta}(s_h,a_h)-(\mathcal{T}_{\beta}\operatorname{logit}_{\theta})(s_h,a_h)\right)^2 \\ &=\frac{1}{\lvert\mathcal{D}\rvert}\sum_{\tau\in\mathcal{D}}\sum_{h=1}^{H}\left(\operatorname{logit}_{\theta}(s_h,a_h)-\frac{r(s_h,a_h)}{\beta}-\log\pi_{\mathrm{ref}}(a_h\mid s_h)-\log\sum_{a'\in\mathcal{A}}\exp\left(\operatorname{logit}_{\theta}(s_{h+1},a')\right)\right)^2 \tag*{(4)} \end{aligned}

However, directly optimizing LDBRM(θ)\mathcal{L}_{\mathcal{D}}^{\mathrm{BRM}}(\theta) fails in language model post-training because the process reward r(sh,ah)r(s_h,a_h) is typically unavailable or extremely sparse, only appearing as a terminal signal r(τ)r(\tau) at the final token h=Hh=H.

To bypass this limitation, Yuan et al. [19] lift the step-wise residual to a trajectory-level objective:

LDTBRM(θ)=1∣D∣∑τ∈D(∑h=1H[logit⁡θ(sh,ah)−(Tβlogit⁡θ)(sh,ah)])2=1∣D∣∑τ∈D(Vθ(s1)−r(τ)β+∑h=1Hlog⁡πθ(ah∣sh)πref(ah∣sh))2(5)\begin{aligned} \mathcal{L}_{\mathcal{D}}^{\mathrm{TBRM}}(\theta)=\frac{1}{\lvert\mathcal{D}\rvert}\sum_{\tau\in\mathcal{D}}\left(\sum_{h=1}^{H}\left[\operatorname{logit}_{\theta}(s_h,a_h)-(\mathcal{T}_{\beta}\operatorname{logit}_{\theta})(s_h,a_h)\right]\right)^2 \\ &=\frac{1}{\lvert\mathcal{D}\rvert}\sum_{\tau\in\mathcal{D}}\left(V_{\theta}(s_1)-\frac{r(\tau)}{\beta}+\sum_{h=1}^{H}\log\frac{\pi_{\theta}(a_h\mid s_h)}{\pi_{\mathrm{ref}}(a_h\mid s_h)}\right)^2 \tag*{(5)} \end{aligned}

TBRM eliminates the need for intermediate token-level reward labeling or value scoring, using only the final trajectory outcome r(τ)r(\tau). Crucially, the formulation satisfies the solution of the original token-level BRM framework, maintaining token-level consistent optimization for the final reward while propagating the sparse terminal reward back into dense token-level supervision signals.

The theoretical validity of optimizing the policy via trajectory-level residuals is justified by the soft performance difference lemma. Let π^(a∣s)=exp⁡(Q(s,a))∑a′∈Aexp⁡(Q(s,a′))\hat{\pi}(a\mid s)=\frac{\exp(Q(s,a))}{\sum_{a'\in\mathcal{A}}\exp(Q(s,a'))} be the soft-greedy policy induced by the learned value function. The suboptimality gap between the globally optimal policy π∗\pi^* and π^\hat{\pi} is strictly upper-bounded by the expected trajectory Bellman residual:

Jβ(π∗)−Jβ(π^)≤2βmax⁡π∈{π∗,π^}∣Eπ[∑h=1H(Q(sh,ah)−(TβQ)(sh,ah))]∣(6)J_{\beta}(\pi^*)-J_{\beta}(\hat{\pi})\leq2\beta\max_{\pi\in\{\pi^*,\hat{\pi}\}}\left\lvert\mathbb{E}_{\pi}\left[\sum_{h=1}^{H}\left(Q(s_h,a_h)-(\mathcal{T}_{\beta}Q)(s_h,a_h)\right)\right]\right\rvert \tag*{(6)}

The soft performance difference lemma establishes that minimizing the TBRM objective directly compresses the suboptimality gap, mathematically guaranteeing policy convergence toward the global optimum from arbitrary off-policy data. In this work, we build directly upon the TBRM framework introduced by Yuan et al. [19]; we refer the reader to their work for expanded theoretical derivations.

Reinforce Leave-One-Out (RLOO) Grouping Strategy

While policy-gradient methods like GRPO utilize group-relative reward normalization to mitigate gradient variance, value-based trajectory objectives require variance control centered around their residual errors. We introduce a modified Reinforce Leave-One-Out (RLOO) grouping strategy that leverages collective prompt statistics. Crucially, the adjustment is performed using Bellman residuals rather than raw rewards.

For each unique prompt group g∈{1,…,G}g\in\{1,\ldots,G\}, we sample b∈{1,…,ng}b\in\{1,\ldots,n_g\} parallel trajectory rollouts. We define the raw trajectory Bellman error Eb,gE_{b,g} for response bb within group gg as:

Eb,g=Vθ(s1(b,g))−r(τ(b,g))β+∑h=1Hlog⁡πθ(ah(b,g)∣sh(b,g))πref(ah(b,g)∣sh(b,g))(7)E_{b,g}=V_{\theta}(s_1^{(b,g)})-\frac{r(\tau^{(b,g)})}{\beta}+\sum_{h=1}^{H}\log\frac{\pi_{\theta}(a_h^{(b,g)}\mid s_h^{(b,g)})}{\pi_{\mathrm{ref}}(a_h^{(b,g)}\mid s_h^{(b,g)})} \tag*{(7)}

To minimize variance without introducing out-of-sample bias, each rollout’s residual is adjusted against a counterfactual baseline computed from the remaining samples within its prompt group:

E~b,g=Eb,g−1ng−1∑i≠bEi,g(8)\widetilde{E}_{b,g}=E_{b,g}-\frac{1}{n_g-1}\sum_{i\ne b}E_{i,g} \tag*{(8)}

This baseline measures the residual variance relative to the group mean, thereby facilitating more stable optimization of the neural network. To prevent optimization drifting while maintaining low variance, we optimize a combinational loss function that penalizes both group-relative and absolute residuals:

Ltotal=α⋅LRLOO+(1−α)⋅Labsolute(9)\mathcal{L}_{\mathrm{total}} = \alpha\cdot\mathcal{L}_{\mathrm{RLOO}} + (1-\alpha) \cdot\mathcal{L}_{\mathrm{absolute}} \tag*{(9)}

where LRLOO\mathcal{L}_{\mathrm{RLOO}} and Labsolute\mathcal{L}_{\mathrm{absolute}} are defined over a prompt batch size BB and group size GG as:

LRLOO=1B⋅G∑b=1B∑g=1G(E~b,g)2(10)\mathcal{L}_{\mathrm{RLOO}} = \frac{1}{B \cdot G} \sum_{b=1}^{B} \sum_{g=1}^{G} \left(\widetilde{E}_{b,g}\right)^2 \tag*{(10)}
Labsolute=1B⋅G∑b=1B∑g=1G(Eb,g)2(11)\mathcal{L}_{\mathrm{absolute}} = \frac{1}{B \cdot G} \sum_{b=1}^{B} \sum_{g=1}^{G} \left(E_{b,g}\right)^2 \tag*{(11)}

The weighting hyperparameter α\alpha is tuned within the stable regime of [0.8, 0.99]. By standardizing optimization over group-relative residuals rather than rewards, this TBRM-RLOO configuration structurally out-performs GRPO-enhanced implementations of TBRM.

Hindsight Goal Relabeling

In complex multi-step arithmetic tasks, random generation during early post-training phases leads to a high frequency of failed rollouts. These failed trajectories yield persistent zero rewards, leading to uninformative gradient updates and slow optimization. To alleviate this sample inefficiency, we integrate Hindsight Goal Relabeling (HGR).

HGR systematically converts failed trajectories into valuable learning opportunities via the following sequence:

  1. Extraction: Trajectories that fail to satisfy the original terminal condition or target goal are filtered from the active generation batch.

  1. Relabeling: The actual outcome produced by the model’s multi-step derivation is evaluated. The target goal within the initial prompt context is then ex-post relabeled to match this actual achieved outcome, effectively converting a failed rollout into a successful demonstration for a modified task instance.

  1. Augmentation: The newly relabeled valid samples are combined with the original successful trajectories, inflating the coverage of the active replay buffer.

The augmented dataset is passed directly into the group TBRM-RLOO optimization pipeline, ensuring that the model extracts meaningful token-level supervision signals even from sub-optimal rollouts, drastically increasing sample efficiency.

Hyperparameter and Algorithmic Procedure

The temperature hyperparameter β\beta controls the trade-off between maximizing the raw reward signal and remaining regularized against the reference policy πref\pi_{\mathrm{ref}}:

  • High β\beta Regularization: Excessively high values over-dampen the reward scale and minimize the impact of optimization updates, leading to slow training velocity, objective instability, and failure to reach convergence.

  • Low β\beta Regularization: Overly aggressive low values amplify the reward scale and optimization updates, causing the policy to overfit rapidly to sparse signals, collapsing the distribution variance and degrading generation quality.

For intensive token-level arithmetic reasoning tasks such as the Countdown math puzzle, configuring β\beta within the range of [0.01, 0.02] provides the optimal boundary to maximize learning velocity while preventing model collapse.

The complete training sequence is formalized in Algorithm 1.

Algorithm 1 Bellman-Consistent Group TBRM-RLOO with Hindsight Relabeling

Require: Task dataset D\mathcal{D}, reference model πref\pi_{\mathrm{ref}} with weights θref\theta_{\mathrm{ref}}, temperature β\beta, combination coefficient α\alpha, group rollout size GG, iterations TT, group rollout size GG.

  1. Initialize model weights θ←θref\theta\leftarrow\theta_{\mathrm{ref}}

  2. Initialize global step: global_step←0\mathrm{global\_step} \leftarrow0

  3. Initialize storage: Dbatch←∅\mathcal{D}_{\mathrm{batch}} \leftarrow\varnothing and Drelabel←∅\mathcal{D}_{\mathrm{relabel}} \leftarrow\varnothing

  4. while global_step<T\mathrm{global\_step} < T do

    ▷ Phase 1: Rollout Generation & Hindsight Relabeling

  1. if ∣Dbatch∣=0\lvert\mathcal{D}_{\mathrm{batch}}\rvert= 0 and ∣Drelabel∣=0\lvert\mathcal{D}_{\mathrm{relabel}}\rvert= 0 then

  2. &nbsp;&nbsp;&nbsp;&nbsp;if D\mathcal{D} iterator is exhausted then

  3. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reset dataset iterator D\mathcal{D}

  4. &nbsp;&nbsp;&nbsp;&nbsp;end if

  5. &nbsp;&nbsp;&nbsp;&nbsp;Dbatch←\mathcal{D}_{\mathrm{batch}} \leftarrow next batch from D\mathcal{D}

  6. &nbsp;&nbsp;&nbsp;&nbsp;for each prompt q∈Dbatchq \in\mathcal{D}_{\mathrm{batch}} do

  7. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate GG parallel rollouts τ(1),…,τ(G)∼πθ(⋅∣q)\tau^{(1)}, \ldots, \tau^{(G)} \sim\pi_\theta(\cdot\mid q)

  8. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for each rollout τ(i)\tau^{(i)} do

  9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if τ(i)\tau^{(i)} fails target goal gorigg_{\mathrm{orig}} then

  10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Extract actual outcome gactualg_{\mathrm{actual}} from terminal state

  11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Relabel prompt q→qnewq \rightarrow q_{\mathrm{new}} using gactualg_{\mathrm{actual}}

  12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collect to relabel pool: Drelabel←Drelabel∪{τrelabeled(i)}\mathcal{D}_{\mathrm{relabel}} \leftarrow\mathcal{D}_{\mathrm{relabel}} \cup\{\tau_{\mathrm{relabeled}}^{(i)}\}

  13. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if

  14. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end for

  15. &nbsp;&nbsp;&nbsp;&nbsp;end for

    ▷ Phase 2: Train on Standard Batch Data

  1. else if ∣Dbatch∣>0\lvert\mathcal{D}_{\mathrm{batch}}\rvert> 0 then

  2. &nbsp;&nbsp;&nbsp;&nbsp;Rollout GG generation for each prompt in Dbatch\mathcal{D}_{\mathrm{batch}}

  3. &nbsp;&nbsp;&nbsp;&nbsp;Compute Bellman residuals Eb,gE_{b,g} and RLOO-adjusted residuals E~b,g\widetilde{E}_{b,g} for Dbatch\mathcal{D}_{\mathrm{batch}}

  4. &nbsp;&nbsp;&nbsp;&nbsp;Evaluate combinational loss Ltotal=αLRLOO+(1−α)Labsolute\mathcal{L}_{\mathrm{total}} = \alpha\mathcal{L}_{\mathrm{RLOO}} + (1-\alpha)\mathcal{L}_{\mathrm{absolute}}

  5. &nbsp;&nbsp;&nbsp;&nbsp;Update parameters: θ←θ−η∇θLtotal\theta\leftarrow\theta- \eta\nabla_\theta\mathcal{L}_{\mathrm{total}}

  6. &nbsp;&nbsp;&nbsp;&nbsp;Clear batch data: Dbatch←∅\mathcal{D}_{\mathrm{batch}} \leftarrow\varnothing

  7. &nbsp;&nbsp;&nbsp;&nbsp;Increment global step: global_step←global_step+1\mathrm{global\_step} \leftarrow\mathrm{global\_step} + 1

    ▷ Phase 3: Retrain using Hindsight Relabeled Data (Multi-step Pop)

  1. else if ∣Dbatch∣=0\lvert\mathcal{D}_{\mathrm{batch}}\rvert= 0 and Drelabel≠∅\mathcal{D}_{\mathrm{relabel}} \ne\varnothing then

  2. &nbsp;&nbsp;&nbsp;&nbsp;Pop a mini-batch Brelabel⊂Drelabel\mathcal{B}_{\mathrm{relabel}} \subset\mathcal{D}_{\mathrm{relabel}}

  3. &nbsp;&nbsp;&nbsp;&nbsp;Rollout GG generation for each prompt in Brelabel\mathcal{B}_{\mathrm{relabel}}

  4. &nbsp;&nbsp;&nbsp;&nbsp;Compute Bellman residuals Eb,gE_{b,g} and RLOO-adjusted residuals E~b,g\widetilde{E}_{b,g} for Brelabel\mathcal{B}_{\mathrm{relabel}}

  5. &nbsp;&nbsp;&nbsp;&nbsp;Evaluate combinational loss Lrelabel=αLRLOO+(1−α)Labsolute\mathcal{L}_{\mathrm{relabel}} = \alpha\mathcal{L}_{\mathrm{RLOO}} + (1-\alpha)\mathcal{L}_{\mathrm{absolute}}

  6. &nbsp;&nbsp;&nbsp;&nbsp;Retrain/Update parameters: θ←θ−η∇θLrelabel\theta\leftarrow\theta- \eta\nabla_\theta\mathcal{L}_{\mathrm{relabel}}

  7. &nbsp;&nbsp;&nbsp;&nbsp;Remove trained samples from pool: Drelabel←Drelabel∖Brelabel\mathcal{D}_{\mathrm{relabel}} \leftarrow\mathcal{D}_{\mathrm{relabel}} \setminus\mathcal{B}_{\mathrm{relabel}}

  8. end if

  9. end while

Experimental Setup

All fine-tuning experiments were executed on the Modal cloud platform (https://modal.com) utilizing NVIDIA H100 GPU instances. The software framework was implemented within a Conda environment using native PyTorch code, leveraging the Hugging Face transformers and datasets libraries. Depending on the optimization paradigm, two distinct model initializations were utilized. For SFT, IPO and DPO training configurations, the foundational base model was Qwen/Qwen2.5-0.5B. Conversely, for the online reinforcement learning methods—specifically RLOO, FlowRL, and our proposed framework—training commenced from the recommended fine-tuned checkpoint ashing15/qwen-sft-countdown-defaultproj available on Hugging Face.

The default Countdown pipeline integrates three distinct public datasets from Hugging Face, each serving a tailored role within our multi-phase training workflow. To initialize the model before alignment, a warm-start SFT phase is performed using the strategy dataset (https://huggingface.co/datasets/Asap7772/cog_behav_all_strategies). For offline, preference-based optimiza tion paradigms that contrast paired trajectories—such as DPO—we employ the pairwise preference dataset (https://huggingface.co/datasets/asingh15/countdown_tasks_3to4-dpo). Finally, online verifier-based reinforcement learning methods (such as RLOO, flowRL and TBRM) and overall tracking utilize the prompt and evaluation dataset (https://huggingface.co/datasets/asingh15/countdown_tasks_3to4), maintaining its default training and testing partitions in the default project. Within this online RL regime, prompts are extracted from the dataset to generate parallel rollouts, which are subsequently evaluated and scored by a deterministic, rule-based countdown verifier.

During the optimization phase, models are generally trained for a maximum horizon of 200 steps. Model validation is performed continuously, and the optimal parameters are checkpointed and saved based on the highest achieved rollout mean accuracy. To mitigate overfitting and minimize computational waste, an early stopping criterion is enforced, which automatically terminates the training process if the rollout mean accuracy fails to improve for 20 consecutive evaluation iterations.

Results

Quantitative Evaluation

Beta Hyperparameter Exploration

The temperature hyperparameter, β\beta, serves as a critical regularizer governing the trade-off between reward maximization and policy divergence. As illustrated in Figure 2, the magnitude of β\beta dictates optimization stability. An excessively high β\beta over-penalizes deviations from the reference policy, effectively dampening the relative reward scale and stalling optimization progress; under extreme settings, this over-regularization induces training instability and prevents convergence.

Empirical evaluation of the impact of the temperature hyperparameter beta on optimization stability and reward scaling

Figure 2. Empirical evaluation of the impact of the temperature hyperparameter β\beta on optimization stability and reward scaling.

Conversely, a small β\beta value amplifies the policy gradient updates by scaling up the effective reward variance, yet values that are too aggressive precipitating catastrophic policy collapse. For our specific countdown task, empirical tuning demonstrates that β=0.001\beta= 0.001 consistently yields the optimal balance between exploration and stable policy updates.

Learning Curve Analysis

We evaluated the training dynamics of four distinct variants: vanilla TBRM, TBRM-GRPO, TBRM-RLOO, and TBRM-RLOO enhanced with hindsight relabeling. The Bellman residual loss trajectories presented in Figure 3 reveal that vanilla TBRM exhibits severe high-variance oscillations and fails to establish a clear downward trend, underscoring the instability of unconstrained Bellman residual minimization.

Comparison of Bellman residual loss learning curves across the four evaluated TBRM variants

Figure 3. Comparison of Bellman residual loss learning curves across the four evaluated TBRM variants.

In contrast, incorporating REINFORCE Leave-One-Out (RLOO) significantly stabilizes training, mitigating variance and producing a steady, monotonic decline in the residual loss. Furthermore, integrating hindsight relabeling (TBRM-RLOO-Hindsight) yields the most favorable optimization profile, characterized by minimized baseline loss and accelerated variance reduction compared to standard RLOO execution.

Notably, GRPO-TBRM induces an artificially suppressed loss magnitude. The group-relative advantage normalization inherent to GRPO over-flattens the gradient variance across samples, which ultimately stymies robust representation learning and leads to premature stagnation.

These optimization behaviors are closely mirrored by the roll-out reward scores during training (Figure 4). TBRM-RLOO with hindsight relabeling exhibits the most rapid and superior reward trajectory among all configurations. Additionally, the baseline TBRM-RLOO maintains a consistently higher reward profile than both the vanilla and GRPO-regularized variants, validating the efficacy of the variance-reduced policy gradient formulation.

Roll-out reward score trajectories during training across different TBRM configurations

Figure 4. Roll-out reward score trajectories during training across different TBRM configurations.

Comprehensive Performance Comparison

Table 1 and Figure 5 summarize the global performance metrics across baselines and proposed methods evaluated under identical compute budgets.

Pass@K on Countdown Task (Multi-Model Comparison)

Figure 5. Comprehensive Pass@k performance comparison across baseline architectures and extension models.

  • Reported highest accuracy reached during training.

Significant Gains over Vanilla TBRM: TBRM-RLOO (150 steps) markedly improves rollout accuracy from 0.61 to 0.73 (about 20% relative improvement) and Pass@16 from 0.74 to 0.84 (about 14% relative improvement) compared to vanilla TBRM, proving that structured variance reduction translates directly into better test-time generalization.

Superior Peak Generation Accuracy: TBRM-RLOO at 150 steps achieves the top overall multi-sample performance with a Pass@16 score of 84.0%. This outpaces the standalone RLOO baseline by 10.0% (absolute) and the supervised Fine-Tuning (SFT) baseline by 8.0% (absolute).

Single-Sample Compute Efficiency: Within low-compute regimes (Pass@1), TBRM-RLOO at 100 steps yields a strong performance of 56.1%, outperforming standard baseline models. This single-generation efficiency is only surpassed by configurations integrating hindsight relabeling; notably, TBRM-RLOO-Hindsight at 200 steps achieves a peak Pass@1 score of 64.0%, highlighting that hindsight trajectories significantly accelerate early-stage sample efficiency.

Surpassing the Alignment Ceiling: Traditional alignment frameworks (such as DPO and IPO) plateau early, capping performance near 72.0% on Pass@16. TBRM breaks through this apparent bottleneck, leveraging test-time trajectory modeling to continuously scale accuracy with extended training steps.

Crucially, the data indicates that hindsight relabeling acts as an effective catalyst during the initial phases of training, accelerating early reward acquisition and driving substantial gains in intermediate representation learning capacity.

Qualitative Analysis

To investigate the structural shifts in model behavior and the underlying reasoning patterns induced by our framework, we conducted a qualitative analysis on randomly sampled generation test cases from the evaluation set.

As illustrated by the representative countdown task instance in Figure 6, TBRM demonstrates a clear capacity to construct more concise, streamlined mathematical reasoning paths to arrive at the correct target value compared to standard baseline alternatives. Incorporating the hybrid TBRM-RLOO framework with hindsight relabeling also optimizes this trajectory, significantly mitigating logical redundancy and enabling the agent to satisfy numeric constraints using fewer intermediate operational steps.

Case study comparison of reasoning path generations for a representative countdown task

Figure 6. Case study comparison of reasoning path generations for a representative countdown task. relabeling yields the fastest convergence, the lowest loss variance, and the higher overall reward curves.

In contrast, offline preference-based alignment methods like IPO and DPO generate highly redundant inference sequences. While online RLOO reduces the total number of predicted tokens, its outputs still retain substantial structural redundancy, though they remain markedly superior to the unaligned SFT baseline. Meanwhile, FlowRL produces shorter individual responses but frequently requires multiple circuitous internal attempts within its generation token sequence to ultimately converge on the correct answer.

These qualitative observations demonstrate that TBRM successfully propagates terminal reward signals backward to intermediate decision nodes. Furthermore, the integration of hindsight relabeling strengthens this credit assignment mechanism, optimizing step-by-step intermediate logic and effectively discouraging mathematically circuitous generation paths.

Discussion

This project introduces a Bellman-consistent trajectory reinforcement learning framework designed to enhance intermediate learning signals for large language model mathematical inference, specifically evaluated on the countdown task. By leveraging TBRM, our approach successfully backpropagates terminal reward signals to individual intermediate inference steps, thereby systematically optimizing the reasoning chain. Distinct from traditional token-level policy optimization methods, the theoretical foundation of TBRM relies on the soft performance difference lemma. This ensures that the framework converges toward a near-optimal solution by minimizing Bellman-consistent residuals, effectively transforming sparse, terminal rewards into dense, token-level credit assignments. Empirically, we observed that the temperature hyperparameter β\beta plays a critical role in stabilizing policy optimization. Our behavioral analysis confirms that TBRM successfully prunes redundant reasoning steps, encouraging the model to discover concise and direct paths to the target value.

To address the inherent instability of policy gradient methods in language generation, we introduced two key enhancements:

  • Robust Variance Reduction via RLOO: Incorporating the REINFORCE Leave-One-Out (RLOO) estimator to adjust Bellman residuals drastically reduces gradient variance. In mathematical reasoning tasks, context and prompt difficulty vary widely, typically causing severe reward fluctuations. RLOO effectively normalizes these baseline discrepancies across trajectories, establishing a stable, steadily declining loss curve.

  • Sample Efficiency via Hindsight Experience Replay: Hindsight goal relabeling acts as a powerful data augmentation mechanism to reinforce suboptimal or failed trajectories. Our experimental results demonstrate a clear performance hierarchy: while vanilla TBRM suffers from high variance, and TBRM-RLOO stabilizes training, the integration of hindsight

Limitations and Future Work

Despite these promising results, several limitations remain to be addressed in future research. First, we observe a distinct trade-off in policy behavior over extended optimization horizons. As shown in Table 1, increasing the training steps of the RLOO-TBRM method from 100 to 150 steps results in a degradation in greedy decoding performance (Pass@1 dropping from 0.56 to 0.46) alongside a substantial improvement in exploratory coverage (Pass@16 rising from 0.78 to 0.84). This pattern indicates that while extended optimization enhances the diversity and maximum capacity of the sampled reasoning paths, it simultaneously degrades top-1 deterministic precision—potentially due to high policy variance or distribution drift during late-stage reinforcement learning. Investigating the underlying mechanics of this trade-off to preserve greedy precision while retaining wide coverage remains an immediate priority.

MethodRollout Accuracy*Pass@1Pass@3Pass@6Pass@10Pass@16
SFT Baseline-0.330.550.650.710.76
IPO-0.400.620.690.710.72
DPO-0.450.610.670.700.72
RLOO0.660.510.690.720.730.74
Extension Models
FlowRL0.700.520.660.680.700.72
TBRM (reward)0.610.550.660.700.720.74
TBRM-RLOO (100 step)0.700.560.710.740.760.78
TBRM-RLOO (150 step)0.730.460.690.770.810.84
TBRM-RLOO-Hindsight (130 step)0.710.580.720.750.760.76
TBRM-RLOO-Hindsight (200 step)0.710.640.710.720.730.74

Table 1. Performance Comparison Across Baseline and Proposed Methods

Furthermore, we observed a susceptibility to late-stage mode collapse when training the trajectory-based TBRM-RLOO-Hindsight configuration over extended horizons beyond 200 steps. This phenomenon is likely driven by the policy overfitting to synthetic, relabeled target goals. To mitigate this structural collapse, future iterations will explore dynamic curriculum scheduling mechanisms. Such schedules will gradually decay or balance the ratio between original task distributions and hindsight-relabeled trajectories as training progresses, preventing the policy from destabilizing on out-of-distribution synthetic objectives.

Hyperparameter sensitivity and architectural constraints also present opportunities for expansion. Currently, the local policy temperature parameter β\beta is held static; however, given its heavy influence on optimization stability, transitioning β\beta into an adaptive, dynamically learnable parameter warrants systematic exploration. Mechanistically, embedding this unified TBRM framework within a Mixture of Experts (MoE) architecture could allow the model to dynamically route and fuse heterogeneous loss objectives (e.g., balancing RLOO and trajectory Bellman residuals) conditioned on the complexity of the prompt. Finally, while the current empirical evaluation demonstrates strong validation on the Countdown math puzzle, expanding the benchmark scope to more complex, open-ended multi-step reasoning environments such as GSM8K and MATH is essential to rigorously evaluate the cross-domain generalization and scalability of our framework.

Conclusion

This paper presented a Bellman-consistent trajectory reinforcement learning framework designed to address the pervasive challenge of sparse rewards in LLM-based mathematical reasoning. By leveraging the existing methodology of TBRM, we successfully map sparse terminal rewards into dense credit assignments along the inference trajectory. Grounded in the soft performance difference lemma, our framework builds upon the theoretical guarantees of TBRM—specifically, that minimizing the trajectory-level Bellman residual drives the policy toward a near-optimal solution. To overcome the optimization instabilities and sample inefficiencies that arise when applying this trajectory method to sequential language generation, we integrated the REINFORCE Leave-One-Out (RLOO) estimator for robust variance reduction alongside hindsight goal relabeling for data augmentation.

Our empirical evaluations demonstrate that the unified TBRM-RLOO-Hindsight framework significantly outperforms baseline token-level policy optimization methods, delivering accelerated convergence, gradient variance reduction, and a marked reduction in reasoning redundancy. While future work is required to alleviate late-stage mode collapse and extend validation to broader mathematical benchmarks such as GSM8K and MATH, this work validates the practical efficacy of trajectory-level credit assignment for language models. Future extensions exploring dynamically learnable hyperparameters and Mixture-of-Experts (MoE) architectures will further unlock the generalizability of Bellman-consistent policy optimization for complex, multi-step cognitive tasks.

Team Contributions

As the sole investigator, Lianfa Li is responsible for the execution and management of all aspects of this project, structured into four core operational phases:

  • Environment Setup & Data Preparation: Configure the Countdown mathematical inference environment, curate training and evaluation datasets, and establish baseline evaluation setups for token-level policy optimization methods and standalone TBRM variants.

  • Algorithmic Framework Design: Develop the unified Bellman-consistent trajectory reinforcement learning framework, combining the TBRM loss formulation with the REIN-

FORCE Leave-One-Out (RLOO) variance reduction estimator and a hindsight experience replay mechanism via goal relabeling.

  • Implementation & Empirical Evaluation: Implement the complete algorithmic pipeline utilizing Qwen as the base large language model (LLM), execute systematic ablation studies to isolate the contributions of TBRM, RLOO, and hindsight data augmentation, and track training metrics including Pass@kk, loss variance, and cumulative reward curves.

  • Analysis & Comprehensive Reporting: Profile policy training convergence and late-stage mode collapse dynamics, perform behavioral analyses regarding reasoning step redundancy pruning, evaluate the sensitivity of the temperature hyperparameter β\beta, and compose the final research manuscript.

Changes from Proposal While the core objective of transforming sparse terminal rewards into dense token-level feedback via TBRM remains fully aligned with the original proposal, the specific variance reduction and sample efficiency mechanisms were adapted during empirical iteration.

First, rather than utilizing Group Relative Policy Optimization (GRPO) for trajectory-level advantage estimation as initially planned, we integrated the REINFORCE Leave-One-Out (RLOO) estimator applied directly to the Bellman residuals. This variation provides a more structurally sound and targeted variance reduction mechanism by effectively normalizing baseline discrepancies caused by varying prompt difficulties.

Second, we replaced the proposed prioritized historical trajectory replay mechanism and its associated off-policy importance-weight corrections with hindsight goal relabeling (Hindsight Experience Replay). For the sequential structures inherent to the Countdown arithmetic task, hindsight relabeling proved to be a far more appropriate data augmentation strategy, allowing the framework to directly reinforce failed or suboptimal trajectories by matching them to synthetic goals. These architectural modifications evolved naturally from the iterative nature of the research and development process, ultimately yielding better training stability and faster convergence.

References

  1. [1]Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün, and Sara Hooker. 2024. Back to basics: Revisiting REINFORCE-style optimization for learning from human feedback in LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 12248–12267.arxiv.org/abs/2402.14740
  2. [2]Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, OpenAI Pieter Abbeel, and Wojciech Zaremba. 2017. Hindsight experience replay. Advances in neural information processing systems 30 (2017).arxiv.org/abs/1707.01495
  3. [3]Andras Antos, Csaba Szepesvari, and Remi Munos. 2008. Learning near-optimal policies with Bellman-residual minimization based fitted policy iteration. Machine Learning (2008).
  4. [4]Leemon Baird. 1995. Residual Algorithms: Reinforcement Learning with Function Approximation. ICML (1995).DOI
  5. [5]Christoph Dann, Gerhard Neumann, and Jan Peters. 2014. Policy Evaluation with Temporal Differences: A Survey and Comparison. In JMLR.DOI
  6. [6]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiaotao Bi, et al. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948 (2025).DOI
  7. [7]Nathan Herr, Tim Rocktäschel, and Roberta Raileanu. 2025. LLM-first search: Self-guided exploration of the solution space. arXiv preprint arXiv:2506.05213 (2025).arxiv.org/abs/2506.05213
  8. [8]Michael Katz, Harsha Kokel, and Sarath Sreedharan. 2025. Seemingly Simple Planning Problems are Computationally Challenging: The Countdown Game. arXiv preprint arXiv:2508.02900 (2025).arxiv.org/abs/2508.02900
  9. [9]Zhong-Zhi Li, Duzhen Zhang, Ming-Liang Zhang, Jiaxin Zhang, Zengyan Liu, Yuxuan Yao, Haotian Xu, Junhao Zheng, Pei-Jie Wang, Xiuyi Chen, et al. 2025. From system 1 to system 2: A survey of reasoning large language models. arXiv preprint arXiv:2502.17419 (2025).arxiv.org/abs/2502.17419
  10. [10]Yongsheng Lian. 2025. Reinforcement Learning is all You Need. arXiv preprint arXiv:2503.09512 (2025).arxiv.org/abs/2503.09512
  11. [11]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let’s verify step by step. In International Conference on Learning Representations, Vol. 2024. 39578–39601.arxiv.org/abs/2305.20050
  12. [12]Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022a. Training language models to follow instructions with human feedback. Advances in neural information processing systems 35 (2022), 27730–27744.arxiv.org/abs/2203.02155
  13. [13]Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. 2022b. Training language models to follow instructions with human feedback. arXiv:2203.02155 [cs.CL]arxiv.org/abs/2203.02155
  14. [14]Rafael Rafailov, Archit Sharma, Eric Mitchell, et al. 2023. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. NeurIPS (2023).arxiv.org/abs/2305.18290
  15. [15]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347 (2017).arxiv.org/abs/1707.06347
  16. [16]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300 (2024).arxiv.org/abs/2402.03300
  17. [17]Richard S. Sutton and Andrew G. Barto. 1998. Reinforcement Learning: An Introduction. MIT Press (1998).DOI
  18. [18]Ronald J Williams. 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning 8, 3 (1992), 229–256.
  19. [19]Yurun Yuan, Fan Chen, Zeyu Jia, Alexander Rakhlin, and Tengyang Xie. 2026. Trajectory bellman residual minimization: A simple value-based method for llm reasoning. Advances in Neural Information Processing Systems 38 (2026), 116994–117032.arxiv.org/abs/2505.15311

Paper details

vlnc:W_9mkeavs2
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents