[Paper Review] Deduplicating Training Data Mitigates Privacy Risks in Language Models
The paper shows that duplication in web-scraped training data drives memorization and privacy attack success; deduplicating data substantially reduces leakage without harming language modeling performance.
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 against these types of privacy attacks. Taken together, our results motivate an increased focus on deduplication in privacy-sensitive applications and a reevaluation of the practicality of existing privacy attacks.
Motivation & Objective
- Identify how exact sequence duplication in training data affects generation of training samples by language models.
- Assess the effectiveness of membership inference attacks under varying levels of data duplication.
- Evaluate whether deduplicating training data reduces privacy risks without harming model performance.
Proposed method
- Measure regeneration rates of training sequences as a function of their duplicate counts in the training data.
- Adapt suffix-array based ExactSubstr deduplication to detect exact duplicates.
- Evaluate Carlini et al. style model inversion attacks and membership inference scores under different duplication settings.
- Retrain models on deduplicated data and compare leakage and AUROC of membership inference methods.
- Provide a table of results showing leakage and AUROC for normal vs deduplicated models.
Experimental results
Research questions
- RQ1How does the number of duplicates of a training sequence affect its likelihood of being regenerated by an LM?
- RQ2How effective are membership inference methods at detecting memorized sequences at different duplication levels?
- RQ3Does deduplicating training data meaningfully reduce privacy risk without degrading language model performance?
Key findings
- Regeneration is superlinearly related to training sequence duplicates; sequences duplicated 10 times are regenerated ~1000x more often than those duplicated once.
- Memorization detection methods perform near chance on non-duplicated sequences, and their effectiveness scales with duplication level.
- Deduplicated training data leads to ~20x less training data emitted by models and reduces AUROC of membership inference methods for most duplications; perplexity remains unaffected.
- When deduplicated models do regenerate training data, membership inference can still detect some leakage, especially with the Reference Model score.
- Overall, deduplication is an effective defense against model inversion attacks with minimal impact on model performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.