Identity Inference from CLIP Models using Only Textual Data

Songze Li, Ruoxi Cheng, Xiaojun Jia · OpenReview

Abstract

The widespread usage of large-scale multimodal models like CLIP has heightened concerns about the leakage of personally identifiable information (PII). Existing methods for identity inference in CLIP models require querying the model with full PII, including textual descriptions and corresponding images. However, this may lead to potential privacy breaches of images not yet seen by the target model. Additionally, traditional membership inference attacks (MIAs) incur high computational costs by training shadow models. To address these challenges, we propose TUNI (Textual Unimodal Detector), a novel method for identity inference that queries the target model with only text data and does not require shadow models. TUNI leverages a CLIP-guided feature extraction algorithm and anomaly detectors trained on textual gibberish. Extensive experiments across various CLIP architectures demonstrate TUNI's superior performance over baselines, even when restricted to textual data.

Introduction: The Privacy Paradox in Identity Inference

Large-scale multimodal models like CLIP (Contrastive Language-Image Pre-training) are trained on billions of image-text pairs scraped from the web, often containing Personally Identifiable Information (PII) such as names paired with faces. Determining whether a specific individual's data was used to train a model—a process known as Identity Inference—is crucial for privacy auditing.

However, existing auditing methods suffer from a "Privacy Paradox": they typically require querying the model with both a person's name and their photo. If the model has not previously encountered that photo, the act of auditing itself introduces a new privacy risk. Furthermore, traditional attacks require training "shadow models" to mimic the target model's behavior, a process that is computationally prohibitive for massive models like CLIP.

Comparison between traditional multimodal identity inference and TUNI's textual unimodal approach.

Methodology: TUNI Framework

TUNI (Textual Unimodal Detector) operates in a black-box setting, observing only the model's output embeddings. It treats identity inference as an anomaly detection problem, utilizing three core components:

  1. CLIP-guided Feature Extraction: TUNI performs "image optimization" by starting with random noise and iteratively adjusting it to maximize similarity to a target name within the CLIP model. It then extracts statistical features (mean similarity and variance) from these "hallucinated" images.
  2. Gibberish as a Proxy: To avoid the cost of shadow models, TUNI generates "textual gibberish" (random strings). Since these are almost certainly not in the training set, they serve as a baseline for "non-member" data.
  3. Anomaly Detection Voting: TUNI trains a suite of anomaly detectors (e.g., Isolation Forest, AutoEncoders) on the features of this gibberish. During inference, if a real name's features are flagged as "abnormal" relative to the gibberish baseline, the system infers the person was likely in the training set.
The TUNI pipeline, illustrating feature extraction, training on gibberish, and the anomaly detection voting system.

Key Results and Insights

Experiments conducted on datasets like FaceScrub and CC3M show that TUNI consistently outperforms state-of-the-art multimodal baselines across various architectures (ResNet-50, ResNet-50x4, and ViT-B/32).

  • Superior Accuracy: On ResNet-50, TUNI achieved 91.7% accuracy using only text, compared to approximately 68% for existing methods that required both text and images.
  • High Recall: TUNI demonstrated a remarkable ability to identify members, with recall rates often exceeding 98%.
  • Efficiency: While shadow model attacks can require weeks of GPU time, TUNI’s anomaly detectors can be trained in a few hours on a single workstation (e.g., using four RTX 3090s).
  • The Hallucination Signature: A key insight is that CLIP models are significantly better at "hallucinating" images for names they have seen during training. This statistical signature in the optimization process is a highly effective indicator of membership.

Conclusion

TUNI demonstrates that multimodal models can be audited for PII leakage using only textual identifiers, bypassing the privacy risks and computational costs of previous methods. While the current study focuses on names and faces, future research will explore more complex PII and potential defense mechanisms to mask these membership signatures.

Summary updated

BibTeX
@misc{li2024identity,
  author = {Songze Li and Ruoxi Cheng and Xiaojun Jia},
  title = {{Identity Inference from CLIP Models using Only Textual Data}},
  year = {2024},
  eprint = {2405.14517},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.14517},
}
Figure