Lune

NeurIPS2025顶会

For Better or for Worse, Transformers Seek Patterns for Memorization

Madhur Panwar, Gail Weiss, Navin Goyal, Antoine Bosselut

摘要

Memorization in language models is a critical yet poorly understood phenomenon. In this work, we investigate memorization in transformer-based language models by analyzing their memorization dynamics during training over multiple epochs. We find that memorization is neither a constant accumulation of sequences nor simply dictated by the recency of exposure to these sequences. Instead, much like generalization, memorization appears to be driven by pattern recognition. Tracking memorization dynamics in mixed datasets, we observe that models memorize different sub-datasets in distinct bursts, suggesting that each subset is associated with unique underlying patterns, and that the model prefers to learn these patterns in a consistent order. We also find that easily learnable patterns tend to support generalization on unseen data, while more complex patterns do not. Furthermore, in datasets with weak or absent patterns, larger models may delay memorization relative to smaller ones, a behavior we term overthinking . Our results show that the subset of sequences memorized by a model over time is not arbitrary, and give insights into the internal processes a model goes through during training. Our code is available at: https://github.com/mdrpanwar/memorization-patterns .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Quantifying Memorization Across Neural Language Models 引用了 Deduplicating Training Data Makes Language Models Better
  • Quantifying Memorization Across Neural Language Models 引用了 Counterfactual Memorization in Neural Language Models
  • Counterfactual Memorization in Neural Language Models 引用了 Quantifying Memorization Across Neural Language Models
  • Quantifying Memorization Across Neural Language Models 引用了 Extracting Training Data from Large Language Models
  • The Privacy Onion Effect: Memorization is Relative 引用了 Extracting Training Data from Large Language Models
  • Deduplicating Training Data Makes Language Models Better 引用了 Extracting Training Data from Large Language Models
  • Counterfactual Memorization in Neural Language Models 引用了 Deduplicating Training Data Makes Language Models Better
  • Counterfactual Memorization in Neural Language Models 引用了 Extracting Training Data from Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper15

  1. Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
  2. Deduplicating Training Data Makes Language Models BetterKatherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang 等ACL 2022 · 844 次引用
  3. Counterfactual Memorization in Neural Language ModelsChiyuan Zhang, Daphne Ippolito, Katherine Lee, Matthew Jagielski 等NeurIPS 2023 · 184 次引用
  4. The Privacy Onion Effect: Memorization is RelativeNicholas Carlini, Matthew Jagielski, Chiyuan Zhang, Nicolas Papernot 等NeurIPS 2022 · 175 次引用
  5. Quantifying Memorization Across Neural Language ModelsNicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee 等ICLR 2023 · 158 次引用

相关 Paper

  1. Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language ModelsKushal Tirumala, Aram H. Markosyan, Luke Zettlemoyer, Armen AghajanyanNeurIPS 2022 · 304 次引用
  2. Position Paper: MeMo: Towards Language Models with Associative Memory MechanismsFabio Massimo Zanzotto, Elena Sofia Ruzzetti, Giancarlo A. Xompero, Leonardo Ranaldi 等ACL Findings 2025
  3. Provable Memorization Capacity of TransformersJunghwan Kim, Michelle Kim, Barzan MozafariICLR 2023
  4. Recite, Reconstruct, Recollect: Memorization in LMs as a Multifaceted PhenomenonUSVSN Sai Prashanth, Alvin Deng, Kyle O'Brien, Jyothir S. V 等ICLR 2025
  5. A Multi-Perspective Analysis of Memorization in Large Language ModelsBowen Chen, Namgi Han, Yusuke MiyaoEMNLP 2024 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖