betaFeedback

WorksComputer Science

Bellman Contraction under MMD: A Unified Framework

Abstract

We introduce a mathematical framework for studying contraction of the distributional Bellman operator under Maximum Mean Discrepancy (MMD). We show that contraction reduces to conditional positive definiteness of an associated kernel constructed from the base kernel, which we call the Bellman difference kernel. Focusing on radial kernels, we use Schoenberg's theorem to connect this condition to Bernstein functions. This gives contraction criteria that hold in any dimension and can be verified analytically or tested numerically. Our framework unifies known results for the Gaussian RBF, power-distance, and multiquadric kernels. A numerical search identifies 11 new kernels that induce contraction. We also propose chaining, a general construction that produces kernels inducing contraction with any prescribed factor. To reconcile theory with practice, we show that contraction on a set only requires conditional positive definiteness on that set. This explains why the RBF kernel can remain a valid choice when rewards are bounded, despite its lack of global contraction. Finally, we identify a fundamental tradeoff between contraction rate and discriminative power, where kernels that contract faster tend to discriminate less between distributions. Code is available at https://github.com/BaptisteDebes/BellmanContractionMMD

Introduction

Distributional reinforcement learning (DRL) models the distribution over returns instead of their expectations [3, 4]. This in turn makes it possible to account for irreducible uncertainty in transitions and rewards exhibited by some environments [23]. It also enables risk-aware policy improvement [10, 32]. Distributional RL has shown substantial performance gains on a wide variety of tasks [2, 10, 18] and has been motivated theoretically [21, 27, 28]. A practical instantiation of DRL depends on both how the return distribution is parametrized and how discrepancies between probability distributions are measured [28]. A natural and flexible choice is to represent the return distribution as a set of equally weighted particles [10, 25, 33]. This representation enables the use of discrepancies computed from samples, such as Maximum Mean Discrepancy (MMD) [16, 19, 25, 38], Sinkhorn divergence [14, 34], or sliced divergences [13].

Maximum Mean Discrepancy depends on a kernel that controls which aspects of the distributions are compared and how sensitively. A central question is then whether the distributional Bellman operator [3] is contractive under the MMD induced by a given kernel, which governs whether the resulting learning objective is principled [3, 11]. Despite the flexibility afforded by kernel choice, existing understanding of which kernels induce contraction remains limited. In particular, it provides little guidance for identifying or constructing new ones. This in turn leaves practitioners with few theoretically motivated options.

The first contribution of this work is to connect contraction under MMD with a definiteness property of an associated kernel, namely conditional positive definiteness. For the important class of radial kernels, we leverage Schoenberg’s theorem [30], which links radial kernels to Bernstein functions [17, 29]. This perspective allows us to show that contraction can be verified analytically. This unifies known results from [12, 19, 25] under a single framework. More broadly, this framework provides practical recipes for identifying kernels that induce contraction and for constructing new ones, which we demonstrate in this work. Notably, all results hold in arbitrary dimension, directly covering the multivariate setting [13, 37, 38].

Secondly, a gap remains between theory and practice, as some kernels such as the RBF are known not to induce contraction in general, yet still perform among the best in practice [25]. We reconcile theory and practice by showing numerically that such kernels can in fact induce contraction when the return laws are supported on a bounded set. In reinforcement learning, this assumption arises naturally when rewards are bounded, since discounted returns are then bounded as well.

Finally, we identify a tradeoff between the contraction induced by a kernel and its ability to discriminate between distributions. In general, kernels with faster contraction tend to have weaker discriminative power, so these two aspects cannot be optimized independently. We study this tradeoff empirically by measuring the power of kernel two-sample tests.

Background and related work

We consider a discounted Markov decision process (MDP) (S,A,P,R,γ)(\mathcal{S}, \mathcal{A}, P, R, \gamma), where S\mathcal{S} is the state space, A\mathcal{A} the action space, P(⋅∣s,a)P(\cdot\mid s, a) the transition kernel, R(s,a)R(s, a) the random reward, and γ∈(0,1)\gamma\in(0, 1) the discount factor. Rewards may be multivariate, in which case returns take values in Rd\mathbb{R}^d. For a fixed policy π\pi, we define the random return as follows, with its expectation yielding the usual state-action value function:

Zπ(s,a):=∑t>0γtRt,Qπ(s,a):=E[Zπ(s,a)].Z^\pi(s, a) := \sum_{t>0} \gamma^t R_t,\qquad Q^\pi(s, a) := \mathbb{E}[Z^\pi(s, a)].

where S0=sS_0 = s, A0=aA_0 = a, Rt=R(St,At)R_t = R(S_t, A_t), St+1∼P(⋅∣St,At)S_{t+1} \sim P(\cdot\mid S_t, A_t) and At+1∼π(⋅∣St+1)A_{t+1} \sim\pi(\cdot\mid S_{t+1}). We represent return laws by maps η:S×A→P(Rd)\eta: \mathcal{S} \times\mathcal{A} \to\mathcal{P}(\mathbb{R}^d). For a fixed policy π\pi, the distributional Bellman operator is defined, for S′∼P(⋅∣s,a)S' \sim P(\cdot\mid s, a), A′∼π(⋅∣S′)A' \sim\pi(\cdot\mid S'), and X′∼η(S′,A′)X' \sim\eta(S', A'), by

(Tπη)(s,a):=Law⁡(R(s,a)+γX′).(1)(\mathcal{T}^\pi\eta)(s, a) := \operatorname{Law}(R(s, a) + \gamma X'). \tag*{(1)}

Policy evaluation. This work focuses on distributional policy evaluation for a fixed policy π\pi, where one seeks to solve or approximate the fixed point equation ηπ=Tπηπ\eta^\pi= \mathcal{T}^\pi\eta^\pi. Our goal is to study the contraction properties of the corresponding distributional Bellman operator Tπ\mathcal{T}^\pi, rather than policy improvement or control.

Maximum Mean Discrepancy. A kernel is a symmetric function k:Rd×Rd→Rk : \mathbb{R}^d \times\mathbb{R}^d \to\mathbb{R}. For laws μ,ν∈P(Rd)\mu, \nu\in\mathcal{P}(\mathbb{R}^d), the squared Maximum Mean Discrepancy (MMD) induced by kk is defined by [16]

MMD⁡k2(μ,ν)=Ex,x′∼μ[k(x,x′)]+Ey,y′∼ν[k(y,y′)]−2Ex∼μ,y∼ν[k(x,y)].(2)\operatorname{MMD}_k^2(\mu,\nu) = \mathbb{E}_{x,x'\sim\mu}[k(x,x')] + \mathbb{E}_{y,y'\sim\nu}[k(y,y')] - 2\mathbb{E}_{x\sim\mu,y\sim\nu}[k(x,y)]. \tag*{(2)}

Some background on kernels and MMD is provided in Appendix § 10, including the biased estimator of MMD⁡k2\operatorname{MMD}_k^2 [16], which is the one commonly used in distributional RL [19, 25].

Contraction. Return laws are conditional distributions, so to compare two of them we use the supremum MMD over state-action pairs [3, 25], defined by

MMD⁡‾k2(η1,η2):=sup⁡(s,a)∈S×AMMD⁡k2(η1(s,a),η2(s,a)).(3)\overline{\operatorname{MMD}}_k^2(\eta_1,\eta_2) := \sup_{(s,a)\in\mathcal{S}\times\mathcal{A}} \operatorname{MMD}_k^2(\eta_1(s,a),\eta_2(s,a)). \tag*{(3)}

For τ∈[0,1]\tau\in[0,1], we say that Tπ\mathcal{T}^\pi is a τ\tau-contraction in MMD⁡‾k2\overline{\operatorname{MMD}}_k^2 if

MMD⁡‾k2(Tπη1,Tπη2)≤τMMD⁡‾k2(η1,η2)∀ η1,η2.\overline{\operatorname{MMD}}_k^2(\mathcal{T}^\pi\eta_1,\mathcal{T}^\pi\eta_2) \leq\tau\overline{\operatorname{MMD}}_k^2(\eta_1,\eta_2) \qquad\forall\ \eta_1,\eta_2.

We call any such τ\tau a contraction factor of Tπ\mathcal{T}^\pi and denote by τk∗(Tπ)\tau_k^*(\mathcal{T}^\pi) the smallest one valid for every MDP with discount γ\gamma and every fixed policy. Throughout this work, all contraction factors refer to MMD⁡‾k2\overline{\operatorname{MMD}}_k^2. The corresponding smallest contraction factor in MMD⁡k\operatorname{MMD}_k is the square root τk∗(Tπ)\sqrt{\tau_k^*(\mathcal{T}^\pi)}.

In policy evaluation, τk∗(Tπ)<1\tau_k^*(\mathcal{T}^\pi) < 1 guarantees that the distributional Bellman equation has a unique solution ηπ\eta^\pi. Repeated Bellman updates then converge to that solution in the supremum MMD at a geometric rate, MMD⁡k2((Tπ)nη,ηπ)≤τk∗(Tπ)nMMD⁡k2(η,ηπ)\operatorname{MMD}_{k}^{2}((T^{\pi})^{n}\eta,\eta^{\pi})\le\tau_{k}^{*}(T^{\pi})^{n}\operatorname{MMD}_{k}^{2}(\eta,\eta^{\pi}) for every η\eta and every n≥1n\ge1. More broadly, contraction is the standard way to show that the distributional Bellman equation is well posed under a given discrepancy [3, 4, 28].

Related work and known results. Existing work on distributional RL with MMD has established contraction results for a small set of kernels [19, 25]. In the univariate setting, sufficient conditions for Bellman contraction were established for kernels that are both shift invariant and scale sensitive of order α>0\alpha>0, meaning that for all x,y,cx,y,c in the underlying space [25],

k(x+c,y+c)=k(x,y),k(cx,cy)=∣c∣αk(x,y).(4)k(x+c,y+c)=k(x,y), \qquad k(cx,cy)=\lvert c\rvert^{\alpha}k(x,y). \tag*{(4)}

Table 1 summarizes the main contraction results known for specific kernels prior to this work. Distributional RL with MMD was subsequently extended to multivariate rewards [37, 38]. The earlier of the two minimized MMD but proved contraction of the multivariate distributional Bellman operator only in the Wasserstein metric [38], leaving contraction in MMD open. A later work laying the foundations of multivariate distributional RL proved contraction in MMD, but only for kernels satisfying the conditions of Equation (4) [37]. Taken together, these works identify a small set of kernels for which contraction can be proved or disproved, but do not provide a general criterion that unifies these results. Providing such a framework is among the contributions of this work.

Contraction in Maximum Mean Discrepancy

In this section, we establish our first main result, showing that contraction of the distributional Bellman operator in MMD⁡k2\operatorname{MMD}_{k}^{2} reduces to a conditional positive definiteness condition on a kernel derived from kk. We begin by recalling the notion of conditional positive definiteness.

Definition 3.1. Let k:X×X→Rk:\mathcal{X}\times\mathcal{X}\to\mathbb{R} be symmetric. We say that kk is conditionally positive definite (CPD), or conditionally negative definite (CND), if for every n≥1n\ge1, every x1,…,xn∈Xx_{1},\ldots,x_{n}\in\mathcal{X}, and every w1,…,wn∈Rw_{1},\ldots,w_{n}\in\mathbb{R} with ∑i=1nwi=0\sum_{i=1}^{n}w_{i}=0, one has

∑i,j=1nwiwjk(xi,xj)≥0(resp. ≤0).\sum_{i,j=1}^{n}w_{i}w_{j}k(x_{i},x_{j})\ge0 \qquad\text{(resp. }\le0\text{)}.

Theorem 3.1 below makes precise the reduction of Bellman contraction to a CPD condition. Conditional positive definiteness is well studied, especially for radial kernels, as we exploit in Section 4. The proof is deferred to Appendix C.

Theorem 3.1. Let k:Rd×Rd→Rk:\mathbb{R}^{d}\times\mathbb{R}^{d}\to\mathbb{R} be a CPD kernel. For a reward value q∈Rdq\in\mathbb{R}^{d} and a factor τ∈[0,1)\tau\in[0,1), define the Bellman difference kernel

kdiffq,γ(x,y):=τk(x,y)−k(q+γx,q+γy).(5)k_{\mathrm{diff}}^{q,\gamma}(x,y):=\tau k(x,y)-k(q+\gamma x,q+\gamma y). \tag*{(5)}

Then the following two statements are equivalent. (i) TπT^{\pi} is a τ\tau-contraction in MMD⁡k2\operatorname{MMD}_{k}^{2} for every MDP with discount γ\gamma and every fixed policy. (ii) The kernel kdiffq,γk_{\mathrm{diff}}^{q,\gamma} is CPD for every reward value q∈Rdq\in\mathbb{R}^{d}. In particular, the smallest contraction factor τk∗(Tπ)\tau_{k}^{*}(T^{\pi}) is the smallest τ\tau for which (ii) holds.

The CPD condition is therefore sufficient and necessary for TπT^{\pi} to be a τ\tau-contraction for every MDP with discount γ\gamma and every fixed policy. If it fails, there exist an MDP with discount γ\gamma and a fixed policy for which TπT^{\pi} is not a τ\tau-contraction.

Contraction with radial kernels

A kernel k:Rd×Rd→Rk : \mathbb{R}^{d} \times\mathbb{R}^{d} \to\mathbb{R} is called radial if k(x,y)=g(∥x−y∥)k(x,y) = g(\lVert x-y\rVert) for some function g:[0,∞)→Rg : [0,\infty) \to\mathbb{R}. We focus on this class for two reasons. First, it covers the main kernels studied in distributional RL with MMD, see Table 1. Second, radial kernels admit powerful contraction results through Schoenberg’s theorem [30] and the theory of Bernstein functions [29], which we now develop.

References

  1. [1]Nachman Aronszajn. Theory of reproducing kernels. Transactions of the American mathematical society, 68(3):337–404, 1950.
  2. [2]Gabriel Barth-Maron, Matthew W Hoffman, David Budden, Will Dabney, Dan Horgan, Dhruva Tb, Alistair Muldal, Nicolas Heess, and Timothy Lillicrap. Distributed distributional deterministic policy gradients. arXiv preprint arXiv:1804.08617, 2018.
  3. [3]Marc G Bellemare, Will Dabney, and Rémi Munos. A distributional perspective on reinforcement learning. In International conference on machine learning, pages 449–458. PMLR, 2017.arxiv.org/abs/1707.06887
  4. [4]Marc G Bellemare, Will Dabney, and Mark Rowland. Distributional reinforcement learning. MIT Press, 2023.DOI
  5. [5]Christian Berg, Jens Peter Reus Christensen, and Paul Ressel. Harmonic analysis on semigroups: theory of positive definite and related functions. Springer, 1984.
  6. [6]Alain Berlinet and Christine Thomas-Agnan. Reproducing kernel Hilbert spaces in probability and statistics. Springer Science & Business Media, 2011.
  7. [7]Karsten M Borgwardt, Arthur Gretton, Malte J Rasch, Hans-Peter Kriegel, Bernhard Schölkopf, and Alex J Smola. Integrating structured biological data by kernel maximum mean discrepancy. Bioinformatics, 22 (14):e49–e57, 2006.
  8. [8]James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Yash Katariya, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/jax-ml/jax.
  9. [9]John B Conway. A course in functional analysis. Springer, 1990.
  10. [10]Will Dabney, Georg Ostrovski, David Silver, and Rémi Munos. Implicit quantile networks for distributional reinforcement learning. In International conference on machine learning, pages 1096–1105. PMLR, 2018.arxiv.org/abs/1806.06923
  11. [11]Will Dabney, Mark Rowland, Marc Bellemare, and Rémi Munos. Distributional reinforcement learning with quantile regression. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.arxiv.org/abs/1710.10044
  12. [12]Baptiste Debes and Timne Tuytelaars. Distributional value gradients for stochastic environments. In International Conference on Learning Representations, 2026.arxiv.org/abs/2601.20071
  13. [13]Baptiste Debes and Tinne Tuytelaars. Multivariate distributional reinforcement learning using sliced divergences. In International Conference on Machine Learning, volume 306, pages 23456–23526. PMLR, 2026.arxiv.org/abs/2605.31222
  14. [14]Jean Feydy, Thibault Séjourné, François-Xavier Vialard, Shun-ichi Amari, Alain Trouvé, and Gabriel Peyré. Interpolating between optimal transport and MMD using Sinkhorn divergences. In The 22nd international conference on artificial intelligence and statistics, pages 2681–2690. PMLR, 2019.
  15. [15]Arthur Gretton, Karsten Borgwardt, Malte Rasch, Bernhard Schölkopf, and Alex Smola. A kernel method for the two-sample-problem. Advances in neural information processing systems, 19, 2006.arxiv.org/abs/0805.2368
  16. [16]Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 13(25):723–773, 2012. URL http://jmlr.org/papers/v13/gretton12a.html.DOI
  17. [17]Jean Carlo Guella. Generalization of the energy distance by Bernstein functions, 2021. URL https://arxiv.org/abs/2102.00633.
  18. [18]Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.arxiv.org/abs/1710.02298
  19. [19]Ludvig Killingberg and Helge Langseth. The multiquadric kernel for moment-matching distributional reinforcement learning. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=z49eaB8KIh.
  20. [21]Clare Lyle, Marc G Bellemare, and Pablo Samuel Castro. A comparative analysis of expected and distributional reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4504–4511, 2019.arxiv.org/abs/1901.11084
  21. [22]Charles A Micchelli. Interpolation of scattered data: distance matrices and conditionally positive definite functions. Constructive Approximation, 2:11–22, 1986.
  22. [23]Tetsuro Morimura, Masashi Sugiyama, Hisashi Kashima, Hirotaka Hachiya, and Toshiyuki Tanaka. Nonparametric return distribution approximation for reinforcement learning. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pages 799–806, 2010.
  23. [24]The mpmath development team. mpmath: a Python library for arbitrary-precision floating-point arithmetic (version 1.4.0), 2026. http://mpmath.org/.
  24. [25]Thanh Nguyen-Tang, Sunil Gupta, and Svetha Venkatesh. Distributional reinforcement learning via moment matching. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 9144–9152, 2021.arxiv.org/abs/2007.12354
  25. [26]Beresford N Parlett. The symmetric eigenvalue problem. SIAM, 1998.
  26. [27]Mark Rowland, Marc Bellemare, Will Dabney, Rémi Munos, and Yee Whye Teh. An analysis of categorical distributional reinforcement learning. In International Conference on Artificial Intelligence and Statistics, pages 29–37. PMLR, 2018.arxiv.org/abs/1802.08163
  27. [28]Mark Rowland, Robert Dadashi, Saurabh Kumar, Rémi Munos, Marc G Bellemare, and Will Dabney. Statistics and samples in distributional reinforcement learning. In International Conference on Machine Learning, pages 5528–5536. PMLR, 2019.arxiv.org/abs/1902.08102
  28. [29]René L. Schilling, Renming Song, and Zoran Vondráček. Bernstein functions: theory and applications. Walter de Gruyter, 2009.DOI
  29. [30]Isaac J Schoenberg. Metric spaces and positive definite functions. Transactions of the American Mathematical Society, 44(3):522–536, 1938.
  30. [31]Dino Sejdinovic, Bharath Sriperumbudur, Arthur Gretton, and Kenji Fukumizu. Equivalence of distance-based and RKHS-based statistics in hypothesis testing. The Annals of Statistics, pages 2263–2291, 2013.DOI
  31. [32]Rahul Singh, Qinsheng Zhang, and Yongxin Chen. Improving robustness via risk averse distributional reinforcement learning. In Learning for Dynamics and Control, pages 958–968. PMLR, 2020.arxiv.org/abs/2005.00585
  32. [33]Rahul Singh, Keuntaek Lee, and Yongxin Chen. Sample-based distributional policy gradient. In Learning for Dynamics and Control Conference, pages 676–688. PMLR, 2022.
  33. [34]Ke Sun, Yingnan Zhao, Wulong Liu, Bei Jiang, and Linglong Kong. Distributional reinforcement learning with regularized Wasserstein loss. Advances in Neural Information Processing Systems, 37:63184–63221, 2024.arxiv.org/abs/2202.00769
  34. [35]Pauli Virtanen, Ralf Gommers, Travis E. Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Stéfan J. van der Walt, Matthew Brett, Joshua Wilson, K. Jarrod Millman, Nikolay Mayorov, Andrew R. J. Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, İlhan Polat, Yu Feng, Eric W. Moore, Jake VanderPlas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Henriksen, E. A. Quintero, Charles R. Harris, Anne M. Archibald, Antônio H. Ribeiro, Fabian Pedregosa, Paul van Mulbregt, and SciPy 1.0 Contributors. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nature Methods, 17:261–272, 2020. doi: 10.1038/s41592-019-0686-2.
  35. [36]Christopher JCH Watkins and Peter Dayan. Q-learning. Machine learning, 8(3):279–292, 1992.DOI
  36. [37]Harley Wiltzer, Jesse Farebrother, Arthur Gretton, and Mark Rowland. Foundations of multivariate distributional reinforcement learning. Advances in Neural Information Processing Systems, 37:101297–101336, 2024.arxiv.org/abs/2409.00328
  37. [38]Pushi Zhang, Xiaoyu Chen, Li Zhao, Wei Xiong, Tao Qin, and Tie-Yan Liu. Distributional reinforcement learning for multi-dimensional reward functions. Advances in Neural Information Processing Systems, 34:1519–1529, 2021.arxiv.org/abs/2110.13578

Paper details

vlnc:W_mr42xkdq
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