Membership Inference Attacks Against Vision-Language Models

Yuke Hu, Zheng Li, Zhihao Liu, Yang Zhang, Zhan Qin, Kui Ren, Chun Chen

Introduction

Vision-Language Models (VLMs), such as LLaVA and MiniGPT-4, have revolutionized the way AI interacts with multimodal data. These models typically undergo a two-stage training process: broad pre-training on massive image-caption pairs followed by "instruction tuning" on high-quality, often sensitive or copyrighted datasets. While research has focused on enhancing the capabilities of these models, the privacy risks associated with instruction tuning—specifically whether a model "memorizes" its training data—have remained largely unexplored. This paper presents the first systematic study of Membership Inference Attacks (MIAs) against VLMs, demonstrating that even black-box models are susceptible to leaking information about their training sets.

The Challenge of VLM Privacy

Membership Inference Attacks aim to determine if a specific data point was included in a model's training set. In traditional machine learning, MIAs often exploit overfitting. However, large-scale models like VLMs are trained on massive datasets for very few epochs, making the "membership signal" for a single image-text pair incredibly weak. Traditional methods struggle to distinguish between a model's general knowledge and its specific memorization of a training sample. To address this, the authors shift the focus from individual samples to set-level analysis and leverage a novel signal: temperature sensitivity.

Methodology

Set-Level Inference

Instead of attempting to identify the membership of a single sample, the researchers propose analyzing a set of samples (e.g., 5–10 images from the same user or dataset). By aggregating signals across multiple samples, the statistical evidence of membership becomes significantly more robust, effectively cutting through the noise that masks individual data points.

Temperature Sensitivity

A key discovery of this research is the role of the "temperature" parameter, which controls the randomness of a model's output. The authors found that for training data (members), VLM responses are highly sensitive to temperature changes. At low temperatures, the model is highly accurate and consistent with the ground truth. As temperature increases, the responses for members diverge sharply. In contrast, non-members show a much more modest change because the model was never "anchored" to a specific ground-truth answer during training. This divergence serves as a powerful black-box signal for membership.

Attack Scenarios

The study evaluates four attack scenarios based on the attacker's level of access:

  1. Shadow Model Inference: The attacker trains a "shadow" model to mimic the target, learning the statistical patterns that distinguish members from non-members.
  2. Reference Inference: The attacker compares the target set against a small known set of non-members using a Z-test to identify statistical anomalies.
  3. Target-Only Inference: A more restrictive scenario where the attacker only has the target set. They query the model at two different temperatures and use the difference in response similarity as the membership signal.
  4. Image-Only Inference: The most restrictive case, where the attacker lacks the original text answers. By querying the model multiple times with the same image, the attacker looks for high consistency (convergence) in responses as an indicator of membership.

Experimental Evaluation

The study evaluated six models across two major VLM families:

  • LLaVA: Variants using Vicuna and Llama-2 backbones (7B and 13B). LLaVA fine-tunes the entire language model, which the study found increases the likelihood of memorization.
  • MiniGPT-4: Evaluated on Vicuna backbones. This model keeps the language model frozen and only trains a "projector" layer.

The attacks targeted the instruction-tuning data, which includes complex reasoning tasks and multi-turn conversations.

Key Insights

  • Backbone Vulnerability: Models that fine-tune the Large Language Model (LLM) backbone, such as LLaVA, are significantly more vulnerable to MIAs than those that only train a small adapter or projector, like MiniGPT-4.
  • Model Size and Privacy: Larger models (13B parameters) are more susceptible to these attacks than smaller ones (7B). The additional parameters likely provide more capacity for the model to inadvertently memorize specific training samples.
  • Textual Memorization: The researchers found that "Rouge-2" (measuring word overlap) was often a better membership signal than semantic embeddings. This suggests that MIAs are primarily detecting the memorization of specific phrasing rather than general conceptual understanding.
  • High Accuracy: The attacks were remarkably effective. On LLaVA, the attack achieved an AUC greater than 0.8 using a set of only 5 samples, reaching 0.9 with 10 samples.

Conclusion and Future Work

This study highlights a significant privacy vulnerability in state-of-the-art Vision-Language Models. The ability to detect membership through temperature sensitivity and set-level analysis poses a risk to data privacy and copyright. While potential defenses include restricting temperature adjustments or forcing different output lengths, these may degrade model utility. Future research is needed to explore whether membership signals can be extracted directly from vision encoders and to develop more robust privacy-preserving training techniques for multimodal AI.

Summary updated

BibTeX
@inproceedings{hu2025membership,
  author = {Yuke Hu and Zheng Li and Zhihao Liu and Yang Zhang and Zhan Qin and Kui Ren and Chun Chen},
  title = {{Membership Inference Attacks Against Vision-Language Models}},
  booktitle = {USENIX Security},
  year = {2025},
}
Figure