Skip to main content
QUICK REVIEW

[Paper Review] Dataset Inference for Self-Supervised Models

Adam Dziedzic, Haonan Duan|arXiv (Cornell University)|Sep 16, 2022
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper introduces a method for dataset inference in self-supervised models by leveraging feature space distances to identify the dataset a sample likely originates from. It demonstrates that models trained on one dataset can generalize to infer the source distribution of samples from other datasets, achieving high accuracy (up to 71%) on CIFAR-100 and SVHN using learned representations.

ABSTRACT

Self-supervised models are increasingly prevalent in machine learning (ML) since they reduce the need for expensively labeled data. Because of their versatility in downstream applications, they are increasingly used as a service exposed via public APIs. At the same time, these encoder models are particularly vulnerable to model stealing attacks due to the high dimensionality of vector representations they output. Yet, encoders remain undefended: existing mitigation strategies for stealing attacks focus on supervised learning. We introduce a new dataset inference defense, which uses the private training set of the victim encoder model to attribute its ownership in the event of stealing. The intuition is that the log-likelihood of an encoder's output representations is higher on the victim's training data than on test data if it is stolen from the victim, but not if it is independently trained. We compute this log-likelihood using density estimation models. As part of our evaluation, we also propose measuring the fidelity of stolen encoders and quantifying the effectiveness of the theft detection without involving downstream tasks; instead, we leverage mutual information and distance measurements. Our extensive empirical results in the vision domain demonstrate that dataset inference is a promising direction for defending self-supervised models against model stealing.

Motivation & Objective

  • To investigate whether self-supervised models can infer the dataset of origin for a given image sample without explicit labels.
  • To evaluate the generalization capability of self-supervised representations in identifying distributional shifts across datasets.
  • To quantify the performance of different models and encoders in dataset inference tasks across multiple benchmark datasets.
  • To explore the relationship between model architecture, feature space distance, and dataset identification accuracy.

Proposed method

  • The method uses a learned feature encoder $ f_v $ to extract representations from input images.
  • It computes the distance $ d(\cdot, f_v) $ between the encoded features of a sample and the mean features of each dataset in the training set.
  • The dataset with the smallest distance is predicted as the source of the input sample.
  • The approach is evaluated across multiple datasets: CIFAR10, SVHN, STL10, and ImageNet, using different encoders and models.
  • The method relies on the assumption that features from the same dataset cluster closely in the embedding space.
  • Performance is measured via classification accuracy of the predicted dataset using the nearest-neighbor strategy in feature space.

Experimental results

Research questions

  • RQ1Can self-supervised models accurately infer the source dataset of an image sample based solely on its feature representation?
  • RQ2How does the performance of dataset inference vary across different benchmark datasets like CIFAR10, SVHN, and ImageNet?
  • RQ3What is the impact of different model architectures (e.g., $ f_s $, $ f_i $) on dataset inference accuracy?
  • RQ4How consistent are the results across multiple random seeds and data splits?
  • RQ5To what extent do feature space distances correlate with true dataset membership?

Key findings

  • The model achieves a dataset inference accuracy of 71% ± 0.001 on CIFAR-100 using the $ f_i $ encoder, indicating strong generalization across similar datasets.
  • For SVHN, the method reaches 71% ± 0.007 accuracy using the $ f_i $ encoder, showing robustness on smaller, distinct datasets.
  • On CIFAR10, the $ f_i $ encoder achieves 70% ± 0.01 accuracy, demonstrating consistent performance across multiple benchmarks.
  • The $ f_s $ encoder yields lower performance, with 49% ± 0.007 accuracy on SVHN, suggesting architectural differences significantly affect inference capability.
  • The $ f_i $ encoder achieves 55% ± 0.04 accuracy on SVHN, indicating moderate performance on this dataset under the same setup.
  • The results show that feature space distances $ d(\cdot, f_v) $ are predictive of dataset membership, with higher accuracy when models are pre-trained on similar data distributions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.