Deduplicating Training Data Mitigates Privacy Risks in Language Models
Nikhil Kandpal, Eric Wallace, Colin Raffel

TL;DR
This paper demonstrates that deduplicating training data significantly reduces privacy risks in language models by decreasing memorization and attack success, highlighting the importance of data cleaning for privacy preservation.
Contribution
The study shows that data deduplication in training sets diminishes language models' memorization and privacy attack effectiveness, providing a practical approach to enhance privacy.
Findings
Higher sequence duplication leads to increased memorization.
Deduplication reduces the success rate of privacy attacks.
Models trained on deduplicated data are more privacy-secure.
Abstract
Past work has shown that large language models are susceptible to privacy attacks, where adversaries generate sequences from a trained model and detect which sequences are memorized from the training set. In this work, we show that the success of these attacks is largely due to duplication in commonly used web-scraped training sets. We first show that the rate at which language models regenerate training sequences is superlinearly related to a sequence's count in the training set. For instance, a sequence that is present 10 times in the training data is on average generated ~1000 times more often than a sequence that is present only once. We next show that existing methods for detecting memorized sequences have near-chance accuracy on non-duplicated training sequences. Finally, we find that after applying methods to deduplicate training data, language models are considerably more secure…
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
TopicsPrivacy-Preserving Technologies in Data · Topic Modeling · Data Quality and Management
