Property Existence Inference against Generative Models

Lijin Wang, Jingjing Wang, Jie Wan, Lin Long, Ziqi Yang, Zhan QinUSENIX Security 2024

TL;DR

This paper introduces "Property Existence Inference," a novel privacy attack against generative models that infers whether specific properties (like an artist's style or a particular car model) were present in the training data. The authors demonstrate that even large-scale models like Stable Diffusion are vulnerable, highlighting a new privacy risk beyond traditional membership inference.

What Problem Does This Paper Address?

Generative models, capable of creating realistic synthetic data, have become ubiquitous. However, concerns about their privacy implications are growing. Previous research has focused on "membership inference" (whether a specific data point was in the training set) and "property inference" (estimating the proportion of a global property, like gender, in the training set). This paper addresses a gap by introducing "Property Existence Inference," which aims to determine if any samples with a specific, often personalized, property were used during training. This is particularly relevant for properties that might be present in very small proportions, making them hard to detect with traditional methods but still posing significant privacy risks, such as inferring the inclusion of an individual's artwork or a specific product's images.

Methods

The core of the proposed attack involves training a "property extractor" that learns to distinguish features related to different properties. This extractor maps both real data (with the target property) and generated data into an embedding space. The attack then computes similarity scores between generated samples and samples known to possess the target property.

Key methodological contributions include:

  • Property Extractor Training: A siamese network architecture is used with a triplet loss to learn discriminative embeddings.
  • Similarity Score Computation: The attack calculates similarity scores between generated images and "anchor" images (samples with the target property). To mitigate noise, two techniques are employed:
  • Similarity Score Smoothing: A softmax operation is applied to the similarity scores.
  • Likelihood Calibration: A Gaussian distribution is modeled for "out-property" samples to calibrate the similarity scores, reducing uncertainty.
  • Threshold Selection: Shadow models are trained on data sampled from the "out-property" distribution to establish a threshold for classifying a property as present or absent in the training set.

Datasets

The paper utilizes several datasets for training generative models and evaluating the attack:

  • CelebA-HQ: Used for training generative models and evaluating property existence inference on facial identities.
  • ImageNet: Used for training generative models and evaluating property existence inference on class labels.
  • CompCars: Used for training generative models and evaluating property existence inference on car models.
  • WikiArt: Used to identify artists' styles as target properties for the Stable Diffusion case study.
  • LAION: A large-scale dataset used for training Stable Diffusion.
  • ImageNet2012 and ImageNet2010: Used for training and as extended datasets for property extraction.

Key Insights and Ideas

  • Personalized Privacy Risk: Property existence inference targets more personal and individualized privacy concerns than traditional property inference, which often focuses on broad demographic attributes.
  • Low-Proportion Properties Matter: The attack is particularly effective for properties present in very small proportions in the training set, a scenario previously overlooked.
  • Generative Models are Vulnerable: The study demonstrates that a wide range of generative models, including large-scale ones like Stable Diffusion, are susceptible to this attack.
  • Feature-Level Consistency: The attack leverages the fact that generated data retains feature-level consistency with the training data, allowing for inference even when exact samples are not memorized.
  • Training Data Size Insensitivity: Surprisingly, the effectiveness of the attack is not highly sensitive to the size of the training dataset, suggesting that simply increasing data volume doesn't inherently prevent this leakage.

Key Results

  • High AUC Scores: The proposed method achieved high AUC scores across various datasets and model types, often exceeding 0.81 and reaching up to 0.98 for ImageNet and CompCars. For CelebA-HQ, AUC scores were lower (around 0.63-0.64), attributed to higher similarity between identity properties.
  • Significant Improvement over Baseline: The authors' method consistently outperformed a baseline property inference attack in terms of AUC and ACC, demonstrating an average AUC improvement of 0.18 on ImageNet and CompCars.
  • Stable Diffusion Vulnerability: In a case study on Stable Diffusion, the attack achieved an AUC of 0.75, confirming its effectiveness on large-scale, real-world models.
  • Effect of Adversary Knowledge: The attack performance generally improves with an increased number of generated images and anchor images, though an optimal quantity of anchor images was observed for certain datasets.
  • Granularity Impact: Finer-grained properties lead to higher inference difficulty, but property existence information leakage is still present.

Limitations and Future Work

  • Black-Box Setting: While the attack operates in a black-box setting, it assumes the adversary has access to the overall dataset from which training data was collected, allowing them to sample anchor images.
  • Cost of Generation: For unconditional generative models, a substantial volume of generated images (e.g., 15,000 for CompCars) is needed for optimal performance, which can be computationally expensive. Reducing this requirement is a direction for future work.
  • Property Similarity: The attack's effectiveness on CelebA-HQ was lower due to the high similarity between identity properties. Future work could explore more robust methods for distinguishing highly similar properties.
  • Optimal Anchor Image Count: The study found an optimal number of anchor images for maximizing attack performance, suggesting further research into how adversaries can best select these images.

Summary updated

BibTeX
@inproceedings{wang2024property,
  author = {Lijin Wang and Jingjing Wang and Jie Wan and Lin Long and Ziqi Yang and Zhan Qin},
  title = {{Property Existence Inference against Generative Models}},
  booktitle = {USENIX Security},
  year = {2024},
  url = {https://openreview.net/forum?id=Yycz3yXzSO},
}
Figure