DNN or k-NN: That is the Generalize vs. Memorize Question
Not on the map. Why?
Abstract (arXiv)
This paper studies the relationship between the classification performed by deep neural networks (DNNs) and the decision of various classical classifiers, namely k-nearest neighbours (k-NN), support vector machines (SVM) and logistic regression (LR), at various layers of the network. This comparison provides us with new insights as to the ability of neural networks to both memorize the training data and generalize to new data at the same time, where k-NN serves as the ideal estimator that perfectly memorizes the data. We show that memorization of non-generalizing networks happens only at the last layers. Moreover, the behavior of DNNs compared to the linear classifiers SVM and LR is quite the same on the training and test data regardless of whether the network generalizes. On the other hand, the similarity to k-NN holds only at the absence of overfitting. Our results suggests that k-NN behavior of the network on new data is a sign of generalization. Moreover, it shows that memorization and generalization, which are traditionally considered to be contradicting to each other, are compatible and complementary.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). First posted on arXiv 17 May 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 4; 2023: 7; 2024: 2.
16 papers.
Sort:
- 2021Deep Learning Through the Lens of Example Difficultycited by 141
- 2022Neural Collapse: A Review on Modelling Principles and Generalizationcited by 95
- 2023Reverse Engineering Self-Supervised Learningcited by 33
- 2021The Impact of Reinitialization on Generalization in Convolutional Neural Networkscited by 20
- 2023ResMem: Learn what you can and memorize the restcited by 13
- 2022On the Implicit Bias Towards Minimal Depth of Deep Neural Networkscited by 12
- 2022The Curious Case of Benign Memorizationcited by 12
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Taskscited by 9
- 2024Stochastic Resetting Mitigates Latent Gradient Bias of SGD from Label Noisecited by 4
- 2022Layer-Stack Temperature Scalingcited by 2
- 2023Exploring Learned Representations of Neural Networks with Principal Component Analysiscited by 1
- 2023On the Role of Neural Collapse in Meta Learning Models for Few-shot Learningcited by 1
4 more
- 2021kNet: A Deep kNN Network To Handle Label Noisecited by 0
- 2023On information captured by neural networks: connections with memorization and generalizationcited by 0
- 2023Understanding Activation Patterns in Artificial Neural Networks by Exploring Stochastic Processescited by 0
- 2023Least Squares Maximum and Weighted Generalization-Memorization Machinescited by 0
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Tasks9 Aug 2024
- 2024Stochastic Resetting Mitigates Latent Gradient Bias of SGD from Label Noise1 Jun 2024
- 2023On the Role of Neural Collapse in Meta Learning Models for Few-shot Learning30 Sep 2023
- 2023Exploring Learned Representations of Neural Networks with Principal Component Analysis27 Sep 2023
- 2023Least Squares Maximum and Weighted Generalization-Memorization Machines31 Aug 2023
- 2023Understanding Activation Patterns in Artificial Neural Networks by Exploring Stochastic Processes1 Aug 2023
- 2023On information captured by neural networks: connections with memorization and generalization28 Jun 2023
- 2023Reverse Engineering Self-Supervised Learning24 May 2023
- 2023ResMem: Learn what you can and memorize the rest3 Feb 2023
- 2022Layer-Stack Temperature Scaling18 Nov 2022
- 2022The Curious Case of Benign Memorization25 Oct 2022
- 2022Neural Collapse: A Review on Modelling Principles and Generalization8 Jun 2022
4 more
- 2022On the Implicit Bias Towards Minimal Depth of Deep Neural Networks18 Feb 2022
- 2021The Impact of Reinitialization on Generalization in Convolutional Neural Networks1 Sep 2021
- 2021kNet: A Deep kNN Network To Handle Label Noise20 Jul 2021
- 2021Deep Learning Through the Lens of Example Difficulty17 Jun 2021
- 2021Deep Learning Through the Lens of Example Difficultycited by 141
- 2022Neural Collapse: A Review on Modelling Principles and Generalizationcited by 95
- 2023Reverse Engineering Self-Supervised Learningcited by 33
- 2021The Impact of Reinitialization on Generalization in Convolutional Neural Networkscited by 20
- 2023ResMem: Learn what you can and memorize the restcited by 13
- 2022On the Implicit Bias Towards Minimal Depth of Deep Neural Networkscited by 12
- 2022The Curious Case of Benign Memorizationcited by 12
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Taskscited by 9
- 2024Stochastic Resetting Mitigates Latent Gradient Bias of SGD from Label Noisecited by 4
- 2022Layer-Stack Temperature Scalingcited by 2
- 2023Exploring Learned Representations of Neural Networks with Principal Component Analysiscited by 1
- 2023On the Role of Neural Collapse in Meta Learning Models for Few-shot Learningcited by 1
12 most cited of 16 All 16 (JSON)
- 2024Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification Tasks9 Aug 2024
- 2024Stochastic Resetting Mitigates Latent Gradient Bias of SGD from Label Noise1 Jun 2024
- 2023On the Role of Neural Collapse in Meta Learning Models for Few-shot Learning30 Sep 2023
- 2023Exploring Learned Representations of Neural Networks with Principal Component Analysis27 Sep 2023
- 2023Least Squares Maximum and Weighted Generalization-Memorization Machines31 Aug 2023
- 2023Understanding Activation Patterns in Artificial Neural Networks by Exploring Stochastic Processes1 Aug 2023
- 2023On information captured by neural networks: connections with memorization and generalization28 Jun 2023
- 2023Reverse Engineering Self-Supervised Learning24 May 2023
- 2023ResMem: Learn what you can and memorize the rest3 Feb 2023
- 2022Layer-Stack Temperature Scaling18 Nov 2022
- 2022The Curious Case of Benign Memorization25 Oct 2022
- 2022Neural Collapse: A Review on Modelling Principles and Generalization8 Jun 2022
12 newest of 16 All 16 (JSON)