SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.04092 · 2020

Knowledge-Enriched Distributional Model Inversion Attacks

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 6 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2010.04092.json · badge: /api/ran/2010.04092.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
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
scccc21/knowledge-enriched-dmi canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
completion_network_loss Ran
ran; our contract draft was wrong, not the code
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from sutd-visual-computing-group/Re-thinking_MI, is pointer only (licence: NONE) · get_code("8ceea87fe22a6f64")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sutd-visual-computing-group/Re-thinking_MI, and GitHub detected no licence in that repository 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.

dconv_bn_relu Ran
ran; our contract draft was wrong, not the code
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/generator.py
pointer only (licence: MIT); the stored copy get_code serves, from AI-secure/GMI-Attack, is pointer only (licence: NONE) · get_code("17b094c69aebe5ed")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AI-secure/GMI-Attack, and GitHub detected no licence in that repository 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_block Ran
ran, honoured the contract we drafted
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/facenet.py
code served (permissive licence) · get_code("ad5dbf57f3ea2633")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned list, ndim 2, 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
from collections import namedtuple

torch.manual_seed(0)

# The function get_block takes in_channel, depth, num_units, and stride
# It returns a list of Bottleneck namedtuples

ARGS = {
    'in_channel': 64,
    'depth': 128,
    'num_units': 3,
    'stride': 2
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
get_blocks Ran
ran; our contract draft was wrong, not the code
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/facenet.py
pointer only (licence: MIT); the stored copy get_code serves, from VladAndronik/face_swap, is pointer only (licence: NONE) · get_code("ea7941eb1ea8ffb2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from VladAndronik/face_swap, and GitHub detected no licence in that repository 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.

gradient_penalty Ran
ran; our contract draft was wrong, not the code
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/binary_gan.py
pointer only (licence: MIT); the stored copy get_code serves, from AI-secure/GMI-Attack, is pointer only (licence: NONE) · get_code("b4bca36ffb2c3329")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from AI-secure/GMI-Attack, and GitHub detected no licence in that repository 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.

l2_norm Ran
ran; our contract draft was wrong, not the code
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/facenet.py
code served (permissive licence) · get_code("c54fea429589425d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

input_tensor = torch.randn(2, 4)
axis = 1

ARGS = {
    'input': input_tensor,
    'axis': axis
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
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
log_sum_exp Ran
ran; our contract draft was wrong, not the code
scccc21/knowledge-enriched-dmi/k+1_gan.py
code served (permissive licence) · get_code("ed2c8f941b766ebb")
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 Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# Create a small tensor for testing
# The function expects a 2D tensor where it can compute max and sum along dimensions
# Shape: (batch_size=2, features=4)
x = torch.randn(2, 4)

ARGS = {
    "x": x,
    "axis": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
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_attri Not yet run
unverified (harvested, no recorded run)
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/dataloader.py
code served (permissive licence) · get_code("ec8858dc11e517c1")
How it ran

no invocation recorded.

noise_loss Not yet run
unverified (harvested, no recorded run)
SCccc21/Knowledge-Enriched-Distributional-Model-Inversion-Attacks/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from sutd-visual-computing-group/Re-thinking_MI, is pointer only (licence: NONE) · get_code("45a9b6bf1ce41469")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sutd-visual-computing-group/Re-thinking_MI, and GitHub detected no licence in that repository 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 9 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 8 later) and 0 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
l2_norm 29 other papers
8 dated earlier, 21 later · 2 only as an assembly brick
1804.07573 (2018-04)
MobileFaceNets: Efficient CNNs for Accurate Real-Time Face Verification on Mobile Devices
1903.08527 (2019-03)
Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
and 26 more not named here
get_block 27 other papers
8 dated earlier, 19 later
1804.07573 (2018-04)
MobileFaceNets: Efficient CNNs for Accurate Real-Time Face Verification on Mobile Devices
1903.08527 (2019-03)
Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set
1907.10830 (2019-07)
U-GAT-IT: Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation
and 24 more not named here
get_blocks 16 other papers
7 dated earlier, 9 later
1804.07573 (2018-04)
MobileFaceNets: Efficient CNNs for Accurate Real-Time Face Verification on Mobile Devices
1903.08527 (2019-03)
Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set
1907.10830 (2019-07)
U-GAT-IT: Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation
and 13 more not named here
completion_network_loss 4 other papers
4 later
2207.12263 (2022-07)
SecretGen: Privacy Recovery on Pre-trained Models via Distribution Discrimination
2402.04013 (2024-02)
Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defenses
2411.08460 (2024-11)
Trap-MID: Trapdoor-based Defense against Model Inversion Attacks
and 1 more not named here
dconv_bn_relu 4 other papers
4 later
2201.12179 (2022-01)
Plug & Play Attacks: Towards Robust and Flexible Model Inversion Attacks
2207.12263 (2022-07)
SecretGen: Privacy Recovery on Pre-trained Models via Distribution Discrimination
2402.04013 (2024-02)
Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defenses
and 1 more not named here
load_attri 2 other papers
2 later
2411.08460 (2024-11)
Trap-MID: Trapdoor-based Defense against Model Inversion Attacks
2509.20177 (2025-09)
Generative Model Inversion Through the Lens of the Manifold Hypothesis
noise_loss 2 other papers
2 later
2411.08460 (2024-11)
Trap-MID: Trapdoor-based Defense against Model Inversion Attacks
2509.20177 (2025-09)
Generative Model Inversion Through the Lens of the Manifold Hypothesis
gradient_penalty 1 other paper
1 dated earlier
1911.07135 (2019-11)
The Secret Revealer: Generative Model-Inversion Attacks Against Deep Neural Networks
log_sum_exp 1 other paper
1 later
2201.12179 (2022-01)
Plug & Play Attacks: Towards Robust and Flexible Model Inversion Attacks

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

Repositories linked to this paper

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

Abstract

Model inversion (MI) attacks are aimed at reconstructing training data from model parameters. Such attacks have triggered increasing concerns about privacy, especially given a growing number of online model repositories. However, existing MI attacks against deep neural networks (DNNs) have large room for performance improvement. We present a novel inversion-specific GAN that can better distill knowledge useful for performing attacks on private models from public data. In particular, we train the discriminator to differentiate not only the real and fake samples but the soft-labels provided by the target model. Moreover, unlike previous work that directly searches for a single data point to represent a target class, we propose to model a private data distribution for each target class. Our experiments show that the combination of these techniques can significantly boost the success rate of the state-of-the-art MI attacks by 150%, and generalize better to a variety of datasets and models. Our code is available at https://github.com/SCccc21/Knowledge-Enriched-DMI.

For agents

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

get_harvested_code_for_paper("2010.04092")
get_code_for_paper("2010.04092")
have("2010.04092")

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

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

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

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

Connect an agent — have() is free.