SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.08661 · 2024

MIA-Tuner: Adapting Large Language Models as Pre-training Text Detector

arXiv · PDF · Open in the Atlas

Code that ran

10 of 16 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 6 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/2408.08661.json · badge: /api/ran/2408.08661.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
wjfu99/mia-tuner canonical (classifier label)
classifier basis: census
10 ran · 6 no recorded run
FunctionStatusWhere it lives
compute_reconstruct_rate Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/my_utils.py
pointer only (licence: NONE) · get_code("04659e6b8bcf079c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

extract_event_content Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/update_wikimia.py
pointer only (licence: NONE) · get_code("16ebfa6747fcf489")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

generate_suffixes Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/my_utils.py
pointer only (licence: NONE) · get_code("92e0d0a6e852a71d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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_generic_logger Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/utils.py
pointer only (licence: NONE) · get_code("ea698fe030e4aa1b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

instruct_format Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/inference_on_zhipuai/inference_zhipuai.py
pointer only (licence: NONE) · get_code("71b1f53a37c318af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

instruct_format Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/inference_on_zhipuai/jsonl_dataset.py
pointer only (licence: NONE) · get_code("d195295e9c1a6d51")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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
wjfu99/mia-tuner/utils.py
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, wjfu99/mia-tuner 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_jsonl Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/inference_on_zhipuai/inference_zhipuai.py
pointer only (licence: NONE) · get_code("cdd7cb5df882df7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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_prompts Ran
ran, honoured the contract we drafted
wjfu99/mia-tuner/my_utils.py
pointer only (licence: NONE) · get_code("91d1d9b0c9c266d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

remove_after_assistant Ran
ran; our contract draft was wrong, not the code
wjfu99/mia-tuner/data_utils.py
pointer only (licence: NONE) · get_code("71ad10f49732634d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

count_masks Not yet run
unverified (harvested, no recorded run)
wjfu99/mia-tuner/dataset_perturb.py
pointer only (licence: NONE) · get_code("23c3416429f69fee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

index_output Not yet run
unverified (harvested, no recorded run)
wjfu99/mia-tuner/data_utils.py
pointer only (licence: NONE) · get_code("b7b5bf30620a61d6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

inference Not yet run
unverified (harvested, no recorded run)
wjfu99/mia-tuner/run_baselines.py
pointer only (licence: NONE) · get_code("7bf9fb555a194f43")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

load_model Not yet run
unverified (harvested, no recorded run)
wjfu99/mia-tuner/run_baselines.py
pointer only (licence: NONE) · get_code("c4f49de1c200db3c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

replace_masks Not yet run
unverified (harvested, no recorded run)
wjfu99/mia-tuner/dataset_perturb.py
pointer only (licence: NONE); the stored copy get_code serves, from mireshghallah/neighborhood-curvature-mia, is pointer only (licence: NONE) · get_code("11e5b3fc9bdba4a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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.

tokenize_and_mask Not yet run
unverified (harvested, no recorded run)
wjfu99/mia-tuner/dataset_perturb.py
pointer only (licence: NONE); the stored copy get_code serves, from mireshghallah/neighborhood-curvature-mia, is pointer only (licence: NONE) · get_code("7ef526c6711c4bf8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wjfu99/mia-tuner 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 1 later) and 12 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
count_masks 11 other papers
8 dated earlier, 3 later
2023.emnlp-main.616 (2023 (year only))
MULTITuDE: Large-Scale Multilingual Machine-Generated Text Detection Benchmark
2303.14822 (2023-03)
MGTBench: Benchmarking Machine-Generated Text Detection
2305.18462 (2023-05)
Membership Inference Attacks against Language Models via Neighbourhood Comparison
and 8 more not named here
replace_masks 2 other papers
2 dated earlier
2305.18462 (2023-05)
Membership Inference Attacks against Language Models via Neighbourhood Comparison
2305.19713 (2023-05)
Red Teaming Language Model Detectors with Language Models
load_dict_from_npz 1 other paper
1 dated earlier
2311.06062 (2023-11)
Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibration
tokenize_and_mask 1 other paper
1 dated earlier
2305.18462 (2023-05)
Membership Inference Attacks against Language Models via Neighbourhood Comparison

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

The increasing parameters and expansive dataset of large language models (LLMs) highlight the urgent demand for a technical solution to audit the underlying privacy risks and copyright issues associated with LLMs. Existing studies have partially addressed this need through an exploration of the pre-training data detection problem, which is an instance of a membership inference attack (MIA). This problem involves determining whether a given piece of text has been used during the pre-training phase of the target LLM. Although existing methods have designed various sophisticated MIA score functions to achieve considerable detection performance in pre-trained LLMs, how to achieve high-confidence detection and how to perform MIA on aligned LLMs remain challenging. In this paper, we propose MIA-Tuner, a novel instruction-based MIA method, which instructs LLMs themselves to serve as a more precise pre-training data detector internally, rather than design an external MIA score function. Furthermore, we design two instruction-based safeguards to respectively mitigate the privacy risks brought by the existing methods and MIA-Tuner. To comprehensively evaluate the most recent state-of-the-art LLMs, we collect a more up-to-date MIA benchmark dataset, named WIKIMIA-24, to replace the widely adopted benchmark WIKIMIA. We conduct extensive experiments across various aligned and unaligned LLMs over the two benchmark datasets. The results demonstrate that MIA-Tuner increases the AUC of MIAs from 0.7 to a significantly high level of 0.9.

For agents

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

get_harvested_code_for_paper("2408.08661")
get_code_for_paper("2408.08661")
have("2408.08661")

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

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

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

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

Connect an agent — have() is free.