SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.05846 · 2024

An Inversion-based Measure of Memorization for Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 no recorded run); 2 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, 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/2405.05846.json · badge: /api/ran/2405.05846.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
Maryeon/InvMM canonical (classifier label)
classifier basis: plan_row
8 ran · 1 no recorded run
FunctionStatusWhere it lives
divisible_by Ran
ran, violated the contract we drafted
Maryeon/InvMM/latent-diffusion/inversion.py
pointer only (licence: NONE) · get_code("856d86b39c6005b4")
How it ran

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

has_int_squareroot Ran
ran, violated the contract we drafted
Maryeon/InvMM/stable-diffusion-v1/inversion.py
pointer only (licence: NONE) · get_code("2f7a1370a8d67d2b")
How it ran

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

calculate_frechet_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Maryeon/InvMM/ddpm/score/fid.py
pointer only (licence: NONE); the stored copy get_code serves, from liuxiao-guan/iet_agc, is pointer only (licence: WTFPL) · get_code("cd3edab30cfead44")
How it ran

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

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Maryeon/InvMM 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_inception_score Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Maryeon/InvMM/ddpm/score/inception_score.py
pointer only (licence: NONE); the stored copy get_code serves, from liuxiao-guan/iet_agc, is pointer only (licence: WTFPL) · get_code("9b81ae7906ed29eb")
How it ran

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

sqrt_newton_schulz Ran
ran; our contract draft was wrong, not the code
Maryeon/InvMM/ddpm/score/fid.py
pointer only (licence: NONE) · get_code("2dfa8886e774088c")
How it ran

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

sscd_similarity Ran
ran; our contract draft was wrong, not the code
Maryeon/InvMM/ddpm/inverion.py
pointer only (licence: NONE) · get_code("f4114f6cd2bcefff")
How it ran

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

torch_cov Ran
ran; our contract draft was wrong, not the code
Maryeon/InvMM/ddpm/score/fid.py
pointer only (licence: NONE); the stored copy get_code serves, from liuxiao-guan/iet_agc, is pointer only (licence: WTFPL) · get_code("b304af5c4fc5341a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Maryeon/InvMM 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_inception_and_fid_score Not yet run
unverified (harvested, no recorded run)
Maryeon/InvMM/ddpm/score/both.py
pointer only (licence: NONE); the stored copy get_code serves, from liuxiao-guan/iet_agc, is pointer only (licence: WTFPL) · get_code("526c471ba9b04752")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Maryeon/InvMM 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, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 7 later) and 1 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
divisible_by 17 other papers
10 dated earlier, 7 later · 5 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2203.07852 (2022-03)
Block-Recurrent Transformers
and 14 more not named here
extract 12 other papers
7 dated earlier, 1 the same month, 4 later · 3 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2302.01316 (2023-02)
Are Diffusion Models Vulnerable to Membership Inference Attacks?
2305.00562 (2023-05)
Class-Balancing Diffusion Models
and 9 more not named here
torch_cov 12 other papers
10 dated earlier, 2 later
1406.2661 (2014-06)
Generative Adversarial Networks
1811.10597 (2018-11)
GAN Dissection: Visualizing and Understanding Generative Adversarial Networks
1912.05270 (2019-12)
MineGAN: effective knowledge transfer from GANs to target domains with few images
and 9 more not named here
sqrt_newton_schulz 5 other papers
3 dated earlier, 2 later
2305.19638 (2023-05)
A Unified Framework for U-Net Design and Analysis
2310.03337 (2023-10)
Denoising Diffusion Step-aware Models
2310.11440 (2023-10)
EvalCrafter: Benchmarking and Evaluating Large Video Generation Models
and 2 more not named here
calculate_frechet_distance 3 other papers
2 dated earlier, 1 later
2305.19638 (2023-05)
A Unified Framework for U-Net Design and Analysis
2310.03337 (2023-10)
Denoising Diffusion Step-aware Models
2407.15328 (2024-07)
Iterative Ensemble Training with Anti-Gradient Control for Mitigating Memorization in Diffusion Models
get_inception_and_fid_score 3 other papers
2 dated earlier, 1 later
2305.19638 (2023-05)
A Unified Framework for U-Net Design and Analysis
2310.03337 (2023-10)
Denoising Diffusion Step-aware Models
2407.15328 (2024-07)
Iterative Ensemble Training with Anti-Gradient Control for Mitigating Memorization in Diffusion Models
get_inception_score 3 other papers
2 dated earlier, 1 later
2305.19638 (2023-05)
A Unified Framework for U-Net Design and Analysis
2310.03337 (2023-10)
Denoising Diffusion Step-aware Models
2407.15328 (2024-07)
Iterative Ensemble Training with Anti-Gradient Control for Mitigating Memorization in Diffusion Models
has_int_squareroot 2 other papers
2 dated earlier
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2208.04202 (2022-08)
Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning

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 past few years have witnessed substantial advances in image generation powered by diffusion models. However, it was shown that diffusion models are susceptible to training data memorization, raising significant concerns regarding copyright infringement and privacy invasion. This study delves into a rigorous analysis of memorization in diffusion models. We introduce InvMM, an inversion-based measure of memorization, which is based on inverting a sensitive latent noise distribution accounting for the replication of an image. For accurate estimation of the measure, we propose an adaptive algorithm that balances the normality and sensitivity of the noise distribution. Comprehensive experiments across four datasets, conducted on both unconditional and text-guided diffusion models, demonstrate that InvMM provides a reliable and complete quantification of memorization. Notably, InvMM is commensurable between samples, reveals the true extent of memorization from an adversarial standpoint and implies how memorization differs from membership. In practice, it serves as an auditing tool for developers to reliably assess the risk of memorization, thereby contributing to the enhancement of trustworthiness and privacy-preserving capabilities of diffusion models.

For agents

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

get_harvested_code_for_paper("2405.05846")
get_code_for_paper("2405.05846")
have("2405.05846")

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

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

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

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

Connect an agent — have() is free.