Papers › Trap-MID: Trapdoor-based Defense against Model Inversion Attacks

Trap-MID: Trapdoor-based Defense against Model Inversion Attacks

13 Nov 2024arXiv:2411.08460archive 2025-07-28

Zhen-Ting Liu, Shang-Tse Chen

Model Inversion (MI) attacks pose a significant threat to the privacy of Deep Neural Networks by recovering training data distribution from well-trained models. While existing defenses often rely on regularization techniques to reduce information leakage, they remain vulnerable to recent attacks. In this paper, we propose the Trapdoor-based Model Inversion Defense (Trap-MID) to mislead MI attacks. A trapdoor is integrated into the model to predict a specific label when the input is injected with the corresponding trigger. Consequently, this trapdoor information serves as the "shortcut" for MI attacks, leading them to extract trapdoor triggers rather than private data. We provide theoretical insights into the impacts of trapdoor's effectiveness and naturalness on deceiving MI attacks. In addition, empirical experiments demonstrate the state-of-the-art defense performance of Trap-MID against various MI attacks without the requirements for extra data or large computational overhead. Our source code is publicly available at https://github.com/ntuaislab/Trap-MID.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2411.08460")

Code

Syntology Ran 12 of 25 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 1 ran · honoured contract; 8 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 25 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ntuaislab/trap-mid officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 12 ran; 1 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
8ran · our draft was wrong
3ran
13unverified

Licence: 0 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ntuaislab/trap-mid. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BiDOLoss ntuaislab/trap-mid/loss.py official repository ran MIT (permissive) · a884c93b164b0301 · report
coco_normalized_cca ntuaislab/trap-mid/loss.py official repository ran · our draft was wrong MIT (permissive) · 82b9f22fb0cee711 · report
cross_entropy_loss ntuaislab/Trap-MID/plgmi/losses.py official repository ran MIT (permissive) · c808ba0601a877e8 · report
distmat ntuaislab/trap-mid/loss.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e114974d0f761dd9 · report
get_block ntuaislab/Trap-MID/evolve.py official repository ran · honoured contract fingerprinted MIT (permissive) · ad5dbf57f3ea2633 · report
get_blocks ntuaislab/Trap-MID/evolve.py official repository ran · our draft was wrong MIT (permissive) · ea7941eb1ea8ffb2 · report
hsic_normalized_cca ntuaislab/trap-mid/loss.py official repository ran · our draft was wrong MIT (permissive) · 7d2973af90a23c1f · report
kernelmat ntuaislab/trap-mid/loss.py official repository ran · our draft was wrong MIT (permissive) · 92265a82f9af90ae · report
max_margin_loss ntuaislab/Trap-MID/plgmi/losses.py official repository ran MIT (permissive) · 342f31bfe572d0c8 · report
poincare_loss ntuaislab/Trap-MID/plgmi/losses.py official repository ran · our draft was wrong MIT (permissive) · b6e4cb9cdcdb7226 · report
sigma_estimation ntuaislab/trap-mid/loss.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 93214d3b236b1185 · report
to_categorical ntuaislab/trap-mid/loss.py official repository ran · our draft was wrong MIT (permissive) · af8945c5f03a178f · report
IR_50_64 ntuaislab/Trap-MID/evolve.py official repository unverified MIT (permissive) · 83508305e20056c9 · report
blend ntuaislab/Trap-MID/engine.py official repository unverified MIT (permissive) · c6aa7f9bc9167818 · report
cifar10_ls_scheduler ntuaislab/Trap-MID/loss.py official repository unverified MIT (permissive) · 35bbc328adf58afc · report
completion_network_loss ntuaislab/Trap-MID/lomma/losses.py official repository unverified MIT (permissive) · 8ceea87fe22a6f64 · report
custom_crop ntuaislab/Trap-MID/dataset.py official repository unverified MIT (permissive) · 6a21e67f80fded5c · report
init_optimizer ntuaislab/Trap-MID/utils.py official repository unverified MIT (permissive) · 4fb95eae17ae047f · report
load_attri ntuaislab/Trap-MID/lomma/dataloader.py official repository unverified MIT (permissive) · 36a55c008abe5c4b · report
ls_scheduler ntuaislab/Trap-MID/loss.py official repository unverified MIT (permissive) · 96bb2d7d804b9cad · report
make_layers ntuaislab/Trap-MID/classify.py official repository unverified MIT (permissive) · d8ff7dc2584b42c8 · report
mnist_ls_scheduler ntuaislab/Trap-MID/loss.py official repository unverified MIT (permissive) · 2b7c170416d54959 · report
noise_loss ntuaislab/Trap-MID/lomma/losses.py official repository unverified MIT (permissive) · 45a9b6bf1ce41469 · report
prepare_results_dir ntuaislab/trap-mid/plgmi/train_cgan.py official repository unverified MIT (permissive) · b1181f4abb871ade · report
test ntuaislab/Trap-MID/engine.py official repository unverified MIT (permissive) · 26ebe515279a4189 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections