SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.06062 · 2023

Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibration

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2311.06062.json · badge: /api/ran/2311.06062.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
tsinghua-fib-lab/neurips2024_spv-mia canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_flash_attention Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/neurips2024_spv-mia/ft_llms/llama_patch.py
pointer only (licence: NONE) · get_code("dd3b96e42df061ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/neurips2024_spv-mia when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_labels_to_one_hot Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/neurips2024_spv-mia/attack/utils.py
pointer only (licence: NONE) · get_code("5881df8e6e3233e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/neurips2024_spv-mia when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_logger Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/neurips2024_spv-mia/attack/utils.py
pointer only (licence: NONE) · get_code("cfea06f11710d053")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/neurips2024_spv-mia when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_dict_from_npz Ran
ran; our contract draft was wrong, not the code
tsinghua-fib-lab/neurips2024_spv-mia/attack/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from wjfu99/mia-tuner, is pointer only (licence: NONE) · get_code("e14dafbc85136a7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/neurips2024_spv-mia when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

upcast_layer_for_flash_attention Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsinghua-fib-lab/neurips2024_spv-mia/ft_llms/llama_patch.py
pointer only (licence: NONE) · get_code("b54008ff07f4a94b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/neurips2024_spv-mia when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

llama_forward_with_flash_attn Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/neurips2024_spv-mia/ft_llms/llama_patch.py
pointer only (licence: NONE) · get_code("9839190ad5588fb4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/neurips2024_spv-mia when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 5 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_dict_from_npz 1 other paper
1 later
2408.08661 (2024-08)
MIA-Tuner: Adapting Large Language Models as Pre-training Text Detector

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-24.

Repositories linked to this paper

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

Abstract

Membership Inference Attacks (MIA) aim to infer whether a target data record has been utilized for model training or not. Existing MIAs designed for large language models (LLMs) can be bifurcated into two types: reference-free and reference-based attacks. Although reference-based attacks appear promising performance by calibrating the probability measured on the target model with reference models, this illusion of privacy risk heavily depends on a reference dataset that closely resembles the training set. Both two types of attacks are predicated on the hypothesis that training records consistently maintain a higher probability of being sampled. However, this hypothesis heavily relies on the overfitting of target models, which will be mitigated by multiple regularization methods and the generalization of LLMs. Thus, these reasons lead to high false-positive rates of MIAs in practical scenarios. We propose a Membership Inference Attack based on Self-calibrated Probabilistic Variation (SPV-MIA). Specifically, we introduce a self-prompt approach, which constructs the dataset to fine-tune the reference model by prompting the target LLM itself. In this manner, the adversary can collect a dataset with a similar distribution from public APIs. Furthermore, we introduce probabilistic variation, a more reliable membership signal based on LLM memorization rather than overfitting, from which we rediscover the neighbour attack with theoretical grounding. Comprehensive evaluation conducted on three datasets and four exemplary LLMs shows that SPV-MIA raises the AUC of MIAs from 0.7 to a significantly high level of 0.9. Our code and dataset are available at: https://github.com/tsinghua-fib-lab/NeurIPS2024_SPV-MIA

For agents

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

get_harvested_code_for_paper("2311.06062")
get_code_for_paper("2311.06062")
have("2311.06062")

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

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

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

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

Connect an agent — have() is free.