Distributional Reinforcement Learning methods aim to learn the entire distribution of returns, yet current algorithmic approaches are limited to a narrow class of distributions. We propose φTD, a method to overcome this limitation by computing the loss in the frequency domain. We demonstrate that this further unifies quantile and categorical approaches to distributional RL, and enables the learning of distributions that were previously impossible to capture, such as mixtures of continuous distributions. We empirically study φTD, across synthetic benchmarks and large-scale deep RL environments and demonstrate that the flexibility obtained from wider parametric families can lead to improved performance.
Figures & tables
Zθ(x,a)
∈F,
Qθ(x,a)
=E[Zθ(x,a)],
φθ(x,a,ω)
=E[eiωZθ(x,a)]
Algorithm 1 φ TD
Metric
Algorithm
Gaussian
Cauchy
MoGaussian
Gamma
Wasserstein W1(↓)
CTD ( FC,m )
0.283±0.004
0.407±0.005
0.350±0.016
0.314±0.003
φ TD -Cat ( FC,m )
0.289±0.006
0.422±0.048
0.347±0.039
0.317±0.002
QTD ( FQ,m )
0.200±0.011
0.398±0.023
0.365±0.042
0.247±0.020
φ TD -Qt ( FQ,m )
0.144±0.018
0.383±0.046
0.189±0.013
0.167±0.025
φ TD -Dirac( Fm )
0.132±0.015
0.432±0.051
0.230±0.046
0.155±0.007
Cramér ℓ22(↓)
CTD ( FC,m )
0.0271±0.0010
0.0215±0.0006
0.0372±0.0017
0.0282±0.0012
Table 1: Quantitative comparison of distributional algorithms against ground truth distributions. We evaluate various error measures of standard spatial methods against the φ TD framework across four distinct target distributions in the offline contextual bandit setting. Values represent the mean ± a 95% confidence interval (under Gaussian assumption) computed over 5 independent random seeds. For all φ TD variants in this experiment, frequencies were sampled from a Pareto distribution and optimized using the unweighted empirical characteristic loss \mathcal{L}_{\scalebox{1.3}{\varphi}\scalebox{0.95}{TD}}^{\mathrm{Pareto}} . Bold values indicate the lowest error per column and metric.
Figure 1: MinAtar evaluation results. Mean episodic returns evaluated over 10M training steps across all four MinAtar environments. Results are aggregated over 5 independent random seeds, with the shaded areas representing the 95% confidence intervals under Gaussian assumption.
Figure 2: Craftax evaluation results. Mean episodic returns evaluated over 1B training steps on the Craftax benchmark. Results are aggregated over 5 independent random seeds, with the shaded areas representing the 95% confidence intervals under Gaussian assumption.
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
QTD
CTD
φ TD-Quant. FQ,m
φ TD-Cat. FC,m
φ TD-Dirac Fm
Dataset, Environment & Network
Dataset Size
500 K
State Dimension
5
Number of Actions
4
Reward Noise σ
0.2
Trunk Layers
2
Appendix
Table 4: Hyperparameters for the offline distribution analysis experiment.
Figure 3: Distributional analysis . Columns display the real part of the characteristic function (CF), the PDF, and the CDF. Results are averaged over 5 independent seeds with shaded regions representing 95% confidence intervals (under Gaussian assumption). Predictions are evaluated at the origin of the state space ( x=0∈R5 ).
Figure 4: Ablation of the number of mixture components m on MinAtar (mean ± 95% CI).
Environment
m=10
m=20
m=51
m=100
Breakout
25.7±2.7
24.3±2.0
26.1±1.7
24.3±2.6
SpaceInvaders
80.7±2.3
83.7±2.6
88.1±1.5
79.3±3.7
Appendix
Table 8: Sensitivity to the number of mixture components m . Final results are reported as mean ± 95% CI
Figure 5: Ablation of the number of sampled frequencies Nω on MinAtar (mean ± 95% CI).
Environment
Nω=32
Nω=64
Nω=128
Nω=256
Breakout
23.9±2.2
24.0±1.6
23.4±3.1
23.8±2.4
SpaceInvaders
84.9±3.3
80.4±2.2
88.3±1.8
84.8±1.6
Appendix
Table 9: Sensitivity to the number of sampled frequencies Nω . Results are reported as mean ± 95% CI.
Figure 6: Ablation of frequency sampling (Pareto, Exponential and Uniform) and distributions families (MoGaussian, Categorical and Quantile). Color denotes family and markers denote sampling. Mean ± 95% CI.
Family
Sampling
Breakout
SpaceInvaders
MoGaussian
Pareto
23.5±1.4
88.1±1.5
MoGaussian
Exponential
25.7±2.3
80.9±4.2
MoGaussian
Uniform
25.6±2.5
76.4±9.6
Categorical
Pareto
20.2±3.6
75.7±4.2
Categorical
Exponential
17.0±2.6
74.0±3.2
Categorical
Uniform
9.5±1.3
64.2±7.4
Appendix
Table 10: Sensitivity to the frequency sampling distribution for each modeling family. Results are reported as mean ± 95% CI.
Environment
Pareto
Exponential
Uniform
Breakout
21.9±1.7
21.4±1.3
11.7±0.9
SpaceInvaders
81.3±2.5
71.6±2.1
48.9±4.1
Appendix
Table 11: Sensitivity to the frequency sampling distribution aggregated by environment. Results are reported as mean ± 95% CI.
Game
φ TD -MoGaussian
C51
QR-DQN
IQN
Asterix
74.35±0.51
73.40±1.38
72.68±4.77
73.94±1.65
Breakout
104.59±12.64
92.12±4.66
108.38±8.77
102.53±14.00
Freeway
63.65±1.33
44.73±32.71
64.53±0.51
64.79±0.45
SpaceInvaders
147.60±10.52
143.20±14.03
156.40±10.92
152.80±8.58
Appendix
Table 13: Comparison of φ TD -MoGaussian with standard distributional RL algorithms on the MinAtar suite. Results are averaged over 5 seeds and reported as mean ± 95% CI. We observe that φ TD -MoGaussian stays competitive throughout all environments.
Figure 7: Comparison of φ TD -MoGaussian with standard distributional RL algorithms on the MinAtar suite. Results are averaged over 5 seeds and reported as mean ± 95% CI. We observe that φ TD -MoGaussian stays competitive throughout all environments.
Method
CVaR 25
Mean
φ TD -MoGaussian
0.012617
0.025932
QR-DQN
0.008938
0.022920
Appendix
Table 14: Comparison between φ TD -MoG and QR-DQN on the risk-sensitive option trading environment. Results are averaged over 10 seeds. φ TD -MoG achieves competitive CVaR 25 while preserving a comparable mean return, illustrating the flexibility of φ TD for extracting risk-aware decision criteria from learned return distributions.
Family
F
E[X]
Var(X)
ρη(X)
Mixture of Dirac
Fm
j=1∑mwjθj
j=1∑mwjθj2−(j=1∑mwjθj)2
η1log(j=1∑mwjeηθj)
Mixture of Gaussian
FG,m
j=1∑mwjμj
j=1∑mwj(σj2+μj2)−(j=1∑mwjμj)2
η1log(j=1∑mwjeημj+21η2σj2)
Categorical
FC,m
j=1∑mqjθj
j=1∑mqjθj2−(j=1∑mqjθj)2
η1log(j=1∑mqjeηθj)
Fixed Quantiles
FQ,m
m1j=1∑mθj
m1j=1∑mθj2−(m1j=1∑mθj)2
η1log(m1j=1∑meηθj)
Appendix
Table 15: Summary of risk-measure extractions for the distribution families considered. The entropic risk is defined as ρη(X)=η1logE[eηX] . For each family with finite lower-tail CVaR, we numerically compute the inverse CDF, FX−1 , and use it to obtain CVaR25(X)=0.251∫00.25FX−1(u)du .
Distributional reinforcement learning models the full range of possible returns to improve value estimation, risk-sensitive decisions, and policy evaluation.
In this work, we initiate a systematic study of online statistical inference for quantile-based distributional policy evaluation, which aims to characterize the distribution of discounted cumulative rewards under a given policy. To obtain a finite-dimensional representation of the return distribution, we consider the fixed point ηm of the quantile-projected distributional Bellman equation, parameterized by the quantile vector θm. We develop two online inference procedures for θm, covering synchronous and asynchronous sampling from a generative model as well as Markovian data. The first method uses the trajectory of quantile temporal-difference learning (QTD). We establish functional central limit theorems for the partial sums of QTD iterates and construct a recursively computable random-scaling statistic. The resulting confidence intervals have asymptotically exact coverage at deterministic times, with length of order T−1/2 in probability. The second method constructs anytime-valid confidence intervals directly from samples. We invert multiscale tests of the Bellman estimating equation and use dyadic reward histograms to evaluate conservative evidence bounds online. The resulting intervals have finite-sample simultaneous coverage, and the histogram contribution to their length bound is of order T−ζ for ζ∈[1/2,1). Under positive limiting state-visit frequencies, the resulting confidence intervals have lengths of order loglogT/T, which we establish as classwise optimal through a matching lower bound. Together, these results provide complementary guarantees for online inference in quantile distributional reinforcement learning, combining asymptotically exact fixed-time inference with finite-sample anytime validity.
Zijie Cheng, Zhihua Zhang
School of Mathematical Sciences, Peking University · Yau Mathematical Sciences Center, Tsinghua University
In this paper, we study quantile-based distributional reinforcement learning from the perspective of statistical efficiency. We focus on distributional policy evaluation, whose goal is to characterize the return distribution, namely the distribution of discounted cumulative rewards under a given policy. To obtain a finite-dimensional representation of the return distribution, we consider the quantile fixed point ηm induced by the quantile-projected distributional Bellman equation. Assuming access to a generative model, we construct an estimator ηm(n) based on an empirical Markov decision process. For a fixed number of quantiles m, we establish a non-asymptotic error bound for ηm(n) and ηm under the supremum W∞ metric, showing that the estimation error scales as O(m/n) with respect to m and n. This implies that the quantile-based distributional policy evaluation problem can be solved with sample efficiency, achieving the optimal parametric n convergence rate. We derive the asymptotic distribution of the quantile parameters n(θm(n)−θm) and characterize the semiparametric efficiency bound, which is attained by our estimator. Beyond the fixed-dimensional setting, we investigate the asymptotic regime in which the number of quantiles diverges. We characterize the limit covariance structure and show that it matches the semiparametric efficiency bound of the nonparametric model for distributional policy evaluation, showing that quantile-based estimators remain asymptotically efficient in the infinite-dimensional limit. Finally, we establish a Berry--Esseen theorem for smooth functionals n(ηm(n)(s)−ηm(s))f, thereby providing a foundation for statistically valid inference on functionals of the quantile-projected return distribution.
Zijie Cheng, Yang Peng, Zhihua Zhang
School of Mathematical Sciences, Peking University · Yau Mathematical Sciences Center, Tsinghua University
Quantile-based distributional reinforcement learning methods learn return distributions through sampled quantile regression, but their bootstrapped target quantiles may induce distorted or degenerate distribution estimates. We propose Robust Quantile-based Implicit Quantile Networks (RQIQN), a lightweight Wasserstein distributionally robust enhancement boosted from a quantile estimation perspective. We first reinterpret a snapshot of IQN loss as a collection of local empirical quantile estimation problems over sampled current fractions. We then robustify each local slot with a Wasserstein distributionally robust quantile estimation formulation, yielding a closed-form, fraction-dependent correction to the Bellman target. This correction directly addresses distributional degeneration: its median antisymmetry preserves the risk-neutral quantile average, while its monotonicity enlarges upper-lower quantile gaps and counteracts collapsed distributional spread. RQIQN thus regularizes quantile geometry without changing the underlying value objective or requiring additional sample set reconstruction. Finally, we empirically show that the proposed RQIQN outperforms other existing quantile-based distributional reinforcement learning algorithms in risk-sensitive navigation and Atari games.
Zhaofan Zhang, Minghao Yang, Rufeng Chen +2
Information Hub, AI Thrust Hong Kong University of Science and Technology (Guangzhou) Guangzhou, Guangdong, China