TreeQ: Pushing the Quantization Boundary of Diffusion Transformer via Tree-Structured Mixed-Precision Search

Kaicheng Yang, Kaisen Yang, Baiting Wu, Xun Zhang, Qianrui Yang +3 more
12/6/2025
cs.CV

Official code: racoonykc/TreeQ (5 stars, Apache-2.0, last commit 2025-12-06).

Abstract

Diffusion Transformers (DiTs) have emerged as a highly scalable and effective backbone for image generation, outperforming U-Net architectures in both scalability and performance. However, their real-world deployment remains challenging due to high computational and memory demands. Mixed-Precision Quantization (MPQ), designed to push the limits of quantization, has demonstrated remarkable success in advancing U-Net quantization to sub-4bit settings while significantly reducing computational and memory overhead. Nevertheless, its application to DiT architectures remains limited and underexplored. In this work, we propose TreeQ, a unified framework addressing key challenges in DiT quantization. First, to tackle inefficient search and proxy misalignment, we introduce Tree Structured Search (TSS). This DiT-specific approach leverages the architecture's linear properties to traverse the solution space in O(n) time while improving objective accuracy through comparison-based pruning. Second, to unify optimization objectives, we propose Environmental Noise Guidance (ENG), which aligns Post-Training Quantization (PTQ) and Quantization-Aware Training (QAT) configurations using a single hyperparameter. Third, to mitigate information bottlenecks in ultra-low-bit regimes, we design the General Monarch Branch (GMB). This structured sparse branch prevents irreversible information loss, enabling finer detail generation. Through extensive experiments, our TreeQ framework demonstrates state-of-the-art performance on DiT-XL/2 under W3A3 and W4A4 PTQ/PEFT settings. Notably, our work is the first to achieve near-lossless 4-bit PTQ performance on DiT models. The code and models will be available at https://github.com/racoonykc/TreeQ

View on arXivView PDF

Code Implementations(1)

racoonykc/TreeQOfficial100%
Apache-2.0

TreeQ: Pushing the Quantization Boundary of Diffusion Transformer via Tree-Structured Mixed-Precision Search

50Dec 6, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{yang2025treeq,
  title  = {TreeQ: Pushing the Quantization Boundary of Diffusion Transformer via Tree-Structured Mixed-Precision Search},
  author = {Kaicheng Yang and Kaisen Yang and Baiting Wu and Xun Zhang and Qianrui Yang and Haotong Qin and He Zhang and Yulun Zhang},
  year   = {2025},
  eprint = {2512.06353},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.06353v1}
}

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/2512.06353.svg)](https://codeofpaper.com/paper/2512.06353)

Discussion