Memorization With Neural Nets: Going Beyond the Worst Case

Sjoerd Dirksen, Patrick Finke, Martin Genzel
9/30/2023
stat.MLcs.LGmath.ST

Official code: patrickfinke/memo (0 stars, MIT, last commit 2024-12-06).

Abstract

In practice, deep neural networks are often able to easily interpolate their training data. To understand this phenomenon, many works have aimed to quantify the memorization capacity of a neural network architecture: the largest number of points such that the architecture can interpolate any placement of these points with any assignment of labels. For real-world data, however, one intuitively expects the presence of a benign structure so that interpolation already occurs at a smaller network size than suggested by memorization capacity. In this paper, we investigate interpolation by adopting an instance-specific viewpoint. We introduce a simple randomized algorithm that, given a fixed finite data set with two classes, with high probability constructs an interpolating three-layer neural network in polynomial time. The required number of parameters is linked to geometric properties of the two classes and their mutual arrangement. As a result, we obtain guarantees that are independent of the number of samples and hence move beyond worst-case memorization capacity bounds. We verify our theoretical result with numerical experiments and additionally investigate the effectiveness of the algorithm on MNIST and CIFAR-10.

View on arXivView PDF

Code Implementations(1)

MIT

Code to reproduce the results from the paper "Memorization with neural nets: going beyond the worst case"

00Shell, PythonOct 3, 20231 years agoMIT

Similar Papers

Cite this paper

@article{dirksen2023memorization,
  title  = {Memorization With Neural Nets: Going Beyond the Worst Case},
  author = {Sjoerd Dirksen and Patrick Finke and Martin Genzel},
  year   = {2023},
  eprint = {2310.00327},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.00327v3}
}

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

Discussion