Learning from time-dependent streaming data with online stochastic algorithms

Antoine Godichon-Baggioni, Nicklas Werge, Olivier Wintenberger

Abstract: This paper addresses stochastic optimization in a streaming setting with time-dependent and biased gradient estimates. We analyze several first-order methods, including Stochastic Gradient Descent (SGD), mini-batch SGD, and time-varying mini-batch SGD, along with their Polyak-Ruppert averages. Our non-asymptotic analysis establishes novel heuristics that link dependence, biases, and convexity levels, enabling accelerated convergence. Specifically, our findings demonstrate that (i) time-varying mini-batch SGD methods have the capability to break long- and short-range dependence structures, (ii) biased SGD methods can achieve comparable performance to their unbiased counterparts, and (iii) incorporating Polyak-Ruppert averaging can accelerate the convergence of the stochastic optimization algorithms. To validate our theoretical findings, we conduct a series of experiments using both simulated and real-life time-dependent data.

Introduction

In standard machine learning theory, optimization algorithms like Stochastic Gradient Descent (SGD) are typically analyzed under the assumption that data samples are independent and identically distributed (i.i.d.). However, in real-world streaming applications—such as financial forecasting, sensor monitoring, or user behavior tracking—data is inherently correlated over time. Furthermore, gradient estimates in these settings are often biased due to measurement noise or approximation errors. This paper provides a rigorous non-asymptotic framework for understanding how stochastic algorithms behave under these challenging conditions.

The SSG Framework

The authors introduce a unified family of algorithms termed Stochastic Streaming Gradient (SSG) estimates. This framework encompasses standard SGD, projected versions (PSSG), and their averaged counterparts (ASSG/APSSG).

Algorithm 1: Stochastic streaming gradient estimates (SSG/PSSG/ASSG/APSSG)

The core of the approach lies in the iterative update of the parameter estimate $\theta_t$ using a mini-batch of size $n_t$. The algorithm allows for optional projection onto a constraint set $\Theta$ and optional Polyak-Ruppert averaging to produce the final estimate $\bar{\theta}_t$.

Breaking Dependence with Time-Varying Mini-batches

A key contribution of this work is the analysis of time-varying mini-batches. By increasing the mini-batch size $n_t$ over time, the algorithm can effectively "wash out" the short-term and long-term dependencies (correlations) within the data stream. This strategy allows the optimizer to see past local fluctuations and focus on the underlying signal, effectively counteracting the "convexity drain" caused by high data dependence.

The Power of Polyak-Ruppert Averaging

While standard SGD iterates can be noisy in streaming environments, the authors show that Polyak-Ruppert averaging is essential for acceleration. By maintaining a running average of the iterates, the ASSG variant achieves the optimal convergence rate of $O(N_t^{-1})$, where $N_t$ is the total number of observations. This rate matches the Cramér-Rao lower bound, representing the theoretical limit of efficiency for such estimators.

Robustness to Bias

The analysis also reveals a surprising degree of robustness to biased gradient estimates. As long as the bias remains within reasonable bounds, the performance of the SSG algorithms remains comparable to their unbiased counterparts. This finding is particularly relevant for practitioners who must rely on approximate gradients in complex streaming systems.

Experimental Validation

The theoretical results were validated through extensive experiments:

  1. Synthetic Models: Using AR(1) and ARCH(1) models, the authors demonstrated that while traditional SGD might diverge under high volatility, the SSG framework with increasing mini-batches remains stable and converges reliably.
  2. Real-World Weather Data: The algorithms were applied to a dataset of ~45,000 hourly weather measurements across 36 cities to estimate the "Geometric Median." The combination of increasing mini-batches and averaging achieved high precision (error $\approx 10^{-5}$), significantly outperforming standard streaming baselines.

Conclusion and Future Work

This research provides a bridge between theoretical stochastic optimization and the practical realities of streaming data. By leveraging time-varying mini-batches and Polyak-Ruppert averaging, practitioners can achieve optimal convergence even in the presence of strong temporal correlations and biased gradients. Future work will look to extend these findings to non-strongly convex landscapes, such as those found in deep learning, and explore adaptive learning rates tailored for dependent data.

Summary updated

BibTeX
@article{godichonbaggioni2023learning,
  author = {Antoine Godichon-Baggioni and Nicklas Werge and Olivier Wintenberger},
  title = {{Learning from time-dependent streaming data with online stochastic algorithms}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=kdfiEu1ul6},
}
Figure