Effective dimension of machine learning models

Amira Abbas, David Sutter, Alessio Figalli, Stefan Woerner

Abstract: Making statements about the performance of trained models on tasks involving new data is one of the primary goals of machine learning, i.e., to understand the generalization power of a model. Various capacity measures try to capture this ability, but usually fall short in explaining important characteristics of models that we observe in practice. In this study, we propose the local effective dimension as a capacity measure which seems to correlate well with generalization error on standard data sets. Importantly, we prove that the local effective dimension bounds the generalization error and discuss the aptness of this capacity measure for machine learning models.

Introduction

One of the biggest mysteries in modern AI is why massive neural networks generalize so well. According to classical statistical learning theory (like VC dimension), a model with millions of parameters should simply memorize the training data and fail on new examples—a phenomenon known as overfitting. However, in practice, we see the opposite: larger, overparameterized models often perform better.

Existing "capacity measures"—tools used to estimate a model's complexity—have significant blind spots. Some ignore the specific data distribution, others ignore the training algorithm, and many are sensitive to "scale" (e.g., doubling all weights might change the measure but not the model's logic). This research seeks a measure that is data-dependent, training-dependent, and scale-invariant, providing a "tight" link between theory and practice.

Methodology

The authors build upon the concept of Fisher Information, which represents how much the model's output changes when its internal parameters are adjusted.

  1. From Global to Local: Previous work looked at "Global Effective Dimension," which considers the entire possible parameter space. This study introduces the Local Effective Dimension, focusing only on a small neighborhood (an $\epsilon$-ball) around the specific parameters found after training.
  2. Capturing Redundancy: The measure essentially counts the number of "active" parameters. If a model has a million parameters but they are highly redundant, the effective dimension will be much lower than the physical parameter count.
  3. Mathematical Proof: The authors provide a formal proof (Theorem 5) showing that this local effective dimension acts as a functional upper bound on the generalization error.
  4. Efficient Computation: To make this practical for large networks, they use the K-FAC (Kronecker-Factored Approximation) of the Fisher Information Matrix, allowing for complexity estimation without prohibitive memory requirements.

Experimental Validation

The researchers validated their theory using two standard image classification benchmarks: MNIST (handwritten digits) for shallow regime experiments and CIFAR10 (complex objects) for deep regime experiments. They observed how the measure behaves when model size increases and when data quality is intentionally degraded.

Key Insights and Ideas

The most striking insight is that as the physical number of parameters ($d$) increases, the normalized local effective dimension often decreases. This suggests that larger models find more redundant, flatter minima that are effectively "simpler" than those found by smaller models. Furthermore, when models are trained on randomized labels (pure noise), the local effective dimension increases; the model is forced to use more of its capacity to memorize noise, correctly predicting its failure to generalize.

Comparison of capacity measures across seven desirable properties.

As shown in the comparison above, the local effective dimension satisfies all seven "desirable properties" of a capacity measure—a feat that established measures like VC dimension or Rademacher complexity fail to achieve.

Key Results

In experiments on MNIST and CIFAR10, the local effective dimension moved in lockstep with the generalization error. When the error decreased as models grew larger, the measure decreased. When the error rose due to label noise, the measure rose accordingly.

Importantly, while many theoretical bounds in deep learning are "vacuous" (predicting error rates $>100\%$), the authors show that for reasonable settings, their bound remains numerically meaningful and non-vacuous.

Numerical evaluation of the generalization bound for various sample sizes.

The measure also maintains scale invariance, remaining stable even if model weights are transformed in ways that do not change predictions—solving a major limitation of previous norm-based measures.

Limitations and Future Work

While K-FAC makes computation feasible, calculating the Fisher Information for state-of-the-art models with billions of parameters remains computationally expensive. Additionally, the measure depends on the choice of $\epsilon$ (the local neighborhood size). While $\epsilon = 1/\sqrt{n}$ is suggested, its sensitivity in extremely deep regimes warrants further study. Finally, while this bound is a major step forward, a gap still exists between the theoretical bound and empirical error in the most complex deep learning scenarios, presenting an opportunity for future refinement.

Summary updated

BibTeX
@inproceedings{abbas2023effective,
  author = {Amira Abbas and David Sutter and Alessio Figalli and Stefan Woerner},
  title = {{Effective dimension of machine learning models}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=TgcG85ZvBuu},
}
Figure