Online Statistical Inference for Nonlinear Stochastic Approximation with Markovian Data

Xiang Li, Jiadong Liang, Zhihua ZhangarXiv 2023 · DOI

TL;DR

This paper introduces a robust method for constructing confidence intervals for online learning algorithms (like SGD and Q-Learning) when data is dependent (Markovian) rather than independent. By establishing a new Functional Central Limit Theorem, the authors show how to perform statistical inference using only a single trajectory of data, eliminating the need for expensive parallel simulations or complex variance estimations.

What Problem Does This Paper Address?

Stochastic Approximation (SA) is the mathematical foundation for many iterative algorithms, most notably Stochastic Gradient Descent (SGD). Traditionally, statistical inference for these algorithms—answering questions like "How certain are we about this parameter estimate?"—relies on the assumption that data points are independent and identically distributed (i.i.d.).

However, in real-world applications like reinforcement learning (RL) or time-series analysis, data is often Markovian. This means the current data point depends on the previous one (e.g., a robot’s next sensor reading depends on its current position). Markovian noise introduces bias and complex dependencies that break standard inference tools. Existing solutions often require "multiple oracles" (running many parallel versions of the algorithm) or are restricted to simple linear models. This paper seeks a way to provide valid uncertainty quantification for nonlinear models using only a single trajectory of dependent data.

Methods

The authors bridge the gap between theory and practice using three main components:

  1. Functional Central Limit Theorem (FCLT): Instead of just analyzing the final estimate, the authors analyze the "partial-sum process"—essentially the path the algorithm takes. They prove that this path, when properly scaled, weakly converges to a scaled Brownian motion (a standard mathematical model for random paths).
  2. Martingale-Residual-Coboundary Decomposition: To handle the "messy" dependent noise of a Markov chain, the authors use a sophisticated decomposition technique. They break the noise into a "clean" martingale part (which is easier to analyze) and two remainder terms that they prove vanish as the number of iterations increases.
  3. Random Scaling Inference: This is the core practical contribution. Estimating the exact variance of an algorithm under Markovian noise is notoriously difficult. The authors propose using scale-invariant functionals. By applying a specific mathematical function to the algorithm's path, the unknown variance terms mathematically "cancel out." This results in a pivotal statistic—a value whose distribution is known and can be simulated, allowing for the construction of confidence intervals without ever needing to estimate the underlying variance matrix.

Datasets

The paper validates the proposed method using three simulated environments designed to mimic real-world challenges:

  • Linear Regression with Autoregressive Noise: A standard test case where the noise in the labels follows a time-series pattern.
  • Asynchronous Q-Learning: A reinforcement learning scenario where an agent learns the value of actions in a random Markov Decision Process (MDP).
  • Logistic Regression with Markovian Covariates: A nonlinear classification task where the input features themselves are generated by a Markov process.

Key Insights and Ideas

  • Longitudinal over Crosswise: Most bootstrap methods for inference require "crosswise" dependence (running many parallel chains). This paper shows that the "longitudinal" dependence (the history of a single chain) contains enough information to quantify uncertainty.
  • Efficiency is Guaranteed: The authors prove that their partial-sum estimator is "semiparametrically efficient." In plain English: it’s statistically optimal, meaning no other regular estimator can achieve a lower asymptotic variance in this setting.
  • The Power of Scale Invariance: The "Random Scaling" approach is a "plug-and-play" inference tool. Because it doesn't require estimating the scale of the noise, it is much more robust to different types of data dependencies.
  • Computational Thrift: For certain types of scaling functions (specifically those with even indices $m$), the confidence intervals can be updated online with $O(1)$ complexity per step, making it feasible for high-speed streaming data.

Key Results

  • Valid Coverage: In simulations, the proposed confidence intervals reached the nominal 95% coverage rate as the number of iterations ($T$) increased, confirming the method's asymptotic validity.
  • Comparison to Bootstrap: Compared to the "Online Bootstrap" (a common alternative), the authors' method produced higher coverage rates for the same computational budget and did not require multiple gradient oracles.
  • Non-Asymptotic Bounds: The paper provides the first non-asymptotic upper bound for functional weak convergence in nonlinear SA with Markovian data, giving researchers a theoretical "speed limit" for how fast the inference becomes accurate.

Limitations and Future Work

While the paper provides a rigorous framework, the authors note several areas for expansion:

  • High-Dimensional Data: The current theory is best suited for cases where the number of parameters is relatively small compared to the number of observations. Extending this to high-dimensional, sparse settings (e.g., using $L_1$ regularization) is an open challenge.
  • Proximal Methods: The paper focuses on standard SA updates. Future work could adapt these functional theorems to "proximal" algorithms used for constrained optimization.
  • Functional Selection: While the authors propose a family of functionals ($f_m$), they suggest that exploring other functionals might yield even tighter confidence intervals or better empirical performance in specific niches.

Summary updated

BibTeX
@misc{li2023online,
  author = {Xiang Li and Jiadong Liang and Zhihua Zhang},
  title = {{Online Statistical Inference for Nonlinear Stochastic Approximation with Markovian Data}},
  year = {2023},
  eprint = {2302.07690},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.07690},
}
Figure