The Pitfalls of Memorization: When Memorization Hurts Generalization

Reza Bayat, Mohammad Pezeshki, Elvis Dohmatob, David Lopez-Paz, Pascal Vincent
12/10/2024
cs.LGcs.AIstat.ML

No official code found. Best implementation: facebookresearch/Pitfalls-of-Memorization (41 stars, last commit 2024-12-19).

Abstract

Neural networks often learn simple explanations that fit the majority of the data while memorizing exceptions that deviate from these explanations.This behavior leads to poor generalization when the learned explanations rely on spurious correlations. In this work, we formalize the interplay between memorization and generalization, showing that spurious correlations would particularly lead to poor generalization when are combined with memorization. Memorization can reduce training loss to zero, leaving no incentive to learn robust, generalizable patterns. To address this, we propose memorization-aware training (MAT), which uses held-out predictions as a signal of memorization to shift a model's logits. MAT encourages learning robust patterns invariant across distributions, improving generalization under distribution shifts.

View on arXivView PDF

Code Implementations(1)

Understanding the interplay between memorization and generalization in neural networks, featuring MAT, a learning algorithm to enhance robustness by mitigating spurious correlations.

411PythonDec 6, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{bayat2024pitfalls,
  title  = {The Pitfalls of Memorization: When Memorization Hurts Generalization},
  author = {Reza Bayat and Mohammad Pezeshki and Elvis Dohmatob and David Lopez-Paz and Pascal Vincent},
  year   = {2024},
  eprint = {2412.07684},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.07684v1},
  journal = {ICLR 2024 2024}
}

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

Discussion