Learning Capacity: A Measure of the Effective Dimensionality of a Model

Daiwei Chen, Wei-Kai Chang, Pratik Chaudhari
5/27/2023
cs.LGcs.ITstat.ML

No confident code implementation found for this paper.

Abstract

We use a formal correspondence between thermodynamics and inference, where the number of samples can be thought of as the inverse temperature, to study a quantity called ``learning capacity'' which is a measure of the effective dimensionality of a model. We show that the learning capacity is a useful notion of the complexity because (a) it correlates well with the test loss and it is a tiny fraction of the number of parameters for many deep networks trained on typical datasets, (b) it depends upon the number of samples used for training, (c) it is numerically consistent with notions of capacity obtained from PAC-Bayes generalization bounds, and (d) the test loss as a function of the learning capacity does not exhibit double descent. We show that the learning capacity saturates at very small and very large sample sizes; the threshold that characterizes the transition between these two regimes provides guidelines as to when one should procure more data and when one should search for a different architecture to improve performance. We show how the learning capacity can be used to provide a quantitative notion of capacity even for non-parametric models such as random forests and nearest neighbor classifiers.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2023learning,
  title  = {Learning Capacity: A Measure of the Effective Dimensionality of a Model},
  author = {Daiwei Chen and Wei-Kai Chang and Pratik Chaudhari},
  year   = {2023},
  eprint = {2305.17332},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.17332v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.17332.svg)](https://codeofpaper.com/paper/2305.17332)

Discussion