Papers › SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Models

SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Models

7 Nov 2024arXiv:2411.05007archive 2025-07-28

Muyang Li, Yujun Lin, Zhekai Zhang, Tianle Cai, Xiuyu Li, Junxian Guo, Enze Xie, Chenlin Meng, Jun-Yan Zhu, Song Han

Diffusion models have been proven highly effective at generating high-quality images. However, as these models grow larger, they require significantly more memory and suffer from higher latency, posing substantial challenges for deployment. In this work, we aim to accelerate diffusion models by quantizing their weights and activations to 4 bits. At such an aggressive level, both weights and activations are highly sensitive, where conventional post-training quantization methods for large language models like smoothing become insufficient. To overcome this limitation, we propose SVDQuant, a new 4-bit quantization paradigm. Different from smoothing which redistributes outliers between weights and activations, our approach absorbs these outliers using a low-rank branch. We first consolidate the outliers by shifting them from activations to weights, then employ a high-precision low-rank branch to take in the weight outliers with Singular Value Decomposition (SVD). This process eases the quantization on both sides. However, na\"{\i}vely running the low-rank branch independently incurs significant overhead due to extra data movement of activations, negating the quantization speedup. To address this, we co-design an inference engine Nunchaku that fuses the kernels of the low-rank branch into those of the low-bit branch to cut off redundant memory access. It can also seamlessly support off-the-shelf low-rank adapters (LoRAs) without the need for re-quantization. Extensive experiments on SDXL, PixArt-Σ, and FLUX.1 validate the effectiveness of SVDQuant in preserving image quality. We reduce the memory usage for the 12B FLUX.1 models by 3.5×, achieving 3.0× speedup over the 4-bit weight-only quantized baseline on the 16GB laptop 4090 GPU, paving the way for more interactive applications on PCs. Our quantization library and inference engine are open-sourced.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2411.05007")

Code

Syntology Ran 0 of 18 code samples harvested from 2 repositories linked to this paper; 18 have no recorded run.

By repository: official repository: 18 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mit-han-lab/deepcompressor officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
mit-han-lab/nunchaku officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
mit-han-lab/lmquant mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 0 ran; 0 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

18unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_prev_hidden_states_residual mit-han-lab/nunchaku/nunchaku/caching/fbcache.py official repository unverified Apache-2.0 (permissive) · c82102a2a3745dd0 · report
are_two_tensors_similar mit-han-lab/nunchaku/nunchaku/caching/fbcache.py official repository unverified Apache-2.0 (permissive) · 8ec6f93cbbfd3a66 · report
cached_forward_v2 mit-han-lab/nunchaku/nunchaku/caching/utils_v2.py official repository unverified Apache-2.0 (permissive) · e28db1110951b640 · report
ceil_divide mit-han-lab/deepcompressor/deepcompressor/backend/utils.py official repository unverified Apache-2.0 (permissive) · bfa914de69b715c5 · report
convert_smooth_upscale_to_downscale mit-han-lab/deepcompressor/deepcompressor/calib/smooth.py official repository unverified Apache-2.0 (permissive) · 42e031f1c704c7b3 · report
fetch_or_download mit-han-lab/nunchaku/nunchaku/utils.py official repository unverified Apache-2.0 (permissive) · 23b9f4cf6ae4461f · report
fuse_linears mit-han-lab/nunchaku/nunchaku/models/utils.py official repository unverified Apache-2.0 (permissive) · dc1b45320d6792a2 · report
get_buffer mit-han-lab/nunchaku/nunchaku/caching/fbcache.py official repository unverified Apache-2.0 (permissive) · 9cb37a2fb7f862c4 · report
get_rotation_matrix mit-han-lab/deepcompressor/deepcompressor/calib/rotate.py official repository unverified Apache-2.0 (permissive) · f79a3318a45c5717 · report
load_state_dict_in_safetensors mit-han-lab/deepcompressor/deepcompressor/backend/utils.py official repository unverified Apache-2.0 (permissive) · 590ae3ff37fe4304 · report
merge_safetensors mit-han-lab/nunchaku/nunchaku/merge_safetensors.py official repository unverified Apache-2.0 (permissive) · 68b668465e9fe082 · report
pack_rotemb mit-han-lab/nunchaku/nunchaku/models/embeddings.py official repository unverified Apache-2.0 (permissive) · be7522dd04a41f3f · report
pad mit-han-lab/deepcompressor/deepcompressor/backend/utils.py official repository unverified Apache-2.0 (permissive) · c40d5d2d32dae2ce · report
pad_tensor mit-han-lab/nunchaku/nunchaku/utils.py official repository unverified Apache-2.0 (permissive) · 15c37ce4033a4043 · report
rope mit-han-lab/nunchaku/nunchaku/models/embeddings.py official repository unverified Apache-2.0 (permissive) · 81885e48fa72b50a · report
run_remaining_blocks_v2 mit-han-lab/nunchaku/nunchaku/caching/utils_v2.py official repository unverified Apache-2.0 (permissive) · 3d55a6e10e2c24e7 · report
run_remaining_multi_blocks_v2 mit-han-lab/nunchaku/nunchaku/caching/utils_v2.py official repository unverified Apache-2.0 (permissive) · 9526641dce34fcf6 · report
sha256sum mit-han-lab/nunchaku/nunchaku/utils.py official repository unverified Apache-2.0 (permissive) · 72a4fce33dfa0dcc · report

Tasks

Quantization

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

1 archive method tag without a method page not shown.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections