Online Inference in Distributional Temporal-Difference Learning
Proposes online inference in distributional TD learning, establishing weak convergence to Gaussian processes and bootstrap consistency for smooth and nonsmooth functionals.
Key Findings
Methodology
This paper introduces a nonparametric distributional temporal-difference (DTD) learning framework for estimating the return distribution under a fixed policy. Utilizing Polyak–Ruppert averaging, the authors establish a weak convergence of the root-T scaled estimation error to a centered Gaussian element in Cramér space. They incorporate an online bootstrap procedure, where bootstrap weights are applied to the recursive updates, and prove that the conditional distribution of the bootstrap estimator also converges weakly to the same Gaussian limit. The analysis covers both smooth functionals—such as variance, CVaR, expected shortfall, and expectiles—and nonsmooth functionals characterized by CDF equations, like quantiles. For nonsmooth functionals, the authors develop a local asymptotic theory based on T^{-1/2} neighborhoods of thresholds, supported by bootstrap analogues, enabling inference on complex distributional features.
Key Results
- Theoretically, the paper proves that the averaged distributional TD estimator converges in distribution to a Gaussian process in Cramér space, with the covariance operator given by A^{-1}Σ(A^{-1})^*. This result holds under geometric ergodicity assumptions of the Markov chain, with the convergence rate at root T. Empirically, simulations demonstrate that the bootstrap-based confidence intervals achieve nominal coverage levels and that the distribution of estimation errors aligns with the Gaussian limit. For nonsmooth functionals like quantiles, the local CDF expansion confirms the asymptotic normality within finite neighborhoods, supporting valid inference.
- The significance of these results lies in providing rigorous statistical tools for online policy evaluation, extending beyond mean estimates to entire return distributions. The combination of asymptotic normality and bootstrap validity enables practitioners to construct confidence intervals and perform hypothesis testing for risk-sensitive measures, crucial in finance, autonomous systems, and safety-critical applications. The theoretical guarantees also facilitate the development of adaptive algorithms with quantifiable uncertainty, advancing the field of distributional reinforcement learning.
- Technically, the paper's main contributions include: 1) establishing a linear representation of the distributional TD errors in Cramér space; 2) proving the weak convergence of the averaged estimator to a Gaussian process via martingale CLT; 3) designing an online bootstrap scheme that reproduces this limit conditionally; 4) developing a local asymptotic theory for nonsmooth functionals based on CDF neighborhoods. These innovations bridge the gap between nonparametric estimation, stochastic approximation, and statistical inference in reinforcement learning, offering a comprehensive framework for real-time distributional analysis.
- Compared to prior work, this study is the first to rigorously establish the asymptotic normality of distributional TD estimators in the online setting under Markovian sampling, with a detailed bootstrap validity proof. Unlike earlier offline or model-based approaches, it handles single-trajectory data and nonparametric distributional estimates, addressing a critical gap in the literature. Its novelty also lies in the local CDF expansion for nonsmooth functionals, enabling inference for quantiles and other tail-related measures, which are essential for risk management.
- Limitations include reliance on geometric ergodicity and finite state spaces, which may restrict direct application to high-dimensional or continuous environments. The convergence rates and finite-sample performance require further empirical validation, especially in deep RL contexts. The theory assumes density continuity and threshold uniqueness for nonsmooth functionals, which may not hold in all practical distributions. Future work should aim to extend these results to broader settings, improve computational efficiency, and integrate with deep learning architectures.
Future Work
Future directions include extending the theoretical framework to high-dimensional and continuous state spaces, possibly via kernel or neural network approximations. Investigating the finite-sample properties and convergence rates in practical deep RL scenarios is crucial. Developing scalable algorithms that incorporate the proposed inference methods, and exploring multi-agent or multi-policy settings, are promising avenues. Additionally, relaxing assumptions such as density continuity and threshold uniqueness for nonsmooth functionals, and applying the framework to real-world risk-sensitive applications, will further enhance its impact.
AI Executive Summary
Traditional reinforcement learning methods primarily focus on estimating the expected return of a policy, which provides a limited view of the policy's performance. However, in many real-world applications—such as financial risk management, autonomous driving, and robotics—understanding the entire distribution of possible returns is crucial for making robust and risk-aware decisions. Recognizing this need, the paper introduces a novel online inference framework based on distributional temporal-difference (DTD) learning, which estimates the full return distribution from a single observed trajectory.
The core innovation lies in establishing the asymptotic properties of the distributional TD estimator. By leveraging Polyak–Ruppert averaging, the authors prove that the scaled estimation error converges weakly to a Gaussian process in Cramér space, a function space suitable for distribution functions and related quantities. This theoretical result provides the foundation for constructing confidence intervals and conducting hypothesis tests for various statistical functionals of the return distribution, such as variance, CVaR, and quantiles.
To enable practical inference, the authors design an online bootstrap method that reuses the observed data with randomly weighted updates. They rigorously prove that this bootstrap procedure is conditionally consistent, meaning it accurately approximates the sampling distribution of the estimator under the true data-generating process. This is particularly significant for non-smooth functionals like quantiles, where classical asymptotic theory often fails.
The paper further develops a local asymptotic theory for the estimated return CDF, focusing on neighborhoods around finitely many thresholds. This allows for valid inference on non-smooth functionals characterized by CDF equations, including return quantiles and tail risk measures. Extensive simulations demonstrate that the proposed methods achieve nominal coverage and align well with the theoretical Gaussian limits.
Overall, this work bridges the gap between nonparametric statistical inference and reinforcement learning, providing a rigorous, scalable, and versatile toolkit for online policy evaluation. Its implications extend to safer AI systems, risk-sensitive decision-making, and adaptive algorithms capable of quantifying uncertainty in complex environments. Future research will aim to adapt these techniques to high-dimensional, continuous, and deep RL settings, further broadening their applicability and impact.
Deep Analysis
Background
Reinforcement learning (RL) has evolved from simple value-based methods to sophisticated distributional approaches that aim to estimate the entire return distribution rather than just the mean. Early algorithms like TD(0) and SARSA focused on value functions, providing theoretical guarantees for convergence and asymptotic normality under i.i.d. assumptions. With the advent of distributional RL, methods such as C51, QR-DQN, and IQN have been developed to approximate the distribution of returns, capturing risk and tail behavior. These methods have shown empirical success in deep RL applications, but their statistical inference properties—such as confidence intervals and hypothesis testing—remain underdeveloped. Most existing work relies on offline data or multiple trajectories, limiting their applicability in online, single-trajectory settings. Recent advances have begun to explore the asymptotic behavior of distributional estimators, but comprehensive theoretical guarantees, especially involving bootstrap methods and nonsmooth functionals, are lacking. This paper addresses this gap by establishing the asymptotic normality and bootstrap consistency of online distributional TD estimators, extending the theoretical foundation of distributional RL.
Core Problem
The core challenge is to perform valid statistical inference for the return distribution and its functionals from a single Markov trajectory, which is a common scenario in online RL. Traditional approaches often assume i.i.d. samples or multiple independent trajectories, which are unrealistic in many real-world applications. Moreover, many important functionals—such as quantiles, tail risk measures, and expectiles—are non-smooth and do not satisfy the regularity conditions required for classical asymptotic theory. This complicates the derivation of confidence intervals and hypothesis tests. Additionally, existing methods lack rigorous validation of bootstrap procedures in the Markovian setting, especially for nonparametric estimators. Addressing these issues requires developing a unified theoretical framework that accounts for the dependence structure, handles non-smooth functionals, and validates bootstrap approximations in the online, single-trajectory context.
Innovation
The paper's main innovations include: 1) developing a nonparametric distributional TD algorithm that estimates the full return distribution without parametric restrictions; 2) establishing a weak convergence result in Cramér space, showing that the scaled estimation error converges to a Gaussian process, leveraging the geometric ergodicity of the Markov chain; 3) designing an online multiplier bootstrap scheme that reuses the observed trajectory with independent bootstrap weights, and proving its conditional consistency; 4) formulating a local asymptotic theory for the estimated return CDF over neighborhoods of finitely many thresholds, enabling inference for non-smooth functionals like quantiles. These innovations collectively provide a rigorous statistical foundation for online distributional RL, bridging the gap between estimation and inference.
Methodology
- �� Construct a nonparametric distributional TD recursion based on the Bellman operator, updating the estimated return distribution at each step using observed transitions.
- �� Apply Polyak–Ruppert averaging to the sequence of distribution estimates to stabilize convergence.
- �� Represent the estimation error as a zero-mean signed measure in Cramér space, and derive a recursive linear approximation that isolates the stochastic fluctuation component.
- �� Prove that the scaled error converges weakly to a Gaussian process in the Hilbert space, using martingale CLT and geometric ergodicity assumptions.
- �� Design an online bootstrap scheme where bootstrap weights are multiplied with the step sizes in the recursion, generating bootstrap replicates of the estimator.
- �� Establish the conditional weak convergence of the bootstrap estimator to the same Gaussian limit, validating bootstrap inference.
- �� For non-smooth functionals, develop a local CDF expansion within T^{-1/2} neighborhoods of thresholds, and prove their joint convergence to Gaussian processes.
- �� Use the functional delta method to transfer the Gaussian and bootstrap limits to the desired functionals, enabling confidence interval construction and hypothesis testing.
Experiments
Simulations are conducted in finite-state Markov chains with rewards bounded in [0,1]. The experiments compare the empirical coverage probabilities of confidence intervals for the mean, variance, CVaR, and quantiles, under different trajectory lengths (T=1000, 5000). The step size parameters are set to αt = a(t + t0)^{-κ} with κ in (0.5, 0.75). Multiple independent runs validate the asymptotic Gaussian approximation and the bootstrap's conditional validity. The experiments also include non-smooth functionals like quantiles, verifying the local CDF expansion and the accuracy of the bootstrap-based inference. Results show that the confidence intervals achieve near-nominal coverage and that the bootstrap replicates accurately reflect the sampling distribution, even in small samples.
Results
The key theoretical result is that the scaled estimation error converges weakly to a Gaussian process in the Hilbert space, with covariance determined by the stationary distribution and the martingale difference sequence. Empirically, the bootstrap method consistently approximates this distribution, with coverage probabilities close to 95% across various functionals. For nonsmooth functionals like quantiles, the local CDF expansion accurately captures the asymptotic distribution, enabling valid inference. The simulations demonstrate that the proposed approach outperforms naive methods that ignore dependence or non-smoothness, especially in finite samples. These findings confirm the theoretical guarantees and highlight the method's robustness in practical scenarios.
Applications
This framework is directly applicable to online policy evaluation in settings where data is collected sequentially, such as financial trading, autonomous vehicle safety assessment, and adaptive control systems. It allows practitioners to construct confidence intervals for risk measures and tail statistics in real time, facilitating risk-aware decision-making. The methods are compatible with deep RL architectures, provided the distributional estimates are obtained via neural network function approximators. Long-term, this approach can underpin the development of adaptive, risk-sensitive RL algorithms that quantify uncertainty and provide statistical guarantees, thereby enhancing safety, robustness, and interpretability in complex environments.
Limitations & Outlook
The current theory relies on assumptions of geometric ergodicity and finite state spaces, which may not hold in high-dimensional or continuous environments. Extending the results to deep RL settings involves additional challenges, such as function approximation errors and non-stationarity. The convergence rates and finite-sample performance require further empirical validation, especially in real-world applications with complex dynamics. The local asymptotic theory for nonsmooth functionals assumes density continuity and threshold uniqueness, which may not be valid for multimodal or degenerate distributions. Future work should aim to relax these assumptions, develop scalable algorithms, and validate the methods in high-dimensional, real-world scenarios.
Abstract
We study online statistical inference for functionals of the return distribution under a fixed policy. The return distribution is estimated by nonparametric distributional temporal-difference learning from a single Markov trajectory. For the Polyak--Ruppert averaged estimator, we prove that its root-$T$ error converges weakly to a centered Gaussian random element in Cramér space. We also prove that, conditionally on the observed trajectory, the root-$T$ difference between the bootstrap and original averages converges weakly to the same Gaussian limit. These results justify bootstrap inference for smooth statistical functionals, including variance, CVaR, expected shortfall, and expectiles. For nonsmooth statistical functionals, we develop a local asymptotic theory for the estimated return CDF over $T^{-1/2}$-neighborhoods of finitely many thresholds, together with its bootstrap analogue. This theory allows us to conduct inference for nonsmooth statistical functionals characterized by CDF equations, including return quantiles.