Lune

ACL2022Top-tier venue

An Empirical Study of Memorization in NLP

Xiaosen Zheng, Jing Jiang

Abstract

A recent study by Feldman (2020) proposed a long-tail theory to explain the memorization behavior of deep learning models. However, memorization has not been empirically verified in the context of NLP, a gap addressed by this work. In this paper, we use three different NLP tasks to check if the long-tail theory holds. Our experiments demonstrate that top-ranked memorized training instances are likely atypical, and removing the top-memorized training instances leads to a more serious drop in test accuracy compared with removing training instances randomly. Furthermore, we develop an attribution method to better understand why a training instance is memorized. We empirically show that our memorization attribution method is faithful, and share our interesting finding that the top-memorized parts of a training instance tend to be features negatively correlated with the class label.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning cites Generalization through Memorization: Nearest Neighbor Language Models
  • Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning cites What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation
  • Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning cites Nearest Neighbor Machine Translation
  • Memorisation Cartography: Mapping out the Memorisation-Generalisation Continuum in Neural Machine Translation cites What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation
  • Intriguing Properties of Data Attribution on Diffusion Models cites What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation
  • Intriguing Properties of Data Attribution on Diffusion Models cites Estimating Training Data Influence by Tracing Gradient Descent
  • What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation cites Membership Inference Attacks Against Machine Learning Models
  • Mitigating Frequency Bias and Anisotropy in Language Model Pre-Training with Syntactic Smoothing cites What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation
  • Nearest Neighbor Machine Translation cites Generalization through Memorization: Nearest Neighbor Language Models
  • Causal Estimation of Memorisation Profiles cites What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Decoupling Knowledge from Memorization: Retrieval-augmented Prompt LearningXiang Chen, Lei Li, Ningyu Zhang, Xiaozhuan Liang et al.NeurIPS 2022 · 68 citations
  2. Intriguing Properties of Data Attribution on Diffusion ModelsXiaosen Zheng, Tianyu Pang, Chao Du, Jing Jiang et al.ICLR 2024 · 41 citations
  3. Causal Estimation of Memorisation ProfilesPietro Lesci, Clara Meister, Thomas Hofmann, Andreas Vlachos et al.ACL 2024 · 3 citations
  4. Mitigating Frequency Bias and Anisotropy in Language Model Pre-Training with Syntactic SmoothingRichard Diehl Martinez, Zébulon Goriely, Andrew Caines, Paula Buttery et al.EMNLP 2024 · 1 citation
  5. Memorisation Cartography: Mapping out the Memorisation-Generalisation Continuum in Neural Machine TranslationVerna Dankers, Ivan Titov, Dieuwke HupkesEMNLP 2023

Builds on9

  1. Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
  2. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2020 · 1,038 citations
  3. Estimating Training Data Influence by Tracing Gradient DescentGarima Pruthi, Frederick Liu, Satyen Kale, Mukund SundararajanNeurIPS 2020 · 784 citations
  4. What Neural Networks Memorize and Why: Discovering the Long Tail via Influence EstimationVitaly Feldman, Chiyuan ZhangNeurIPS 2020 · 674 citations
  5. Nearest Neighbor Machine TranslationUrvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2021 · 323 citations

Related papers

  1. Generalisation First, Memorisation Second? Memorisation Localisation for Natural Language Classification TasksVerna Dankers, Ivan TitovACL Findings 2024
  2. Memorizing Long-tail Data Can Help Generalization Through CompositionMo Zhou, Haoyang Ma, Rong GeICLR 2026
  3. Counterfactual Memorization in Neural Language ModelsChiyuan Zhang, Daphne Ippolito, Katherine Lee, Matthew Jagielski et al.NeurIPS 2023 · 184 citations
  4. Memorization Through the Lens of Curvature of Loss Function Around SamplesIsha Garg, Deepak Ravikumar, Kaushik RoyICML 2024 · 25 citations
  5. Towards Tracing Knowledge in Language Models Back to the Training DataEkin Akyürek, Tolga Bolukbasi, Frederick Liu, Binbin Xiong et al.EMNLP Findings 2022 · 30 citations
Dusk over the sea between two cliffs drawn in fine vertical lines