The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
Translation in progress — untranslated text is omitted.
The paper proposes a test method for evaluating whether generative sequence models unintentionally memorize rare sequences in the training data, and provides a quantifiable exposure metric. The method inserts randomly generated canary sequences into the training data different numbers of times, and computes exposure by comparing their perplexity difference with sequences not inserted. The authors also give an extraction algorithm based on shortest-path search, extract credit card numbers and social security numbers from a language model trained on Enron email data, and measure and limit the exposure of rare sequences on Google Smart Compose. Experiments show that regularization methods such as weight decay, dropout and quantization cannot prevent this memorization, and that differentially private training can completely eliminate the problem but incurs some utility loss.
- Generative sequence models are often trained on sensitive data and may unintentionally memorize and leak rare secret sequences in the training data (e.g., credit card numbers), but previously there was no method to quantify the degree of this memorization.
- The authors propose the exposure metric: insert random canary sequences into the training data and quantify the degree of memorization using their relative perplexity rank; they also propose a Dijkstra-based shortest-path search algorithm to efficiently extract memorized secrets.
- Memorization appears early in training and is unrelated to overfitting; in the Enron email model, a real credit card number reaches an exposure of 52 and can be extracted; regularization cannot prevent it, and only differential privacy eliminates memorization.
- The authors note that the method applies only to generative models, that the extraction algorithm assumes known context and is not suitable for real attacks, and that it uses only model input-output behavior. Experiments cover datasets including PTB, WikiText-103, and Enron, and architectures including LSTM, GRU, and CNN.
The paper proposes a quantifiable exposure metric and extraction algorithm, and uses Smart Compose and Enron email data to demonstrate generative models' memorization of rare training sequences.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- SPY Labcites the paper's id or linkSPY Lab 立场论文:成员推断攻击无法证明模型训练使用了你的数据
(this is the idea behind the exposure metric proposed in earlier work for quantifying data memorization in LLMs).
Related papers
- Near-Duplicate Families Break Exact-Record Membership InferenceAnalysis / interpretabilityarXiv