FiMMIA: scaling semantic perturbation-based membership inference across modalities

Anton A. Emelyanov, Sergei Kudriashov, Alena Fenogenova · DOI

Abstract

As Multimodal Large Language Models (MLLMs) increasingly integrate into various applications, the risk of data leakage—where models memorize their training data—becomes a critical concern. We present FiMMIA, a modular framework designed to detect such leakage across image, video, and audio modalities. By analyzing model behavior under semantic perturbations, FiMMIA achieves high detection accuracy (80-90% AUC-ROC). Furthermore, our analysis reveals that many existing membership inference benchmarks are compromised by distribution shifts, leading to misleadingly high performance metrics in prior work.

Introduction

The rapid advancement of MLLMs like GPT-4o and LLaVA has made understanding their training data provenance essential. Researchers must distinguish between a model's genuine reasoning capabilities and simple memorization of benchmark test sets, a phenomenon known as data contamination. Membership Inference Attacks (MIAs) are typically used for this purpose. However, applying MIAs to multimodal contexts presents unique challenges: the lack of direct target tokens for non-text inputs and the presence of "leaky" benchmarks where member and non-member data originate from different distributions.

Methodology: The FiMMIA Framework

FiMMIA addresses these challenges by shifting the focus from raw model outputs to semantic perturbations. The framework is designed to be modular and modality-agnostic, currently utilizing text-based perturbations as an "anchor" for multimodal tasks.

The FiMMIA framework consists of three main pipelines: distribution shift detection, training, and inference.

The FiMMIA pipeline operates in three stages:

  1. Neighbor Generation: For a given input (e.g., an image-text pair), the system generates 24 "neighbors" by applying slight semantic alterations to the text instruction, such as masking or swapping tokens.
  2. Feature Extraction: The system calculates the loss difference ($\Delta L$) and embedding difference ($\Delta e$) between the original sample and its perturbed neighbors.
  3. Attack Model Training: A small binary neural network is trained to recognize the "signature" of memorization. If a model has seen a data point during training, its loss on the original input is typically significantly lower than on the perturbed neighbors compared to unseen data.

Experimental Setup and Datasets

FiMMIA was evaluated across several diverse benchmarks, including:

  • MERA: A comprehensive Russian-language benchmark covering audio, video, and image modalities.
  • English Benchmarks: ScienceQA, MM-Star, and COCO-Caption2017 were used to assess cross-lingual transferability.
  • MIA Benchmarks: Existing sets like WikiMIA and VL-MIA were scrutinized to identify distribution shifts.

Results and Discussion

A key finding of this study is the prevalence of benchmark bias. We developed a "blind" baseline using only raw data statistics (e.g., SIFT for images) and found it often outperformed complex MIAs on existing benchmarks. This indicates that many previous attacks were merely detecting dataset differences rather than model memorization.

When applied to cleaner datasets, FiMMIA demonstrated robust performance across all tested modalities.

AUC-ROC performance of FiMMIA across different modalities.

As shown in the table above, FiMMIA achieved an AUC-ROC of 88.7% for images, 88.4% for video, and 81.3% for audio. On specific models like LLaVA-NeXT-Video, the attack reached a perfect 100% AUC-ROC, signaling clear data leakage. Additionally, the framework showed strong cross-model transferability; an attack model trained on the Qwen family could effectively detect membership in Llama-based models, suggesting universal memorization signatures across different architectures.

Conclusion and Future Work

FiMMIA provides a more rigorous and effective approach to detecting data leakage in MLLMs. While currently requiring "grey-box" access to model logprobs, future work will focus on extending the framework to "black-box" scenarios. Despite the computational cost of generating neighbors, FiMMIA's ability to provide realistic leakage estimates makes it a vital tool for ensuring the integrity of multimodal AI development.

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