Abstract
Large-scale image captioning models have become increasingly prevalent, yet their privacy implications remain under-explored. This paper investigates Membership Inference Attacks (MIAs) in the context of generative multi-modal models. We propose a novel, "shadow-free" attack framework that leverages the observation that models exhibit lower output variance for training samples compared to unseen data. By introducing the Means-of-Variance (MV) metric, we demonstrate that an attacker can reliably identify training set members using only the target image and the model's generated text. Our methods, including a threshold-based attack (MVTA) and a weakly supervised approach (C-WSA), achieve up to a 0.93 AUC on state-of-the-art models, representing a significant advancement in quantifying privacy risks for generative AI.
1. Introduction
Membership Inference Attacks (MIAs) aim to determine whether a specific data point was used to train a target model. While well-established for classification tasks, MIAs face unique hurdles in generative image captioning. These models typically do not provide confidence scores, lack a clear ground truth for attackers to compare against, and are often too large to replicate via traditional "shadow model" techniques.
This research addresses these challenges by developing a black-box attack that requires only the target image. The central hypothesis is that "memorization" in generative models manifests as reduced stochasticity: when prompted with a training image, the model's output distribution collapses toward a specific textual representation, even under randomized sampling conditions.
2. Methodology
The proposed attack pipeline relies on revealing the model's internal uncertainty through stochastic decoding.
2.1 The Attack Pipeline
The process begins by querying the target image captioning model multiple times using top-p sampling. This technique introduces controlled randomness into the word selection process. For a training image (member), the model tends to produce highly consistent captions across these iterations. For an unseen image (non-member), the generated text is significantly more diverse.
2.2 The Means-of-Variance (MV) Metric
To quantify this consistency, the $n$ generated captions are converted into vector embeddings using a pre-trained text encoder. The variance is calculated for each dimension of the embedding vectors across the $n$ samples. These variances are then averaged to produce the Means-of-Variance (MV) score. A low MV score indicates high model confidence and potential membership in the training set.
2.3 Attack Variants
Two primary attack strategies were developed:
- MVTA (Threshold Attack): A zero-knowledge approach where images with an MV score below a pre-defined threshold are classified as members.
- C-WSA (Confidence-based Weakly Supervised Attack): A more robust method that uses a small set of known non-members to label "pseudo-members" from an unknown pool. A classifier is then trained on these labels to distinguish members from non-members.
3. Experimental Evaluation
The attacks were evaluated on models including BLIP, ViT-GPT2, and GIT, using standard benchmarks such as MSCOCO and Flickr30k.
3.1 Results and Separability
The effectiveness of the MV metric is rooted in the clear separation it provides between member and non-member distributions. As shown in the histogram below, training set members consistently exhibit lower MV scores than non-members.
Key findings include:
- High Accuracy: C-WSA achieved an AUC of 0.91 on BLIP and 0.93 on ViT-GPT2.
- Precision at Scale: At a 1% False Positive Rate, the attack maintained a True Positive Rate (TPR) of approximately 40%, allowing for high-confidence identification of training samples.
- Robustness: The attack remains effective even when the target image is not accompanied by its original training caption, making it a potent "image-only" threat.
4. Conclusion
This work highlights a significant privacy vulnerability in large-scale generative models. By demonstrating that memorization can be detected through output variance, the authors provide a practical tool for auditing model privacy without the need for expensive shadow training. Future work should focus on developing robust defense mechanisms, such as differential privacy, to mitigate these risks in production environments.
Summary updated