Table of Contents
Fetching ...

Auditing Data Provenance in Text-Generation Models

Congzheng Song, Vitaly Shmatikov

TL;DR

This work tackles auditing data provenance in text-generation systems to support GDPR-style rights by presenting a black-box auditing approach. The method uses shadow models to learn rank-based features from model outputs and trains a user-level binary classifier to infer whether a user's data contributed to training. Experiments across word prediction, translation, and dialog tasks show near-perfect auditing performance with full vocabulary and strong results with limited outputs, highlighting memorization signals in less-frequent word predictions. The study also analyzes memorization mechanisms, demonstrates robustness to noise and cross-domain references, and discusses limitations, especially for very large user bases and privacy-preserving training regimes. Overall, the approach provides a practical pathway to verify data usage in NLP services and informs privacy-preserving model design.

Abstract

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.

Auditing Data Provenance in Text-Generation Models

TL;DR

This work tackles auditing data provenance in text-generation systems to support GDPR-style rights by presenting a black-box auditing approach. The method uses shadow models to learn rank-based features from model outputs and trains a user-level binary classifier to infer whether a user's data contributed to training. Experiments across word prediction, translation, and dialog tasks show near-perfect auditing performance with full vocabulary and strong results with limited outputs, highlighting memorization signals in less-frequent word predictions. The study also analyzes memorization mechanisms, demonstrates robustness to noise and cross-domain references, and discusses limitations, especially for very large user bases and privacy-preserving training regimes. Overall, the approach provides a practical pathway to verify data usage in NLP services and informs privacy-preserving model design.

Abstract

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.

Paper Structure

This paper contains 18 sections, 8 figures, 5 tables, 1 algorithm.

Figures (8)

  • Figure 1: Overview of the auditing process. In the Train phase, the auditor trains an audit model; in the Audit phase, he applies the audit model to infer if the user's data is part of the target's training dataset.
  • Figure 2: Effect of the number of Reddit users used to train a word-prediction model.
  • Figure 3: Effect of the number of queries and sampling strategy. Plots on the left show the results when the auditor samples the user's data for queries in the ascending order of frequency counts of tokens in the label; plots on the right show the results with randomly sampled data.
  • Figure 4: Effect of noise and errors.
  • Figure 5: Histograms of log probabilities of words generated by our text-generation models. The top row are the histograms for the top 20% most frequent words, the bottom row are the histograms for the rest.
  • ...and 3 more figures