SegQuant: A Semantics-Aware and Generalizable Quantization Framework for Diffusion Models

Jiaji Zhang, Rui-Chao Sun, Hai-Liang Zhao, Jia-Jun Wu, Peng Chen +5 more
7/1/2025
diffusion-flow

No official code found. Best implementation: OptiSys-ZJU/segquant (6 stars, Python, Apache-2.0, last commit 2026-03-04).

Abstract

Diffusion models have demonstrated exceptional generative capabilities but are computationally intensive, posing significant challenges for deployment in resource-constrained or latency-sensitive environments. Quantization offers an effective means to reduce model size and computational cost, with post-training quantization (PTQ) being particularly appealing due to its compatibility with pre-trained models without requiring retraining or training data.

Show full abstract

However, existing PTQ methods for diffusion models often rely on architecture-specific heuristics that limit their generalizability and hinder integration with industrial deployment pipelines. To address these limitations, we propose SegQuant, a unified quantization framework that adaptively combines complementary techniques to enhance cross-model versatility. SegQuant consists of a segment-aware, graph-based quantization strategy (SegLinear) that captures structural semantics and spatial heterogeneity, along with a dual-scale quantization scheme (DualScale) that preserves polarity-asymmetric activations, which is crucial for maintaining visual fidelity in generated outputs. SegQuant is broadly applicable beyond Transformer-based diffusion models, achieving strong performance while ensuring seamless compatibility with mainstream deployment tools.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[CVPR '26] SegQuant: A Semantics-Aware and Generalizable Quantization Framework for Diffusion Models

61Python, CudaMar 20, 20259 months agoApache-2.0
diffusion-modelsframeworkquantizationtorch

Similar Papers

Cite this paper

@article{zhang2025segquant,
  title  = {SegQuant: A Semantics-Aware and Generalizable Quantization Framework for Diffusion Models},
  author = {Jiaji Zhang and Rui-Chao Sun and Hai-Liang Zhao and Jia-Jun Wu and Peng Chen and Hao Li and Yu-Ying Liu and Kingsum Chow and Gang Xiong and Shui-Guang Deng},
  year   = {2025},
  eprint = {2507.14811},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2507.14811},
  url    = {https://doi.org/10.48550/arXiv.2507.14811},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.14811.svg)](https://codeofpaper.com/paper/2507.14811)

Discussion