Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Parameter Counting in Deep Models: Effective Dimensionality Revisited

Wesley J. Maddox, Gregory W. Benton|arXiv (Cornell University)|Mar 4, 2020
Generative Adversarial Networks and Image SynthesisComputer Science62 references28 citations
TL;DR

This paper proposes effective dimensionality as a superior proxy for model complexity and generalization in deep learning, replacing naive parameter counting. By analyzing the eigenspectrum of the Hessian on training data, it shows effective dimensionality tracks test performance better than parameter counts or flatness-based measures, explaining phenomena like double descent and the generalization benefits of depth over width.

ABSTRACT

Neural networks appear to have mysterious generalization properties when using parameter counting as a proxy for complexity. Indeed, neural networks often have many more parameters than there are data points, yet still provide good generalization performance. Moreover, when we measure generalization as a function of parameters, we see double descent behaviour, where the test error decreases, increases, and then again decreases. We show that many of these properties become understandable when viewed through the lens of effective dimensionality, which measures the dimensionality of the parameter space determined by the data. We relate effective dimensionality to posterior contraction in Bayesian deep learning, model selection, width-depth tradeoffs, double descent, and functional diversity in loss surfaces, leading to a richer understanding of the interplay between parameters and functions in deep models. We also show that effective dimensionality compares favourably to alternative norm- and flatness- based generalization measures.

Motivation & Objective

  • To address the limitations of parameter counting as a proxy for model complexity and generalization in deep neural networks.
  • To explain why overparameterized models generalize well despite high parameter counts, particularly in the context of double descent.
  • To establish effective dimensionality as a more informative measure of model capacity by linking it to Bayesian posterior contraction and loss surface geometry.
  • To demonstrate that depth enables better data compression and generalization by reducing effective dimensionality, even with more parameters.
  • To compare effective dimensionality against existing generalization measures like path-norm and PAC-Bayesian flatness, showing its robustness and interpretability.

Proposed method

  • Compute the effective dimensionality as the trace of the Hessian of the training loss divided by the largest eigenvalue, capturing the number of significant curvature directions in parameter space.
  • Use the eigenspectrum of the Hessian on training data alone to estimate effective dimensionality, avoiding reliance on test data or full posterior sampling.
  • Relate effective dimensionality to posterior variance in Bayesian neural networks, showing it quantifies the dimensionality of parameter space where the posterior has contracted.
  • Analyze degenerate directions in parameter space via Hessian eigenvectors, demonstrating function-space homogeneity for both training and test inputs in overparameterized models.
  • Apply a log-transform to path-norm to improve its correlation with generalization, but show it remains sensitive to model size and lacks interpretability compared to effective dimensionality.
  • Compare effective dimensionality with PAC-Bayesian flatness measures, highlighting that effective dimensionality counts flat directions while PAC-Bayes measures basin size, leading to divergent behavior with model size.

Experimental results

Research questions

  • RQ1Why do overparameterized deep networks generalize well despite having far more parameters than training samples?
  • RQ2How does effective dimensionality explain the double descent phenomenon in generalization error across model widths?
  • RQ3To what extent does depth reduce effective dimensionality and improve generalization compared to width, even with equal parameter counts?
  • RQ4How does effective dimensionality relate to posterior contraction and model compression in Bayesian deep learning?
  • RQ5Why do flatness- and norm-based generalization measures fail to correlate consistently with generalization performance across model sizes?

Key findings

  • Effective dimensionality computed from the Hessian of the training loss closely tracks test error in the overparameterized regime, explaining double descent behavior.
  • Wide but shallow models exhibit high effective dimensionality and poor generalization, while deeper models achieve lower effective dimensionality and better performance despite similar parameter counts.
  • For models with near-zero training loss, effective dimensionality is a strong predictor of generalization, outperforming parameter counts and path-norm.
  • In overparameterized networks, degenerate parameter directions exist where perturbations do not change predictions on training or test data, indicating functional homogeneity.
  • Effective dimensionality is inversely proportional to posterior variance in Bayesian neural networks, quantifying the dimensionality of the posterior-contracted region.
  • The PAC-Bayesian flatness measure increases with model size and is anti-correlated with generalization, while effective dimensionality remains robust and informative.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.