Improved Generalisation Bounds for Deep Learning Through L∞ Covering Numbers

Antoine Ledent, Yunwen Lei, Marius Kloft

Abstract

We show generalisation error bounds for deep learning with two main improvements over the state of the art. (1) Our bounds have no explicit dependence on the number of classes except for logarithmic factors. This holds even when formulating the bounds in terms of the $L^2$-norm of the weight matrices, where previous bounds exhibit at least a square-root dependence on the number of classes. (2) We adapt the classic Rademacher analysis of DNNs to incorporate weight sharing -- a task of fundamental theoretical importance which was previously attempted only under very restrictive assumptions. In our results, each convolutional filter contributes only once to the bound, regardless of how many times it is applied. Further improvements exploiting pooling and sparse connections are provided. The presented bounds scale as the norms of the parameter matrices, rather than the number of parameters. In particular, contrary to bounds based on parameter counting, they are asymptotically tight (up to log factors) when the weights approach initialisation, making them suitable as a basic ingredient in bounds sensitive to the optimisation procedure. We also show how to adapt the recent technique of loss function augmentation to our situation to replace spectral norms by empirical analogues whilst maintaining the advantages of our approach.

Introduction

A fundamental challenge in statistical learning theory is providing mathematical guarantees—generalisation bounds—on how well a deep learning model will perform on unseen data. Traditional theoretical frameworks often fail to explain why large-scale models, particularly Convolutional Neural Networks (CNNs), generalise so effectively in practice. This paper addresses two critical flaws in existing literature:

  1. The "Class Explosion" Problem: Most existing bounds scale with the square root of the number of classes ($\sqrt{K}$). In "extreme classification" tasks involving millions of classes, these bounds become "vacuous," offering no meaningful insight.
  2. Ignoring Weight Sharing: CNNs utilize weight sharing by sliding small filters across an image. Standard theory often treats CNNs as massive fully connected networks, effectively over-counting parameters and overestimating model complexity.

By leveraging $L^\infty$ covering numbers, this work produces bounds that are independent of the number of classes and correctly account for convolutional filters only once, regardless of their application frequency.

Methods: $L^\infty$ Covering Numbers and Weight Sharing

The core methodology involves Rademacher complexity analysis enhanced by $L^\infty$ covering numbers. Unlike traditional approaches that measure average complexity (via $L^2$ norms), the authors focus on the maximum complexity across all possible input patches ($L^\infty$ norm).

Schematic of a convolutional layer illustrating weight sharing and dimension transformations.

This shift in perspective enables several key innovations:

  • Weight Sharing Integration: The authors prove that each convolutional filter contributes to the complexity bound only once, reflecting the architectural constraint of CNNs.
  • Class-Size Independence: By exploiting the $L^\infty$-continuity of margin-based losses, the explicit dependence on the number of classes is reduced to a logarithmic factor.
  • Loss Function Augmentation: The researchers adapt techniques to replace pessimistic spectral norms with empirical analogues derived from training data, resulting in significantly tighter bounds.

Key Insights

  • Weight Sharing as a Complexity Constraint: The authors demonstrate that weight sharing is not merely a memory-saving implementation detail but a fundamental constraint on function complexity. When viewed through $L^\infty$ norms, this sharing naturally reduces the generalisation bound.
  • Norm-Based Scaling: The bounds scale with the norms (magnitude) of the weight matrices rather than the raw number of parameters. This explains why over-parameterized models can generalise well: if weights remain relatively small or close to initialization, the mathematical "simplicity" of the model is preserved.
  • Architecture Robustness: The proposed bounds are stable against "up-resolution." Increasing the input image size while maintaining filter dimensions does not cause the bound to explode, unlike previous theoretical models.

Empirical Validation

The theoretical findings were validated through two primary experimental strands:

  1. Augmented MNIST: MNIST digits were embedded into larger black canvases (up to $280 \times 280$). The proposed bound ($R_A$) remained nearly flat as input size increased, whereas previous state-of-the-art bounds ($M/\gamma$) grew significantly, overestimating complexity.
  2. Synthetic Data: Using custom datasets with specific "signature" patterns, the authors controlled sequence length ($L$) and sample size ($N$) to confirm that theoretical bounds accurately track actual performance.

Results and Conclusion

The research achieves the first generalisation bound for deep learning that lacks non-logarithmic dependence on the number of classes while utilizing standard $L^2$ norms. Furthermore, the bounds are "asymptotically tight" at initialization, meaning they are near zero before training begins—a crucial property for theories studying optimization-sensitive behavior.

While these bounds represent a significant step forward, challenges remain. The product of norms across layers can still lead to large values in very deep networks, and the current proof assumes 1-Lipschitz activations like ReLU. Future work will look toward extending these results to more complex architectures like Transformers and further closing the numerical gap between theoretical guarantees and observed real-world error.

Summary updated

BibTeX
@misc{ledent2019improved,
  author = {Antoine Ledent and Yunwen Lei and Marius Kloft},
  title = {{Improved Generalisation Bounds for Deep Learning Through L∞ Covering Numbers}},
  year = {2019},
  eprint = {1905.12430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12430},
}
Figure