cs.LGOct 12, 2026

Memorization in image classification: test set behavior and scaling laws

Authors: Jeevesh Attri, Florentin Guth

Organizations: Center for Data Science New York University · Center for Computational Neuroscience Flatiron Institute · Work done while partially affiliated with Center for Data Science, New York University.

Abstract

Deep neural networks are capable of both learning generalizing solutions on natural tasks and memorizing arbitrary mappings. We argue that understanding the former requires understanding the latter, which is much less studied. In what ways do networks that generalize or memorize differ in their behavior or their training dynamics? Do memorizing networks simply function as a lookup table where input-output mappings are stored independently? We investigate these questions in the context of CNNs trained on image classification tasks with randomized labels or pixels. We first study the behavior of such memorizing networks on unseen images. We find that independently initialized networks trained on the same random labels learn different predictive functions: they make different predictions on test examples, in contrast with generalizing networks. We then examine the effect of dataset size on memorization through the required network capacity and training time to interpolate the training set. Counter-intuitively, we find that the number of presentations of a given example required for complete memorization can decrease with dataset size even when input-output pairs share no common structure. Although memorizing networks do not learn a universal solution, they exhibit interesting behaviors which call for further investigations into the underlying mechanisms.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Random Label Prediction Heads for Studying Memorization in Deep Neural Networks

    Jul 13, 2026Marlon Becker, Jonas Konrad, Luis Garcia Rodriguez +1Neural Network GeneralizationNeural Network Memorization

  2. On the Dynamics & Transferability of Latent Generalization during Memorization

    Mar 20, 2026Simran Ketha, Venkatakrishnan RamaswamyNeural Network GeneralizationNeural Network Memorization

  3. Memorization capacity of deep ReLU neural networks characterized by width and depth

    Mar 10, 2026Xin Yang, Yunfei YangNeural Network MemorizationReLU Neural Networks