SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.06322 · 2023

Post-training Quantization for Text-to-Image Diffusion Models with Progressive Calibration and Activation Relaxing

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 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; 10 failures of our instrument; 0 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its 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/2311.06322.json · badge: /api/ran/2311.06322.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
tsa18/PCR canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
FunctionStatusWhere it lives
round_ste Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/quantization_tools/quantization/loss.py
pointer only (licence: NONE) · get_code("675da8641c602b03")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsa18/PCR 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_activation_statistics Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/quantization_tools/utils/evaluation.py
pointer only (licence: NONE) · get_code("c8e5af5cd9debe67")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsa18/PCR 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)
tsa18/PCR/quantization_tools/utils/evaluation.py
pointer only (licence: NONE) · get_code("25ef415d07e43e6f")
How it ran

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

find_layers Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/quantization_tools/quantization/quantizer_utils.py
pointer only (licence: NONE) · get_code("819214853c3d34c7")
How it ran

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

generate_track_grad_hook Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/quantization_tools/quantization/quantizer.py
pointer only (licence: NONE) · get_code("0e50593a32adae82")
How it ran

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

generate_track_input_hook Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/quantization_tools/quantization/quantizer.py
pointer only (licence: NONE) · get_code("94f67aa80e10cd14")
How it ran

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

generate_track_input_output_hook Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/quantization_tools/quantization/quantizer.py
pointer only (licence: NONE) · get_code("1d1ba12cf2735f02")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsa18/PCR 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_activations Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/quantization_tools/utils/evaluation.py
pointer only (licence: NONE) · get_code("be8e0dc7aa00a307")
How it ran

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

lp_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsa18/PCR/quantization_tools/quantization/loss.py
pointer only (licence: NONE) · get_code("08c6ea7576220a13")
How it ran

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

process_to_name Ran
ran; our contract draft was wrong, not the code
tsa18/PCR/inference_sd.py
pointer only (licence: NONE) · get_code("e47f2726d3fd53e2")
How it ran

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

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 3 later) and 6 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
calculate_frechet_distance 74 other papers
47 dated earlier, 1 the same month, 25 later, 1 same year, order not determinable
1610.09585 (2016-10)
Conditional Image Synthesis With Auxiliary Classifier GANs
1706.08500 (2017-06)
GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
1807.11458 (2018-07)
To learn image super-resolution, use a GAN to learn how to do image degradation first
and 71 more not named here
round_ste 27 other papers
9 dated earlier, 17 later, 1 same year, order not determinable · 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
6 dated earlier, 10 later, 2 same year, order not determinable · 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
calculate_activation_statistics 3 other papers
2 dated earlier, 1 the same month
1904.01310 (2019-04)
DM-GAN: Dynamic Memory Generative Adversarial Networks for Text-to-Image Synthesis
2202.04053 (2022-02)
DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Models
2311.15941 (2023-11)
Tell2Design: A Dataset for Language-Guided Floor Plan Generation

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

High computational overhead is a troublesome problem for diffusion models. Recent studies have leveraged post-training quantization (PTQ) to compress diffusion models. However, most of them only focus on unconditional models, leaving the quantization of widely-used pretrained text-to-image models, e.g., Stable Diffusion, largely unexplored. In this paper, we propose a novel post-training quantization method PCR (Progressive Calibration and Relaxing) for text-to-image diffusion models, which consists of a progressive calibration strategy that considers the accumulated quantization error across timesteps, and an activation relaxing strategy that improves the performance with negligible cost. Additionally, we demonstrate the previous metrics for text-to-image diffusion model quantization are not accurate due to the distribution gap. To tackle the problem, we propose a novel QDiffBench benchmark, which utilizes data in the same domain for more accurate evaluation. Besides, QDiffBench also considers the generalization performance of the quantized model outside the calibration dataset. Extensive experiments on Stable Diffusion and Stable Diffusion XL demonstrate the superiority of our method and benchmark. Moreover, we are the first to achieve quantization for Stable Diffusion XL while maintaining the performance.

For agents

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

get_harvested_code_for_paper("2311.06322")
get_code_for_paper("2311.06322")
have("2311.06322")

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

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

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

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

Connect an agent — have() is free.