An Analysis of Quantile Temporal-Difference Learning

Mark Rowland, Rémi Munos, Mohammad Gheshlaghi Azar, Yunhao Tang, Georg Ostrovski, Anna Harutyunyan, Karl Tuyls, Marc G. Bellemare, Will Dabney

TL;DR

Quantile Temporal-Difference (QTD) learning is a cornerstone of modern distributional reinforcement learning, yet its theoretical convergence has remained an open question. This paper provides the first rigorous proof that tabular QTD converges almost surely to the fixed points of quantile dynamic programming, leveraging stochastic approximation with non-linear differential inclusions. The authors also establish finite-distribution Wasserstein error bounds showing how learned representations asymptotically approach the true return distribution.

What Problem Does This Paper Address?

In standard reinforcement learning (RL), algorithms like TD(0) predict the expected cumulative return $V^\pi(x)$. Distributional RL instead aims to estimate the entire probability distribution of returns $\eta^\pi(x)$. One of the most practical and successful paradigms is Quantile Temporal-Difference (QTD) learning, which approximates the return distribution using a discrete set of $m$ quantile particles.

Despite stellar empirical performance in large-scale applications (e.g., Loon stratospheric balloon navigation, discovering faster matrix multiplication algorithms with AlphaTensor), theoretical justification for QTD has lagged behind. Standard TD convergence relies on linear stochastic approximation and $L^2$ contraction mappings. In contrast:

  • QTD updates depend on the asymmetric $L^1$ quantile loss, which only considers the sign (not magnitude) of the TD error.
  • Updates are highly non-linear and discontinuous.
  • If reward distributions contain flat regions in their cumulative distribution functions (CDFs), quantiles are non-unique, causing QTD to possess multiple possible fixed points.

This paper bridges the gap by proving under what conditions QTD is guaranteed to converge and bounding the quality of its predictions.

Methods

The paper develops an analytical framework linking dynamic programming, non-smooth analysis, and stochastic differential inclusions:

  1. Quantile Dynamic Programming (QDP): The authors define an idealized dynamic programming operator $\Pi^\lambda \mathcal{T}^\pi$ parameterized by an interpolation vector $\lambda \in [0, 1]^{|\mathcal{X}| \times m}$, which selects among valid quantiles when CDF flat spots occur. They prove $\Pi^\lambda \mathcal{T}^\pi$ is a $\gamma$-contraction in the supremum-Wasserstein metric ($\bar{w}_\infty$) on the space of $m$-atom distributions.
  2. QTD Differential Inclusion (DI): Because QTD updates are discontinuous when rewards are discrete or non-smooth, classical ODE methods fail (solutions may not exist due to "sliding" or "chattering"). The authors reformulate the expected update as a set-valued Marchaud differential inclusion: $$\partial_t \vartheta_t(x, i) \in [\tau_i - F_{(\mathcal{T}^\pi \vartheta_t)(x)}(\vartheta_t(x, i)),\, \tau_i - F_{(\mathcal{T}^\pi \vartheta_t)(x)}(\vartheta_t(x, i)^-)]$$
  3. Lyapunov Stability via Non-Smooth Analysis: To prove trajectories converge to the set of QDP fixed points, they construct a continuous Lyapunov function: $$L(\theta) = \min_{\lambda \in [0, 1]^{|\mathcal{X}|\times m}} \max_{(x, i)} |\theta(x, i) - \hat{\theta}^\pi_\lambda(x, i)|$$ Showing that $L$ strictly decreases along trajectories requires non-smooth analysis tools, including Rademacher's theorem, Clarke's generalized gradients, and Brouwer’s invariance of domain.

  4. Stochastic Approximation: Applying the differential inclusion framework of Benaïm, Hofbauer, and Sorin (2005), discrete QTD is proven to track the trajectories of the DI almost surely.

Datasets

Not discussed in the paper. The paper is purely theoretical, featuring illustrative synthetic Markov Decision Processes (e.g., a 4-state chain MDP with Gaussian transitions, and two-state toy MDPs with deterministic and normal rewards) to visualize phase-space dynamics and quantile backup diagrams.

Key Insights and Ideas

  • Bounded Updates Yield Weaker Assumptions: Because QTD updates are based on indicator functions (bounded in magnitude), the algorithm does not suffer from gradient explosion. Consequently, convergence requires only finite-mean rewards (no finite-variance requirement) and weaker step-size conditions ($\sum_k \alpha_k = \infty$, $\alpha_k = o(1 / \log k)$ rather than square-summability $\sum_k \alpha_k^2 < \infty$).
  • Quantile Representation Avoids Deliberate Smearing: Unlike categorical distributional RL (e.g., C51), which constantly diffuses probability mass across predefined categorical bins via projection, quantile representations do not accumulate artificial projection error in deterministic environments.
  • Pathological Self-Loops in Small Quantile Counts: By studying "quantile backup diagrams," the authors demonstrate that for small $m$ (e.g., $m=2$), an atom can become trapped in a self-referential loop, causing extreme overestimation. Increasing the number of quantiles $m$ isolates these cycles, preventing error from corrupting neighboring particles.

Key Results

  • Almost-Sure Convergence (Theorem 8): Under diminishing step sizes satisfying $\sum_k \alpha_k = \infty$ and $\alpha_k = o(1/\log k)$, tabular synchronous QTD iterates converge with probability 1 to the set of fixed points: $$\inf_{\lambda \in [0, 1]^{|\mathcal{X}| \times m}} \|\theta_k - \hat{\theta}^\pi_\lambda\|_\infty \xrightarrow{k \to \infty} 0$$
  • Wasserstein-1 Error Bound (Proposition 19): For rewards bounded in $[R_{\min}, R_{\max}]$, the distance between any fixed point $\hat{\eta}^\pi_\lambda$ and the true return distribution $\eta^\pi$ satisfies: $$\bar{w}_1(\hat{\eta}^\pi_\lambda, \eta^\pi) \le \frac{V_{\max} - V_{\min}}{2m(1 - \gamma)}$$ where $V_{\max} - V_{\min} = \frac{R_{\max} - R_{\min}}{1 - \gamma}$. The error decays at rate $\mathcal{O}(1/m)$.

  • Instance-Dependent Bound (Proposition 21): If transitions and rewards become deterministic after $k$ steps, the bound improves by a factor of $(1 - \gamma^k)$: $$\bar{w}_1(\hat{\eta}^\pi_\lambda, \eta^\pi) \le \frac{(V_{\max} - V_{\min})(1 - \gamma^k)}{2m(1 - \gamma)}$$ For completely deterministic systems ($k=0$), the bound drops to 0, proving zero representation error accumulation.

Limitations and Future Work

  • Tabular Policy Evaluation Only: The convergence proof applies to tabular policy evaluation (with synchronous updates, though an asynchronous extension is sketched). It does not directly cover non-linear function approximation (deep QTD) or control algorithms (e.g., Quantile Q-learning).
  • Asymptotic vs. Finite-Sample: The paper proves asymptotic convergence ($k \to \infty$); it does not provide finite-sample sample complexity or convergence rate bounds.
  • Future Directions: Establishing non-asymptotic convergence rates, exploring Polyak-Ruppert parameter averaging for QTD, analyzing multi-step bootstrap variants, and extending differential inclusion proofs to control and deep architectures.

Summary updated

BibTeX
@article{rowland2024analysis,
  author = {Mark Rowland and Rémi Munos and Mohammad Gheshlaghi Azar and Yunhao Tang and Georg Ostrovski and Anna Harutyunyan and Karl Tuyls and Marc G. Bellemare and Will Dabney},
  title = {{An Analysis of Quantile Temporal-Difference Learning}},
  journal = {J. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=8M3jXRyUtY},
}
Figure