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.