LUMIA: Linear probing for Unimodal and MultiModal Membership Inference Attacks leveraging internal LLM states

Luis Ibanez-Lissen, Lorena González-Manzano, José María de Fuentes, Nicolas Anciaux, Joaquín García-Alfaro

TL;DR

LUMIA introduces a white-box Membership Inference Attack (MIA) that inspects the internal activations of Large Language Models (LLMs) layer-by-layer using lightweight linear probes. By looking inside the model rather than just analyzing its final outputs, LUMIA achieves a massive performance leap, outperforming state-of-the-art black- and grey-box attacks in both text-only and multimodal (text+image) settings.

What Problem Does This Paper Address?

Did a specific copyrighted book, sensitive medical record, or proprietary codebase make its way into an LLM’s massive training dataset? Answering this question is the goal of Membership Inference Attacks (MIAs), which are crucial tools for privacy auditing and copyright enforcement.

Most existing MIA techniques operate under black-box or grey-box assumptions, meaning they only look at the model's final text outputs or the probability distribution (logits) of the next predicted word. The authors argue that these methods leave a lot of information on the table. While a few researchers have tried "white-box" approaches (looking inside the model), their methods often required altering or fine-tuning the target models, which introduces bias and distorts the results. Furthermore, prior white-box attempts completely ignored multimodal models that process both text and images.

Methods

The authors propose LUMIA (Linear probe-based Utilization of Model Internal Activations). Instead of modifying the model, LUMIA intercepts the internal hidden states (activations) generated at the output of each transformer block during a standard forward pass.

Fig. 1. System overview

The pipeline works as follows:

  1. Activation Extraction: For a given input sample, LUMIA runs a forward pass and captures the activation vectors for every token at every single layer. It then computes an average activation vector for that layer.
  2. Linear Probing: It trains a lightweight classifier—a Multi-Layer Perceptron (MLP) acting as a linear probe—independently for each layer. The probe's job is simple: look at the average activation and predict a binary status (1 if the sample was in the training set, 0 if it wasn't).
  3. Layer Evaluation: LUMIA evaluates the Area Under the Curve (AUC) for each layer to pinpoint exactly where membership information is most concentrated ($l^*$).

Datasets

LUMIA was rigorously evaluated across 14 text-based and 7 multimodal datasets using model families like Pythia, GPT-Neo, and LLaVA-OneVision.

  • Unimodal (Text) Datasets: WikiMIA, ArXiv-MIA, Temporal ArXiv/wiki, ArXiv-1-month, Gutenberg, and Mimir (derived from The Pile). These datasets were specifically chosen to evaluate how the attack handles common evaluation pitfalls like Temporal Bias (data distributions changing over time) and N-gram Bias (accidental text overlap between training and test sets).
  • Multimodal (Image+Text) Datasets: Sourced from the OneVision-Data collection, including Textcaps, MathV360k, AOK, ChartQA, ScienceQA, IconQA, and Magpie. These cover diverse tasks like document/chart analysis, visual math reasoning, and OCR.

Key Insights and Ideas

  • The "Where" Matters: Membership information isn't uniformly distributed. For datasets with temporal bias, earlier layers (layers 3–5 in Pythia) contain the strongest membership signals. Conversely, for datasets with heavy N-gram overlap, deeper layers (layers 15–16) are much more effective.
  • Images Leave a Stronger Footprint: In multimodal models, visual inputs significantly boost the attack's success rate. The visual encoder alone often yields higher membership detection rates than text, implying that models might overfit or heavily memorize visual features.
  • Complexity Breeds Memorization: Code-related datasets (like GitHub) and complex mathematical formulas are much easier to detect than general-purpose text. The unique variable names, HTML tags, and rigid structures make "member" samples stand out clearly in the internal activations.

Key Results

LUMIA consistently shattered the performance baselines set by traditional output-based attacks.

  • Unimodal Performance: LUMIA achieved an average 15.71% gain in AUC over previous techniques. In text datasets affected by temporal bias, it achieved up to an 18% average improvement, pushing AUCs as high as 0.99 on datasets like WikiMIA.
Table 1. AUC comparison with State of the art (SOTA) on TB datasets.
  • Multimodal Performance: The framework proved remarkably potent for vision-language tasks, achieving an AUC greater than 0.60 (the threshold for a successful attack) in 85.90% of the experiments.

Limitations and Future Work

While LUMIA marks a major step forward for white-box auditing, it currently requires full access to the model's internal states, making it impractical for closed-source APIs like GPT-4. Additionally, the current framework is restricted to text and image modalities.

For future work, the authors propose extending LUMIA to audio and video models. Crucially, they also suggest a defensive pivot: by knowing exactly which internal layers leak the most membership information, developers could strategically inject noise into those specific layers during inference, boosting model privacy without sacrificing overall generation quality.

Summary updated

BibTeX
@inproceedings{ibanezlissen2024lumia,
  author = {Luis Ibanez-Lissen and Lorena González-Manzano and José María de Fuentes and Nicolas Anciaux and Joaquín García-Alfaro},
  title = {{LUMIA: Linear probing for Unimodal and MultiModal Membership Inference Attacks leveraging internal LLM states}},
  booktitle = {ESORICS},
  year = {2024},
}
Figure