Does CLIP Know My Face?
Dominik Hintersdorf, Lukas Struppek, Manuel Brack, Felix Friedrich, Patrick Schramowski, Kristian Kersting
TL;DR
This work introduces Identity Inference Attack (IDIA), a privacy attack for vision-language models like CLIP that tests whether an individual's data were included in training by pairing facial images with candidate name prompts. Using closed-box access, a set of facial images, and a real name, the attack queries CLIP with multiple prompts across thousands of name candidates and aggregates predictions to infer membership, achieving high true-positive rates with very low false positives. Large-scale experiments on LAION-400M and CC3M demonstrate that CLIP memorizes faces and names, with IDIA yielding $\text{TPR}$ above 70–95% depending on dataset, while $\text{FPR}$ stays near zero to under 2%. The results imply a tangible privacy risk in multimodal models trained on web-scale data and motivate using IDIA as a privacy-measure tool and as evidence in data-rights enforcement, while highlighting the need for countermeasures and ethical considerations in deployment of such models.
Abstract
With the rise of deep learning in various applications, privacy concerns around the protection of training data have become a critical area of research. Whereas prior studies have focused on privacy risks in single-modal models, we introduce a novel method to assess privacy for multi-modal models, specifically vision-language models like CLIP. The proposed Identity Inference Attack (IDIA) reveals whether an individual was included in the training data by querying the model with images of the same person. Letting the model choose from a wide variety of possible text labels, the model reveals whether it recognizes the person and, therefore, was used for training. Our large-scale experiments on CLIP demonstrate that individuals used for training can be identified with very high accuracy. We confirm that the model has learned to associate names with depicted individuals, implying the existence of sensitive information that can be extracted by adversaries. Our results highlight the need for stronger privacy protection in large-scale models and suggest that IDIAs can be used to prove the unauthorized use of data for training and to enforce privacy laws.
