SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.03140 · AAAI · 2024

Fair Sampling in Diffusion Models through Switching Mechanism

Hoki Kim, Jinseong Park, Yujin Choi, Jaewook Lee, Saeroom Park

arXiv · PDF · Open in the Atlas

Code that ran

3 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; 3 failures of our instrument; 3 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/2401.03140.json · badge: /api/ran/2401.03140.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
uzn36/attributeswitching canonical (classifier label)
classifier basis: census
3 ran · 3 no recorded run
FunctionStatusWhere it lives
get_metadata Ran
ran; our contract draft was wrong, not the code
uzn36/attributeswitching/data.py
pointer only (licence: NONE) · get_code("f006efc85bb2817a")
How it ran

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

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

zero_module Ran
ran; our contract draft was wrong, not the code
uzn36/attributeswitching/unets.py
pointer only (licence: NONE) · get_code("129b804760b3115f")
How it ran

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

avg_pool_nd Not yet run
unverified (harvested, no recorded run)
uzn36/attributeswitching/unets.py
pointer only (licence: NONE) · get_code("ecd0fc28815b65ae")
How it ran

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

conv_nd Not yet run
unverified (harvested, no recorded run)
uzn36/attributeswitching/unets.py
pointer only (licence: NONE) · get_code("fe4eb545bbb728e0")
How it ran

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

get_dataset Not yet run
unverified (harvested, no recorded run)
uzn36/attributeswitching/data.py
pointer only (licence: NONE) · get_code("c9ac5b0c1a4e7ba8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, uzn36/attributeswitching 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, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 4 later) and 2 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
zero_module 196 other papers
92 dated earlier, 3 the same month, 100 later, 1 same year, order not determinable · 49 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
and 193 more not named here
conv_nd 121 other papers
66 dated earlier, 52 later, 3 same year, order not determinable · 32 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 118 more not named here
avg_pool_nd 113 other papers
66 dated earlier, 44 later, 3 same year, order not determinable · 31 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2110.11291 (2021-10)
Likelihood Training of Schrödinger Bridge using Forward-Backward SDEs Theory
and 110 more not named here
remove_module 1 other paper
1 later
2407.00626 (2024-07)
Maximum Entropy Inverse Reinforcement Learning of Diffusion Models with Energy-Based Models

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

Diffusion models have shown their effectiveness in generation tasks by well-approximating the underlying probability distribution. However, diffusion models are known to suffer from an amplified inherent bias from the training data in terms of fairness. While the sampling process of diffusion models can be controlled by conditional guidance, previous works have attempted to find empirical guidance to achieve quantitative fairness. To address this limitation, we propose a fairness-aware sampling method called attribute switching mechanism for diffusion models. Without additional training, the proposed sampling can obfuscate sensitive attributes in generated data without relying on classifiers. We mathematically prove and experimentally demonstrate the effectiveness of the proposed method on two key aspects: (i) the generation of fair data and (ii) the preservation of the utility of the generated data.

For agents

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

get_harvested_code_for_paper("2401.03140")
get_code_for_paper("2401.03140")
have("2401.03140")

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

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

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

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

Connect an agent — have() is free.