Learning with invariances in random features and kernel models

Song Mei, Theodor Misiakiewicz, Andrea Montanari

Abstract

Modern deep learning architectures, such as Convolutional Neural Networks (CNNs), are designed to exploit data symmetries like translation invariance. While this "inductive bias" is widely credited for their success, quantifying the precise statistical advantage has remained elusive. This paper provides a mathematical characterization of the "statistical gain" from invariant architectures in high-dimensional random features and kernel models. We prove that incorporating a symmetry group with "degeneracy" $\alpha$ reduces the required sample size and model width by a factor of $d^\alpha$, where $d$ is the input dimension.

Introduction

In the "folk theorem" of deep learning, architectures like CNNs succeed because they bake in knowledge about the world—specifically, invariance to transformations. A model that recognizes a cat regardless of its position in an image should, intuitively, be more efficient. However, most prior theoretical work provided loose bounds or focused on low-dimensional settings.

This research addresses a fundamental question: Exactly how many fewer samples and parameters are needed if a model is invariant to a specific group of transformations? By analyzing the "high-dimensional regime," where data points and parameters scale as polynomials of the input dimension $d$, the authors quantify the efficiency boost provided by architectural invariance.

Theoretical Framework: Invariant Random Features and Kernels

The study focuses on two classes of overparameterized models:

  1. Invariant Random Features (RF): Two-layer networks where features are averaged over a symmetry group (e.g., all possible shifts).
  2. Invariant Kernel Methods: Specifically Kernel Ridge Regression (KRR) using invariant kernels, including the Neural Tangent Kernel (NTK) for convolutional networks with global average pooling.

The core theoretical contribution is the definition of "groups of degeneracy $\alpha$." This parameter $\alpha$ measures the degree to which a symmetry group reduces the effective dimensionality of the function space. For instance, cyclic shifts on a 1D signal correspond to a degeneracy of $\alpha=1$.

The $d^\alpha$ Efficiency Boost

The most significant finding is that the gain from invariance is directly tied to the group's degeneracy. Using an invariant architecture for a group with degeneracy $\alpha$ saves a factor of $d^\alpha$ in both the number of training samples ($n$) and the number of hidden units ($N$) required to reach a specific error level.

Comparison of sample and parameter complexity for standard vs. invariant random features.

As shown in the table above, to fit a degree-$\ell$ polynomial, an invariant model requires significantly fewer resources. In the underparameterized regime ($N \ll n$), the required number of features $N$ drops from $d^\ell$ to $d^{\ell-\alpha}$. Similarly, in the overparameterized regime ($n \ll N$), the required sample size $n$ drops from $d^\ell$ to $d^{\ell-\alpha}$.

Key Insights

  • Data Augmentation Equivalence: The authors demonstrate that training a standard model on a fully augmented dataset is mathematically equivalent to using an invariant kernel, providing a theoretical foundation for the efficacy of data augmentation.
  • Sub-optimality of Output Symmetrization: "Output symmetrization"—averaging predictions of a standard model at test time—is shown to be statistically sub-optimal compared to building invariance into the architecture or using data augmentation.
  • Effective Dimension vs. Group Size: The size of the symmetry group is less important than its "effective dimension" or degeneracy $\alpha$ on the space of polynomials.

Empirical Validation

The theoretical results were validated using synthetic and real-world datasets:

  • Synthetic Data: Experiments on cyclic invariant polynomials on a 30-dimensional sphere confirmed that the "error drop" for invariant kernels occurs at sample sizes matching the $d^{\ell-\alpha}$ prediction.
  • Cyclic Invariant MNIST: On a modified MNIST dataset with 2D cyclic translations, invariant kernels achieved low error with far fewer samples than standard NTKs. The sample size gap was found to increase linearly with the frequency content of the images.

Limitations and Future Work

While the results are robust for groups where $\alpha \le 1$, the authors note that extending the proofs to cases where $\alpha > 1$ remains a challenge for future work. Additionally, the current analysis focuses on global invariance (global average pooling) and does not fully account for the "locality" of CNN filters, which represents a distinct phenomenon to be addressed in subsequent research.

Summary updated

BibTeX
@inproceedings{mei2021learning,
  author = {Song Mei and Theodor Misiakiewicz and Andrea Montanari},
  title = {{Learning with invariances in random features and kernel models}},
  booktitle = {Conference on Learning Theory},
  year = {2021},
}
Figure