Minimax optimality of deep neural networks on dependent data via PAC-Bayes bounds

Pierre Alquier, William Kengne · DOI

Abstract

While deep neural networks (DNNs) have demonstrated remarkable success in practice, theoretical guarantees for their performance have largely relied on the assumption of independent and identically distributed (i.i.d.) data. This paper extends the theoretical understanding of DNNs by proving their minimax optimality in settings involving dependent data, specifically observations forming a Markov chain. By employing a PAC-Bayes framework and a Generalized Bayesian approach, the authors demonstrate that DNNs achieve optimal convergence rates for both regression and classification tasks, provided the underlying data process exhibits sufficient mixing properties.

Introduction

In the realm of statistical learning theory, the "i.i.d. assumption" is a cornerstone. It posits that training samples are independent and drawn from the same probability distribution. However, real-world data—ranging from financial time series and sensor logs to consecutive video frames—frequently violates this assumption. In these contexts, data points are temporally or spatially correlated.

Previous landmark studies, such as Schmidt-Hieber (2020), established that DNNs are statistically optimal for learning complex, nested functions when data is independent. This paper addresses a critical gap: Do these optimality guarantees persist when the data is dependent? By focusing on Markov chains, the authors investigate whether the architectural strengths of DNNs can overcome the statistical challenges posed by correlated observations.

The Challenge of Dependent Data

The primary difficulty with dependent data is that it can "slow down" the law of large numbers. In an i.i.d. setting, each new sample provides a full unit of new information. In a dependent setting, a new sample may be highly redundant with the previous one, reducing the information gain per observation.

To quantify this, the authors utilize the pseudo-spectral gap ($\gamma$). This mathematical parameter represents the speed at which a Markov chain "forgets" its initial state and converges to its stationary distribution. A larger $\gamma$ implies faster mixing (closer to i.i.d. behavior), while a smaller $\gamma$ indicates strong persistence or correlation.

Methodology: PAC-Bayes and Sparse DNNs

Rather than using standard frequentist empirical risk minimization, the research employs a Generalized Bayesian approach, specifically a Gibbs estimator. This approach is analyzed through the lens of PAC-Bayes Oracle Inequalities, which provide a robust framework for bounding the "excess risk"—the gap between the model's performance and the best possible theoretical performance.

Key Technical Components

  1. Bernstein’s Inequality for Markov Chains: The authors adapt specialized concentration inequalities to prove that PAC-Bayes bounds remain tight even when samples are not independent.
  2. Sparse DNN Architectures: The analysis focuses on deep ReLU networks with a "spike-and-slab" prior. This encourages sparsity (many weights set to zero), which is a necessary condition for achieving minimax rates in high-dimensional settings.
  3. Function Classes: The performance is evaluated on Hölder spaces (smooth functions) and composition-structured classes. The latter is particularly relevant as it mirrors the hierarchical nature of deep learning architectures.

Main Results: Achieving Minimax Rates

The paper’s central finding is that DNNs are indeed minimax optimal for dependent data. The derived upper bounds on excess risk match the known fundamental lower bounds for any possible algorithm, up to a logarithmic factor.

The Effective Sample Size

A pivotal insight from the research is the concept of an effective sample size. The convergence rates for dependent data essentially replace the raw sample size $n$ with $\tilde{n} = n \times \gamma$. For a function with smoothness $\beta$ in $d$ dimensions, the error scales approximately as:

$$(n\gamma)^{-\frac{2\beta}{2\beta+d}}$$

This formula confirms that while dependence (a small $\gamma$) increases the error, the DNN still achieves the best possible rate allowed by the information available in the data. Furthermore, it shows that the "curse of dimensionality" is mitigated by the compositional structure of the target functions, even in the presence of correlation.

Extension to Classification

While much of the existing literature on DNN optimality focuses on least-squares regression, this work establishes new bounds for classification using logistic loss. The authors prove that DNNs are optimal for classification tasks on dependent data, broadening the scope of deep learning theory.

Discussion and Limitations

While the paper provides a strong theoretical foundation, it identifies several hurdles for practical implementation:

  • Parameter Calibration: The optimal temperature parameter for the Gibbs posterior depends on the spectral gap $\gamma$. In practice, $\gamma$ is often unknown and difficult to estimate, especially in infinite state spaces.
  • Computational Complexity: The study focuses on the statistical properties of the Bayesian posterior rather than the computational efficiency of sampling from it. High-dimensional posterior sampling remains a significant challenge, often associated with the "cold posterior" effect in deep learning.

Conclusion

This research bridges a significant gap between deep learning theory and real-world data characteristics. By proving that DNNs maintain minimax optimality under Markovian dependence, the authors provide a theoretical justification for the use of deep learning in time-series analysis and other domains where the i.i.d. assumption fails. The PAC-Bayes framework emerges not just as a Bayesian tool, but as a powerful frequentist instrument for establishing the fundamental limits of learning.

Summary updated

BibTeX
@inproceedings{alquier2025minimax,
  author = {Pierre Alquier and William Kengne},
  title = {{Minimax optimality of deep neural networks on dependent data via PAC-Bayes bounds}},
  booktitle = {Electronic},
  year = {2025},
  doi = {10.1214/25-ejs2475},
}
Figure