Abstract
This paper investigates the generalization error (GE) of classifiers that are designed to be invariant to specific input transformations. By factoring the input space $\mathcal{X}$ into a product of a base space $\mathcal{X}_0$ and a transformation set $\mathcal{T}$, we demonstrate that the GE of an invariant classifier is determined by the complexity of the base space rather than the full input space. Our theoretical analysis shows that invariance to a set of $T$ transformations can reduce the GE bound by a factor of $\sqrt{T}$. We validate these findings using convolutional neural networks (CNNs) on the MNIST and CIFAR-10 datasets, showing that explicit invariance regularization significantly improves performance, especially in data-limited regimes.
Introduction
In statistical learning theory, the Generalization Error (GE) represents the performance gap between training data and unseen real-world data. While traditional bounds depend on the complexity of the entire input space, practitioners have long exploited symmetries—such as translation or rotation—to improve model performance. For example, a cat remains a cat regardless of its orientation. This paper provides a quantitative theoretical framework to explain how these invariances directly reduce the complexity of the learning problem.
Theoretical Framework: Factoring the Input Space
The core of our approach is the factorization of the input space $\mathcal{X}$ into a base space ($\mathcal{X}_0$) and a set of transformations ($\mathcal{T}$). The base space can be viewed as a collection of "canonical templates," while the transformation set represents all valid modifications that preserve the object's identity.
To measure complexity, we utilize covering numbers—the number of small balls required to cover a mathematical space. We prove that for a stable, invariant classifier, the GE depends on the covering number of the base space $\mathcal{X}_0$. Because $\mathcal{X}_0$ is significantly smaller than the full space $\mathcal{X}$, the model has a much simpler task to learn.
Key Insights: The $\sqrt{T}$ Bonus
The most significant theoretical result is the quantitative bound: making a model invariant to $T$ discrete transformations potentially reduces the GE bound by a factor of $\sqrt{T}$. For instance, in an image with $N \times N$ pixels, achieving invariance to all cyclic translations ($T = N^2$) could improve the bound by a factor of $N$.
This reduction occurs because the model effectively ignores redundant variations, focusing only on the underlying features that define a class.
Experimental Results
We tested our theory using two primary benchmarks:
- Rotated MNIST (MNIST-D°): By varying the number of rotation angles ($T$), we observed that the ratio of generalization errors between standard and invariant CNNs closely followed the predicted $\sqrt{T}$ curve.
- CIFAR-10: We introduced an Invariance Regularization term that penalizes the model if its output changes under known transformations. On a training set of 5,000 samples, this regularization improved test accuracy from 76.74% to 79.08%.
Our results suggest that the benefits of invariant classifiers are most pronounced when the training set is small, making invariance a critical tool for sample-efficient learning.
Conclusion and Future Work
This work formalizes the intuition that invariant models generalize better by reducing the effective complexity of the input space. While our current theory focuses on discrete transformations and perfect invariance, future work will extend these bounds to continuous transformations (like lighting changes) and approximate invariance, which are more common in real-world deep learning applications.
Summary updated