betaFeedback

WorksComputer Science

Posterior-Averaged Bellman Flow Matching for Distributional Critics

Abstract

Distributional critics model the full return distribution, providing richer signals for exploration and risk-sensitive control. Recent work has shown that flow-based critics can model these distributions flexibly and provide effective supervision across flow time for temporal-difference learning. However, unlike standard flow matching with fixed data endpoints, a flow critic is trained on Bellman targets recursively generated by a learned target critic under the current policy. Existing objectives therefore either use noisy single-endpoint supervision or rely on the learned flow itself for additional guidance. Our key observation is that an intermediate bridge state may be compatible with several Bellman endpoints, so its velocity should average their directions under the corresponding posterior. We propose Posterior-Averaged Bellman Flow Matching (PA-BFM), which samples an endpoint pool, infers the closed-form posterior over the latent anchor, and regresses to the posterior-mean velocity. Uniform anchor selection makes this target an exact finite-pool Rao–Blackwellization of the single-endpoint target: for every KK, it preserves the population target, cannot increase conditional variance, and its conditional variance scales as O(K−1)O(K^{-1}). The endpoint pool supports conservative updates, while the twin return flows provide critic-disagreement and unsupported-mass diagnostics. Controlled studies show that PA-BFM reduces fixed-query target mean-squared error by 79.7%79.7\% and target-induced gradient variance by up to 98.0%98.0\%, while improving return-distribution fidelity. Across 50 OGBench tasks and four offline-to-online scenarios, PA-BFM achieves higher aggregate performance than Value Flows.

Introduction

In actor–critic reinforcement learning (RL), policy improvement depends on the critic used to evaluate actions and construct Bellman targets. Most methods retain only the expected return, whereas distributional RL preserves information about stochastic outcomes, multimodality, and risk (Bellemare et al., 2017; Dabney et al., 2018a,b; Duan et al., 2022). Recent flow-based critics represent this distribution through a continuous transport from simple noise to return samples [9, 25, 8, 27, 5]. Flow-time supervision further provides dense signals for changing temporal-difference targets [18, 2, 19].

Existing flow critics use two complementary forms of Bellman supervision. Endpoint matching is anchored to a sampled Bellman return but uses one continuation, whereas pathwise matching provides denser supervision through another learned successor field. Value Flows combines these objectives with target networks and confidence weighting, while Path-Coupled Bellman Flows (PCBF) introduces source-consistent geometry and a learned-field control variate [9, 25]. Related bridge, distillation, and architectural corrections retain the same tension between an anchored but noisy target and guidance from a learned flow [8, 5, 1].

We recast this tension as a conditional estimation problem. At a fixed intermediate bridge state, multiple Bellman endpoints can be compatible with the same observation. Each compatible endpoint implies a candidate velocity, and the population bridge velocity is the posterior average of these endpoint directions. The uncertainty is therefore not whether a Bellman endpoint law exists, but which compatible endpoint explains the observed intermediate state.

Our goal is to estimate this posterior velocity directly from Bellman endpoint samples. This estimator is particularly natural in distributional RL: conditioned on a replay transition, the target policy and return flow directly sample the conditional Bellman endpoint law. For the one-dimensional linear Gaussian critic bridge, candidate likelihoods are closed form, so the finite endpoint pool induces a tractable posterior over the latent anchor without endpoint retrieval or an auxiliary proposal distribution. In contrast, posterior augmentation in generative modeling often requires retrieval or approximate candidate construction, and policy-side reverse matching may require a separate proposal [23, 26, 17].

Based on this observation, we propose Posterior-Averaged Bellman Flow Matching (PA-BFM). For each transition, PA-BFM samples a finite endpoint pool, selects one endpoint uniformly to construct the bridge state, and evaluates every candidate using its Gaussian bridge likelihood. The posterior-weighted direction is exactly the conditional expectation of the single-endpoint Bellman conditional flow matching (BCFM) target. Hence every finite pool preserves the population bridge velocity and cannot increase conditional target variance. We further show that its conditional variance scales as O(K−1)O(K^{-1}) and derive implications for gradient variability, terminal transport error, and Bellman tracking.

The endpoint posterior supports conservative reweighting, while the twin return flows provide disagreement and unsupported-mass diagnostics [16, 14, 15, 20, 11]. The main experiments use the undistorted target and retain matched flow-critic policy extraction. Our main contributions are:

  • Posterior-averaged Bellman supervision. We formulate source-consistent endpoint matching as posterior velocity estimation and estimate it from KK Bellman endpoints using closed-form bridge posteriors, without regressing to a learned successor field.

  • Exact finite-pool guarantees. Uniform anchor selection makes PA-BFM an exact Rao–Blackwellization of BCFM. We prove finite-KK unbiasedness and variance dominance, characterize K−1K^{-1} conditional-variance scaling with an ESS-based bound, and propagate velocity error to terminal Wasserstein and Bellman tracking errors.

  • Extensions and empirical validation. The endpoint pool supports conservative posterior tilting, while the twin return flows provide critic-disagreement and unsupported-mass diagnostics. Controlled studies, 50 QGBench tasks, and four offline-to-online scenarios show gains in estimation, return-law fidelity, and downstream performance.

Preliminaries

We review distributional returns, one-dimensional flow matching, and the source-consistent Bellman bridge used by our critic.

MDPs and Distributional Returns

We consider a discounted Markov decision process M=(S,A,P,R,ρ0,γ)\mathcal{M} = (\mathcal{S}, \mathcal{A}, P, \mathcal{R}, \rho_0, \gamma), where S\mathcal{S} and A\mathcal{A} are the state and action spaces, PP is the transition kernel, R\mathcal{R} is the reward function, ρ0\rho_0 is the initial-state distribution, and γ∈(0,1)\gamma\in(0,1). In offline reinforcement learning (RL), the learner observes a fixed dataset D={(s,a,r,s′,d)}\mathcal{D} = \{(s, a, r, s', d)\}, where d∈{0,1}d \in\{0,1\} indicates termination and rr is the realized reward. We use hh for environment time and t∈[0,1]t \in[0,1] for flow time.

For a policy π\pi, the return random variable is

Zπ(s,a)=∑h=0∞γhR(Sh,Ah),S0=s,A0=a,(1)Z^\pi(s,a) = \sum_{h=0}^{\infty} \gamma^h \mathcal{R}(S_h,A_h), \qquad S_0=s,\quad A_0=a, \tag*{(1)}

where Sh+1∼P(⋅∣Sh,Ah)S_{h+1} \sim P(\cdot\mid S_h,A_h) and Ah∼π(⋅∣Sh)A_h \sim\pi(\cdot\mid S_h) for h≥1h \ge1. Its expectation is the action value Qπ(s,a)=E[Zπ(s,a)]Q^\pi(s,a) = \mathbb{E}[Z^\pi(s,a)], whereas distributional RL models the law of Zπ(s,a)Z^\pi(s,a) itself [4, 6 b].

For a state–action conditional return variable ZZ, the distributional Bellman operator is

(TπZ)(s,a)=dr+γ(1−d)Z(S′,A′),S′∼P(⋅∣s,a),A′∼π(⋅∣S′).(2)(\mathcal{T}^\pi Z)(s,a) \mathrel{\stackrel{d}{=}} r + \gamma(1-d)Z(S',A'), \qquad S' \sim P(\cdot\mid s,a), \qquad A' \sim\pi(\cdot\mid S'). \tag*{(2)}

For a nonterminal transition with reward rr, its density satisfies

pTπZ(z∣s,a)=1γES′,A′[pZ(z−rγ∣S′,A′)].(3)p_{\mathcal{T}^\pi Z}(z \mid s,a) = \frac{1}{\gamma}\mathbb{E}_{S',A'}\left[p_Z\left(\frac{z-r}{\gamma} \mathrel{\big|} S',A'\right)\right]. \tag*{(3)}

Terminal transitions place all mass at z=rz=r. The operator is a γ\gamma-contraction under Wasserstein metrics and has ZπZ^\pi as its unique fixed point [4].

Flow Matching

Flow matching (FM) learns a time-dependent vector field that transports a standard Gaussian source to a target distribution p1(⋅∣c)p_1(\cdot\mid c). Let ϵ∼N(0,1)\epsilon\sim\mathcal{N}(0,1), and let p0p_0 denote its density. The flow solves

ddtϕθ(ϵ∣t,c)=vθ(ϕθ(ϵ∣t,c),t;c),ϕθ(ϵ∣0,c)=ϵ.(4)\frac{d}{dt}\phi_\theta(\epsilon\mid t,c) = v_\theta(\phi_\theta(\epsilon\mid t,c),t;c), \qquad\phi_\theta(\epsilon\mid0,c)=\epsilon. \tag*{(4)}

Conditional flow matching (CFM) trains this field using tractable paths [18, 2, 19]. For independent ϵ∼N(0,1)\epsilon\sim\mathcal{N}(0,1), y∼p1(⋅∣c)y \sim p_1(\cdot\mid c), and t∼Unif⁡([0,1))t \sim\operatorname{Unif}([0,1)), define

Xt=(1−t)ϵ+ty,ut(Xt,y)=y−ϵ=y−Xt1−t.(5)X_t = (1-t)\epsilon+ ty, \qquad u_t(X_t,y) = y-\epsilon= \frac{y-X_t}{1-t}. \tag*{(5)}

The CFM objective is

LCFM(θ)=E[∥vθ(Xt,t;c)−ut(Xt,y)∥22].(6)\mathcal{L}_{\mathrm{CFM}}(\theta) = \mathbb{E}\left[\left\|v_\theta(X_t,t;c)-u_t(X_t,y)\right\|_2^2\right]. \tag*{(6)}

Its population minimizer is v⋆(x,t;c)=E[ut(x,Y)∣Xt=x,c]v^\star(x,t;c) = \mathbb{E}[u_t(x,Y) \mid X_t=x,c]: the conditional average of all path directions compatible with the observed intermediate point. For our critic, c=(s,a)c=(s,a), and Zθ(s,a)=dϕθ(ϵ∣1,s,a)Z_\theta(s,a) \mathrel{\stackrel{d}{=}} \phi_\theta(\epsilon\mid1,s,a).

Bellman Endpoint Laws and Source-Consistent Bridges

Fix (s,a)(s, a) and let τ=(r,s′,d)\tau= (r, s', d) denote one transition outcome. Let Y∼μτY \sim\mu_\tau denote the abstract conditional Bellman endpoint law. A sample from this law is generated by a target-flow return Zθˉ(s′,a′;ϵ′)Z_{\bar{\theta}}(s', a'; \epsilon'):

Y=r+γ(1−d)Zθˉ(s′,A′;ϵ′),μτ=Law⁡(Y∣τ),A′∼π(⋅∣s′),ϵ′∼N(0,1).(7)\begin{aligned} Y &= r + \gamma(1-d)Z_{\bar{\theta}}(s', A'; \epsilon'),\\ \mu_\tau&= \operatorname{Law}(Y \mid\tau), \qquad A' \sim\pi(\cdot\mid s'), \qquad\epsilon' \sim\mathcal{N}(0,1). \tag*{(7)} \end{aligned}

In our implementation, μτ\mu_\tau is the law of the shared-noise mean of the two target critics; the explicit construction is given in Appendix C.1. An endpoint pool averages the successor-action and target-flow randomness within one transition; replay sampling performs the outer average over τ∣s,a\tau\mid s, a.

The Bellman endpoint law does not uniquely determine an intermediate path. For a nonterminal transition (d=0)(d = 0), applying the Bellman affine map to each slice of a successor flow gives Xtsl=r+γXt′X_t^{\mathrm{sl}} = r + \gamma X'_t. If Xt′X'_t has density pt′(⋅∣s′,A′)p'_t(\cdot\mid s', A') and velocity vt′v'_t, then, with ξ=(x−r)/γ\xi= (x-r)/\gamma,

qtsl(x)=1γEA′[pt′(ξ∣s′,A′)],(8)q_t^{\mathrm{sl}}(x) = \frac{1}{\gamma}\mathbb{E}_{A'}[p'_t(\xi\mid s', A')], \tag*{(8)}
vtsl(x)=γEA′[pt′(ξ∣s′,A′)vt′(ξ∣s′,A′)]EA′[pt′(ξ∣s′,A′)].(9)v_t^{\mathrm{sl}}(x) = \gamma\frac{\mathbb{E}_{A'}[p'_t(\xi\mid s', A')v'_t(\xi\mid s', A')]}{\mathbb{E}_{A'}[p'_t(\xi\mid s', A')]}. \tag*{(9)}

The factor γ\gamma follows from X˙tsl=γX˙t′\dot{X}_t^{\mathrm{sl}} = \gamma\dot{X}'_t. Although this path reaches the correct Bellman endpoint, its source is N(r,γ2)\mathcal{N}(r, \gamma^2), rather than the common critic source N(0,1)\mathcal{N}(0,1). For d=1d = 1, the endpoint law is the point mass at Y=rY = r.

We therefore use the source-consistent bridge

Xt=(1−t)ϵ+tY,ϵ⊥Y,ϵ∼N(0,1),Y∼μτ.(10)\begin{aligned} X_t &= (1-t)\epsilon+ tY, \qquad\epsilon\perp Y,\\ \epsilon&\sim\mathcal{N}(0,1), \qquad Y \sim\mu_\tau. \tag*{(10)} \end{aligned}

References

  1. [1]Bhavya Agrawalla, Michal Nauman, Khush Agrawal, and Aviral Kumar. floq: Training critics via flow-matching for scaling compute in value-based rl, 2025.arxiv.org/abs/2509.06863
  2. [2]Michael S. Albergo and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions, 2023.arxiv.org/abs/2303.08797
  3. [3]Philip J. Ball, Laura Smith, Ilya Kostrikov, and Sergey Levine. Efficient online reinforcement learning with offline data. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 1577–1594, 2023.arxiv.org/abs/2302.02948
  4. [4]Marc G. Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning, pages 449–458. PMLR, 2017.
  5. [5]Deshu Chen, Yuchen Liu, Zhijian Zhou, Chao Qu, and Yuan Qi. Unleashing flow policies with distributional critics, 2025.arxiv.org/abs/2509.23087
  6. [6]Will Dabney, Georg Ostrovski, David Silver, and Rémi Munos. Implicit quantile networks for distributional reinforcement learning. In Proceedings of the 35th International Conference on Machine Learning, pages 1096–1105. PMLR, 2018a.arxiv.org/abs/1806.06923
  7. [8]Shutong Ding, Yimiao Zhou, Ke Hu, Mokai Pan, Shan Zhong, Yanwei Fu, Jingya Wang, and Ye Shi. Distributional reinforcement learning with diffusion bridge critics, 2026.arxiv.org/abs/2602.05783
  8. [9]Perry Dong, Chongyi Zheng, Chelsea Finn, Dorsa Sadigh, and Benjamin Eysenbach. Value flows. In International Conference on Learning Representations, 2026.arxiv.org/abs/2510.07650
  9. [11]Scott Fujimoto, Herke van Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In Proceedings of the 35th International Conference on Machine Learning, pages 1587–1596. PMLR, 2018.
  10. [12]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.arxiv.org/abs/1412.6980
  11. [13]Ilya Kostrikov, Ashvin Nair, and Sergey Levine. Offline reinforcement learning with implicit q-learning. In International Conference on Learning Representations, 2022.arxiv.org/abs/2110.06169
  12. [14]Aviral Kumar, Justin Fu, Matthew Soh, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. In Advances in Neural Information Processing Systems, volume 32, 2019.arxiv.org/abs/1906.00949
  13. [15]Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pages 1179–1191, 2020.arxiv.org/abs/2006.04779
  14. [16]Arsenii Kuznetsov, Pavel Shvechikov, Alexander Grishin, and Dmitry Vetrov. Controlling overestimation bias with truncated mixture of continuous distributional quantile critics. In Proceedings of the 37th International Conference on Machine Learning, pages 5556–5566. PMLR, 2020.arxiv.org/abs/2005.04269
  15. [17]Zeyang Li, Sunbochen Tang, and Navid Azizan. Reverse flow matching: A unified framework for online reinforcement learning with diffusion and flow policies. In Proceedings of the 43rd International Conference on Machine Learning. PMLR, 2026.arxiv.org/abs/2601.08136
  16. [18]Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.02747
  17. [19]Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow, 2023.arxiv.org/abs/2209.03003
  18. [20]Yecheng Jason Ma, Dinesh Jayaraman, and Osbert Bastani. Conservative offline distributional reinforcement learning. In Advances in Neural Information Processing Systems, volume 34, 2021.arxiv.org/abs/2107.06106
  19. [21]Seohong Park, Kevin Frans, Benjamin Eysenbach, and Sergey Levine. Ogbench: Benchmarking offline goal-conditioned rl. In International Conference on Learning Representations, 2025a.arxiv.org/abs/2410.20092
  20. [22]Seohong Park, Qiyang Li, and Sergey Levine. Flow q-learning. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 48104–48127, 2025b.arxiv.org/abs/2502.02538
  21. [23]George Stoica, Sayak Paul, Matthew Wallingford, Vivek Ramanujan, Abhay Nori, Winson Han, Ali Farhadi, Ranjay Krishna, and Judy Hoffman. Posterior-augmented flow matching, 2026.arxiv.org/abs/2605.00825
  22. [24]Denis Tarasov, Vladislav Kurenkov, Alexander Nikulin, and Sergey Kolesnikov. Revisiting the minimalist approach to offline reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, 2023.arxiv.org/abs/2305.09836
  23. [25]Boyang Xu, Qing Zou, Siqin Yang, and Hao Yan. Path-coupled bellman flows for distributional reinforcement learning. In Proceedings of the 43rd International Conference on Machine Learning. PMLR, 2026.arxiv.org/abs/2605.08253
  24. [26]Donglin Yang, Yongxing Zhang, Xin Yu, Liang Hou, Xin Tao, Pengfei Wan, Xiaojun Qi, and Renjie Liao. Stable velocity: A variance perspective on flow matching, 2026.arxiv.org/abs/2602.05435
  25. [27]Shan Zhong, Shutong Ding, He Diao, Xiangyu Wang, Kah Chan Teh, and Bei Peng. Flowcritic: Bridging value estimation with flow matching in reinforcement learning, 2025.arxiv.org/abs/2510.22686

Paper details

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

views · 8

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