The Unreasonable Ineffectiveness of Nucleus Sampling on Mitigating Text Memorization
Luka Borec, Philipp Sadler, David Schlangen

TL;DR
This paper investigates whether nucleus sampling effectively reduces text memorization in large language models, finding it only modestly decreases memorization and that models can still produce echoes of training data without exact reproduction.
Contribution
It provides a diagnostic dataset and analysis showing nucleus sampling's limited impact on mitigating both hard and soft memorization in LLMs.
Findings
Nucleus size increase modestly reduces memorization.
Models exhibit soft memorization, echoing training data without exact copies.
Nucleus sampling does not fully prevent memorization patterns.
Abstract
This work analyses the text memorization behavior of large language models (LLMs) when subjected to nucleus sampling. Stochastic decoding methods like nucleus sampling are typically applied to overcome issues such as monotonous and repetitive text generation, which are often observed with maximization-based decoding techniques. We hypothesize that nucleus sampling might also reduce the occurrence of memorization patterns, because it could lead to the selection of tokens outside the memorized sequence. To test this hypothesis we create a diagnostic dataset with a known distribution of duplicates that gives us some control over the likelihood of memorization of certain parts of the training data. Our analysis of two GPT-Neo models fine-tuned on this dataset interestingly shows that (i) an increase of the nucleus size reduces memorization only modestly, and (ii) even when models do not…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSpeech and dialogue systems · Advanced Text Analysis Techniques
MethodsGPT-Neo
