Skip to content

Menu

WorksComputer Science

BRIAR: Martingale Belief Smoothing on Bifurcation-Guided Reasoning Trees

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_49da8ukg. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Reinforcement learning with verifiable rewards (RLVR) has rapidly advanced long-chain reasoning, yet standard policy optimizers distribute rollout compute and gradient credit blindly across a trajectory. On hard problems, an early misstep derails the remaining trace, whereas on solvable problems, the policy keeps generating redundant verification long after the answer is already determined. We trace both pathologies to a single structural fact: under an on-policy verifier, the true prefix pass probability Vπ(u)V^π(u) along a reasoning trace forms a [0,1][0,1]-bounded Doob martingale whose learnable credit variance is strictly conserved and bounded above by Vπ(u)(1−Vπ(u))V^π(u)(1-V^π(u)), vanishing at both the derailed (Vπ→0V^π\to 0) and absorbed (Vπ→1V^π\to 1) boundaries. We introduce BRIAR (Bifurcation-guided Rollout and Inference on Adaptive Reasoning trees), a tree-structured RLVR framework built directly around this martingale geometry. First, BRIAR expands discourse-aligned reasoning trees along an upper-confidence outcome-bifurcation frontier, steering rollouts away from absorbed rumination and toward unresolved decision points. Second, it models latent node values with boundary-scaled heteroscedastic edge variances and computes exact global posteriors in linear O(∣V∣)\mathcal{O}(|V|) time via two-pass Rauch–Tung–Striebel (RTS) tree belief smoothing, eliminating O(m3)\mathcal{O}(m^3) matrix inversions while gating out spurious boundary noise. Third, BRIAR detects minimal absorbed frontier nodes and applies zero-sum log-length centered suffix advantages strictly post-absorption, leaving pre-absorption derivations provably invariant.

Introduction

Reinforcement learning with verifiable rewards (RLVR) turns deterministic final-answer checkers into an effective training signal for mathematical and scientific reasoning ([1, 2, 3, 4 b]). Yet as reasoning traces stretch to thousands of tokens, trajectory-level policy optimization hits a dual bottleneck: where to invest rollout compute during exploration and how to assign credit to intermediate decisions ([6, 7, 8]). On difficult problems, early errors lock the chain into flawed premises that subsequent self-reflection rarely rescues ([9, 7]). On tractable problems, models frequently settle on the right solution well before the end of generation and spend the remainder on redundant self-checks—so-called overthinking ([11, 12, 13] (Huang et al. 2026)). Applying a global length penalty fails to resolve this trade-off because it indiscriminately clips essential pre-solution reasoning alongside post-solution filler ([7] (Little 2026)).

Recent work attacks credit granularity from two directions. Post-hoc linear credit methods redistribute terminal rewards along complete sampled chains using Monte Carlo rollouts, statistical token association, advantage reshaping, or generative critiques ([6, 7] (Kazemnejad et al. 2025; Xie et al. 2025; Yang et al. 2026; Huang et al. 2026)). Because they act only after full linear traces are generated, they cannot redirect sampling compute away from dead ends or redundant suffixes. A second line builds on-policy reasoning trees during rollout ([2, 11] (Hou et al. 2025; Wang et al. 2025; Parascandolo et al. 2026; Yu et al. 2026)). However, existing tree RLVR methods rely on fixed token intervals or lexical token entropy to choose branch points, and estimate intermediate values either via noisy local child averages (Yang et al., [11]) or uniform-variance random walks that ignore the [0,1][0,1] boundary geometry of binary outcomes.

Figure 1. Martingale geometry of reasoning credit. (a) By martingale credit conservation (Theorem 1), local step-credit variance is bounded by the Bhatia–Davis envelope Vπ(u)(1−Vπ(u))V^{\pi}(u)(1-V^{\pi}(u)) and collapses at both the derailed (Vπ→0V^{\pi}\to0) and absorbed (Vπ→1V^{\pi}\to1) boundaries. (b) Token-entropy branching frequently fires on absorbed self-checks (Vπ>0.85V^{\pi}>0.85), whereas BRIAR directs 85% of expansions into the interior bifurcation band 0.15≤Vπ<0.850.15\le V^{\pi}<0.85. (c) Across four backbones, BRIAR achieves simultaneous accuracy gains and 22.7%–28.7% token reductions relative to DAPO.

We show that both exploration and credit estimation become unified once prefix solvability is viewed through its exact stochastic structure. Along any trajectory under policy πθ\pi_\theta, the continuation pass probability Vπ(u)=Eπθ[R∣qu]∈[0,1]V^{\pi}(u)=\mathbb{E}_{\pi_\theta}[R\mid q_u]\in[0,1] is a bounded Doob martingale. Martingale orthogonality implies a conservation law (Theorem 1): total expected squared step advantage along any trace is bounded by Vπ(nroot)(1−Vπ(nroot))≤14V^{\pi}(n_{\mathrm{root}})(1-V^{\pi}(n_{\mathrm{root}}))\le\frac{1}{4}, and local step volatility obeys Var⁡(Vπ(v)∣u)≤Vπ(u)(1−Vπ(u))\operatorname{Var}(V^{\pi}(v)\mid u)\le V^{\pi}(u)(1-V^{\pi}(u)) (Figure 1a). Credit therefore lives exclusively inside the interior bifurcation band 0<Vπ(u)<10<V^{\pi}(u)<1 and vanishes whenever a trace becomes absorbed or derailed. Lexical entropy misses this distinction: models exhibit high next-token entropy when phrasing redundant verification ("Wait, should I re-check...?") even after Vπ(u)≈1V^{\pi}(u)\approx1 (Figure 1b).

Guided by this principle, we propose BRIAR (Bifurcation-guided Rollout and Inference on Adaptive Reasoning trees). BRIAR integrates three tightly coupled components:

  • Bifurcation-guided frontier rollout (§4.1): Rather than branching at fixed intervals or lexical entropy peaks, BRIAR segments traces at natural discourse boundaries and expands an upper-confidence outcome-bifurcation frontier I(u)=p~u(1−p~u)+κv~u\mathcal{I}(u)=\tilde{p}_u(1-\tilde{p}_u)+\kappa\sqrt{\tilde{v}_u}, focusing 85% of expansions on genuinely undecided states.

  • Linear-time martingale belief smoothing (§4.2): BRIAR assigns boundary-scaled heteroscedastic edge variances σu→v2∝ψ^(u)\sigma^2_{u\to v}\propto\hat{\psi}(u) and computes exact global linear minimum mean-square error (LMMSE) node posteriors (V^u,S^u)(\widehat{V}_u,\widehat{S}_u) in O(∣V∣)\mathcal{O}(|V|) time via two-pass Rauch–Tung–Striebel (RTS) tree belief propagation (Rauch et al., 1965), avoiding O(m3)\mathcal{O}(m^3) matrix inversions while gating out boundary noise.

  • Absorption-certified conciseness (§4.3): BRIAR identifies minimal absorbed frontier nodes (V^b−zαS^b≥τabs)(\widehat{V}_b-z_\alpha\sqrt{\widehat{S}_b}\ge\tau_{\mathrm{abs}}) and applies zero-sum log-length centered advantages exclusively to post-absorption continuations, leaving pre-absorption derivations provably untouched.

Across four backbones (‘Qwen3-1.7B/4B/8B-Base‘ and ‘DeepSeek-R1-Distill-Qwen-7B‘) and five benchmarks (‘MATH-500‘, ‘AIME24‘, ‘AIME25‘, ‘OlympiadBench‘, and ‘GPQA-Diamond‘), BRIAR delivers consistent Pareto gains (Figure 1c): on ‘Qwen3-4B-Base‘, it outperforms DAPO by +4.4 points on average, surpasses TreeRL by +2.1 points, cuts response length by 28.7%, boosts conditional error-recovery rate by 4.1×, and matches DAPO’s AIME24 accuracy in 2.5× fewer GPU-hours.

Related Work

Credit assignment along linear RLVR traces. Trajectory-level RLVR methods such as GRPO (Shao et al., [1]), Dr. GRPO (Liu et al., [4]), DAPO (Yu et al., [3]), and T1 (Hou et al., 2025) broadcast one terminal scalar across all tokens, while curriculum selectors such as VCRL (Jiang et al., 2025) and PPPO (Sun et al., 2026) prioritize prompts or prefixes at the batch level. To localize credit within a trace, VinePPO (Kazemnejad et al., 2025) draws Monte Carlo rollouts from step boundaries, KTAE [6] and OAR [7] measure token–outcome sensitivity, CAPO (Xie et al., 2025) and ARBOR [7] track step critiques or reasoning state transitions, and recent advantage-shaping methods reweight tokens by counterfactual sensitivity, surprisal, entropy quadrants, or self-proposed interventions [8, 7] (Luo et al. 2026; Huang et al. 2026; Yang et al. 2026; Pan et al. 2026; Yu et al. 2026; Shen et al. 2026; Tsui et al. 2026). All of these methods operate post hoc on already-sampled chains, whereas BRIAR shapes the rollout tree itself during generation.

Tree-structured reasoning RL. Tree rollouts reuse shared prefixes to expose counterfactual branches (Li, 2025; Bahloul and Malberg, 2025; Wang et al., 2025; Bu et al., 2025). SPO [2] partitions traces at fixed token intervals, TreeRPO [11] groups step-level siblings with local averages, TreeRL (Hou et al., 2025) branches at high-entropy tokens, and newer 2026 tree variants incorporate amortized search, submodular rollout selection, rollout-budget allocation, process-informed tree rewards, posterior distillation, or interactive branching [7] (Hong et al. 2026; Hu et al. 2026; Zou et al. 2026; Zou et al. 2026; Yu et al. 2026). Unlike fixed-interval or lexical-entropy heuristics, BRIAR branches on Bayesian outcome bifurcation p~u(1−p~u)\tilde{p}_u(1-\tilde{p}_u) and replaces noisy local means and O(m3)\mathcal{O}(m^3) covariance solves with O(∣V∣)\mathcal{O}(|V|) heteroscedastic RTS smoothing.

Mitigating overthinking in reasoning models. Reasoning models frequently continue verifying after converging on an answer [11, 12, 13] (Huang et al. 2026). Trajectory-level length penalties (Ning et al., 2025) risk harming accuracy and CoT monitorability (Little, 2026); recent alternatives use stepwise penalization, difficulty-differentiated length redistribution, best-first search over shortest correct paths, rollout editing, draft-thinking, advantage shaping, or decoding-space masking [7] (Parascandolo et al. 2026; Xu et al. 2026; Cao et al. 2026; Xia et al. 2026; Wei et al. 2026; Zhu et al. 2026; Liu et al. 2026; Jiang et al. 2026). BRIAR localizes conciseness strictly past the minimal absorbed frontier via zero-sum suffix centering, guaranteeing zero prefix gradient interference.

Preliminaries and Martingale Analysis

Tree-structured RLVR. Given prompt xx, an autoregressive policy πθ\pi_\theta generates a reasoning trace yy evaluated by a binary verifier R=r~(x,y)∈{0,1}R=\tilde{r}(x,y)\in\{0,1\}. Organizing multiple shared-prefix rollouts for xx yields a rooted tree T=(V,E)T=(V,E) of maximum depth DD, where the root nrootn_{\mathrm{root}} holds qnroot=xq_{n_{\mathrm{root}}}=x and each directed edge (u,v)∈E(u,v)\in E appends one reasoning segment yu→vy_{u\to v} to form prefix qv=qu⊕yu→vq_v=q_u\oplus y_{u\to v}. Let L(u)⊆LL(u)\subseteq L be the sampled descendant leaves of uu, with mu=∣L(u)∣m_u=|L(u)| and su=∑ℓ∈L(u)r~ℓs_u=\sum_{\ell\in L(u)}\tilde{r}_\ell.

Martingale credit conservation. Define the exact on-policy continuation value of node uu as Vπ(u)=Ey∼πθ(⋅∣qu)[r~(x,qu⊕y)]∈[0,1]V^\pi(u)=\mathbb{E}_{y\sim\pi_\theta(\cdot\mid q_u)}[\tilde{r}(x,q_u\oplus y)]\in[0,1], and the true step advantage of edge (u,v)(u,v) as Aπ(u→v)=Vπ(v)−Vπ(u)A^\pi(u\to v)=V^\pi(v)-V^\pi(u). By the tower property of conditional expectation, along any random root-to-leaf path n0→n1→⋯→nDn_0\to n_1\to\cdots\to n_D, the sequence (Vπ(nd))d=0D(V^\pi(n_d))_{d=0}^{D} is a [0,1][0,1]-bounded Doob martingale with Vπ(nD)=RV^\pi(n_D)=R.

Theorem 1 (Martingale Credit Conservation). For any prompt xx, policy πθ\pi_\theta, and depth-DD segmentation:

  1. Orthogonality and total budget: Step advantages are pairwise orthogonal, E[Aπ(nd→nd+1)Aπ(nd′→nd′+1)]=0\mathbb{E}[A^\pi(n_d\to n_{d+1})A^\pi(n_{d'}\to n_{d'+1})]=0 (d≠d′d\ne d'), and their total squared energy is strictly conserved:

∑d=0D−1E[Aπ(nd→nd+1)2∣x]=Vπ(x)(1−Vπ(x))≤14.(1)\sum_{d=0}^{D-1}\mathbb{E}\left[A^\pi(n_d\to n_{d+1})^2\mid x\right]=V^\pi(x)(1-V^\pi(x))\le\frac{1}{4}. \tag*{(1)}
  1. Boundary variance collapse: At every prefix u∈Vu\in V, conditional step volatility satisfies

Var⁡(Vπ(v)∣u)≤Vπ(u)(1−Vπ(u)).(2)\operatorname{Var}(V^\pi(v)\mid u)\le V^\pi(u)(1-V^\pi(u)). \tag*{(2)}

Proof is in Appendix § 12. Theorem 1 explains why heuristic branching and homoscedastic smoothing misfire: once Vπ(u)V^\pi(u) approaches 0 or 1, no remaining step can carry genuine credit, yet token entropy remains nonzero and homoscedastic edge priors keep attributing residual leaf noise to late steps.

Figure 2. Overview of BRIAR. (1) Discourse-aligned rollouts expand along a UCB outcome-bifurcation frontier I(u)\mathcal{I}(u), skipping resolved (1.0) and derailed (0.0) subtrees. (2) A two-pass Rauch–Tung–Striebel (RTS) smoother with boundary-scaled edge variances σu→v2∝ψ^(u)\sigma^2_{u\to v} \propto\hat{\psi}(u) computes exact LMMSE posteriors (V^u,S^u)(\hat{V}_u,\hat{S}_u) and edge advantages A^u→c\hat{A}_{u\to c} in O(∣V∣)O(|V|) time. (3) Minimal absorbed frontier nodes (LCB(b)≥τabs(b) \geq\tau_{\mathrm{abs}}) supply zero-sum log-length centered suffix advantages strictly post-absorption.

BRIAR

Figure 2 summarizes BRIAR’s three stages per rollout batch.

Bifurcation-Guided Frontier Rollout

Discourse-aligned segmentation. Arbitrary fixed-token splitting often severs equations or mid-sentence reflections. Given a continuation from quq_u, we segment it at natural paragraph breaks (‘\n\n‘ or step transitions) merged greedily so each segment stays within [Lmin⁡,Lmax⁡][L_{\min}, L_{\max}] tokens (default [160,480][160, 480]) up to remaining depth D−depth⁡(u)D-\operatorname{depth}(u).

UCB outcome-bifurcation frontier. We initialize the tree by sampling MM root continuations from nrootn_{\mathrm{root}}. If all MM outcomes agree (sroot∈{0,M}s_{\mathrm{root}} \in\{0,M\}), the prompt yields zero gradient signal and terminates immediately. Otherwise, we maintain a priority frontier F\mathcal{F} of unresolved internal nodes (0<su<mu0 < s_u < m_u, depth⁡(u)<D\operatorname{depth}(u) < D). From the Beta-Bernoulli posterior Beta⁡(α0+su,α0+mu−su)\operatorname{Beta}(\alpha_0+s_u,\alpha_0+m_u-s_u) (with Jeffreys prior α0=0.5\alpha_0=0.5), each node u∈Fu \in\mathcal{F} has smoothed pass rate p~u=su+α0mu+2α0\tilde{p}_u = \frac{s_u+\alpha_0}{m_u+2\alpha_0} and posterior variance ν~u=p~u(1−p~u)mu+2α0+1\tilde{\nu}_u = \frac{\tilde{p}_u(1-\tilde{p}_u)}{m_u+2\alpha_0+1}. At each expansion round (up to budget Kexp=D−1K_{\mathrm{exp}}=D-1 expansions), BRIAR pops the node maximizing the Upper-Confidence Outcome Bifurcation index:

I(u)=p~u(1−p~u)+κν~u,(3)\mathcal{I}(u)=\tilde{p}_u(1-\tilde{p}_u)+\kappa\sqrt{\tilde{\nu}_u}, \tag*{(3)}

where κ>0\kappa>0 (κ=0.5\kappa=0.5) balances immediate bifurcation (p~u(1−p~u)\tilde{p}_u(1-\tilde{p}_u) peaks at 0.5) against under-sampled frontier branches. Popping u∗u^* completes its children to width BB by reusing existing paths, samples continuations until each nonterminal child holds at least MM leaves, updates ancestor counts (s,m)(s,m), and inserts newly unresolved children into F\mathcal{F}. Unlike single-chain selection, a priority frontier recovers when one child resolves early and shifts compute to the most undecided branch (Algorithm 1 in Appendix C.1).

Exact O(∣V∣)O(|V|) Martingale Belief Smoothing

Once tree T=(V,E)T=(V,E) is built, we estimate latent node values V(u)V(u) from leaf rewards {r~ℓ}ℓ∈L\{\tilde{r}_{\ell}\}_{\ell\in L}. Motivated by Theorem 1, we replace unit-variance random walks with a heteroscedastic martingale state-space model:

V(nroot)∼(μ0,σroot2),V(v)=V(u)+εu→v,(4)V(n_{\mathrm{root}})\sim(\mu_0,\sigma^2_{\mathrm{root}}),\qquad V(v)=V(u)+\varepsilon_{u\to v}, \tag*{(4)}

where edge increments εu→v\varepsilon_{u\to v} are zero-mean, mutually uncorrelated, and carry boundary-modulated variance

σu→v2=σ02ψ^(u)(1+ηd^u→v),ψ^(u)=p~u(1−p~u)+ϵψ,(5)\sigma^2_{u\to v}=\sigma_0^2\hat{\psi}(u)(1+\eta\hat{d}_{u\to v}),\qquad \hat{\psi}(u)=\tilde{p}_u(1-\tilde{p}_u)+\epsilon_{\psi}, \tag*{(5)}

with segment length factor d^u→v=∣yu→v∣/Lavg\hat{d}_{u\to v}=|y_{u\to v}|/L_{\mathrm{avg}}, leaf observation rℓ=V(ℓ)+ξℓr_{\ell}=V(\ell)+\xi_{\ell} of variance λ\lambda, and μ0=0.5\mu_0=0.5. Notice that ψ^(u)\hat{\psi}(u) directly encodes Eq. (2): edges leaving nearly-absorbed or nearly-derailed nodes receive tiny transition variance σ02ϵψ\sigma_0^2\epsilon_{\psi}, whereas edges leaving unresolved bifurcation nodes receive high transition variance.

Two-pass RTS tree belief propagation. Because TT is acyclic, the exact LMMSE posterior mean V^u\hat{V}_u and posterior variance S^u\hat{S}_u of every node holds at least MM leaves, updates ancestor counts (s,m)(s,m), and inserts newly unresolved children into F\mathcal{F}. Unlike single-chain selection, a priority frontier recovers when one child resolves early and shifts compute to the most undecided branch (Algorithm 1 in Appendix C.1). u∈Vu \in V can be computed without inverting any covariance matrix via two linear-time sweeps (Rauch et al., 1965):

  1. Upward (information) pass (leaves →\to root): Set Jℓ↑=λℓ−1J_\ell^\uparrow= \lambda_\ell^{-1} and hℓ↑=λℓ−1r~ℓh_\ell^\uparrow= \lambda_\ell^{-1}\tilde{r}_\ell at every leaf ℓ∈L\ell\in L. For each internal node uu in post-order, attenuate each child c∈Ch⁡(u)c \in\operatorname{Ch}(u) across edge variance σu→c2\sigma^2_{u\to c} and sum:

αu→c=11+σu→c2Jc↑,\alpha_{u\to c} = \frac{1}{1+\sigma^2_{u\to c}J_c^\uparrow},
Ju↑=∑c∈Ch⁡(u)αu→cJc↑,hu↑=∑c∈Ch⁡(u)αu→chc↑.(6)J_u^\uparrow= \sum_{c\in\operatorname{Ch}(u)}\alpha_{u\to c}J_c^\uparrow,\qquad h_u^\uparrow= \sum_{c\in\operatorname{Ch}(u)}\alpha_{u\to c}h_c^\uparrow. \tag*{(6)}
  1. Downward (smoothing) pass (root →\to leaves): Initialize the root posterior S^root=(σroot−2+Jroot↑)−1\hat{S}_{\mathrm{root}} = \left(\sigma_{\mathrm{root}}^{-2} + J_{\mathrm{root}}^\uparrow\right)^{-1} and V^root=S^root(σroot−2μ0+hroot↑)\hat{V}_{\mathrm{root}} = \hat{S}_{\mathrm{root}}\left(\sigma_{\mathrm{root}}^{-2}\mu_0 + h_{\mathrm{root}}^\uparrow\right). Then for each edge (u,c)∈E(u,c) \in E in pre-order, set Gu→c=1−αu→c∈(0,1)G_{u\to c}=1-\alpha_{u\to c}\in(0,1) and μ^c↑=hc↑/Jc↑\hat{\mu}_c^\uparrow=h_c^\uparrow/J_c^\uparrow, yielding

V^c=(1−Gu→c)V^u+Gu→cμ^c↑,(7)\hat{V}_c=(1-G_{u\to c})\hat{V}_u+G_{u\to c}\hat{\mu}_c^\uparrow, \tag*{(7)}
S^c=(1−Gu→c)2S^u+σu→c2(1−Gu→c).(8)\hat{S}_c=(1-G_{u\to c})^2\hat{S}_u+\sigma^2_{u\to c}(1-G_{u\to c}). \tag*{(8)}

The smoothed edge advantage for every selected outgoing edge (u,c)∈Esel(u,c)\in E_{\mathrm{sel}} is immediately

A^u→c=V^c−V^u=Gu→c(μ^c↑−V^u).(9)\hat{A}_{u\to c}=\hat{V}_c-\hat{V}_u=G_{u\to c}(\hat{\mu}_c^\uparrow-\hat{V}_u). \tag*{(9)}

Thus Gu→cG_{u\to c} acts as an exact Empirical-Bayes shrinkage factor: when child cc has dense subtree evidence (Jc↑J_c^\uparrow large) and parent uu lies inside the bifurcation band (ψ^(u)\hat{\psi}(u) large), Gu→c→1G_{u\to c}\to1; when uu is already boundary-locked or cc is sparsely sampled, Gu→c→0G_{u\to c}\to0 and noisy leaf fluctuations are damped out.

Absorption-Certified Conciseness & Update

Minimal absorbed frontier. To curb post-solution overthinking without harming difficult derivations, we compute each node’s smoothed lower confidence bound LCB⁡(u)=V^u−zαS^u\operatorname{LCB}(u)=\hat{V}_u-z_\alpha\sqrt{\hat{S}_u} (zα=1.0z_\alpha=1.0). We define the minimal absorbed frontier A(T)\mathcal{A}(T) as internal nodes b∈V∖Lb\in V\setminus L satisfying: (i) all sampled descendant leaves are correct (sb=mb≥2s_b=m_b\ge2), (ii) LCB⁡(b)≥τabs\operatorname{LCB}(b)\ge\tau_{\mathrm{abs}} (τabs=0.85\tau_{\mathrm{abs}}=0.85), and (iii) its parent fails condition (i) or (ii). Thus bb pinpoints the earliest step where the reasoning path became statistically absorbed.

Zero-sum log-length suffix advantages. For each b∈A(T)b\in\mathcal{A}(T) whose mbm_b descendant suffixes have token lengths {Lk}k=1mb\{L_k\}_{k=1}^{m_b} with spread Lmax⁡−Lmin⁡≥150L_{\max}-L_{\min}\ge150 and Lmax⁡/Lmin⁡≥1.5L_{\max}/L_{\min}\ge1.5, we assign all mbm_b suffixes a centered log-length advantage:

Akabs=clip⁡(ℓˉb−log⁡Lkstd⁡(log⁡L)+ϵ,−cmax⁡,cmax⁡),(10)A_k^{\mathrm{abs}}=\operatorname{clip}\left(\frac{\bar{\ell}_b-\log L_k}{\operatorname{std}(\log L)+\epsilon},-c_{\max},c_{\max}\right), \tag*{(10)}

where ℓˉb=1mb∑j=1mblog⁡Lj\bar{\ell}_b=\frac{1}{m_b}\sum_{j=1}^{m_b}\log L_j and cmax⁡=2.0c_{\max}=2.0, re-centered to enforce ∑k=1mbAkabs=0\sum_{k=1}^{m_b}A_k^{\mathrm{abs}}=0. Comparing all mbm_b suffixes uses every verified rollout rather than discarding intermediate paths. We standardize edge advantages BedgeB_{\mathrm{edge}} and suffix advantages BabsB_{\mathrm{abs}} (capped at 12% of batch samples) separately per tree and optimize the asymmetric clipped DAPO objective (Yu et al., [3]) (ϵlow=0.2,ϵhigh=0.28\epsilon_{\mathrm{low}}=0.2,\epsilon_{\mathrm{high}}=0.28; Appendix § 13.§ 2).

Theoretical Analysis

All proofs are given in Appendix § 12.

Proposition 1 (Exact O(∣V∣)\mathcal{O}(|V|) LMMSE Equivalence). For any tree T=(V,E)T=(V,E) and heteroscedastic variances {σu→v2}\{\sigma^2_{u\to v}\} in Eq. (5), the two-pass RTS algorithm (6)–(8) computes the exact global LMMSE posterior mean V^=μ01+ΣV(ΣLL+λIm)−1(r−μ01)\hat{V}=\mu_0\mathbf{1}+\Sigma_{V}(\Sigma_{LL}+\lambda I_m)^{-1}(r-\mu_0\mathbf{1}) and exact posterior variances S^u=[ΣVV−ΣVL(ΣLL+λIm)−1ΣLV]u,u\hat{S}_u=[\Sigma_{VV}-\Sigma_{VL}(\Sigma_{LL}+\lambda I_m)^{-1}\Sigma_{LV}]_{u,u} for all u∈Vu\in V in O(∣V∣)\mathcal{O}(|V|) time and memory, without constructing or inverting ΣLL∈Rm×m\Sigma_{LL}\in\mathbb{R}^{m\times m}.

Proposition 2 (Boundary-Gated Noise Suppression). For any edge (u,c)∈E(u,c)\in E, the RTS advantage satisfies ∣A^u→c∣≤σu→c2(1+ηdu→c)Jc↑1+σu→c2Jc↑(ψ^(u))∣μ^c↑−V^u∣|\hat{A}_{u\to c}|\le\frac{\sigma^2_{u\to c}(1+\eta d_{u\to c})J_c^\uparrow}{1+\sigma^2_{u\to c}J_c^\uparrow}(\hat{\psi}(u))|\hat{\mu}_c^\uparrow-\hat{V}_u|. Consequently, as uu approaches absorption or derailment (pˉu→{0,1})(\bar{p}_u\to\{0,1\}), A^u→c\hat{A}_{u\to c} shrinks linearly with ψ^(u)\hat{\psi}(u) and attains strictly lower variance than any homoscedastic tree smoother (ψ^≡1)(\hat{\psi}\equiv1) when true step increments obey Eq. (2).

Proposition 3 (Prefix Gradient Invariance). Let b∈A(T)b\in\mathcal{A}(T) be any minimal absorbed frontier node with prefix qbq_b and suffix batch {(qb,τk,Akabs)}k=1mb\{(q_b,\tau_k,A_k^{\mathrm{abs}})\}_{k=1}^{m_b} drawn i.i.d. from πθold(⋅∣qb)\pi_{\theta_{\mathrm{old}}}(\cdot\mid q_b). Because ∑k=1mbAkabs=0\sum_{k=1}^{m_b}A_k^{\mathrm{abs}}=0 and the suffix gradient acts only on tokens t>∣qb∣t>|q_b| conditioned on qbq_b, the absorption term contributes zero gradient to prefix tokens t≤∣qb∣t\le|q_b| and maintains zero unclipped expectation whenever length is independent of score given identical prefix rewards.

Experiments

Experimental Setup

Backbones and training data. We evaluate four diverse backbones (Yang et al., [11]; Guo et al., [2]): ‘Qwen3-1.7B-Base‘, ‘Qwen3-4B-Base‘, ‘Qwen3-8B-Base‘, and the distilled reasoning model ‘DeepSeek-R1-Distill-Qwen-7B‘ (plus ‘Qwen3-14B-Base‘ in Appendix § 14). Following standard RLVR math protocols (Yu et al., [3]; Yang et al., [11]), ‘Qwen3-1.7B/4B-Base‘ train on DAPO-Math-17k (Yu et al., [3]) with an 8K token budget; ‘Qwen3-8B-Base‘ and ‘R1-Distill-Qwen-7B‘ train on DAPO-Math-17k plus Numi-naMath verifiable problems with a 16K budget. Default BRIAR settings use D=5D=5, B=6B=6, M=6M=6, κ=0.5\kappa=0.5, τabs=0.85\tau_{\mathrm{abs}}=0.85, σ02=2.2\sigma_0^2=2.2, η=0.4\eta=0.4, λ=0.05\lambda=0.05, and batch size 128 prompts (full details in Appendix § 13).

Benchmarks and baselines. We evaluate five benchmarks spanning competition math and out-of-domain scientific reasoning: ‘MATH-500‘ (Hendrycks et al., 2021; Lightman et al., 2024), ‘AIME24‘, ‘AIME25‘, ‘OlympiadBench‘ (He et al., 2024), and ‘GPQA-Diamond‘ (Rein et al., 2023) (plus ‘AMC23‘, ‘Minerva‘ (Lewkowycz et al., 2022), and ‘Live-CodeBench‘ (Jain et al., 2024) in Appendix § 14).

EstimatorMSE↓ρsp ↑Rev. %↓ms
Local Child-Mean0.02410.6124.80.04
Entropy Child-Mean0.02180.6621.40.06
Homoscedastic Tree Walk0.01890.7415.24.82
BRIAR Hetero. RTS0.01380.858.90.11

caption: tbl:2: Credit-assignment audit against 256-rollout Monte Carlo oracle on 128 trees (Qwen3-4B-Base). MSE: internal node-value error; ρsp: edge-advantage Spearman correlation; Rev. %: wrong-sign edge rate for ∣A⋆∣≥0.05|A^\star| \ge0.05; ms: CPU solver latency per tree.

We compare against ten RLVR baselines spanning outcome-level RL (‘GRPO’, ‘Dr. GRPO’, ‘DAPO’, ‘DAPO+LenPen’, and ‘DAPO (Matched Compute)’ matched in GPU-hours/step), linear credit (‘VinePPO’, ‘KTAE’, ‘OAR’), and tree RLVR (‘SPO’, ‘TreeRPO’, ‘TreeRL’, ‘BFS-PO’). We report mean accuracy over 3 training seeds (Pass@16 on AIME/GPQA-D, Pass@8 on MATH-500/OlympiadBench).

Main Results

Table 1 shows that BRIAR achieves the best accuracy on every benchmark across all four backbones while generating the shortest responses among accurate RL methods. On ‘Qwen3-4B-Base’, BRIAR reaches 48.1% average accuracy, beating DAPO (43.7%) by +4.4 points, DAPO (Matched Compute) by +3.0 points, and the strongest tree baseline TreeRL (46.0%) by +2.1 points, while reducing average response length by 28.7% (2,410 vs. 3,380 tokens). Gains transfer strongly to out-of-domain ‘GPQA-Diamond’ (42.3% vs. 40.9% for TreeRL) and hold across ‘Qwen3-1.7B-Base’ (+2.4 over DAPO, −25.8% tokens), ‘Qwen3-8B-Base’ (+4.2, −28.0% tokens), and ‘DeepSeek-R1-Distill-Qwen-7B’ (+3.3, −22.7% tokens). By contrast, ‘DAPO + LenPen’ cuts tokens aggressively (2,310) but loses 2.7 points on AIME24 (22.4% vs. 25.1%). Figure 4(a) confirms wall-clock efficiency: despite sampling tree branches, BRIAR’s concentrated credit signals match DAPO’s final AIME24 accuracy in 2.5× fewer GPU-hours.

Model / MethodMATH-500AIME24AIME25OlympiadGPQA-DAvg.Avg. Len.
Qwen3-1.7B-Base
Base Checkpoint54.83.32.522.424.621.51,840
GRPO71.613.88.834.130.831.83,620
DAPO73.415.610.235.831.733.33,490
DAPO + LenPen71.913.58.633.930.931.82,480
KTAE74.116.310.736.432.133.93,310
TreeRPO74.316.511.036.732.334.23,080
TreeRL74.616.911.337.032.634.53,120
BFS-PO74.416.710.936.532.434.22,740
BRIAR (ours)75.818.412.638.333.535.72,590
Qwen3-4B-Base
Base Checkpoint41.26.54.825.128.421.21,960
GRPO83.122.819.446.237.941.93,690
Dr. GRPO83.923.620.147.038.542.63,410
DAPO84.625.121.348.139.243.73,380
DAPO (Matched Compute)86.126.723.049.440.145.13,420
DAPO + LenPen82.822.418.945.738.041.62,310
VinePPO85.626.222.348.939.844.63,540
OAR86.027.123.249.540.345.23,190
SPO85.826.522.649.239.944.83,040
TreeRPO86.226.923.049.840.445.32,910
TreeRL86.628.223.850.640.946.02,970
BFS-PO86.427.623.450.140.745.62,580
BRIAR (ours)88.230.826.452.842.348.12,410
Qwen3-8B-Base
Base Checkpoint61.410.48.131.233.628.92,120
DAPO90.136.230.855.445.851.74,150
TreeRPO90.837.932.456.846.752.93,610
TreeRL91.239.133.657.647.453.83,680
BFS-PO91.038.432.957.147.153.33,180
BRIAR (ours)92.441.736.359.848.955.82,990
DeepSeek-R1-Distill-Qwen-7B
Base Checkpoint91.454.238.859.648.258.46,840
DAPO92.657.843.162.450.361.26,420
TreeRL93.159.644.963.851.462.65,890
BFS-PO92.958.944.263.351.162.15,340
BRIAR (ours)94.162.347.665.753.064.54,960

Table 1. Main reasoning accuracy (%) and mean generated token length across five benchmarks and four backbones (mean over 3 seeds; Pass@16 on AIME/GPQA, Pass@8 on MATH-500/OlympiadBench). Avg. is the unweighted five-benchmark mean; Avg. Len. is mean generated tokens across the math suite. Best RL result per column in each block is in bold.

Figure 4. Training dynamics, difficulty breakdown, and absorption audit (Qwen3-4B-Base). (a) AIME24 accuracy vs. GPU-hours: BRIAR matches DAPO’s final accuracy ≈ 2.5× faster. (b) MATH-500 accuracy gains by difficulty quintile concentrate on the hardest problems (+8.7 pp on Q5). (c) Token breakdown before vs. after minimal absorbed frontier A(T)\mathcal{A}(T): ‘DAPO+LenPen‘ truncates pre-absorption derivations, whereas BRIAR preserves pre-absorption reasoning and cuts post-absorption rumination by 66.1%.

Mechanism and Oracle Credit Audit

To test credit fidelity directly, we construct 128 trees on ‘MATH-500’ and ‘AIME24’ (‘Qwen3-4B-Base’) and estimate ground-truth internal node values using 256 independent Monte Carlo continuations per node (Table 2 and Figure 3). Local child-mean (‘TreeRPO’) suffers 0.0241 MSE and flips the sign of 24.8% of edges with non-trivial advantage (∣A⋆∣≥0.05|A^\star| \ge0.05).

Figure 3. Mechanism and oracle audit (Qwen3-4B-Base). (a) Node-value MSE against a 256-rollout MC oracle across depths 1–5: BRIAR’s heteroscedastic RTS cuts error across every depth. (b) Solver wall-clock scaling: O(∣V∣)O(|V|) RTS is 43.8× faster than O(m3)O(m^3) dense covariance inversion at m=256m=256 leaves. (c) RTS edge gain Gu→cG_{u\to c} peaks in the interior bifurcation zone and smoothly gates off noise near 0 and 1.

MethodCE↓Refl↑SRR ↑PrePostTot.
DAPO34.820.44.9211012703380
DAPO + LenPen37.616.23.816406702310
TreeRL30.522.111.420409302970
BFS-PO31.221.510.619106702580
BRIAR (ours)25.924.320.119804302410

caption: tbl:3: Error recovery and absorption-boundary token audit (Qwen3-4B-Base). Left (AIME24, %): critical error (CE), reflection (Refl), and conditional successful reflection (SR|R). Right (MATH-500, tokens): tokens before (Pre) and after (Post) the minimal absorbed frontier.

Homoscedastic dense tree smoothing improves MSE to 0.0189 (15.2% reversals) but requires 4.82 ms per tree (43.8× slower at m=256m=256 leaves, Figure 3b). BRIAR’s heteroscedastic RTS smoother achieves the lowest MSE (0.0138, a 42.7% cut vs. child-mean and 27.0% vs. homoscedastic smoothing), raises edge-advantage Spearman correlation to 0.85, slashes wrong-sign reversals to 8.9%, and runs in 0.11 ms per tree. Figure 3(c) confirms that boundary-scaled variances smoothly gate down Gu→cG_{u\to c} near 0 and 1.

Error Recovery and Post-Absorption Audit

Following segment-level error-recovery protocols [9, 12], we split AIME24 traces into eight segments to measure critical errors (‘CE‘), reflections (‘Refl‘), and conditional successful reflection (‘SR|R‘) via automated verification prompts (Appendix § 13.§ 3), and decompose MATH-500 tokens into pre- vs. post-absorption counts around A(T)A(T) (Table 3, Figure 4b–Figure 4c). BRIAR cuts critical errors from 34.8% to 25.9% and lifts ‘SR|R‘ from 4.9% to 20.1% (4.1× DAPO), yielding +8.7 pp on the hardest MATH-500 quintile (Figure 4b). Figure 4(c) shows why ‘DAPO+LenPen‘ fails: it clips pre-absorption derivations (2,110 → 1,640), whereas BRIAR preserves 1,980 pre-absorption tokens and cuts post-absorption rumination by 66.1% (1,270 → 430).

Component Ablations

Table 4 ablates every component on ‘Qwen3-4B-Base‘. Token-entropy branching drops average accuracy by 1.5 points (48.1 → 46.6), and greedy highest-value branching drops it by 2.5 (45.6). Child-mean values lose 1.8 points (46.3), and homoscedastic RTS loses 1.0 (47.1). Dropping absorption conciseness keeps accuracy (47.9) at 3,140 tokens, whereas a global length penalty loses 3.0 points (45.1).

VariantMATH-500AIME24AIME25OlympiadGPQA-DAvg.Avg. Len.
BRIAR (full)88.230.826.452.842.348.12,410
Uniform chain rollout (DAPO)84.625.121.348.139.243.73,380
Token-entropy frontier (TreeRL-style)87.128.924.551.141.246.62,610
Greedy highest-value frontier86.327.623.450.240.545.62,480
Child-mean value (no RTS)86.828.724.350.941.046.32,440
Homoscedastic RTS (no ψ^\hat{\psi})87.429.625.151.741.647.12,460
No absorption conciseness (Aabs=0A^{\mathrm{abs}}=0)88.030.326.652.542.147.93,140
Pairwise ±1 shortest/longest suffix87.529.525.051.941.847.12,520
Global length penalty (pre+post)85.926.822.749.640.445.12,180

Table 4. Component ablations on Qwen3-4B-Base isolating frontier selection (rows 2–4), martingale RTS belief smoothing (rows 5–6), and absorption-certified conciseness (rows 7–9).

Conclusion

We introduced BRIAR, a tree-structured RLVR framework built on the martingale conservation geometry of prefix solvability. By expanding a UCB outcome-bifurcation frontier, smoothing node beliefs in O(∣V∣)\mathcal{O}(|V|) via heteroscedastic RTS propagation, and centering suffix lengths past the minimal absorbed frontier, BRIAR raises accuracy, speeds up training by 2.5×, and removes post-solution rumination.

Limitations

Our evaluation focuses on verifiable reasoning tasks (mathematics, graduate science, and algorithmic code in Appendix § 14) where final answers admit deterministic grading; extending BRIAR to open-ended tasks with noisy or learned reward models requires adapting the leaf observation variance λ\lambda and absorption threshold τabs\tau_{\mathrm{abs}}. Second, discourse-aligned segmentation assumes reasoning traces exhibit structural paragraph or step boundaries; while we include fallback token bounds [Lmin⁡,Lmax⁡][L_{\min}, L_{\max}], very dense monolithic traces revert toward uniform chunking. Third, although O(∣V∣)O(\lvert V\rvert) RTS smoothing eliminates solver overhead (0.11 ms/tree), on-policy tree rollouts still generate more tokens per optimizer step than single-chain rollouts; as shown in Figure 4(a), wall-clock savings rely on faster per-step convergence from cleaner credit signals. Finally, while we evaluate models up to 14B parameters and tree depths up to D=6D=6, scaling BRIAR to multi-turn tool-use agents with external environment resets remains an exciting direction for future work.

Ethics Statement

BRIAR improves the sample and compute efficiency of reinforcement learning post-training on public reasoning benchmarks, potentially reducing the energy footprint of training capable reasoning models. It introduces no private datasets or human-subject data, and all public datasets and pretrained backbones are used under their respective licenses. Like any general-purpose reasoning enhancement method, stronger multi-step reasoning could be misapplied if coupled with unsafe downstream objectives; standard safety evaluations remain essential before deployment.

References

Extended Related Work and Positioning

From outcome-only RLVR to structured process credit. Early RLVR pipelines such as DeepSeekMath ([1]) and DeepSeek-R1 ([2]) rely on group-relative outcome advantages, where all tokens in a trajectory share a single scalar normalized across GG sampled completions. Subsequent analyses identified token-level length bias and clipping asymmetry ([3, 4]), prolonged RL scaling regimes ([5]), and curriculum scheduling based on prompt variance or prefix learnability (Jiang et al., 2025; Sun et al., 2026; Hou et al., 2025). To refine credit within a single trajectory without training an expensive value critic (Lightman et al., 2024), VinePPO (Kazemnejad et al., 2025) uses Monte Carlo rollouts from step boundaries, KTAE ([6]) and OAR ([7]) estimate token-level statistical association or outcome sensitivity, CAPO (Xie et al., 2025) introduces generative step critiques, and ARBOR ([7]) locates failures through explicit reasoning-state tracking. More recently, a wave of 2026 advantage-shaping works modulates token gradients via surprisal (Luo et al., 2026), counterfactual sensitivity reallocation ([8]), rollout entropy quadrants (Huang et al., 2026), self-proposed interventions (Yang et al., 2026), disentangled perplexity ([7]), semifactual prompt perturbations (Pan et al., 2026), Fused Gromov–Wasserstein alignment (Yu et al., 2026), minimal-witness filtering (Tsui et al., 2026), or selective actor-critic stabilization (Shen et al., 2026). BRIAR differs fundamentally by shifting credit assignment from post-hoc linear traces to active tree construction governed by martingale bifurcation variance.

Tree-structured exploration vs. martingale smoothing. Tree-structured RLVR methods reuse shared prefixes to expose contrasting continuations (Li, 2025; Bahloul and Malberg, 2025; Wang et al., 2025; Bu et al., 2025). SPO ([2]) partitions traces into fixed-length segments; TreeRPO ([11]) groups step-level siblings and averages child rewards locally; TreeRL (Hou et al., 2025) branches at high-entropy tokens; and 2026 tree-RL methods explore amortized search (Hong et al., 2026), submodular informativeness (Hu et al., 2026), unified root-and-prefix budget allocation (Zou et al., 2026), process-reward-informed rollouts ([7]), posterior distillation (Zou et al., 2026), and interactive branching (Yu et al., 2026). BRIAR makes two orthogonal advances: (i) replacing lexical entropy or fixed grids with a UCB outcome-bifurcation frontier that tracks Vπ(v)(1−Vπ(v))V^{\pi}(v)(1-V^{\pi}(v)), and (ii) replacing noisy local child-means and O(m3)\mathcal{O}(m^3) covariance inversions with exact O(∣V∣)\mathcal{O}(|V|) heteroscedastic Rauch–Tung–Striebel smoothing (Rauch et al., 1965).

Targeted overthinking mitigation. Empirical studies demonstrate that reasoning models converge to their final answers well before terminating generation ([11, 12, 13] (Huang et al. 2026)). Uniform length penalties (Ning et al., 2025) can degrade reasoning accuracy and reduce chain-of-thought monitorability (Little, 2026). Recent conciseness methods employ best-first search over shortest correct solutions (Paras­candolo et al., 2026), stepwise penalization ([7]), difficulty-differentiated length redistribution (Xia et al., 2026), advantage shaping with length-aware gradient regulation (Xu et al., 2026), draft-thinking (Cao et al., 2026), dynamic rollout editing (Wei et al., 2026), cache-aware reward coordination (Zhu et al., 2026), consistency-aware logit masking (Liu et al., 2026), and adaptive entropy-sparing (Jiang et al., 2026). BRIAR complements these methods by providing a statistically certified boundary—the minimal absorbed frontier A(T)\mathcal{A}(T)—past which zero-sum log-length centering suppresses rumination while preserving pre-absorption derivations.

Mathematical Proofs and Theoretical Extensions

Proof of Theorem 1 (Martingale Credit Conservation)

Proof. Fix a prompt xx and policy πθ\pi_{\theta}, and consider a random root-to-leaf trajectory n0→n1→⋯→nDn_0 \to n_1 \to\cdots\to n_D drawn from πθ(⋅∣x)\pi_{\theta}(\cdot\mid x) with terminal reward R=Vπ(nD)∈{0,1}R = V^{\pi}(n_D) \in\{0,1\}. Let Fd=σ(qnd)\mathcal{F}_d = \sigma(q_{n_d}) be the filtration generated by prefixes up to depth dd. By definition, Vπ(nd)=E[R∣Fd]V^\pi(n_d)=\mathbb{E}[R\mid\mathcal{F}_d], so (Vπ(nd))d=0D\left(V^\pi(n_d)\right)_{d=0}^{D} is a bounded Doob martingale with respect to (Fd)d=0D(\mathcal{F}_d)_{d=0}^{D}.

Part 1 (Orthogonality and Conservation). For any d∈{0,…,D−1}d\in\{0,\ldots,D-1\}, the step advantage Ad:=Aπ(nd→nd+1)=Vπ(nd+1)−Vπ(nd)A_d:=A^\pi(n_d\to n_{d+1})=V^\pi(n_{d+1})-V^\pi(n_d) is a martingale difference:

E[Ad∣Fd]=E[Vπ(nd+1)∣Fd]−Vπ(nd)=0.(11)\mathbb{E}[A_d\mid\mathcal{F}_d]=\mathbb{E}[V^\pi(n_{d+1})\mid\mathcal{F}_d]-V^\pi(n_d)=0. \tag*{(11)}

For d<d′d<d', AdA_d is Fd+1\mathcal{F}_{d+1}-measurable and Fd+1⊆Fd′\mathcal{F}_{d+1}\subseteq\mathcal{F}_{d'}. By the tower property,

E[AdAd′∣x]=E[AdE[Ad′∣Fd′]∣x]=0.(12)\mathbb{E}[A_dA_{d'}\mid x]=\mathbb{E}\left[A_d\mathbb{E}[A_{d'}\mid\mathcal{F}_{d'}]\mid x\right]=0. \tag*{(12)}

Telescoping R−Vπ(x)=Vπ(nD)−Vπ(n0)=∑d=0D−1AdR-V^\pi(x)=V^\pi(n_D)-V^\pi(n_0)=\sum_{d=0}^{D-1}A_d and squaring both sides yields

Var⁡(R∣x)=E[(R−Vπ(x))2∣x]=∑d=0D−1E[Ad2∣x]+2∑d<d′E[AdAd′∣x]=∑d=0D−1E[Ad2∣x].(13)\begin{aligned} \operatorname{Var}(R\mid x)&=\mathbb{E}\left[(R-V^\pi(x))^2\mid x\right]\\ &=\sum_{d=0}^{D-1}\mathbb{E}[A_d^2\mid x]+2\sum_{d<d'}\mathbb{E}[A_dA_{d'}\mid x]\\ &=\sum_{d=0}^{D-1}\mathbb{E}[A_d^2\mid x]. \tag*{(13)} \end{aligned}

Since R∈{0,1}R\in\{0,1\} is Bernoulli with mean Vπ(x)V^\pi(x), Var⁡(R∣x)=Vπ(x)(1−Vπ(x))≤14\operatorname{Var}(R\mid x)=V^\pi(x)(1-V^\pi(x))\le\frac{1}{4}, proving Eq. (1).

Part 2 (Boundary Variance Collapse). Fix any node u∈Vu\in V at depth dd and let Z=Vπ(nd+1)Z=V^\pi(n_{d+1}) conditional on nd=un_d=u. Because Z∈[0,1]Z\in[0,1] almost surely and E[Z∣u]=Vπ(u)\mathbb{E}[Z\mid u]=V^\pi(u), we have Z2≤ZZ^2\le Z point-wise, hence

Var⁡(Z∣u)=E[Z2∣u]−(E[Z∣u])2≤E[Z∣u]−Vπ(u)2=Vπ(u)(1−Vπ(u)),(14)\begin{aligned} \operatorname{Var}(Z\mid u)&=\mathbb{E}[Z^2\mid u]-\left(\mathbb{E}[Z\mid u]\right)^2\\ &\le\mathbb{E}[Z\mid u]-V^\pi(u)^2\\ &=V^\pi(u)(1-V^\pi(u)), \tag*{(14)} \end{aligned}

which establishes Eq. (2) (the Bhatia–Davis inequality specialized to [0,1][0,1]).

Proof of Proposition 1 (Exact O(|V|) LMMSE Equivalence)

Proof. Under the linear state-space model Eqs. (4)–(5), V(nroot)=μ0+ε0V(n_{\mathrm{root}})=\mu_0+\varepsilon_0 with Var⁡(ε0)=σroot2\operatorname{Var}(\varepsilon_0)=\sigma_{\mathrm{root}}^2, and for any node u∈Vu\in V, V(u)=μ0+ε0+∑e∈P(u)εeV(u)=\mu_0+\varepsilon_0+\sum_{e\in P(u)}\varepsilon_e, where P(u)P(u) is the unique root-to-uu edge path. Because increments {εe}\{\varepsilon_e\} are uncorrelated with ε0\varepsilon_0 and each other, for any two nodes u,w∈Vu,w\in V,

Cov⁡(V(u),V(w))=σroot2+∑e∈P(LCA⁡(u,w))σe2=[ΣVV]u,w.(15)\operatorname{Cov}(V(u),V(w))=\sigma_{\mathrm{root}}^2+\sum_{e\in P(\operatorname{LCA}(u,w))}\sigma_e^2=[\Sigma_{VV}]_{u,w}. \tag*{(15)}

With noisy leaf observations rℓ=V(ℓ)+ξℓr_\ell=V(\ell)+\xi_\ell (Var⁡(ξℓ)=λ\operatorname{Var}(\xi_\ell)=\lambda), the joint vector (V,r)(V,r) has second-order moments identical to a Gaussian graphical model on the tree TT with unary leaf potentials p(rℓ∣V(ℓ))∝exp⁡(−12λ(rℓ−V(ℓ))2)p(r_\ell\mid V(\ell))\propto\exp\left(-\frac{1}{2\lambda}(r_\ell-V(\ell))^2\right), pairwise edge potentials exp⁡(−12σu→c2(V(c)−V(u))2)\exp\left(-\frac{1}{2\sigma_{u\to c}^2}(V(c)-V(u))^2\right), and root prior exp⁡(−12σroot2(V(nroot)−μ0)2)\exp\left(-\frac{1}{2\sigma_{\mathrm{root}}^2}(V(n_{\mathrm{root}})-\mu_0)^2\right). By the Gauss–Markov theorem, the LMMSE estimator

V^=μ01+ΣVL(ΣLL+λIm)−1(r−μ01)(16)\widehat{V}=\mu_0\mathbf{1}+\Sigma_{VL}(\Sigma_{LL}+\lambda I_m)^{-1}(r-\mu_0\mathbf{1}) \tag*{(16)}

and its error covariance diagonal S^u\widehat{S}_u coincide identically with the exact Gaussian posterior means and marginal variances.

Because TT is a tree (zero cycles), Gaussian belief propagation in canonical (information) form converges to the exact marginal posterior in one upward sweep and one downward sweep ((Rauch et al., 1965)):

  • Upward message: Suppose node cc summarizes its entire descendant subtree L(c)L(c) by canonical parameters (Jc↑,hc↑)(J_c^\uparrow,h_c^\uparrow) so that log⁡p(rL(c)∣Vc)=−12Jc↑Vc2+hc↑Vc+const.\log p(r_{L(c)}\mid V_c)=-\frac{1}{2}J_c^\uparrow V_c^2+h_c^\uparrow V_c+\text{const.} Integrating out VcV_c over Vc=Vu+εu→cV_c=V_u+\varepsilon_{u\to c} yields

∫exp⁡(−(Vc−Vu)22σu→c2−12Jc↑Vc2+hc↑Vc) dVc∝exp⁡(−12αu→cJc↑Vu2+αu→chc↑Vu),(17)\int\exp\left(-\frac{(V_c-V_u)^2}{2\sigma_{u\to c}^2}-\frac{1}{2}J_c^\uparrow V_c^2+h_c^\uparrow V_c\right)\,dV_c \propto\exp\left(-\frac{1}{2}\alpha_{u\to c}J_c^\uparrow V_u^2+\alpha_{u\to c}h_c^\uparrow V_u\right), \tag*{(17)}

where αu→c=(1+σu→c2Jc↑)−1\alpha_{u\to c}=(1+\sigma_{u\to c}^2J_c^\uparrow)^{-1}. Multiplying conditionally independent child messages at parent uu sums their canonical parameters: Ju↑=∑c∈Ch⁡(u)αu→cJc↑J_u^\uparrow=\sum_{c\in\operatorname{Ch}(u)}\alpha_{u\to c}J_c^\uparrow and hu↑=∑c∈Ch⁡(u)αu→chc↑h_u^\uparrow=\sum_{c\in\operatorname{Ch}(u)}\alpha_{u\to c}h_c^\uparrow, recovering Eq. (6). At the root, combining the prior (σroot−2,σroot−2μ0)(\sigma_{\mathrm{root}}^{-2},\sigma_{\mathrm{root}}^{-2}\mu_0) with (Jroot↑,hroot↑)(J_{\mathrm{root}}^\uparrow,h_{\mathrm{root}}^\uparrow) yields the exact root posterior (V^root,S^root)(\widehat{V}_{\mathrm{root}},\widehat{S}_{\mathrm{root}}).

  • Downward RTS pass: Conditioned on VuV_u and all leaves rr, VcV_c is conditionally independent of r∖rL(c)r\setminus r_{L(c)} given VuV_u. Completing the square in (Vc−Vu)2/(2σu→c2)+12Jc↑Vc2−hc↑Vc(V_c-V_u)^2/(2\sigma_{u\to c}^2)+\frac{1}{2}J_c^\uparrow V_c^2-h_c^\uparrow V_c gives

E[Vc∣Vu,r]=(1−Gu→c)Vu+Gu→cμ^c↑,\mathbb{E}[V_c\mid V_u,r]=(1-G_{u\to c})V_u+G_{u\to c}\widehat{\mu}_c^\uparrow,
Var⁡(Vc∣Vu,r)=σu→c2(1−Gu→c),(18)\operatorname{Var}(V_c\mid V_u,r)=\sigma_{u\to c}^2(1-G_{u\to c}), \tag*{(18)}

where Gu→c=σu→c2Jc↑1+σu→c2Jc↑=1−αu→cG_{u\to c}=\frac{\sigma_{u\to c}^2J_c^\uparrow}{1+\sigma_{u\to c}^2J_c^\uparrow}=1-\alpha_{u\to c} and μ^c↑=hc↑/Jc↑\widehat{\mu}_c^\uparrow=h_c^\uparrow/J_c^\uparrow. Applying the Law of Iterated Expectations gives V^c=E[Vc∣r]=(1−\widehat{V}_c=\mathbb{E}[V_c\mid r]=(1- Gu→cV^u+Gu→cμ^c↑G_{u\to c}\hat{V}_u+G_{u\to c}\hat{\mu}^{\uparrow}_c (see Eq. (7)), and applying the Law of Total Variance gives

S^c=Var⁡(E[Vc∣Vu,r]∣r)+E[Var⁡(Vc∣Vu,r)∣r]=(1−Gu→c)2S^u+σu→c2(1−Gu→c),(19)\begin{aligned} \hat{S}_c=\operatorname{Var}\left(\mathbb{E}[V_c\mid V_u,r]\mid r\right)+\mathbb{E}\left[\operatorname{Var}(V_c\mid V_u,r)\mid r\right] \\ &=(1-G_{u\to c})^2\hat{S}_u+\sigma^2_{u\to c}(1-G_{u\to c}), \tag*{(19)} \end{aligned}

matching Eq. (8).

Each node and edge is visited exactly twice (constant arithmetic per visit), yielding O(∣V∣)O(|V|) time and O(∣V∣)O(|V|) memory.

Proof of Proposition 2 (Boundary-Gated Noise Suppression)

Proof. From Eq. (9), A^u→c=Gu→c(μ^c↑−V^u)\hat{A}_{u\to c}=G_{u\to c}(\hat{\mu}^{\uparrow}_c-\hat{V}_u) with Gu→c=σu→c2Jc↑1+σu→c2Jc↑G_{u\to c}=\frac{\sigma^2_{u\to c}J^{\uparrow}_c}{1+\sigma^2_{u\to c}J^{\uparrow}_c}. Substituting σu→c2=σ02ψ^(u)(1+ηd^u→c)\sigma^2_{u\to c}=\sigma_0^2\hat{\psi}(u)(1+\eta\hat{d}_{u\to c}) and noting 1+σu→c2Jc↑≥1+σ02ϵψψ^cJc↑1+\sigma^2_{u\to c}J^{\uparrow}_c\geq1+\sigma_0^2\epsilon_\psi\hat{\psi}_cJ^{\uparrow}_c (since ψ^(u)≥ϵψ\hat{\psi}(u)\geq\epsilon_\psi and ηd^u→c≥0\eta\hat{d}_{u\to c}\geq0) immediately yields

∣Gu→c∣≤σ02(1+ηd^u→c)Jc↑1+σ02ϵψJc↑ψ^(u).(20)|G_{u\to c}|\leq\frac{\sigma_0^2(1+\eta\hat{d}_{u\to c})J^{\uparrow}_c}{1+\sigma_0^2\epsilon_\psi J^{\uparrow}_c}\hat{\psi}(u). \tag*{(20)}

When uu lies near an absorbed or derailed boundary (p~u→{0,1}\tilde{p}_u\to\{0,1\}), p~u(1−p~u)→0\tilde{p}_u(1-\tilde{p}_u)\to0 and Gu→cG_{u\to c} shrinks proportionally to ψ^(u)=O(ϵψ)\hat{\psi}(u)=O(\epsilon_\psi), blocking noisy leaf residuals from inducing spurious edge advantages. Furthermore, by Gauss–Markov optimality, when the true second-order transition variances follow the martingale envelope Var⁡(Vπ(v)∣u)≤Vπ(u)(1−Vπ(u))\operatorname{Var}(V^\pi(v)\mid u)\leq V^\pi(u)(1-V^\pi(u)) (Theorem 1), any linear estimator whose transition model uses misspecified homoscedastic variance (ψ^≡1\hat{\psi}\equiv1) cannot achieve strictly lower posterior MSE than the correctly heteroscedastic LMMSE smoother.

Proof of Proposition 3 (Prefix Gradient Invariance)

Proof. For any minimal absorbed node b∈A(T)b\in\mathcal{A}(T), the suffix batch samples (qb,τk,Akabs)(q_b,\tau_k,A^{\mathrm{abs}}_k) (k=1,…,mbk=1,\ldots,m_b) appear in the DAPO objective (22) strictly conditioned on qbq_b, with token summation restricted to t∈{1,…,∣τk∣}t\in\{1,\ldots,|\tau_k|\} (i.e., tokens strictly following qbq_b). Thus the policy-gradient contribution on prefix token log-probabilities ∇θlog⁡πθ(qb,≤s)\nabla_\theta\log\pi_\theta(q_{b,\leq s}) is identically zero. Moreover, before clipping (ρk,t≡1\rho_{k,t}\equiv1 at the on-policy point θ=θold\theta=\theta_{\mathrm{old}}), if τ1,…,τmb∼i.i.d.πθold(⋅∣qb)\tau_1,\ldots,\tau_{m_b}\mathrel{\overset{\mathrm{i.i.d.}}{\sim}}\pi_{\theta_{\mathrm{old}}}(\cdot\mid q_b) satisfy E[∇θlog⁡πθ(τk∣qb)∣∣τk∣]=0\mathbb{E}[\nabla_\theta\log\pi_\theta(\tau_k\mid q_b)\mid|\tau_k|]=0, then E[∑k=1mbAkabs∇θlog⁡πθ(τk∣qb)]=0\mathbb{E}[\sum_{k=1}^{m_b}A^{\mathrm{abs}}_k\nabla_\theta\log\pi_\theta(\tau_k\mid q_b)]=0, and in any case ∑k=1mbAkabs=0\sum_{k=1}^{m_b}A^{\mathrm{abs}}_k=0 guarantees zero net advantage mass per absorbed node, preventing global length drift across absorbed states.

Finite-Sample Concentration of the UCB Bifurcation Frontier

Proposition 4 (Sub-Gaussian Concentration of I(u)\mathcal{I}(u)). For any frontier node u∈Fu\in\mathcal{F} with mum_u i.i.d. descendant leaves of true mean pu=Vπ(u)p_u=V^\pi(u) and Jeffreys-smoothed estimate p~u=su+0.5mu+1\tilde{p}_u=\frac{s_u+0.5}{m_u+1}, with probability at least 1−δ1-\delta over sampled leaves:

∣p~u(1−p~u)−pu(1−pu)∣≤log⁡(2/δ)2mu+1mu+1.(21)\left|\tilde{p}_u(1-\tilde{p}_u)-p_u(1-p_u)\right|\leq\sqrt{\frac{\log(2/\delta)}{2m_u}}+\frac{1}{m_u+1}. \tag*{(21)}

In particular, setting κ=O(log⁡(1/δ))\kappa=O(\sqrt{\log(1/\delta)}) ensures I(u)≥pu(1−pu)\mathcal{I}(u)\geq p_u(1-p_u) with high probability while decaying as O(mu−1/2)O(m_u^{-1/2}) on resolved or absorbed subtrees.

Proof. Since f(p)=p(1−p)f(p)=p(1-p) is 1-Lipschitz on [0,1][0,1] (∣f′(p)∣=∣1−2p∣≤1|f'(p)|=|1-2p|\leq1), ∣p~u(1−p~u)−pu(1−pu)∣≤∣p~u−pu∣|\tilde{p}_u(1-\tilde{p}_u)-p_u(1-p_u)|\leq|\tilde{p}_u-p_u|. Writing p~u−pu=(p~u−p^u)+(p^u−pu)\tilde{p}_u-p_u=(\tilde{p}_u-\hat{p}_u)+(\hat{p}_u-p_u) with p^u=su/mu\hat{p}_u=s_u/m_u, Hoeffding’s inequality bounds ∣p^u−pu∣≤log⁡(2/δ)2mu|\hat{p}_u-p_u|\leq\sqrt{\frac{\log(2/\delta)}{2m_u}} with probability 1−δ1-\delta, while ∣p~u−p^u∣=∣0.5−p^u∣mu+1≤1mu+1|\tilde{p}_u-\hat{p}_u|=\frac{|0.5-\hat{p}_u|}{m_u+1}\leq\frac{1}{m_u+1} deterministically. Summing both terms completes the proof.

Worked Numerical Comparison on a 5-Node Reasoning Tree

Consider a depth-2 tree where root u0u_0 has two children: an absorbed branch u1u_1 (with two correct leaves ℓ1,ℓ2\ell_1,\ell_2 of reward 1, 1, so p~u1≈0.83\tilde{p}_{u_1}\approx0.83) and an unresolved bifurcation branch u2u_2 (with two leaves ℓ3,ℓ4\ell_3,\ell_4 of reward 1, 0, so p~u2=0.50\tilde{p}_{u_2}=0.50). Under λ=0.05\lambda=0.05, σ02=2.2\sigma_0^2=2.2, η=0\eta=0:

  • Homoscedastic tree walk (ψ^≡1\hat{\psi}\equiv1, σ2=2.2\sigma^2=2.2 everywhere): Both edges u1→ℓ1u_1\to\ell_1 and u2→ℓ3u_2\to\ell_3 get identical shrinkage G=2.2×201+2.2×20=0.978G=\frac{2.2\times20}{1+2.2\times20}=0.978, treating leaf-level noise under u1u_1 and u2u_2 symmetrically. Even when r~ℓ1=1\tilde{r}_{\ell_1}=1 and r~ℓ2=0\tilde{r}_{\ell_2}=0 reflects a rare late slip (1/16 rate), homoscedastic smoothing injects an inflated advantage into the already-settled edge u1→ℓ2u_1\to\ell_2.

  • BRIAR heteroscedastic RTS: At u1u_1, ψ^(u1)=0.83(0.17)+0.01=0.151\hat{\psi}(u_1)=0.83(0.17)+0.01=0.151, reducing σu1→ℓ2=0.33\sigma^2_{u_1\to\ell}=0.33, whereas at u2u_2, ψ^(u2)=0.25+0.01=0.26\hat{\psi}(u_2)=0.25+0.01=0.26, keeping σu2→ℓ2=0.57\sigma^2_{u_2\to\ell}=0.57. If u1u_1 is even deeper into absorption (s=6s=6, m=6m=6, p~u1=0.93\tilde{p}_{u_1}=0.93),

Algorithm 1: BRIAR Rollout, Smoothing, and Batch Construction

Figure 1.

ψ^(u1)=0.075\hat{\psi}(u_1)=0.075, damping single-leaf slip fluctuations by more than 3×3\times relative to the active bifurcation branch u2u_2.

Detailed Experimental Settings and Algorithms

Complete Algorithm

Algorithm 1 summarizes one complete tree rollout, O(∣V∣)O(|V|) RTS belief smoothing, and absorption-certified batch assembly for prompt xx.

Policy Objective and Implementation Hyperparameters

Following DAPO (Yu et al., [3]), given combined tree batch B=Bedge∪Babs\mathcal{B}=\mathcal{B}_{\mathrm{edge}}\cup\mathcal{B}_{\mathrm{abs}} of samples (qi,yi,Ai)(q_i,y_i,A_i), we optimize the token-mean asymmetric clipped objective:

J(θ)=1∑i∈B∣yi∣∑i∈B∑t=1∣yi∣min⁡(ρi,t(θ)Ai,clip⁡(ρi,t(θ),1−ϵlow,1+ϵhigh)Ai)(22)\mathcal{J}(\theta)=\frac{1}{\sum_{i\in\mathcal{B}}|y_i|}\sum_{i\in\mathcal{B}}\sum_{t=1}^{|y_i|}\min\left(\rho_{i,t}(\theta)A_i,\operatorname{clip}\left(\rho_{i,t}(\theta),1-\epsilon_{\mathrm{low}},1+\epsilon_{\mathrm{high}}\right)A_i\right) \tag*{(22)}

with ρi,t(θ)=πθ(yi,t∣qi,yi,<t)πθold(yi,t∣qi,yi,<t)\rho_{i,t}(\theta)=\frac{\pi_\theta(y_{i,t}\mid q_i,y_{i,<t})}{\pi_{\theta_{\mathrm{old}}}(y_{i,t}\mid q_i,y_{i,<t})} and (ϵlow,ϵhigh)=(0.20,0.28)(\epsilon_{\mathrm{low}},\epsilon_{\mathrm{high}})=(0.20,0.28). Table 5 summarizes all default hyperparameters. Experiments on 1.7B/4B models use 2 nodes ×\times 8 NVIDIA A100 80GB GPUs; 7B/8B/14B models use 4 nodes ×\times 8 A100 GPUs.

HyperparameterDefault Value
Rollout batch size128 prompts / step
Train / Eval samplingT=1.0T=1.0, p=1.0p=1.0 / T=0.6T=0.6, p=0.95p=0.95
OptimizerAdamW (β1=0.9\beta_1=0.9, β2=0.999\beta_2=0.999)
Learning rate / wd1×10−61\times10^{-6} (20-step warmup) / 0.1
DAPO clip (ϵlow,ϵhigh)(\epsilon_{\mathrm{low}},\epsilon_{\mathrm{high}})(0.20, 0.28)
Max generation budget8K (1.7B/4B) / 16K (7B–14B)
Tree (D,B,M)(D,B,M)(5, 6, 6)
Discourse [Lmin⁡,Lmax⁡][L_{\min},L_{\max}][160, 480] tokens
Jeffreys α0\alpha_0 / UCB κ\kappa0.5 / 0.5
Edge (σ02,η)(\sigma_0^2,\eta)(2.2, 0.4)
Floor ϵψ\epsilon_\psi / leaf noise λ\lambda0.01 / 0.05
Root prior (μ0,σroot2)(\mu_0,\sigma_{\mathrm{root}}^2)(0.5, 100.0)
Absorption (zα,τabs)(z_\alpha,\tau_{\mathrm{abs}})(1.0, 0.85)
Suffix filterΔL≥150\Delta L\ge150, ratio ≥1.5\ge1.5, cap 12%

Table 5. Complete hyperparameters for BRIAR and RLVR training.

Evaluation Prompts and Behavioral Annotation Protocol

Pre- vs. post-absorption token decomposition. For each MATH-500 evaluation trajectory, we construct prefixes at token cutoffs p∈{0.1,0.2,…,0.9}p\in\{0.1,0.2,\ldots,0.9\} of total response length LtotL_{\mathrm{tot}} and elicit an immediate answer using (Liu and Wang, [12]):

Based on the reasoning above, state your final answer inside \boxed{}.

The earliest cutoff p∗p^* whose elicited answer matches the trajectory’s verified final answer defines the pre-absorption count p∗Ltotp^*L_{\mathrm{tot}} and post-absorption count (1−p∗)Ltot(1-p^*)L_{\mathrm{tot}}.

Segment-level error and reflection prompts. Following Kang et al. [9], each AIME24 trajectory is partitioned into eight equal-length segments S0,…,S7S_0,\ldots,S_7 and labeled using a frontier judge LLM with shared context (problem, ground_truth, full_solution, segment) and strict JSON schema {"label": "yes"|"no", "justification": "<one sentence>"}:

  1. Critical Error (CE): “Judge only the segment above: does this segment introduce a new logical, algebraic, or arithmetic flaw that diverts a previously valid line of reasoning toward an incorrect conclusion? Inherited errors do not count.”

  1. Reflection (Refl): “Judge only the segment above: does this segment explicitly re-examine, question, verify, or re-derive an earlier step or intermediate claim? Plain forward continuation counts as no.”

  1. Successful Reflection (SR, asked only when Refl = yes): “Return yes only if (a) prior to this segment the trajectory was heading toward an incorrect answer, and (b) this reflection redirects the reasoning to reach the ground-truth answer.”

Comprehensive Supplementary Experiments

Additional Benchmarks and Code Transfer

Table Table 6 evaluates ‘Qwen3-4B-Base‘ on three additional benchmarks excluded from the main table: ‘AMC23‘, ‘Minerva Math‘ (Lewkowycz et al., 2022), and out-of-domain algorithmic code generation on ‘LiveCodeBench‘ v5 (Jain et al., 2024). BRIAR improves over TreeRL by +3.7 points on AMC23, +2.4 on Minerva Math, and +2.6 on LiveCodeBench, confirming that martingale tree credit transfers beyond mathematical competitions to executable code reasoning.

MethodAMC23MinervaLiveCodeB.Avg.
DAPO57.528.421.635.8
TreeRPO60.030.123.437.8
TreeRL61.331.024.238.8
BFS-PO60.830.623.938.4
BRIAR (ours)65.033.426.841.7

Table 6. Additional math and out-of-domain code transfer on Qwen3-4B-Base (Pass@16 on AMC23, Pass@8 on Minerva Math and LiveCodeBench v5).

Scaling to 14B Parameters and Multi-Seed Stability

Table Table 7 and Figure 5(b) track performance across four ‘Qwen3‘ scales (‘1.7B‘, ‘4B‘, ‘8B‘, ‘14B‘). Even at 14B parameters, BRIAR surpasses DAPO by +3.7 points (62.1% vs. 58.4%) and TreeRL by +1.8 points (62.1% vs. 60.3%) while cutting average response length by 26.8% (3,310 vs. 4,520 tokens).

ModelDAPOTRPOTRLBRIARLen. (D/B)
Q3-1.7B33.334.434.735.73490/2590
Q3-4B43.745.346.048.13380/2410
Q3-8B51.752.953.855.84150/2990
Q3-14B58.459.560.362.14520/3310

Table 7. Model scaling across Qwen3-Base backbones (1.7B to 14B): five-benchmark average accuracy (%) and mean generated token length (DAPO / BRIAR). TRPO: TreeRPO; TRL: TreeRL.

Table Table 8 reports full per-benchmark means and standard errors across 3 independent random seeds on ‘Qwen3-4B-Base‘, verifying that BRIAR’s gains exceed 3× the cross-seed standard error on every benchmark.

Depth-Wise Credit Density and Compute-to-Target Audit

Table Table 9 compares depth-by-depth credit density and wasted expansions at matched tree size between lexical-entropy branching (‘TreeRL‘) and BRIAR on ‘Qwen3-4B-Base‘. At depth 5, BRIAR retains 24.6% non-zero advantage edges versus 7.8% for ‘TreeRL‘, while cutting expansions launched inside already-absorbed subtrees (Vπ(u)>0.85V^{\pi}(u) > 0.85) from 48.5% down to 13.8%. Table Table 10 summarizes total optimizer steps and wall-clock A100 GPU-hours needed to reach DAPO’s final AIME24 accuracy (25.1%): BRIAR crosses 25.1% in 135 steps (1,120 GPU-hours, 2.5× faster than DAPO and 1.4× faster than ‘TreeRL‘).

Tree Geometry and Hyperparameter Sensitivity

Table Table 11 and Figure 5(a,c) examine sensitivity to tree geometry (D,B,M)(D, B, M), UCB exploration κ\kappa, and absorption threshold τabs\tau_{\mathrm{abs}} on ‘Qwen3-4B-Base‘. Increasing MM from 2 to 6 steadily boosts accuracy (46.1% →\to 48.1%) because denser leaf multiplicity improves p~u\tilde{p}_u estimates in Eq. (3), while widening BB from 6 to 8 adds only +0.2 points at +18% step compute. Similarly, Figure 5(a) shows a broad high-performing plateau around τabs∈[0.80,0.90]\tau_{\mathrm{abs}} \in[0.80, 0.90] and κ∈[0.3,0.7]\kappa\in[0.3, 0.7].

Qualitative Trajectory and Error-Recovery Case Studies

Table Table 12 presents representative segment-by-segment annotations (S0S_0–S7S_7) comparing DAPO and BRIAR across 8 sampled evaluations on a challenging AIME24 problem. Under DAPO, trajectories that incur an early critical error (‘CE‘) in

Traj.S0S_0S1S_1S2S_2S3S_3S4S_4S5S_5S6S_6S7S_7Ans.
DAPO (3 / 8 correct; mean 4,120 tokens)
1––––––FR–Y
2CE–FRFRCE+FRFR–FRN
3–CE–FR–FRCE+FR–N
4––CE––FR––N
5––––––––Y
6CECEFR–FR–FRCEN
7–CE–CEFRSR––Y
8––CEFRFR–FRFRN
BRIAR (6 / 8 correct; mean 2,680 tokens)
1––––––stopY
2–CE–SR––stopY
3––CE–SR––stopY
4––––––stopY
5–CECE+FR–FR–FRCEN
6–––CESR–stopY
7––CE––SR––Y
8–––CEFR–FR–N

Table 12. Qualitative AIME24 segment trace comparison (S0S_0–S7S_7). CE: critical error; FR: failed reflection; SR: successful reflection; stop: early termination following solution absorption.

Figure 5. Hyperparameter sensitivity, model scaling, and tree-budget trade-offs. (a) Smooth accuracy plateau across absorption threshold τabs\tau_{\mathrm{abs}} and UCB exploration κ\kappa on Qwen3-4B-Base. (b) Scaling from Qwen3-1.7B-Base to Qwen3-14B-Base: BRIAR maintains +2.4 to +4.4 pp gains over DAPO at every scale. (c) Tree geometry frontier across depth DD, width BB, and completion budget MM.

MethodMATH-500AIME24AIME25OlympiadGPQA-DAvg.
DAPO84.6±0.3184.6 \pm0.3125.1±0.5225.1 \pm0.5221.3±0.5821.3 \pm0.5848.1±0.4148.1 \pm0.4139.2±0.3639.2 \pm0.3643.7±0.2943.7 \pm0.29
TreeRPO86.2±0.2586.2 \pm0.2526.9±0.6126.9 \pm0.6123.0±0.5523.0 \pm0.5549.8±0.3849.8 \pm0.3840.4±0.3340.4 \pm0.3345.3±0.2645.3 \pm0.26
TreeRL86.6±0.2486.6 \pm0.2428.2±0.4928.2 \pm0.4923.8±0.4723.8 \pm0.4750.6±0.3550.6 \pm0.3540.9±0.3140.9 \pm0.3146.0±0.2446.0 \pm0.24
BFS-PO86.4±0.2686.4 \pm0.2627.6±0.5427.6 \pm0.5423.4±0.5123.4 \pm0.5150.1±0.3750.1 \pm0.3740.7±0.3440.7 \pm0.3445.6±0.2545.6 \pm0.25
BRIAR88.2±0.2188.2 \pm0.2130.8±0.4630.8 \pm0.4626.4±0.4426.4 \pm0.4452.8±0.3252.8 \pm0.3242.3±0.2842.3 \pm0.2848.1±0.2048.1 \pm0.20

Table 8. Per-seed stability (mean ±\pm standard error across 3 seeds) on Qwen3-4B-Base.

DepthNon-zero Adv. (%) TreeRLNon-zero Adv. (%) BRIARAbsorbed Exp. (%) TreeRLAbsorbed Exp. (%) BRIAR
158.474.218.24.1
244.166.825.66.4
329.754.533.48.9
416.339.241.011.7
57.824.648.513.8

Table 9. Depth-wise credit density and wasted absorbed expansions on Qwen3-4B-Base (matched tree size). Non-zero Adv.: fraction of edges with ∣A^∣≥0.02|\hat{A}| \ge0.02; Absorbed Exp.: fraction of expansions launched at nodes with oracle Vπ(u)>0.85V^\pi(u) > 0.85.

Tree GeometryAvg. (%)Avg. Len.Compute
D=3,B=6,M=4D=3, B=6, M=446.82,5600.86×0.86\times
D=4,B=6,M=6D=4, B=6, M=647.62,4700.94×0.94\times
D=5,B=6,M=6D=5, B=6, M=6 (default)48.12,4101.00×1.00\times
D=5,B=8,M=6D=5, B=8, M=648.32,3901.18×1.18\times
D=6,B=6,M=6D=6, B=6, M=648.02,4401.14×1.14\times
D=5,B=6,M=2D=5, B=6, M=246.12,6900.72×0.72\times
D=5,B=6,M=4D=5, B=6, M=447.32,5100.87×0.87\times

Table 11. Sensitivity to tree depth DD, branching width BB, and completion budget MM on Qwen3-4B-Base.

MethodSteps/25.1GPU-hPeak Avg.Speedup
DAPO4202,80043.71.0×1.0\times
VinePPO3403,18044.60.9×0.9\times
TreeRPO2752,11045.31.3×1.3\times
TreeRL2101,59046.01.8×1.8\times
BFS-PO2251,64045.61.7×1.7\times
BRIAR1351,12048.12.5×2.5\times

Table 10. Compute-to-target audit on Qwen3-4B-Base: optimizer steps and total A100 GPU-hours required to reach DAPO’s final AIME24 accuracy (25.1%), alongside peak 5-benchmark average.

S0S_0–S2S_2 produce repeated failed reflections (‘FR‘) that rationalize flawed intermediate algebra and still terminate incorrectly. Under BRIAR, trajectories that encounter an early error in S1S_1 or S2S_2 frequently trigger a decisive corrective reflection (‘SR‘) in S3S_3–S5S_5 and subsequently terminate cleanly without generating redundant S6S_6–S7S_7 verification filler.

Extended Discussion and Failure Modes

Why martingale belief smoothing beats homoscedastic covariance and local means. Tree RLVR methods face two opposing estimation failures. Pure child-mean estimators discard information from sibling subtrees and suffer high variance at deeper branches where mum_u is small. Homoscedastic Gaussian tree models fix variance globally, which pools across leaves but treats an edge inside a settled subtree (V≈1V \approx1) identically to an edge at an undecided turning point

@page 17/18 starts_mid=0 ends_mid=1

Figure 5 (PDF p. 17). Hyperparameter sensitivity, model scaling, and tree-budget trade-offs. (a) Smooth accuracy plateau across absorption threshold τabs\tau_{\mathrm{abs}} and UCB exploration κ\kappa on Qwen3-4B-Base. (b) Scaling from Qwen3-1.7B-Base to Qwen3-14B-Base: BRIAR maintains +2.4 to +4.4 pp gains over DAPO at every scale. (c) Tree geometry frontier across depth DD, width BB, and completion budget MM.

MethodMATH-500AIME24AIME25OlympiadGPQA-DAvg.
DAPO84.6±0.3184.6 \pm0.3125.1±0.5225.1 \pm0.5221.3±0.5821.3 \pm0.5848.1±0.4148.1 \pm0.4139.2±0.3639.2 \pm0.3643.7±0.2943.7 \pm0.29
TreeRPO86.2±0.2586.2 \pm0.2526.9±0.6126.9 \pm0.6123.0±0.5523.0 \pm0.5549.8±0.3849.8 \pm0.3840.4±0.3340.4 \pm0.3345.3±0.2645.3 \pm0.26
TreeRL86.6±0.2486.6 \pm0.2428.2±0.4928.2 \pm0.4923.8±0.4723.8 \pm0.4750.6±0.3550.6 \pm0.3540.9±0.3140.9 \pm0.3146.0±0.2446.0 \pm0.24
BFS-PO86.4±0.2686.4 \pm0.2627.6±0.5427.6 \pm0.5423.4±0.5123.4 \pm0.5150.1±0.3750.1 \pm0.3740.7±0.3440.7 \pm0.3445.6±0.2545.6 \pm0.25
BRIAR88.2±0.2188.2 \pm0.2130.8±0.4630.8 \pm0.4626.4±0.4426.4 \pm0.4452.8±0.3252.8 \pm0.3242.3±0.2842.3 \pm0.2848.1±0.2048.1 \pm0.20

Table 8 (PDF p. 17). Per-seed stability (mean ±\pm standard error across 3 seeds) on Qwen3-4B-Base.

DepthNon-zero Adv. (%) TreeRLNon-zero Adv. (%) BRIARAbsorbed Exp. (%) TreeRLAbsorbed Exp. (%) BRIAR
158.474.218.24.1
244.166.825.66.4
329.754.533.48.9
416.339.241.011.7
57.824.648.513.8

Table 9 (PDF p. 17). Depth-wise credit density and wasted absorbed expansions on Qwen3-4B-Base (matched tree size). Non-zero Adv.: fraction of edges with ∣A^∣≥0.02|\hat{A}| \ge0.02; Absorbed Exp.: fraction of expansions launched at nodes with oracle Vπ(u)>0.85V^\pi(u) > 0.85.

Tree GeometryAvg. (%)Avg. Len.Compute
D=3,B=6,M=4D=3, B=6, M=446.82,5600.86×0.86\times
D=4,B=6,M=6D=4, B=6, M=647.62,4700.94×0.94\times
D=5,B=6,M=6D=5, B=6, M=6 (default)48.12,4101.00×1.00\times
D=5,B=8,M=6D=5, B=8, M=648.32,3901.18×1.18\times
D=6,B=6,M=6D=6, B=6, M=648.02,4401.14×1.14\times
D=5,B=6,M=2D=5, B=6, M=246.12,6900.72×0.72\times
D=5,B=6,M=4D=5, B=6, M=447.32,5100.87×0.87\times

Table 11 (PDF p. 17). Sensitivity to tree depth DD, branching width BB, and completion budget MM on Qwen3-4B-Base.

MethodSteps/25.1GPU-hPeak Avg.Speedup
DAPO4202,80043.71.0×1.0\times
VinePPO3403,18044.60.9×0.9\times
TreeRPO2752,11045.31.3×1.3\times
TreeRL2101,59046.01.8×1.8\times
BFS-PO2251,64045.61.7×1.7\times
BRIAR1351,12048.12.5×2.5\times

Table 10 (PDF p. 17). Compute-to-target audit on Qwen3-4B-Base: optimizer steps and total A100 GPU-hours required to reach DAPO’s final AIME24 accuracy (25.1%), alongside peak 5-benchmark average.

S0S_0–S2S_2 produce repeated failed reflections (‘FR‘) that rationalize flawed intermediate algebra and still terminate incorrectly. Under BRIAR, trajectories that encounter an early error in S1S_1 or S2S_2 frequently trigger a decisive corrective reflection (‘SR‘) in S3S_3–S5S_5 and subsequently terminate cleanly without generating redundant S6S_6–S7S_7 verification filler.

Extended Discussion and Failure Modes

Why martingale belief smoothing beats homoscedastic covariance and local means. Tree RLVR methods face two opposing estimation failures. Pure child-mean estimators discard information from sibling subtrees and suffer high variance at deeper branches where mum_u is small. Homoscedastic Gaussian tree models fix variance globally, which pools across leaves but treats an edge inside a settled subtree (V≈1V \approx1) identically to an edge at an undecided turning point (V≈0.5V \approx0.5). By scaling transition variance with ψ^(u)=p~u(1−p~u)+ϵψ\hat{\psi}(u) = \tilde{p}_u(1 - \tilde{p}_u) + \epsilon_\psi, BRIAR enforces the Bhatia–Davis envelope directly inside the LMMSE prior while solving the entire tree in O(∣V∣)O(|V|) time.

Why discourse-aligned segmentation complements frontier search. Fixed-token slicing frequently splits inside multi-line derivations, forcing rollouts to branch mid-equation where continuation diversity reflects surface token completion rather than strategic reasoning choices. Merging natural paragraph boundaries within [Lmin⁡,Lmax⁡][L_{\min}, L_{\max}] aligns tree edges with semantic reasoning steps, raising the discriminative power of p~u(1−p~u)\tilde{p}_u(1 - \tilde{p}_u) without requiring an external segmenter model.

Composability with process rewards and off-policy replay. Because BRIAR’s RTS smoother accepts arbitrary leaf observation precisions λ−1\lambda^{-1} and edge length scalings d^u→v\hat{d}_{u\to v}, it composes naturally with external process reward models (PRMs) by adding unary precision terms (Juprm,huprm)(J_u^{\mathrm{prm}}, h_u^{\mathrm{prm}}) at intermediate nodes in Eq. (6). Similarly, on prompts where all MM initial root samples fail (sroot=0s_{\mathrm{root}} = 0), BRIAR skips the prompt cleanly during on-policy rollout, which pairs well with staged variance curricula (Jiang et al., 2025) or off-policy replay buffers.

Failure modes and extensions to non-binary rewards. Our martingale conservation law applies verbatim to any bounded reward R∈[0,1]R \in[0,1] (with Var⁡(R∣x)≤Vπ(x)(1−Vπ(x))\operatorname{Var}(R \mid x) \le V^\pi(x)(1 - V^\pi(x)) holding for all [0,1][0,1]-valued random variables by Bhatia–Davis). When rewards are continuous rather than binary, the Beta-Bernoulli frontier index I(u)\mathcal{I}(u) generalizes directly via empirical leaf variance σ^u2\hat{\sigma}_u^2 plus a confidence bonus, and ψ^(u)\hat{\psi}(u) can be set to μ^u(1−μ^u)+ϵψ\hat{\mu}_u(1 - \hat{\mu}_u) + \epsilon_\psi. When base models generate monolithic single-paragraph proofs without double-newline breaks, discourse segmentation falls back to the Lmax⁡L_{\max} token cap, preserving bounded depth DD.

References

  1. [1]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300.arxiv.org/abs/2402.03300
  2. [2]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, and 175 others. 2025. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645:633–638.DOI
  3. [3]Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Wang Zhang, and 16 others. 2025. DAPO: An Open-Source LLM reinforcement learning system at scale. arXiv preprint arXiv:2503.14476.arxiv.org/abs/2503.14476
  4. [4]Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. 2025a. Understanding R1-Zero-Like training: A critical perspective. arXiv preprint arXiv:2503.20783.arxiv.org/abs/2503.20783
  5. [5]Mingjie Liu, Shizhe Diao, Ximing Lu, Jian Hu, Xin Dong, Yejin Choi, Jan Kautz, and Yi Dong. 2025b. ProRL: Prolonged reinforcement learning expands reasoning boundaries in large language models. arXiv preprint arXiv:2505.24864.arxiv.org/abs/2505.24864
  6. [6]Wei Sun, Wen Yang, Pu Jian, Qianlong Du, Fuwei Cui, Shuo Ren, and Jiajun Zhang. 2025. KTAE: A Model-Free algorithm to Key-Tokens advantage estimation in mathematical reasoning. In Advances in Neural Information Processing Systems (NeurIPS).arxiv.org/abs/2505.16826
  7. [7]Ziheng Li, Liu Kang, Feng Xiao, Luxi Xing, Qingyi Si, Zhuoran Li, Weikang Gong, Deqing Yang, Yanghua Xiao, and Hongcheng Guo. 2026. Outcome-Grounded advantage reshaping for Fine-Grained credit assignment in mathematical reasoning. arXiv preprint arXiv:2601.07408.arxiv.org/abs/2601.07408
  8. [8]Qiangqiang He, Zhongheng Wu, and Zijian Wang. 2026. Not all tokens deserve equal credit: Counterfactual sensitivity credit reallocation for Long-CoT reasoning. arXiv preprint arXiv:2607.27888.arxiv.org/abs/2607.27888
  9. [9]Liwei Kang, Yue Deng, Yao Xiao, Zhanfeng Mo, Wee Sun Lee, and Lidong Bing. 2025. First try matters: Revisiting the role of reflection in reasoning models. arXiv preprint arXiv:2510.08308.arxiv.org/abs/2510.08308
  10. [11]Chenxu Yang, Qingyi Si, Yongjie Duan, Zheliang Zhu, Chenyu Zhu, Qiaowei Li, Minghui Chen, Zheng Lin, and Weiping Wang. 2025. Dynamic early exit in reasoning models. arXiv preprint arXiv:2504.15895.arxiv.org/abs/2504.15895
  11. [12]Xin Liu and Lu Wang. 2025. Answer convergence as a signal for early stopping in reasoning. arXiv preprint arXiv:2506.02536.arxiv.org/abs/2506.02536
  12. [13]Gaurav Srivastava, Aafiya Hussain, Sriram Srinivasan, and Xuan Wang. 2025. Do LLMs overthink basic math reasoning? A benchmarking the Accuracy-Efficiency tradeoff in language models. arXiv preprint arXiv:2507.04023.arxiv.org/abs/2507.04023

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type