[Paper Review] Auditing Data Provenance in Text-Generation Models
This paper proposes a black-box auditing technique to detect whether a user's personal text data was used to train a text-generation model, leveraging subtle memorization patterns in word prediction rankings. The method achieves perfect audit performance (AUC = 1) on well-generalized models by querying the model with sequences containing rare words, even without access to model probabilities or parameters.
To help enforce data-protection regulations such as GDPR and detect unauthorized uses of personal data, we develop a new \emph{model auditing} technique that helps users check if their data was used to train a machine learning model. We focus on auditing deep-learning models that generate natural-language text, including word prediction and dialog generation. These models are at the core of popular online services and are often trained on personal data such as users' messages, searches, chats, and comments. We design and evaluate a black-box auditing method that can detect, with very few queries to a model, if a particular user's texts were used to train it (among thousands of other users). We empirically show that our method can successfully audit well-generalized models that are not overfitted to the training data. We also analyze how text-generation models memorize word sequences and explain why this memorization makes them amenable to auditing.
Motivation & Objective
- To enable individual users to audit whether their personal text data was used in training a deployed text-generation model.
- To address the challenge of auditing models with no access to model parameters or confidence scores.
- To develop a method effective for well-generalized models that do not overfit, unlike prior membership inference techniques.
- To investigate how text-generation models unintentionally memorize training data and exploit this for auditing.
- To evaluate robustness to input noise and uncertainty in which user inputs were actually used in training.
Proposed method
- The method uses a black-box query-based approach, where the auditor submits input sequences to the model and observes only the generated output tokens.
- It focuses on sequences containing relatively rare words, which are more effective for detecting memorization than randomly selected sequences.
- The auditor computes the predicted rank of the target word in the model’s output distribution, exploiting shifts in ranking caused by memorization.
- The method leverages auxiliary public datasets to calibrate the auditing process when the training data distribution is unknown.
- It uses cross-domain training to improve detection performance when the target model’s training data distribution is not fully known.
- The approach is robust to noise and minor variations in test inputs, reflecting real-world uncertainty about which user inputs were used in training.
Experimental results
Research questions
- RQ1Can a black-box auditing method detect if a user’s personal text was used to train a text-generation model without access to model parameters or confidence scores?
- RQ2How does memorization in text-generation models—particularly in word ranking—enable effective auditing of well-generalized models?
- RQ3What types of input sequences (e.g., rare words, specific contexts) are most effective for detecting data provenance?
- RQ4How robust is the auditing method to noise and uncertainty in the test inputs used for auditing?
- RQ5Can auxiliary datasets improve auditing performance when the training data distribution is unknown?
Key findings
- The proposed auditing method achieves perfect performance (AUC = 1) on word prediction, translation, and dialog generation models trained on data from hundreds of users.
- Sequences containing relatively rare words are significantly more effective for auditing than randomly selected sequences from the user’s data.
- The method remains robust to noise and minor input variations, making it practical for real-world use where exact input matching is uncertain.
- Text-generation models exhibit memorization not in reduced test accuracy but in shifted word ranking, particularly favoring rare words in familiar contexts.
- Even differentially private models show detectable patterns in word prediction, though they are less likely to generate rare words, suggesting limited memorization.
- The study demonstrates that unintentional memorization in text-generation models can be exploited to audit data provenance, supporting compliance with GDPR and similar regulations.
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.