A General Framework for Data-Use Auditing of ML Models

Zonghao Huang, Neil Zhenqiang Gong, Michael K. Reiter

TL;DR

This paper introduces a novel, general framework for data owners to audit machine learning models and detect if their data was used for training, even without knowing the ML task or model details. It achieves this by transforming existing "black-box" membership inference techniques into a proactive auditing method with a guaranteed, tunable false-detection rate.

What Problem Does This Paper Address?

The increasing reliance on massive datasets for training powerful ML models, especially foundation models, has created a significant challenge: data owners often have no way of knowing if their data was used without permission. Existing methods for auditing data use are either passive (offering no guarantee of accuracy) or require extensive control over the training process and data, which is unrealistic in many scenarios. This lack of transparency and control is problematic, especially with growing data privacy regulations. The paper aims to bridge this gap by providing a general, effective, and auditable solution for data owners.

Methods

The core of the proposed framework lies in two main components:

  1. Data Marking Algorithm: Before publishing their data, data owners create two versions of each data point: a "published" version and a "hidden" version. These versions are engineered to preserve the original data's utility while being maximally distinguishable from each other. This marking process is agnostic to the specific ML task (e.g., classification, generation) or data labels. The data owner then publishes one version and keeps the other secret.
  2. Data-Use Detection Algorithm: This algorithm leverages any existing black-box membership inference (MI) method. The key insight is that if an ML model was trained on the published data, an MI method will likely indicate a higher likelihood of membership for the published version compared to the hidden version. The framework uses a sequential hypothesis test based on these MI scores. By comparing the MI scores of the published and hidden versions across many data points, the data owner can statistically determine if the model was trained on their data, with a quantifiable and tunable false-detection rate. This is achieved using a prior-posterior-ratio martingale (PPRM) for sequential sampling and hypothesis testing.

Datasets

The paper evaluates its framework on several standard datasets:

  • Image Classifiers: CIFAR-10, CIFAR-100, and TinyImageNet.
  • Foundation Models:
    • Visual Encoder: Evaluated using SimCLR on CIFAR-10, CIFAR-100, and TinyImageNet.
  • Large Language Models (LLMs): Fine-tuning experiments were conducted on SST2, AG's news, and TweetEval (emoji) datasets.
  • Multimodal Models: Fine-tuning experiments were performed on the Flickr30k dataset for CLIP.

Key Insights and Ideas

  • Transforming Passive MI to Proactive Auditing: The most significant insight is the ability to turn existing, often passive, black-box membership inference techniques into a robust, proactive auditing tool with provable guarantees. This significantly broadens the applicability of MI.
  • Task and Model Agnosticism: The data marking process is designed to be independent of the ML task and model architecture. This generality is crucial for auditing diverse ML applications, from image classifiers to complex foundation models.
  • Quantifiable False-Detection Rate: The framework provides a statistically sound method to control the risk of falsely accusing a practitioner of using data, a critical feature for practical adoption and trust.
  • Trade-off between Utility and Detectability: The marking process involves a trade-off between preserving data utility and ensuring sufficient distinction for detection. The paper demonstrates that this trade-off can be managed effectively.
  • Robustness to Adaptive Attacks: The framework shows resilience against common countermeasures employed by ML practitioners to evade detection, often at the cost of degrading the model's utility.

Key Results

  • High Detection Success Rate (DSR): The proposed framework consistently achieved high DSRs (often 20/20) across various ML models (image classifiers, visual encoders, LLMs, CLIP) and datasets, indicating its effectiveness in detecting unauthorized data use.
  • Minimal Impact on Model Utility: In most cases, the marked data preserved the utility of the original data, with only a slight decrease in model accuracy (<1% on average for image classifiers).
  • Efficiency: The framework demonstrated efficiency, requiring a relatively small percentage of marked data (as low as 0.14% for TinyImageNet) to trigger detection, especially for models with many classes.
  • Robustness: The method proved robust against various adaptive attacks, such as output masking, differential privacy, and early stopping, often outperforming baselines like Radioactive Data and UBW-C.
  • Generalizability: The framework successfully audited data use in image classifiers, visual encoders, LLMs (fine-tuning), and multimodal models (CLIP fine-tuning), showcasing its broad applicability.

Limitations and Future Work

  • Computational Cost: While the framework is effective, the detection process can still be computationally intensive, requiring numerous queries to the target ML model. The paper notes that increasing the number of queries (K) improves detection but increases cost.
  • Adaptive Attacks: While robust to many attacks, the paper acknowledges that advanced adaptive attacks, particularly those that significantly reduce memorization (like differential privacy), can degrade detection performance. However, these attacks often come at a substantial cost to model utility.
  • Pretrained Foundation Models: The experiments on foundation models primarily focused on fine-tuning due to the computational cost of pretraining. Auditing the use of data in fully pretrained models remains an area for further investigation.
  • Future Work: The authors suggest exploring stronger membership inference techniques to further enhance detection efficiency and investigating more sophisticated adaptive attacks and defenses. They also highlight the potential of their framework for verifying machine unlearning and for enabling data owners to prove data use claims to third parties.

Summary updated

BibTeX
@inproceedings{huang2024general,
  author = {Zonghao Huang and Neil Zhenqiang Gong and Michael K. Reiter},
  title = {{A General Framework for Data-Use Auditing of ML Models}},
  booktitle = {CCS},
  year = {2024},
  url = {https://openreview.net/forum?id=rbmPMZasCD},
}
Figure