Generalization Bounds for Dependent Data using Online-to-Batch Conversion

Sagnik Chatterjee, Manuj Mukherjee, Alhad SethiAISTATS 2025

Introduction

In the foundational theory of machine learning, the Independent and Identically Distributed (i.i.d.) assumption is a cornerstone. It posits that training and test data are drawn independently from the same underlying distribution. However, this assumption is frequently violated in real-world applications such as financial forecasting, sensor networks, and Federated Learning, where data points exhibit temporal or spatial correlations. When data is dependent, standard combinatorial generalization bounds, such as those based on VC dimension, often become "vacuous" or fail to provide meaningful guarantees.

This paper introduces a novel theoretical framework to derive generalization bounds for dependent data. By leveraging the Online-to-Batch (OTB) conversion paradigm and a new metric called Wasserstein-stability, the authors provide a way to bound the generalization error of offline learners without requiring the learners themselves to be stable—a significant departure from previous literature.

The Problem: The Stability Bottleneck

Previous attempts to address dependent data typically relied on the stability of the learning algorithm. An algorithm is considered stable if a small change in the training set results in a minimal change to the output model. While stability is a powerful tool for proving generalization, it is a highly restrictive requirement. Many modern, high-performance models—particularly over-parameterized neural networks—do not easily satisfy these stability conditions.

The central challenge addressed here is: How can we provide generalization guarantees for an arbitrary offline learner trained on dependent data without forcing that specific learner to be stable?

Methodology: The Three Pillars of the Framework

The authors construct their framework using three primary mathematical components:

  1. Online-to-Batch (OTB) Conversion: This technique analyzes a batch (offline) learner by comparing its performance to a hypothetical "proxy" online learner. The generalization error of the batch model is then bounded by the "regret" of this online counterpart.
  2. Mixing Processes: To model dependence, the authors assume the data originates from a mixing stochastic process. In such processes, the correlation between two samples decays as the time interval between them increases. This allows for short-term dependence while ensuring the process eventually "forgets" its initial state.
  3. Wasserstein-stability: The authors introduce a new stability definition for online algorithms. An algorithm is "Wasserstein-stable" if the probability distribution of its predictions does not shift drastically between consecutive time steps, as measured by the Wasserstein (Earth Mover's) distance.

By combining these elements with near-martingale concentration inequalities, the authors prove that the error on dependent data can be decomposed into the standard i.i.d. error plus a penalty term representing the decay rate of the data's dependence.

Key Insights: Shifting the Stability Burden

The most significant contribution of this work is the shifting of the stability burden. In this framework, the actual offline algorithm being used does not need to be stable. Instead, one only needs to prove that a stable online learner exists for the given task. This decoupling allows researchers to analyze complex models that were previously mathematically intractable in non-i.i.d. settings.

Furthermore, the use of Wasserstein distance provides a more natural fit for dependent data than traditional stability notions. By using the dual form of the Wasserstein distance, the authors can effectively bound the difference in expected costs between time steps. They demonstrate the utility of this approach by showing that the Exponential Weighted Averages (EWA) algorithm—a staple of online learning—is inherently Wasserstein-stable, making the framework immediately applicable to a wide range of problems.

Theoretical Results

The paper provides both expected and high-probability generalization bounds for data satisfying mixing conditions. Key findings include:

  • Optimal Convergence Rates: The derived bounds are of the order $O(1/\sqrt{n})$, matching the standard rates achieved in i.i.d. settings.
  • Mixing Rate Penalties: The bounds explicitly quantify the cost of dependence. The error increases based on the $\beta$ or $\phi$ mixing coefficients of the underlying process; the slower the dependence decays, the larger the penalty.
  • PAC-Bayesian Instantiation: For the EWA algorithm, the authors provide a concrete bound involving the KL divergence between the model's output and a prior distribution, effectively extending PAC-Bayesian theory to the realm of dependent data.

Limitations and Future Work

While the framework is robust, it relies on the assumption that the data-generating process is "mixing." In practice, determining the exact mixing rate of a real-world process is difficult. Additionally, the current proofs require the loss function to be Lipschitz continuous with respect to both model parameters and data, which may not hold for all loss functions (e.g., discontinuous classification losses).

Future research may explore the connection between Wasserstein-stability and Differential Privacy. The authors suggest that the techniques used to bound generalization in non-i.i.d. settings could potentially be adapted to provide guarantees for differentially private learners, further bridging the gap between privacy and generalization theory.

Summary updated

BibTeX
@inproceedings{chatterjee2025generalization,
  author = {Sagnik Chatterjee and Manuj Mukherjee and Alhad Sethi},
  title = {{Generalization Bounds for Dependent Data using Online-to-Batch Conversion}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=azkiEYPBMs},
}
Figure