Abstract
Neural network-based image classifiers are powerful tools for computer vision tasks, but they inadvertently reveal sensitive attribute information about their classes, raising concerns about their privacy. To investigate this privacy leakage, we introduce the first Class Attribute Inference Attack (CAIA), which leverages recent advances in text-to-image synthesis to infer sensitive attributes of individual classes in a black-box setting, while remaining competitive with related white-box attacks. Our extensive experiments in the face recognition domain show that CAIA can accurately infer undisclosed sensitive attributes, such as an individual's hair color, gender, and racial appearance, which are not part of the training labels. Interestingly, we demonstrate that adversarial robust models are even more vulnerable to such privacy leakage than standard models, indicating that a trade-off between robustness and privacy exists.
Introduction
Deep learning models, particularly face recognition systems, are often trained on massive private datasets. While these models are designed to predict a specific label (like a person's identity), they inadvertently learn a wealth of auxiliary information about their training subjects—details like hair color, gender, or racial appearance that were never part of the official training labels.
Previous Attribute Inference Attacks (AIAs) were largely limited to tabular data or required "white-box" access (full knowledge of the model's internal weights). This research addresses the gap in the vision domain by introducing CAIA (Class Attribute Inference Attack). CAIA is a novel black-box attack that uses diffusion models to "interrogate" image classifiers and reveal sensitive, unlabeled information about the training data using only output scores.
Methodology: Diffusion-Based Probing
The authors propose a pipeline that leverages the semantic power of text-to-image diffusion models to probe a target model's knowledge. The attack follows three main steps:
- Crafting Attack Samples: Using Stable Diffusion combined with Null-text Inversion and Prompt-to-Prompt editing, the attacker creates a "tuple" of variations from a real image. These variations are identical except for one specific attribute (e.g., the same face with four different hair colors: black, blond, brown, and gray).
- Filtering: An auxiliary attribute classifier ensures the generative model successfully depicted the intended attributes. Only tuples where attributes are clearly depicted are kept.
- Inference via Relative Advantage: The attacker feeds these tuples into the target black-box model. The core hypothesis is that the target model will assign a higher prediction score (logit) to the variation sharing the same sensitive attribute as the original training samples for that class. By summing this "Relative Advantage" across many tuples, the attacker can accurately infer the hidden attribute.
Experimental Results and the Robustness Paradox
CAIA was evaluated against models trained on the CelebA (over 10,000 identities) and FaceScrub (530 identities) datasets. The attack demonstrated high efficiency and accuracy across various architectures.
Key Findings:
- High Accuracy: CAIA achieved over 90% accuracy in inferring gender and the presence of eyeglasses. For more complex attributes like hair color and racial appearance (Asian, Black, Indian, White), accuracy remained high at approximately 80-84%.
- Outperforming White-Box Attacks: In several scenarios, the black-box CAIA outperformed state-of-the-art white-box attacks like Plug & Play (PPA), which require internal gradient information.
- The Robustness-Privacy Paradox: A striking discovery is that adversarial robustness—making a model hard to fool with noise—actually increases vulnerability to privacy leaks. Robust models focus more heavily on human-recognizable traits (robust features), which CAIA targets. On the FaceScrub dataset, robust models leaked gender information with 96.62% accuracy, compared to 93.08% for standard models.
Conclusion and Future Work
CAIA serves as a significant wake-up call for machine learning security. It demonstrates that making a model "secure" against adversarial noise may inadvertently open a back door for privacy exploitation. Future work includes extending the attack to continuous features like age and exploring correlations between multiple attributes to build detailed privacy profiles of training classes.
Summary updated