Rethinking Parameter Counting in Deep Models: Effective Dimensionality Revisited

Wesley J. Maddox, Gregory W. Benton, Andrew Gordon WilsonarXiv 2020

Introduction

In classical statistical theory, the complexity of a model is typically equated with its number of free parameters. A model with more parameters than data points is expected to overfit, leading to poor generalization. However, modern deep learning practice consistently contradicts this intuition. Large neural networks with millions of parameters often generalize remarkably well, even when trained on relatively small datasets.

A particularly puzzling phenomenon is "double descent," where test error first decreases, then increases (overfitting), and finally decreases again as the model enters the "overparameterized" regime. This suggests that raw parameter counting is a deceptive metric for model complexity. This paper proposes a return to the concept of Effective Dimensionality (ED)—a measure derived from the Hessian of the loss function—to provide a more accurate account of model complexity and generalization.

Defining Effective Dimensionality

The authors revisit a concept introduced by MacKay (1992), defining Effective Dimensionality through the lens of the Hessian matrix (the second-order derivatives of the loss function). The intuition is that not all parameters contribute equally to the model's output.

If an eigenvalue of the Hessian is large, the loss is highly sensitive to changes in that parameter direction, meaning the data has "determined" that direction. Conversely, directions with near-zero eigenvalues are "degenerate"; wiggling parameters along these axes has negligible impact on the model's predictions. ED serves as a "soft count" of these determined directions.

To compute ED for modern, large-scale networks where the full Hessian is intractable, the authors employ the Lanczos method to efficiently estimate the top eigenvalues of the Hessian.

Empirical Results and the Double Descent Phenomenon

The core finding is that Effective Dimensionality, unlike raw parameter count, closely tracks the test loss curve across different regimes of model training.

Figure 1: Effective Dimensionality ($N_{eff}$) tracks the double descent curve in test loss as model width increases, peaking at the interpolation threshold.

As shown in Figure 1, in experiments on ResNet18 architectures, the ED peaks exactly at the "interpolation threshold"—the point where the model is just large enough to achieve zero training error. Beyond this point, as the model becomes increasingly overparameterized, the ED actually begins to decline. This decline mirrors the mysterious second descent in test error, providing a mechanistic explanation for why larger models can generalize better: they are effectively "simpler" in function space despite having more raw parameters.

Complexity Across Width and Depth

The researchers further explored how ED behaves across a two-dimensional space of model architectures, varying both width and depth.

Figure 4: Heatmaps comparing Effective Dimensionality, Test Loss, and Train Loss across varying model widths and depths. ED shows a strong qualitative and quantitative correlation with generalization performance.

The results (Figure 4) demonstrate that ED maintains a high correlation with test error (often exceeding 0.94) across diverse configurations. Notably, when comparing models with an equal number of total parameters, deeper models tend to exhibit lower Effective Dimensionality than wider, shallower counterparts. This suggests that depth acts as a more efficient compression mechanism for capturing data patterns.

Discussion and Limitations

This work suggests that deep learning does not defy Occam’s Razor. Instead, it implies that the "simplest" model is not the one with the fewest parameters, but the one with the lowest Effective Dimensionality that adequately fits the training data.

However, several limitations remain. The Hessian-based ED is sensitive to parameterization; architectural choices like Batch Normalization can alter the Hessian without changing the underlying function. Furthermore, while the Lanczos method is efficient, it still incurs significant computational overhead compared to simpler norm-based metrics. Future research into these "degenerate" subspaces may yield more principled methods for model selection, architecture search, and ensembling.

Summary updated

BibTeX
@misc{maddox2020rethinking,
  author = {Wesley J. Maddox and Gregory W. Benton and Andrew Gordon Wilson},
  title = {{Rethinking Parameter Counting in Deep Models: Effective Dimensionality Revisited}},
  year = {2020},
  eprint = {2003.02139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.02139},
}
Figure