Diffusion Transformer Quantization with Time-Step Calibration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing quantization techniques for diffusion transformers (DiT) face challenges such as complexity, long processing times, and low quality of generated images and videos due to quantization during inference phases.

Innovation Solution

A post-training quantization method for diffusion transformers that includes a layer quantizer with a weight quantizer, activation quantizer, and time-step quantizer, which performs quantization during a calibration period separate from inference, using smooth quantization to reduce variations and time-step variance, maintaining high image and video quality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If quantization is applied to reduce memory and computational requirements, then memory usage and computational cost are reduced, but processing time increases and output quality deteriorates

Engineering Contradiction:
Improvememory requirementsVSAvoidprocessing time
Core Design Contradiction:
Quantity of substanceVSLoss of time

Solution Approach 1:

The patent performs quantization calibration during a preprocessing stage before the actual inference phase. Quantization parameters (scales and zero-points) are computed offline using calibration datasets, allowing the model to use pre-computed integer weights and activations during inference without real-time quantization overhead, thus reducing processing time while maintaining memory efficiency

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent dynamically adjusts quantization parameters (scale factors and zero-points) for different layers and time-steps based on calibration results. By optimizing these parameters offline and applying them during inference, the system achieves efficient memory usage with minimal impact on processing speed and maintains output quality

Inventive Principle:
Principle #35Parameter changes

2Quantity of substance

If quantization is applied to reduce memory and computational requirements, then memory usage and computational cost are reduced, but output quality deteriorates

Engineering Contradiction:
Improvememory requirementsVSAvoidimage and video quality
Core Design Contradiction:
Quantity of substanceVSManufacturing precision

Solution Approach 1:

The patent applies different quantization strategies to different parts of the model. Specifically, it uses layer-wise quantization where each layer has its own optimized quantization parameters, and time-step-wise quantization where parameters vary across diffusion steps. This localized approach preserves critical features in different layers and time-steps, maintaining high output quality while achieving memory compression

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent uses calibration datasets to compute quantization parameters that minimize the difference between floating-point and quantized outputs. By iteratively optimizing parameters based on calibration feedback and selecting parameters that preserve output distribution characteristics, the system maintains high image and video quality even with low-bit quantization

Inventive Principle:
Principle #23Feedback

3Manufacturing precision

If complex quantization techniques are used to maintain quality, then output quality is preserved, but device complexity increases

Engineering Contradiction:
Improveimage and video qualityVSAvoidquantization system complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The patent divides the quantization system into independent, modular components: weight quantization, activation quantization, and time-step quantization, each with its own parameter set. This segmentation allows each component to be optimized independently and simplifies the overall system architecture, making it easier to implement and tune while maintaining high output quality through coordinated parameter optimization

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20260073201A1Post-training quantization for diffusion transformers
Publication Date: 2026.03.12 SAMSUNG ELECTRONICS CO LTD
  • US20260073201A1 patent drawing
  • US20260073201A1 patent drawing
  • US20260073201A1 patent drawing

AI summary

A technique for quantization in diffusion transformers is disclosed. A weight quantizer is configured to quantize a weight matrix of a layer in a diffusion transformer block to generate a quantized weight matrix. An activation quantizer is configured to quantize an activation matrix of the layer to generate a quantized activation matrix. A time-step quantizer is configured to estimate a quantization parameter based on at least one of the quantized weight matrix or the quantized activation matrix for a time step based on a per-step calibration set.