[Paper Review] Dataset Inference: Ownership Resolution in Machine Learning
This paper introduces dataset inference (DI), a novel ownership resolution defense that detects model stealing by identifying whether a suspect model contains knowledge from the victim's private training data. By measuring prediction certainty (margin to decision boundary) on a small subset of the victim's training data, DI achieves over 99% confidence in detecting theft—even with only 50 exposed points—without retraining or compromising model accuracy.
With increasingly more data and computation involved in their training, machine learning models constitute valuable intellectual property. This has spurred interest in model stealing, which is made more practical by advances in learning with partial, little, or no supervision. Existing defenses focus on inserting unique watermarks in a model's decision surface, but this is insufficient: the watermarks are not sampled from the training distribution and thus are not always preserved during model stealing. In this paper, we make the key observation that knowledge contained in the stolen model's training set is what is common to all stolen copies. The adversary's goal, irrespective of the attack employed, is always to extract this knowledge or its by-products. This gives the original model's owner a strong advantage over the adversary: model owners have access to the original training data. We thus introduce $dataset$ $inference$, the process of identifying whether a suspected model copy has private knowledge from the original model's dataset, as a defense against model stealing. We develop an approach for dataset inference that combines statistical testing with the ability to estimate the distance of multiple data points to the decision boundary. Our experiments on CIFAR10, SVHN, CIFAR100 and ImageNet show that model owners can claim with confidence greater than 99% that their model (or dataset as a matter of fact) was stolen, despite only exposing 50 of the stolen model's training points. Dataset inference defends against state-of-the-art attacks even when the adversary is adaptive. Unlike prior work, it does not require retraining or overfitting the defended model.
Motivation & Objective
- Address the challenge of proving ownership in machine learning model theft, especially when traditional watermarking fails due to distillation or extraction.
- Overcome limitations of existing watermarking defenses that require model retraining and degrade performance.
- Leverage the fact that all stolen models inherently contain knowledge from the victim’s training data, regardless of attack vector.
- Develop a defense that uses information asymmetry—victims have access to their original training data, while adversaries do not.
- Enable reliable, high-confidence ownership claims without modifying the model or requiring retraining.
Proposed method
- Measure prediction certainty (margin to decision boundary) of suspect models on a small, private subset of the victim’s training data.
- Train a confidence regressor on embeddings from the victim model’s training and validation sets to estimate margin distributions.
- Use statistical hypothesis testing (e.g., t-test or permutation test) to compare the average margin of suspect model predictions on victim’s training data versus random test data.
- Define a p-value threshold (e.g., 10⁻³) to determine if the suspect model is significantly more confident on the victim’s training data, indicating knowledge leakage.
- Apply the method across diverse architectures (e.g., Wide ResNet-50-2, AlexNet, Inception V3) and datasets (CIFAR-10, SVHN, ImageNet) to assess generalization.
- Evaluate robustness under adaptive attacks and varying data overlap (λ) between victim and adversary datasets.
Experimental results
Research questions
- RQ1Can a model owner reliably detect if a suspect model was derived from their private training data, even when the model is stolen via query-based extraction or full data theft?
- RQ2How few training points from the victim’s dataset are needed to confidently claim ownership using statistical inference on prediction certainty?
- RQ3Does dataset inference remain effective when the adversary uses distillation, fine-tuning, or data-free knowledge transfer?
- RQ4How does dataset inference perform on large-scale benchmarks like ImageNet, where overfitting is unlikely?
- RQ5What is the minimum overlap of the victim’s training data in the adversary’s dataset required for DI to successfully detect knowledge leakage?
Key findings
- Dataset inference achieves a p-value < 10⁻³ when testing on just 10 samples from the victim’s training set, even on ImageNet, demonstrating high confidence in ownership detection.
- On CIFAR-10 and SVHN, DI achieves over 99% confidence in detecting model theft using only 50 exposed training points from the victim model.
- DI successfully detects knowledge leakage even when the adversary uses data-free distillation or fine-tuning, indicating robustness to adaptive attacks.
- The method generalizes across different architectures (e.g., Wide ResNet-50-2, AlexNet, Inception V3), showing scalability to complex models.
- With 10% overlap (λ = 0.1) of the victim’s training data in the adversary’s dataset, DI still detects theft with p-values < 10⁻⁴, showing sensitivity to minimal data leakage.
- The effect size of the test increases with higher data overlap (λ), confirming that DI becomes more confident as the shared training data increases.
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.