SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.19140 · 2024

QNCD: Quantization Noise Correction for Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 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, 1 violated it and 0 have no contract verdict; 10 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-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/2403.19140.json · badge: /api/ran/2403.19140.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
huanpengchu/qncd canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
interpolate_fn Ran
ran; our contract draft was wrong, not the code
huanpengchu/qncd/ddim/dpm_solver_pytorch.py
code served (permissive licence) · get_code("6a35b62fbc80f70a")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 1) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:15:28Z). 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)

# x: PyTorch tensor with shape [N, C], where N is batch size, C is number of channels
x = torch.randn(2, 1)

# xp: PyTorch tensor with shape [C, K], where K is number of keypoints
xp = torch.linspace(0, 1, 4).unsqueeze(0).repeat(1, 1)  # shape [1, 4]

# yp: PyTorch tensor with shape [C, K]
yp = torch.linspace(0, 2, 4).unsqueeze(0).repeat(1, 1)  # shape [1, 4]

ARGS = {
    "x": x,
    "xp": xp,
    "yp": yp,
}
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 2, dtype family float, shape (2, 1) — shape (2, 1) 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
round_ste Ran
ran; our contract draft was wrong, not the code
huanpengchu/qncd/quant/quant_layer.py
code served (permissive licence) · get_code("675da8641c602b03")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 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. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:12:31Z). 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)

# The function takes a single parameter: x, which is a torch.Tensor
# It performs rounding with straight-through estimator
# We need a tensor with some values that will be rounded

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
Normalize Ran
ran; our contract draft was wrong, not the code
huanpengchu/qncd/ddim/models/diffusion.py
pointer only (licence: MIT); the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
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 Xingyu-Zheng/BiDM, 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.

exists Ran
ran, violated the contract we drafted
huanpengchu/qncd/ldm/modules/attention.py
pointer only (licence: MIT); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
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 ThomasMrY/VCT, 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.

expand_dims Ran
ran; our contract draft was wrong, not the code
huanpengchu/qncd/ddim/dpm_solver_pytorch.py
code served (permissive licence) · get_code("e6110366588c5c65")
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 4, dtype family float, shape (2, 1, 1, 1) 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 1D tensor with shape [N]
v = torch.randn(2)

# Create a dims parameter - total number of dimensions desired
dims = 4

ARGS = {
    "v": v,
    "dims": dims,
}
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 4, dtype family float, shape (2, 1, 1, 1) — shape (2, 1, 1, 1) 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
get_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huanpengchu/qncd/ddim/models/diffusion.py
code served (permissive licence) · get_code("cb49209c125de1b4")
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 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
import math

torch.manual_seed(0)

# The function takes two parameters:
# 1. timesteps: a 1D tensor of timestep indices
# 2. embedding_dim: an integer specifying the embedding dimension

# Create a small 1D tensor of timesteps (batch size 2)
timesteps = torch.tensor([0, 5], dtype=torch.int64)

# Create an embedding dimension (use 4 as specified)
embedding_dim = 4

ARGS = {
    "timesteps": timesteps,
    "embedding_dim": embedding_dim,
}
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 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
lp_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huanpengchu/qncd/quant/quant_layer.py
code served (permissive licence) · get_code("08c6ea7576220a13")
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, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () 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
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors for pred and tgt
# pred: predictions, shape (batch_size, features)
# tgt: targets, shape (batch_size, features)
batch_size = 2
feature_dim = 4

pred = torch.randn(batch_size, feature_dim)
tgt = torch.randn(batch_size, feature_dim)

# Parameters for the loss function
p = 2.0
reduction = 'none'

ARGS = {
    'pred': pred,
    'tgt': tgt,
    'p': p,
    'reduction': reduction
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 0, dtype family float, shape () — shape () 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
model_wrapper Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huanpengchu/qncd/ddim/dpm_solver_pytorch.py
code served (permissive licence) · get_code("0e7df13e9be17236")
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, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type 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
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal diffusion model
class SimpleNoiseModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x, t_input, **kwargs):
        # Model expects x (batch, features) and t_input (scalar or batch)
        return self.linear(x)

# Define a minimal classifier for classifier guidance
class SimpleClassifier(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x, t_input, cond, **kwargs):
        # Classifier expects x, t_input, and condition
        return self.linear(x)

# Define a minimal noise schedule
class SimpleNoiseSchedule:
    def __init__(self):
        self.T = 1.0
    
    def marginal_alpha(self, t):
        # Return alpha value for time t
        return torch.ones_like(t) * 0.9
    
    def marginal_std(self, t):
        # Return sigma value for time t
        return torch.sqrt(1.0 - self.marginal_alpha(t) ** 2)

# Create instances
model = SimpleNoiseModel()
noise_schedule = SimpleNoiseSchedule()

# Create sample tensors
batch_size = 2
feature_dim = 4
x_sample = torch.randn(batch_size, feature_dim)

# Create condition tensors (for classifier-free guidance)
condition = torch.randn(batch_size, 3)  # Different size to be distinct
unconditional_condition = torch.zeros(batch_size, 3)

# Create classifier function for classifier guidance
def classifier_fn(x, t_input, cond, **classifier_kwargs):
    classifier = SimpleClassifier()
    return classifier(x, t_input, cond, **classifier_kwargs)

ARGS = {
    'model': model,
    'noise_schedule': noise_schedule,
    'model_type': 'noise',
    'model_kwargs': {'extra_param': 1},
    'guidance_type': 'uncond',
    'condition': condition,
    'unconditional_condition': unconditional_condition,
    'guidance_scale': 7.5,
    'classifier_fn': classifier_fn,
    'classifier_kwargs': {'scale': 1.0}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
noise_estimation_loss Ran
ran; our contract draft was wrong, not the code
huanpengchu/qncd/ddim/functions/losses.py
code served (permissive licence) · get_code("36a45cceb1209d2f")
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, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () 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
import torch.nn as nn

torch.manual_seed(0)

# Define a simple model that takes (x, t) and outputs noise prediction
class NoisePredictor(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x, t):
        # x shape: (batch, channels, height, width) = (2, 1, 1, 4)
        # t shape: (batch,) converted to float
        # output should match x shape
        batch_size = x.shape[0]
        x_flat = x.view(batch_size, -1)
        # t is (batch,), expand it to match
        t_expanded = t.unsqueeze(1)  # (batch, 1)
        combined = x_flat + t_expanded  # simple combination
        output = self.linear(combined)
        return output.view(batch_size, 1, 1, 4)

model = NoisePredictor()

# x0: original clean image, shape (batch=2, channels=1, height=1, width=4)
x0 = torch.randn(2, 1, 1, 4)

# t: timesteps, shape (batch=2,)
t = torch.LongTensor([0, 5])

# e: noise, same shape as x0
e = torch.randn(2, 1, 1, 4)

# b: betas (noise schedule), shape (num_timesteps,) - needs at least 6 elements for index 5
b = torch.linspace(0.0001, 0.02, 10)

ARGS = {
    "model": model,
    "x0": x0,
    "t": t,
    "e": e,
    "b": b,
    "keepdim": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 0, dtype family float, shape () — shape () 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
nonlinearity Ran
ran; our contract draft was wrong, not the code
huanpengchu/qncd/ddim/models/diffusion.py
code served (permissive licence) · get_code("3137073275f8c21a")
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 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)

# The function takes a single parameter 'x' which is used with:
# - multiplication operator (*)
# - torch.sigmoid() function
# This means x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
uniq Ran
ran; our contract draft was wrong, not the code
huanpengchu/qncd/ldm/modules/attention.py
pointer only (licence: MIT); the stored copy get_code serves, from JingWu321/MUNBa, is pointer only (licence: NONE) · get_code("9a299fe5ae09e407")
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 JingWu321/MUNBa, 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.

cross_attn_forward Not yet run
unverified (harvested, no recorded run)
huanpengchu/qncd/ldm/modules/attention.py
code served (permissive licence) · get_code("51cfe301474f7004")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 5 the same month, 11 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
exists 486 other papers
309 dated earlier, 19 the same month, 147 later, 9 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
nonlinearity 156 other papers
66 dated earlier, 6 the same month, 80 later, 4 same year, order not determinable · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
uniq 115 other papers
66 dated earlier, 7 the same month, 38 later, 4 same year, order not determinable
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
and 112 more not named here
get_timestep_embedding 91 other papers
50 dated earlier, 3 the same month, 34 later, 4 same year, order not determinable · 7 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 88 more not named here
Normalize 90 other papers
50 dated earlier, 2 the same month, 35 later, 3 same year, order not determinable · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
expand_dims 39 other papers
18 dated earlier, 18 later, 3 same year, order not determinable · 4 only as an assembly brick
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2202.09778 (2022-02)
Pseudo Numerical Methods for Diffusion Models on Manifolds
2206.00927 (2022-06)
DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps
and 36 more not named here
interpolate_fn 34 other papers
15 dated earlier, 16 later, 3 same year, order not determinable
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2211.01095 (2022-11)
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
2212.09478 (2022-12)
MM-Diffusion: Learning Multi-Modal Diffusion Models for Joint Audio and Video Generation
and 31 more not named here
round_ste 27 other papers
13 dated earlier, 14 later · 13 only as an assembly brick
2203.05740 (2022-03)
QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization
2204.12322 (2022-04)
RAPQ: Rescuing Accuracy for Power-of-Two Low-bit Post-training Quantization
and 24 more not named here
lp_loss 18 other papers
10 dated earlier, 8 later · 7 only as an assembly brick
Li_RepQ-ViT_Scale_Reparameterization_for_Post-Training_Quantization_of_Vision_Transformers_ICCV_2023_paper (2023 (year only))
RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion Models
and 15 more not named here
noise_estimation_loss 14 other papers
10 dated earlier, 3 later, 1 same year, order not determinable
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2211.14680 (2022-11)
A Physics-informed Diffusion Model for High-fidelity Flow Field Reconstruction
and 11 more not named here
model_wrapper 5 other papers
3 dated earlier, 1 later, 1 same year, order not determinable
2301.11798 (2023-01)
MedSegDiff-V2: Diffusion based Medical Image Segmentation with Transformer
2305.18046 (2023-05)
Implicit Transfer Operator Learning: Multiple Time-Resolution Surrogates for Molecular Dynamics
aaai_28418 (2024 (year only))
MedSegDiff-V2: Diffusion-Based Medical Image Segmentation with Transformer
and 2 more not named here
cross_attn_forward 1 other paper
1 dated earlier
2302.04304 (2023-02)
Q-Diffusion: Quantizing Diffusion 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 revolutionized image synthesis, setting new benchmarks in quality and creativity. However, their widespread adoption is hindered by the intensive computation required during the iterative denoising process. Post-training quantization (PTQ) presents a solution to accelerate sampling, aibeit at the expense of sample quality, extremely in low-bit settings. Addressing this, our study introduces a unified Quantization Noise Correction Scheme (QNCD), aimed at minishing quantization noise throughout the sampling process. We identify two primary quantization challenges: intra and inter quantization noise. Intra quantization noise, mainly exacerbated by embeddings in the resblock module, extends activation quantization ranges, increasing disturbances in each single denosing step. Besides, inter quantization noise stems from cumulative quantization deviations across the entire denoising process, altering data distributions step-by-step. QNCD combats these through embedding-derived feature smoothing for eliminating intra quantization noise and an effective runtime noise estimatiation module for dynamicly filtering inter quantization noise. Extensive experiments demonstrate that our method outperforms previous quantization methods for diffusion models, achieving lossless results in W4A8 and W8A8 quantization settings on ImageNet (LDM-4). Code is available at: https://github.com/huanpengchu/QNCD

For agents

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

get_harvested_code_for_paper("2403.19140")
get_code_for_paper("2403.19140")
have("2403.19140")

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

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

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

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

Connect an agent — have() is free.