Effective dimension of machine learning models

Amira Abbas, David Sutter, Alessio Figalli, Stefan Woerner

TL;DR

Classical machine learning theory struggles to explain why massive, overparameterized neural networks generalize well rather than overfitting. This paper introduces the local effective dimension (LED)—a capacity measure based on the Fisher information matrix localized around trained weights—and proves that it rigorously bounds generalization error. Empirically, the local effective dimension reliably correlates with generalization performance across model sizes and noise levels.

What Problem Does This Paper Address?

Traditional statistical learning theory bounds generalization error using measures like the Vapnik-Chervonenkis (VC) dimension or Rademacher complexity. However, these tools fail dramatically for modern deep neural networks:

  • They often depend strictly on the total number of parameters, falsely predicting that larger networks should overfit catastrophically.
  • They usually ignore the training distribution, the learning trajectory, and the optimization algorithm (such as stochastic gradient descent).
  • Newer alternatives like sharpness-based metrics are typically not scale-invariant (e.g., they change if weights are re-scaled by a constant).

The authors address the challenge of formulating a capacity measure that mathematically bounds generalization error while satisfying key practical desiderata: scale invariance, finite-data dependence, training-algorithm awareness, and computational tractability.

Methods

The authors build upon the concept of effective dimension—rooted in the Minimum Description Length (MDL) principle and Kolmogorov complexity—which measures the number of truly "active" parameters rather than nominal parameter counts.

  1. Localizing the Effective Dimension: Prior formulations evaluated the effective dimension globally across the entire parameter space. Because optimization confines a model to a small neighborhood around trained weights $\theta^*$, the authors restrict integration to an $\epsilon$-ball $B_\epsilon(\theta^*)$: $$d_{n,\gamma}(M_{B_\epsilon(\theta^*)}) = \frac{2 \log \left( \frac{1}{V_\epsilon} \int_{B_\epsilon(\theta^*)} \sqrt{\det(\text{id}_d + \kappa_{n,\gamma}\bar{F}(\theta))} \, d\theta \right)}{\log \kappa_{n,\gamma}}$$ where $\bar{F}(\theta)$ is the normalized Fisher information matrix (FIM) and $\kappa_{n,\gamma} = \frac{\gamma n}{2\pi \log n}$.

  2. Generalization Bounds: The authors prove that the local effective dimension upper-bounds the generalization gap for Lipschitz loss functions (Theorem 4.1) as well as log-Lipschitz losses (e.g., relative entropy; Theorem C.1).

  3. Robustness & Continuity: They prove that the effective dimension is continuous with respect to perturbations in the FIM (Proposition 3.2), ensuring that approximations do not lead to erratic capacity estimates.
  4. Scalable Computation:
  5. They reformulate the log-determinant into a sum over the eigenvalues of $\bar{F}(\theta)$ to prevent numerical overflow for large models.
  6. They show that evaluating at the trained point $\theta^*$ (a "midpoint approximation") closely matches full Monte Carlo sampling over the $\epsilon$-ball.
  7. They use Kronecker-Factored Approximate Curvature (K-FAC) to extract the FIM eigenvalues in polynomial time without storing a dense $d \times d$ matrix.

Datasets

The authors evaluate their metric on standard vision benchmarks:

  • MNIST: $60{,}000$ training images, $10{,}000$ test images.
  • CIFAR-10: $50{,}000$ training images, $10{,}000$ test images (standard center-cropping and normalization applied).

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Active vs. Inactive Parameters: As networks grow wider, the nominal parameter count $d$ explodes, but the spectrum of the Fisher information matrix remains concentrated. Most parameters are redundant or inactive.
  • Normalized Capacity Drops with Scale: Normalizing LED by parameter count ($\bar{d} = d_{n,\gamma}/d$) reveals that larger networks have a smaller proportion of active parameters, matching empirical drops in test error and explaining why overparameterization does not ruin generalization.
  • Detecting Memorization: In experiments with randomized labels (the setup popularized by Zhang et al.), deep networks can fit the random noise to zero training error. Here, LED increases significantly, capturing the fact that parameters must forcefully become "active" to memorize arbitrary noise.

Key Results

  • Theory: The theoretical generalization bound achieves non-vacuous values under realistic scaling ($\gamma = 0.003, \epsilon = 1/\sqrt{n}$). For an MNIST network ($d \approx 10^5$), the log of the bound's probability tail remains deeply negative (e.g., $-98{,}507$ at $n = 5 \times 10^5$).
  • Varying Model Size:
  • On MNIST ($d \approx 2 \times 10^4$ to $10^5$), normalized LED decreases from $\sim 0.43$ to $\sim 0.39$ as generalization error drops from $0.030$ to $0.020$.
  • On CIFAR-10 ($d \approx 5 \times 10^5$ to $10^7$), normalized LED drops from $\sim 0.36$ to $\sim 0.22$, mirroring the decrease in generalization error from $0.50$ to $0.45$.
  • Random Labeling: When label noise increases from $20\%$ to $100\%$, generalization error climbs, and normalized LED rises steadily alongside it (e.g., from $\sim 0.478$ to $\sim 0.490$ on MNIST; $\sim 0.24$ to $\sim 0.30$ on CIFAR-10). These trends hold whether models are trained with SGD or Adam.
  • Computational Efficiency: The midpoint approximation matches full $\epsilon$-ball integration within $\approx 10^{-5}$ precision for $d \approx 10^7$. Using K-FAC, evaluating LED for 10-million-parameter models takes only a few minutes on a standard laptop.

Limitations and Future Work

  • Looseness in Extremely Deep Regimes: Although the bound is non-vacuous for the tested setups, the authors note it could become vacuous in significantly deeper regimes or under unfavorable parameter scalings.
  • Architecture Simplicity: Empirical evaluations were restricted to fully connected feedforward networks with two hidden layers; convolutional networks, residual architectures, and transformers were not tested.
  • FIM Approximations: Practical computation relies on the empirical Fisher and K-FAC approximations, which deviate from the true Fisher information in some settings.
  • Future Directions: Analyzing whether the local effective dimension can track the "double descent" phenomenon across training epochs, and exploring tighter bounds in infinite-width limits.

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},
}

Loading related content...

Figure