Intrinsic dimension of data representations in deep neural networks

Alessio Ansuini, Alessandro Laio, Jakob H. Macke, Davide Zoccolan
5/29/2019
cs.LGstat.ML

Official code: ansuini/IntrinsicDimDeep (88 stars, Jupyter Notebook, last commit 2020-03-13).

Abstract

Deep neural networks progressively transform their inputs across multiple processing layers. What are the geometrical properties of the representations learned by these networks?

Show full abstract

Here we study the intrinsic dimensionality (ID) of data-representations, i.e. the minimal number of parameters needed to describe a representation. We find that, in a trained network, the ID is orders of magnitude smaller than the number of units in each layer. Across layers, the ID first increases and then progressively decreases in the final layers. Remarkably, the ID of the last hidden layer predicts classification accuracy on the test set. These results can neither be found by linear dimensionality estimates (e.g., with principal component analysis), nor in representations that had been artificially linearized. They are neither found in untrained networks, nor in networks that are trained on randomized labels. This suggests that neural networks that can generalize are those that transform the data into low-dimensional, but not necessarily flat manifolds.

View on arXivView PDF

Code Implementations(1)

Code for the intrinsic dimensionality estimate of data representations

8813Jupyter Notebook, PythonMay 13, 20196 years ago

Similar Papers

Cite this paper

@article{ansuini2019intrinsic,
  title  = {Intrinsic dimension of data representations in deep neural networks},
  author = {Alessio Ansuini and Alessandro Laio and Jakob H. Macke and Davide Zoccolan},
  year   = {2019},
  eprint = {1905.12784},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.12784}
}

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/1905.12784.svg)](https://codeofpaper.com/paper/1905.12784)

Discussion