FiMMIA: scaling semantic perturbation-based membership inference across modalities

Anton A. Emelyanov, Sergei Kudriashov, Alena Fenogenova

TL;DR

FiMMIA is a new modular framework designed to detect "data leakage"—whether specific images, videos, or audio clips were used to train a Multimodal Large Language Model (MLLM). By analyzing how a model’s behavior changes when inputs are slightly perturbed, FiMMIA achieves high detection accuracy (80-90% AUC-ROC) and reveals that many existing benchmarks for this task are fundamentally flawed due to "distribution shifts."

What Problem Does This Paper Address?

As Multimodal Large Language Models (MLLMs) like GPT-4o or LLaVA become more powerful, the "black box" nature of their training data becomes a liability. Researchers need to know if a model’s high performance on a benchmark is due to genuine reasoning or simply because it "memorized" the test set during training (data contamination).

Membership Inference Attacks (MIAs) are the standard tool for this, but they face two major hurdles in the multimodal world:

  1. Technical Complexity: Unlike text-only models, MLLMs often lack direct target tokens for images or audio, making standard loss-based attacks less reliable.
  2. Benchmark Bias: The authors discovered that many current MIA benchmarks are "leaky." The "member" data (used for training) and "non-member" data (not used) often come from different distributions. In some cases, a simple statistical classifier can tell them apart without even looking at the model, leading to inflated and misleading accuracy scores in previous research.

Methods

The authors introduce FiMMIA, which shifts the focus from raw model outputs to semantic perturbations.

The pipeline works as follows:

  • Neighbor Generation: For a given data point (e.g., an image-text pair), the system generates 24 "neighbors" by slightly altering the text part (masking, deleting, or swapping tokens).
  • Feature Extraction: It calculates the loss difference ($\Delta L$) and embedding difference ($\Delta e$) between the original sample and its perturbed neighbors.
  • The Attack Model: Instead of using a simple threshold, FiMMIA trains a small binary neural network classifier. This classifier learns the "signature" of memorization: if a model has seen a data point before, its loss should be significantly lower on the original than on the perturbed neighbors compared to a data point it hasn't seen.
  • Modality Agnostic: While the perturbations are currently applied to the text instructions, the framework is designed to be modular, allowing for future neighbor generation methods for images or audio.

Datasets

The study evaluates FiMMIA across several diverse benchmarks:

  • MERA: A comprehensive Russian-language benchmark featuring 18 datasets across audio, video, and image modalities.
  • English Benchmarks: ScienceQA, MM-Star, and COCO-Caption2017 were used to test cross-lingual transferability.
  • MIA Benchmarks: The authors scrutinized existing MIA sets like WikiMIA and VL-MIA, proving they suffer from significant distribution shifts.

Key Insights and Ideas

  • The "Blind" Baseline: The most striking insight is that many "state-of-the-art" attacks are actually just detecting dataset bias. The authors built a "baseline" that looks only at raw data statistics (like SIFT or LBP histograms for images) and found it could often outperform complex MIAs. This highlights a desperate need for cleaner, more rigorous benchmarks.
  • Text as the "Anchor": Even in multimodal tasks, perturbing the text instruction is a highly effective way to trigger a membership signal. This suggests that the text-modality alignment in MLLMs is a primary site for memorization.
  • Cross-Model Transferability: An attack model trained on one family (e.g., Qwen) can often detect membership in another (e.g., Llama). This implies that different models develop similar "memorization signatures" when they overfit on data.

Key Results

FiMMIA demonstrates robust performance across all tested modalities:

  • Average Accuracy (AUC-ROC): Image models reached 88.7%, Video reached 88.4%, and Audio reached 81.3%.
  • Near-Perfect Detection: On certain specific models (like LLaVA-NeXT-Video), the attack achieved a perfect 100% AUC-ROC, indicating clear data leakage.
  • Benchmark Correction: When applied to English datasets, FiMMIA provided more realistic leakage estimates than previous methods (like MM-DETECT), which often produced "false negatives" due to poor calibration.

Limitations and Future Work

  • Grey-Box Requirement: Currently, FiMMIA requires "grey-box" access, meaning the attacker needs the model's logprobs to calculate loss. The authors plan to extend this to "black-box" scenarios where only the final text output is available.
  • Computational Cost: Generating 24 neighbors and running inference for each makes the process relatively slow (approx. 10 hours per dataset on a single GPU).
  • Fine-tuning Focus: The current study focuses on models fine-tuned with LoRA (Low-Rank Adaptation). Whether these patterns hold for full-parameter pre-training remains an open question for future scaling law studies.

Summary updated

BibTeX
@inproceedings{emelyanov2026fimmia,
  author = {Anton A. Emelyanov and Sergei Kudriashov and Alena Fenogenova},
  title = {{FiMMIA: scaling semantic perturbation-based membership inference across modalities}},
  booktitle = {EACL (System Demonstrations)},
  year = {2026},
  doi = {10.18653/v1/2026.eacl-demo.11},
}
Figure