betaFeedback

WorksComputer Science

Stein Variational Distributional Reinforcement Learning: Score-Guided Particles for Multivariate Return Distributions

Abstract

Decisions that weigh several reward signals against each other require the joint distribution of the return vector. Categorical critics scale exponentially in the reward dimension, and quantiles have no canonical multivariate analogue. Multivariate distributional critics therefore represent each return distribution by M equal-weight particles trained with a discrepancy loss. Beyond their atoms, the particles provide no sampler and cannot resolve events rarer than 1/M. We propose Stein variational distributional RL (SVDRL). Its critic outputs Stein particles, which Stein variational gradient descent transports along a learned score field of the distributional Bellman target. We learn this field by bootstrapped denoising score matching across noise levels and tie it across the Bellman recursion by a consistency loss, which we prove is a non-expansive temporal-difference scheme in score space. The same field certifies the particles. Its reverse-diffusion sampler satisfies a supremal Wasserstein policy-evaluation bound that holds for bounded, possibly multimodal returns. The Stein particles inherit this bound up to a gap that we measure without ground truth, and the sampler answers tail-risk queries below the particle resolution at any sample size. Empirically, SVDRL is more accurate on rare events than particle critics with the same number of particles, and on par on MuJoCo continuous control.

Introduction

Distributional reinforcement learning models the distribution of the return rather than only its expectation [4]. With multivariate rewards, risk- and correlation-sensitive decisions depend on the joint distribution of the return components [49, 26]. The univariate representations do not carry over: categorical grids [4] need O(Md)O(M^d) atoms, and quantiles [11 b] have no canonical analogue for d>1d > 1. Existing multivariate methods therefore represent the return distribution by MM particles trained with a discrepancy loss, e.g., MMD [49], Sinkhorn divergences [43], or sliced divergences [14].

The theory of these methods covers the Bellman operator, which contracts in the respective supremal divergence, but not the learned particles. We show that this gap is structural. Equal-weight particles carry no density and no sampler, and MM of them cannot represent an event of probability below 1/M1/M, whatever loss trains them (Proposition 1 and Figure 1).

We instead learn the return score field, the smoothed score of the return distribution at all noise levels. Smoothing commutes with the Bellman update up to a rescaling of the noise level (Lemma 1), so the field satisfies its own Bellman equation, and we learn it along a noise schedule [42] by bootstrapped denoising score matching (Lemma 4) and by temporal differences in score space (Theorem 2). A single noise level does not suffice, as it cannot certify mode masses (Remark 2). We sample from the field by reverse diffusion. For fast action selection we additionally keep MM particles per state–action pair, the Stein particles, which we transport along the field by Stein variational gradient descent (SVGD) [35] and amortize into a critic.

The training risk controls the sampled return distribution in total variation and w1w_1 for bounded multimodal returns, where log-concavity and related assumptions fail (Theorem 3). This yields a policy-evaluation bound in wˉ1\bar{w}_1 (Theorem 4), certified mode masses (Corollaries 6 and 8), and a CVaR estimate whose error does not depend on MM (Theorem 6).

No single critic is accurate on every return law, and we show which error limits each family. Equal-weight particles suffer from a resolution floor: they round event probabilities and mixture weights to multiples of 1/M1/M (Proposition 1). A score field suffers from smoothing bias and is hard to learn where the return law is atomic or its modes lie far apart relative to their widths (Proposition 2 and Lemma 2). SVDRL keeps both objects, and a hybrid rule reports, per state–action pair and without ground truth, the Stein particles on separated or atomic clusters and the sampler draws elsewhere (Definition 1 and Table 1).

Algorithm 1One tabular SVDRL update at (x,a)(x,a)
Require:particles z1:Mz_{1:M}; score network sψs_\psi; hyperparameters ρ\rho, σstart\sigma_{\mathrm{start}}, α\alpha
1:y1:M←y_{1:M}\leftarrow stratified Bellman targets rj+γzj′r_j+\gamma z'_j
2:DSM and consistency steps (4)–(5); replace round⁡(ρM)\operatorname{round}(\rho M) particles by targets
3:z~←\tilde{z}\leftarrow SVGD along sψ(⋅,σℓ)s_\psi(\cdot,\sigma_\ell) from zz, for σℓ≤σstart\sigma_\ell\leq\sigma_{\mathrm{start}}
4:z←z+α(z~−z)z\leftarrow z+\alpha(\tilde{z}-z), then map z1:Mz_{1:M} onto the moments of y1:My_{1:M}

Table 1.

Figure 1. A rare event below the particle resolution. Schematic. A catastrophe of mass p<1/Mp < 1/M needs a fraction of a particle, so particle critics round its probability to a multiple of $1/M$ (Proposition 1). SVDRL learns a density, which carries any mass; on the rare-event chain it estimates p=0.005p = 0.005 far better than particle critics with $M = 128 ({xref}Section 5 and {xref}Figure 5`).

SVDRL is, to our knowledge, the first certified multivariate score-based critic for possibly multimodal returns, and its Stein particles inherit the certificate up to a gap measured without ground truth (Theorem 4). At equal particle count, SVDRL is more accurate than the best particle critic in every rare-event comparison (§ 5). On all eight synthetic MDPs the hybrid wins within-mode shape against the competitors as specified, although at matched compute they win the unimodal ones. The competitors’ own benchmarks place the boundary at atomic laws, and on MuJoCo SAC-SVDRL is on par in return and has the most accurate critic distribution on three of four. Its stratified Bellman target set and running-mean moment matching improve every particle critic we tested.

Background and Notation

Markov Decision Processes with Multivariate Rewards. We consider a Markov Decision Process (MDP) defined by (X,A,P,R,γ)(\mathcal{X}, \mathcal{A}, P, R, \gamma), where X\mathcal{X} and A\mathcal{A} denote state and action spaces, γ∈(0,1)\gamma\in(0, 1) is a discount factor, and P:X×A→P(X)P : \mathcal{X} \times\mathcal{A} \to\mathcal{P}(\mathcal{X}) is a transition kernel. Unlike standard RL, where the reward is a scalar, we define the reward as a potentially random vector R(x,a)∼R(⋅∣x,a)∈P(Rd)R(x, a) \sim R(\cdot\mid x, a) \in\mathcal{P}(\mathbb{R}^{d}). We define the number of reward components by d≥1d \ge1 and recover the classical univariate distributional RL setting for d=1d = 1.

Given a policy π:X→P(A)\pi: \mathcal{X} \to\mathcal{P}(\mathcal{A}), the random return is

Zπ(x,a)≜∑t≥0γtRt∈Rd,Rt∼R(⋅∣Xt,At)Z^\pi(x, a) \triangleq\sum_{t \ge0} \gamma^t R_t \in\mathbb{R}^{d}, \qquad R_t \sim R(\cdot\mid X_t, A_t)

with (X0,A0)=(x,a)(X_0, A_0) = (x, a), Xt+1∼P(⋅∣Xt,At)X_{t+1} \sim P(\cdot\mid X_t, A_t), and At∼π(⋅∣Xt)A_t \sim\pi(\cdot\mid X_t) for t≥1t \ge1. Vπ(x,a)≜E[Zπ(x,a)]∈RdV^\pi(x, a) \triangleq\mathbb{E}[Z^\pi(x, a)] \in\mathbb{R}^{d} is its expected value function. We aim to infer the return distribution function ηπ(x,a)≜Law⁡(Zπ(x,a))∈P(Rd)\eta^\pi(x, a) \triangleq\operatorname{Law}(Z^\pi(x, a)) \in\mathcal{P}(\mathbb{R}^{d}).

Assumption 1 (Bounded returns). The rewards are bounded per dimension, ∣Ri∣≤rmax⁡,i|R_i| \le r_{\max,i} almost surely for i≤di \le d, and γ∈[0,1)\gamma\in[0, 1). Write zmax⁡≜rmax⁡/(1−γ)∈R+dz_{\max} \triangleq r_{\max}/(1-\gamma) \in\mathbb{R}^{d}_{+}, let BR≜∏i≤d[−zmax⁡,i,zmax⁡,i]B_R \triangleq\prod_{i \le d}[-z_{\max,i}, z_{\max,i}] be the return box, Rz≜∥zmax⁡∥2R_z \triangleq\lVert z_{\max}\rVert_2 its circumradius, and D≜2RzD \triangleq2R_z. Then ∣ri+γzi∣≤zmax⁡,i|r_i + \gamma z_i| \le z_{\max,i} whenever z∈BRz \in B_R, so TπT^\pi maps laws supported in BRB_R to laws supported in BRB_R, and supp⁡ηπ(x,a)⊆BR⊆B(0,Rz)\operatorname{supp}\eta^\pi(x, a) \subseteq B_R \subseteq B(0, R_z) for all (x,a)(x, a).

Distributional Bellman Operator. For r∈Rdr \in\mathbb{R}^{d} and γ∈(0,1)\gamma\in(0, 1), the affine bootstrap map br,γ:Rd→Rdb_{r,\gamma} : \mathbb{R}^{d} \to\mathbb{R}^{d} is defined as br,γ(z)≜r+γzb_{r,\gamma}(z) \triangleq r + \gamma z. The push-forward of a distribution ν∈P(Rd)\nu\in\mathcal{P}(\mathbb{R}^{d}) under br,γb_{r,\gamma} is (br,γ)#ν≜Law⁡(r+γZ)(b_{r,\gamma})_{\#}\nu\triangleq\operatorname{Law}(r + \gamma Z) for Z∼νZ \sim\nu. The distributional Bellman operator (DBO) Tπ:P(Rd)X×A→P(Rd)X×AT^\pi: \mathcal{P}(\mathbb{R}^{d})^{\mathcal{X}\times\mathcal{A}} \to\mathcal{P}(\mathbb{R}^{d})^{\mathcal{X}\times\mathcal{A}} is defined as

(Tπη)(x,a)≜Eπ[(bR,γ)#η(X′,A′)∣X=x,A=a],(1)(T^\pi\eta)(x, a) \triangleq\mathbb{E}_{\pi}\left[(b_{R,\gamma})_{\#}\eta(X', A') \mid X = x, A = a\right], \tag*{(1)}

where R∼R(⋅∣x,a)R \sim R(\cdot\mid x, a), X′∼P(⋅∣x,a)X' \sim P(\cdot\mid x, a), and A′∼π(⋅∣X′)A' \sim\pi(\cdot\mid X'). The return distribution ηπ\eta^\pi is the unique fixed point of this operator, i.e., Tπηπ=ηπT^\pi\eta^\pi= \eta^\pi.

DBO’s convergence is naturally analyzed under the Wasserstein metric wpw_p and its supremal version wˉp(η,η′)≜sup⁡(x,a)wp(η(x,a),η′(x,a))\bar{w}_p(\eta,\eta') \triangleq\sup_{(x,a)} w_p(\eta(x,a), \eta'(x,a)).

Theorem 1 (Contraction of DBO) (Bellemare et al., [4]; Zhang et al., [49]). For any p≥1p \ge1 and η,η′∈Pp(Rd)X×A\eta,\eta' \in\mathcal{P}_p(\mathbb{R}^{d})^{\mathcal{X}\times\mathcal{A}}, wˉp(Tπη,Tπη′)≤γwˉp(η,η′)\bar{w}_p(T^\pi\eta,T^\pi\eta') \le\gamma\bar{w}_p(\eta,\eta').

References

  1. [1]Anderson, B. D. O. (1982). Reverse-time diffusion equation models. Stochastic Processes and their Applications.DOI
  2. [4]Bellemare, M. G., Dabney, W., and Munos, R. (2017). A distributional perspective on reinforcement learning. In International Conference on Machine Learning.arxiv.org/abs/1707.06887
  3. [5]Bellemare, M. G., Dabney, W., and Rowland, M. (2023). Distributional Reinforcement Learning. The MIT Press.DOI
  4. [6]Benton, J., De Bortoli, V., Doucet, A., and Deligiannidis, G. (2024). Nearly d-linear convergence bounds for diffusion models via stochastic localization. In International Conference on Learning Representations.arxiv.org/abs/2308.03686
  5. [7]Boucheron, S., Lugosi, G., and Massart, P. (2013). Concentration Inequalities. Oxford University Press.
  6. [8]Bradbury, J., Frostig, R., Hawkins, P., Johnson, M. J., Katariya, Y., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., Wanderman-Milne, S., and Zhang, Q. (2018). JAX: Composable transformations of Python+NumPy programs. http://github.com/jax-ml/jax.
  7. [9]Chen, S., Chewi, S., Li, J., Li, Y., Salim, A., and Zhang, A. R. (2023). Sampling is as easy as learning the score: Theory for diffusion models with minimal data assumptions. In International Conference on Learning Representations.arxiv.org/abs/2209.11215
  8. [10]Chewi, S., Le Gouic, T., Lu, C., Maunu, T., and Rigollet, P. (2020). SVGD as a kernelized Wasserstein gradient flow of the chi-squared divergence. In Advances in Neural Information Processing Systems.arxiv.org/abs/2006.02509
  9. [11]Dabney, W., Ostrovski, G., Silver, D., and Munos, R. (2018a). Implicit quantile networks for distributional reinforcement learning. In International Conference on Machine Learning.arxiv.org/abs/1806.06923
  10. [13]Debes, B. and Tuytelaars, T. (2026a). Distributional value gradients for stochastic environments. In International Conference on Learning Representations.arxiv.org/abs/2601.20071
  11. [14]Debes, B. and Tuytelaars, T. (2026b). Multivariate distributional reinforcement learning using sliced divergences. In International Conference on Machine Learning.arxiv.org/abs/2605.31222
  12. [15]Devroye, L., Györfi, L., and Lugosi, G. (1996). A Probabilistic Theory of Pattern Recognition. Springer.DOI
  13. [16]Ding, S., Zhou, Y., Hu, K., Pan, M., Zhong, S., Fu, Y., Wang, J., and Shi, Y. (2026). Distributional reinforcement learning with diffusion bridge critics. arXiv preprint arXiv:2602.05783.arxiv.org/abs/2602.05783
  14. [17]Dong, P., Zheng, C., Finn, C., Sadigh, D., and Eysenbach, B. (2026). Value flows. In International Conference on Learning Representations.arxiv.org/abs/2510.07650
  15. [18]Duncan, A., Nüsken, N., and Szpruch, L. (2023). On the geometry of Stein variational gradient descent. Journal of Machine Learning Research.
  16. [19]Felten, F., Alegre, L. N., Nowé, A., Bazzan, A. L. C., Talbi, E. G., Danoy, G., and Silva, B. C. da. (2023). A toolkit for reliable benchmarking and research in multi-objective reinforcement learning. In Advances in Neural Information Processing Systems.DOI
  17. [20]Feng, Y., Wang, D., and Liu, Q. (2017). Learning to draw samples with amortized Stein variational gradient descent. In Conference on Uncertainty in Artificial Intelligence.arxiv.org/abs/1707.06626
  18. [21]Freirich, D., Shimkin, T., Meir, R., and Tamar, A. (2019). Distributional multivariate policy evaluation and exploration with the Bellman GAN. In International Conference on Machine Learning. Gilks, W. R. and Berzuini, C. (2001). Following a moving target—Monte Carlo inference for dynamic Bayesian models. Journal of the Royal Statistical Society: Series B (Statistical Methodology).
  19. [22]Gretton, A., Borgwardt, K. M., Rasch, M. J., Schölkopf, B., and Smola, A. (2012). A kernel two-sample test. The Journal of Machine Learning Research.DOI
  20. [24]Haarnoja, T., Zhou, A., Abbeel, P., and Levine, S. (2018). Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning.arxiv.org/abs/1801.01290
  21. [25]Haussmann, U. G. and Pardoux, É. (1986). Time reversal of diffusions. The Annals of Probability.DOI
  22. [26]Hayes, C. F., Rădulescu, R., Bargiacchi, E., Källström, J., Macfarlane, M., Reymond, M., Verstraeten, T., Zintgraf, L. M., Dazeley, R., Heintz, F., Howley, E., Irissappane, A. A., Mennion, P., Nowé, A., Ramos, G., Restelli, M., Vamplew, P., and Roijers, D. M. (2022). A practical guide to multi-objective reinforcement learning and planning. Autonomous Agents and Multi-Agent Systems.DOI
  23. [28]Karras, T., Aittala, M., Aila, T., and Laine, S. (2022). Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems.arxiv.org/abs/2206.00364
  24. [29]Kidger, P. (2022). jaxtyping. https://github.com/patrick-kidger/jaxtyping.
  25. [30]Kidger, P. and Garcia, C. (2021). Equinox: Neural networks in JAX via callable PyTrees and filtered transformations. In Differentiable Programming Workshop at Neural Information Processing Systems.arxiv.org/abs/2111.00254
  26. [31]Kingma, D. P. and Ba, J. (2015). Adam: A method for stochastic optimization. In International Conference on Learning Representations.arxiv.org/abs/1412.6980
  27. [32]Kitagawa, G. (1996). Monte Carlo filter and smoother for non-Gaussian nonlinear state space models. Journal of Computational and Graphical Statistics.DOI
  28. [33]Li, Y., Lai, C.-H., Schönlieb, C.-B., Mitsufuji, Y., and Ermon, S. (2024). Bellman diffusion: Generative modeling as learning a linear operator in the distribution space. arXiv preprint arXiv:2410.01796.arxiv.org/abs/2410.01796
  29. [34]Liu, Q. (2017). Stein variational gradient descent as gradient flow. In Advances in Neural Information Processing Systems.arxiv.org/abs/1704.07520
  30. [35]Liu, Q. and Wang, D. (2016). Stein variational gradient descent: A general purpose Bayesian inference algorithm. In Advances in Neural Information Processing Systems.arxiv.org/abs/1608.04471
  31. [36]Liu, Y., Ramachandran, P., Liu, Q., and Peng, J. (2017). Stein variational policy gradient. In Conference on Uncertainty in Artificial Intelligence.arxiv.org/abs/1704.02399
  32. [37]Massart, P. (1990). The tight constant in the Dvoretzky-Kiefer-Wolfowitz inequality. The Annals of Probability.DOI
  33. [38]McKay, M. D., Beckman, R. J., and Conover, W. J. (1979). A comparison of three methods for selecting values of input variables in the analysis of output from a computer code. Technometrics.
  34. [39]Messaoud, S., Mokeddem, B., Xue, Z., Pang, L., An, B., Chen, H., and Chawla, S. (2024). S²AC: Energy-based reinforcement learning with Stein soft actor critic. In International Conference on Learning Representations.arxiv.org/abs/2405.00987
  35. [40]Nguyen-Tang, T., Gupta, S., and Venkatesh, S. (2021). Distributional reinforcement learning via moment matching. AAAI Conference on Artificial Intelligence.arxiv.org/abs/2007.12354
  36. [41]Rockafellar, R. T. and Uryasev, S. (2002). Conditional value-at-risk for general loss distributions. Journal of Banking & Finance.DOI
  37. [42]Song, Y. and Ermon, S. (2019). Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems.arxiv.org/abs/1907.05600
  38. [43]Sun, K., Zhao, Y., Liu, W., Jiang, B., and Kong, L. (2024). Distributional reinforcement learning with regularized Wasserstein loss. In Advances in Neural Information Processing Systems.arxiv.org/abs/2202.00769
  39. [44]Towers, M., Kwiatkowski, A., Terry, J., Balis, J. U., De Cola, G., Deleu, T., Goulão, M., Kallinteris, A., Krimmel, M., KG, A., et al. (2024). Gymnasium: A standard interface for reinforcement learning environments. arXiv preprint arXiv:2407.17032.arxiv.org/abs/2407.17032
  40. [45]Vauthier, C., Mérigot, Q., and Korba, A. (2026). Highly data parallelizable estimation of the sliced-Wasserstein distance using cumulative distribution functions. arXiv preprint arXiv:2606.30310.arxiv.org/abs/2606.30310
  41. [46]Vincent, P. (2011). A connection between score matching and denoising autoencoders. Neural Computation.DOI
  42. [47]Wiltzer, H., Farebrother, J., Gretton, A., and Rowland, M. (2024). Foundations of multivariate distributional reinforcement learning. In Advances in Neural Information Processing Systems.arxiv.org/abs/2409.00328
  43. [48]Yoo, G., Kim, W. K., and Woo, H. (2026). Knothe-Rosenblatt quantile regression for risk-sensitive multi- objective reinforcement learning. In International Conference on Machine Learning.
  44. [49]Zhang, P., Chen, X., Zhao, L., Xiong, W., Qin, T., and Liu, T.-Y. (2021). Distributional reinforcement learning for multi-dimensional reward functions. In Advances in Neural Information Processing Systems.arxiv.org/abs/2110.13578

Paper details

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

views · 1

downloads · 0

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

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents