SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.02902 · NeurIPS · 2024

Membership Inference Attacks against Large Vision-Language Models

Volkan Cevher, Yihang Chen, Yongtao Wu, Elias Rocamora, Francesco Tonin, Zhan Li

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2411.02902.json · badge: /api/ran/2411.02902.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
LIONS-EPFL/VL-MIA canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
lions-epfl/vl-mia canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
FunctionStatusWhere it lives
get_img_metric Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/VL-MIA/metric_util.py
code served (permissive licence) · get_code("35ad6ca5945fd1a4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small numpy arrays and torch tensors for the metrics
batch_size = 2
num_classes = 4

# Create probability and log probability tensors
org_prob = torch.rand(batch_size, num_classes)
log_probs = torch.log(torch.rand(batch_size, num_classes) + 0.1)
aug1_prob = torch.log(torch.rand(batch_size, num_classes) + 0.1)
aug2_prob = torch.log(torch.rand(batch_size, num_classes) + 0.1)
aug3_prob = torch.log(torch.rand(batch_size, num_classes) + 0.1)
aug4_prob = torch.log(torch.rand(batch_size, num_classes) + 0.1)

# Create numpy arrays for probability distributions
all_prob = np.random.rand(10)
p1_likelihood = np.random.rand(10)

# Create entropy and Rényi entropy arrays
entropies = np.random.rand(10) * 2.0
mod_entropy = np.random.rand(10) * 2.0
renyi_05 = np.random.rand(10) * 2.0
renyi_2 = np.random.rand(10) * 2.0
mod_renyi_05 = np.random.rand(10) * 2.0
mod_renyi_2 = np.random.rand(10) * 2.0

# Max probabilities
max_p = np.random.rand(10)

# Gap probabilities
gap_p = np.random.rand(10) * 0.1

# Perplexity
ppl = 2.5

ARGS = {
    'ppl': ppl,
    'all_prob': all_prob,
    'p1_likelihood': p1_likelihood,
    'entropies': entropies,
    'mod_entropy': mod_entropy,
    'max_p': max_p,
    'org_prob': org_prob,
    'gap_p': gap_p,
    'renyi_05': renyi_05,
    'renyi_2': renyi_2,
    'log_probs': log_probs,
    'aug1_prob': aug1_prob,
    'aug2_prob': aug2_prob,
    'aug3_prob': aug3_prob,
    'aug4_prob': aug4_prob,
    'mod_renyi_05': mod_renyi_05,
    'mod_renyi_2': mod_renyi_2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_meta_metrics Ran
ran; our contract draft was wrong, not the code
lions-epfl/vl-mia/metric_util.py
code served (permissive licence) · get_code("ddc4f87a08fc5e64")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for testing
# input_ids: sequence of token IDs, will be sliced [1:] so need at least 2 tokens
# probabilities: shape (seq_len-1, vocab_size) - probability distribution over vocab
# log_probabilities: shape (seq_len-1, vocab_size) - log probability distribution

vocab_size = 4
seq_len = 3  # After [1:] slicing, we'll have 2 positions

# input_ids: sequence of token indices
input_ids = torch.tensor([0, 1, 2], dtype=torch.long)

# probabilities: (seq_len-1, vocab_size) = (2, 4)
# Create valid probability distributions (sum to 1)
probabilities = torch.tensor([
    [0.4, 0.3, 0.2, 0.1],
    [0.1, 0.5, 0.2, 0.2]
], dtype=torch.float32)

# log_probabilities: (seq_len-1, vocab_size) = (2, 4)
# Corresponding log probabilities
log_probabilities = torch.log(probabilities + 1e-10)

ARGS = {
    'input_ids': input_ids,
    'probabilities': probabilities,
    'log_probabilities': log_probabilities
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_text_metric Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/VL-MIA/metric_util.py
code served (permissive licence) · get_code("53113dc385f93c57")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

ARGS = {
    'ppl': 45.2,
    'all_prob': np.array([0.1, 0.05, 0.15, 0.08, 0.12, 0.09, 0.11, 0.06, 0.13, 0.07, 0.03]),
    'p1_likelihood': np.array([0.2, 0.3, 0.25, 0.15]),
    'entropies': np.array([1.2, 1.5, 0.9, 1.1, 1.3, 1.0, 1.4, 0.8, 1.6, 1.2, 0.7]),
    'mod_entropy': np.array([1.1, 1.3, 0.95, 1.15, 1.25, 1.05, 1.35, 0.85, 1.55, 1.15, 0.75]),
    'max_p': np.array([0.9, 0.85, 0.88, 0.92, 0.87, 0.91, 0.89, 0.84, 0.93, 0.86, 0.90]),
    'org_prob': np.array([0.12, 0.08, 0.14, 0.10, 0.11, 0.09, 0.13, 0.07, 0.15, 0.06, 0.05]),
    'gap_p': np.array([0.5, 0.45, 0.55, 0.40, 0.60, 0.48, 0.52, 0.42, 0.58, 0.47, 0.53]),
    'renyi_05': np.array([1.8, 2.1, 1.5, 1.9, 2.0, 1.7, 2.2, 1.6, 2.3, 1.85, 1.75]),
    'renyi_2': np.array([0.8, 0.9, 0.7, 0.85, 0.95, 0.75, 1.0, 0.65, 1.05, 0.88, 0.78]),
    'text': 'The quick brown fox jumps over the lazy dog. This is a sample text for testing.',
    'ppl_lower': torch.tensor(50.5),
    'mod_renyi_05': np.array([1.85, 2.05, 1.55, 1.95, 1.95, 1.75, 2.15, 1.65, 2.25, 1.9, 1.8]),
    'mod_renyi_2': np.array([0.85, 0.95, 0.75, 0.9, 1.0, 0.8, 1.05, 0.7, 1.1, 0.92, 0.82]),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
kl_divergence Ran
ran, violated the contract we drafted
LIONS-EPFL/VL-MIA/metric_util.py
code served (permissive licence) · get_code("af3c773aaee1147e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small probability distributions
np.random.seed(0)

# p: probability distribution (must sum to 1)
p = np.array([0.2, 0.3, 0.3, 0.2])

# log_p: log probabilities of p
log_p = np.log(p)

# log_q: log probabilities of another distribution q
q = np.array([0.25, 0.25, 0.25, 0.25])
log_q = np.log(q)

ARGS = {
    "p": p,
    "log_p": log_p,
    "log_q": log_q,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_image Ran
ran, honoured the contract we drafted
LIONS-EPFL/VL-MIA/run_with_text.py
code served (permissive licence) · get_code("4552e857b0cf7ef7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import requests
from PIL import Image
from io import BytesIO
from unittest.mock import Mock, patch

# Create a small test image in memory
img = Image.new('RGB', (10, 10), color='red')
img_bytes = BytesIO()
img.save(img_bytes, format='PNG')
img_bytes.seek(0)

# Mock the requests.get to return our test image
mock_response = Mock()
mock_response.content = img_bytes.getvalue()

# Test with a URL
test_url = 'https://example.com/test.png'

ARGS = {
    'image_file': test_url
}

# Patch requests.get for the function call
import sys
sys.modules['requests'].get = Mock(return_value=mock_response)
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_image Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/VL-MIA/run_with_img.py
code served (permissive licence) · get_code("016ce1ddc61eea2c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from PIL import Image
import io

# Create a small test image in memory
def create_test_image():
    """Create a small PIL Image for testing"""
    img_array = np.random.randint(0, 256, (10, 10, 3), dtype=np.uint8)
    return Image.fromarray(img_array, 'RGB')

# Test with a PIL Image object
test_image = create_test_image()

ARGS = {
    'image_file': test_image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, requests, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_images Ran
ran, honoured the contract we drafted
LIONS-EPFL/VL-MIA/run_with_text.py
code served (permissive licence) · get_code("99d66c86efac69ff")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
from PIL import Image
import io

# Create temporary image files for testing
def create_temp_image():
    """Create a temporary RGB image file"""
    img = Image.new('RGB', (100, 100), color='red')
    fd, path = tempfile.mkstemp(suffix='.png')
    os.close(fd)
    img.save(path)
    return path

# Create two temporary image files
temp_image_1 = create_temp_image()
temp_image_2 = create_temp_image()

# Define ARGS for load_images function
ARGS = {
    'image_files': [temp_image_1, temp_image_2]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_images Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/VL-MIA/run_with_img.py
code served (permissive licence) · get_code("a37042e5de9c8a99")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from PIL import Image
from io import BytesIO

# Create a small test image in memory
def create_test_image():
    """Create a simple PIL Image for testing"""
    img_array = np.random.randint(0, 256, (10, 10, 3), dtype=np.uint8)
    return Image.fromarray(img_array, mode='RGB')

# Create test images
test_image_1 = create_test_image()
test_image_2 = create_test_image()

# Create a file-like object with image data
def create_image_bytes():
    """Create BytesIO object containing image data"""
    img = create_test_image()
    img_bytes = BytesIO()
    img.save(img_bytes, format='PNG')
    img_bytes.seek(0)
    return img_bytes

# Prepare arguments for load_images function
# The function expects image_files to be an iterable of images
# Images can be: PIL.Image.Image, URL strings, or file paths
image_files = [
    test_image_1,  # PIL Image object
    test_image_2,  # PIL Image object
]

ARGS = {
    'image_files': image_files
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, requests, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
logits_forward Not yet run
unverified (harvested, no recorded run)
LIONS-EPFL/VL-MIA/llama_adapter_v21/run_with_text.py
code served (permissive licence) · get_code("833f0b5d618afaf0")
How it ran

no invocation recorded.

shuffle_sentence Not yet run
unverified (harvested, no recorded run)
lions-epfl/vl-mia/run_with_text.py
code served (permissive licence) · get_code("208e33dc4d741d08")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 2 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_image 85 other papers
58 dated earlier, 4 the same month, 19 later, 4 same year, order not determinable
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2305.10973 (2023-05)
Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 82 more not named here
load_images 20 other papers
13 dated earlier, 2 the same month, 4 later, 1 same year, order not determinable
2312.14867 (2023-12)
VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluation
2024.findings-emnlp.268 (2024 (year only))
Math-LLaVA: Bootstrapping Mathematical Reasoning for Multimodal Large Language Models
2403.13805 (2024-03)
RAR: Retrieving And Ranking Augmented MLLMs for Visual Recognition
and 17 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large vision-language models (VLLMs) exhibit promising capabilities for processing multi-modal tasks across various application scenarios. However, their emergence also raises significant data security concerns, given the potential inclusion of sensitive information, such as private photos and medical records, in their training datasets. Detecting inappropriately used data in VLLMs remains a critical and unresolved issue, mainly due to the lack of standardized datasets and suitable methodologies. In this study, we introduce the first membership inference attack (MIA) benchmark tailored for various VLLMs to facilitate training data detection. Then, we propose a novel MIA pipeline specifically designed for token-level image detection. Lastly, we present a new metric called MaxRényi-K%, which is based on the confidence of the model output and applies to both text and image data. We believe that our work can deepen the understanding and methodology of MIAs in the context of VLLMs. Our code and datasets are available at https://github.com/LIONS-EPFL/VL-MIA.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2411.02902")
get_code_for_paper("2411.02902")
have("2411.02902")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2411.02902.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2411.02902.svg)](https://syntology.ai/paper/2411.02902)

Connect an agent — have() is free.