                                Modulated Diffusion:
           Accelerating Generative Modeling with Modulated Quantization


                Weizhi Gao 1 Zhichao Hou 1 Junqi Yin 2 Feiyi Wang 2 Linyu Peng 3 Xiaorui Liu 1


                         Abstract                                    computational costs (Liu et al., 2022; Li et al., 2023). The
                                                                     iterative nature of the sampling process, which requires
     Diffusion models have emerged as powerful gen-
                                                                     multiple inferences through neural networks, makes these
     erative models, but their high computational cost
                                                                     models computationally expensive and time-intensive. This
     in iterative sampling remains a significant bot-
                                                                     limitation restricts their scalability and accessibility.
     tleneck. In this work, we present an in-depth
     and insightful study of state-of-the-art accelera-              Existing work aims to enhance the efficiency of the sam-
     tion techniques for diffusion models, including                 pling process in diffusion models through several strategies.
     caching and quantization, and reveal their limita-              Caching methods, for example, accelerate diffusion models
     tions in computation error and generation quality.              by reusing intermediate computations (Ma et al., 2024b;
     To break these limits, this work introduces Modu-               Wimbauer et al., 2024). These methods exploit significant
     lated Diffusion (MoDiff), an innovative, rigorous,              similarities between features at nearby time steps, enabling
     and principled framework that accelerates gener-                the skipping of redundant computations by directly using
     ative modeling through modulated quantization                   cached results. Additionally, quantization techniques reduce
     and error compensation. MoDiff not only inherits                inference costs by converting model weights and activations
     the advantages of existing caching and quantiza-                into integers using scaling factors (Nagel et al., 2021; Yang
     tion methods but also serves as a general frame-                et al., 2019). Among these, post-training quantization (PTQ)
     work to accelerate all diffusion models. The ad-                stands out as a promising approach since it estimates scaling
     vantages of MoDiff are supported by solid theoret-              factors in a training-free manner, making it broadly applica-
     ical insight and analysis. In addition, extensive ex-           ble to pre-trained models (Li et al., 2021). Another line of
     periments on CIFAR-10 and LSUN demonstrate                      work focuses on efficient sampling strategies with solvers
     that MoDiff significantly reduces activation quan-              or samplers, such as denoising diffusion implicit models
     tization from 8 bits to 3 bits without performance              (DDIMs), which significantly reduce the number of sam-
     degradation in post-training quantization (PTQ).                pling steps required in diffusion models, and speed up the
     Our code implementation is available at https:                  process (Song et al., 2021a).
     //github.com/WeizhiGao/MoDiff.
                                                                     Our preliminary studies reveal that while caching and PTQ
                                                                     methods have achieved notable success in accelerating the
                                                                     sampling process, they also introduce significant limitations.
1. Introduction                                                      First, our analysis reveals that caching methods can lead
Diffusion models have emerged as powerful generative mod-            to reuse errors that accumulate throughout the generation
els for producing high-quality data samples, ranging from            process, particularly when reuse schedules are not carefully
images to audio and beyond (Ho et al., 2020; Song et al.,            designed with respect to the time step and reused compo-
2021a;b). These models work by iteratively transforming              nents. For instance, when following the reuse strategy of
a simple noise distribution into complex, structured out-            DeepCache (Ma et al., 2024b), but slightly modifying the
puts, guided by a learned reverse diffusion process. Despite         reused components, we observe that the relative ℓ2 distance
their effectiveness, diffusion models come with significant          between the features of a standard diffusion model and those
                                                                     of caching methods increases significantly throughout the
   1
     Department of Computer Science, North Carolina State Uni-       generation process, reaching 40% in the final step, even
versity 2 National Center for Computational Science, Oak Ridge       when the cache is updated every three steps. On the other
National Lab 3 Department of Mechanical Engineering, Keio Uni-       hand, our studies show that diffusion models exhibit sig-
versity. Correspondence to: Xiaorui Liu <xliu96@ncsu.edu>.
                                                                     nificant outliers in activations and variations in activation
Proceedings of the 42 nd International Conference on Machine         ranges across time steps, leading to substantial quantization
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025          errors under low-bit activation quantization.
by the author(s).

                                                                 1
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

In this work, we propose Modulated Diffusion (MoDiff),                2. Related Work
an innovative, rigorous, and principled framework that ac-
celerates the diffusion sampling process while addressing             Diffusion Models. Diffusion models have become a corner-
the limitations of existing methods. Specifically, we propose         stone of generative modeling, achieving remarkable success
modulated computation to significantly reduce activation              across diverse domains such as image synthesis, data distilla-
quantization error by leveraging the computation redun-               tion, and molecular modeling (Ho et al., 2020; Hoogeboom
dancy across the diffusion time steps. Moreover, we further           et al., 2022; Su et al., 2024). These models operate on an
introduce a novel error compensation modulation to address            iterative framework that involves adding noise in the for-
error accumulation. Furthermore, we provide theoretical               ward process and learning to remove it during the reverse
analyses to explain why the temporal difference results in            process (Dhariwal & Nichol, 2021). However, the iterative
lower quantization error and how error compensation effec-            nature of the sampling process makes generation compu-
tively eliminates accumulated errors. Our extensive experi-           tationally expensive (Song et al., 2021b; Ho et al., 2020).
ments validate the effectiveness of this framework, demon-            To address this efficiency bottleneck, a line of research has
strating that MoDiff pushes the activation quantization limit         focused on improving the sampling process by optimizing
of PTQ methods from 8 bits to as low as 3 bits without any            the variance schedule or employing more advanced ODE
performance degradation, all within a training-free manner.           solvers (Song et al., 2021a; Nichol & Dhariwal, 2021; Liu
                                                                      et al., 2022). For example, Denoising Diffusion Implicit
The proposed MoDiff framework inherits the advantages of              Models (DDIMs) introduce a non-Markovian formulation
existing acceleration methods while addressing their limi-            for the diffusion process, significantly reducing the number
tations. It significantly generalizes the caching techniques          of sampling steps required (Song et al., 2021a).
through modulated computation but reduces apprpoximation
and accumulated error. Additionally, from a quantization              Caching Methods. Caching methods for accelerating dif-
perspective, MoDiff significantly reduces the quantization            fusion models aim to reduce redundant computations dur-
error of existing PTQ methods, enabling the use of much               ing the generative process by reusing intermediate results,
lower activation bit-widths without sacrificing performance.          thereby improving efficiency (Ma et al., 2024b; Wimbauer
Notably, MoDiff is agnostic to quantization algorithms and            et al., 2024; Ma et al., 2024a). These strategies address the
can be generally applied across different methods, mak-               high computational cost by selectively storing intermedi-
ing its contribution orthogonal to existing PTQ techniques.           ate states from the reverse diffusion process for reuse in
Furthermore, MoDiff imposes no constraints on samplers,               subsequent steps. For example, DeepCache reuses cached
ensuring compatibility with solver-based acceleration meth-           upsampled features every N time steps (Ma et al., 2024b).
ods. In summary, our main contributions are as follows:               However, it can accumulate errors in the generation process
                                                                      with the reusing technique. Existing works rely on heuristic
                                                                      approaches to determine N , which limits its generalizabil-
  • We present an in-depth and insightful preliminary study           ity. Some methods also attempt to preserve model perfor-
    that reveals the limitations of existing acceleration tech-       mance by fine-tuning diffusion models, but this approach
    niques for diffusion models, such as caching and quan-            can be computationally expensive (Wimbauer et al., 2024;
    tization methods, highlighting issues like error accu-            Ma et al., 2024a; Chen et al., 2024). In contrast to caching
    mulation and high approximation error.                            methods, our proposed MoDiff introduces a novel and prin-
                                                                      cipled framework to leverage the computation redundancy
  • We propose MoDiff, a novel, rigorous, and principled
                                                                      between sampling steps through modulated computing.
    framework that accelerates diffusion models through
    modulated quantization and error compensation. MoD-               Post-Training Quantization. Quantization aims to reduce
    iff not only inherits the advantages of existing methods          inference costs by converting floating-point numbers into
    but also overcomes their limitations, enabling signifi-           low-bit integers (Nagel et al., 2021; Yang et al., 2019) us-
    cantly more aggressive activation quantization.                   ing scaling factors. Post-training quantization (PTQ) has
                                                                      emerged as a powerful approach due to its training-free na-
  • We provide theoretical analyses of quantization error             ture, making it suitable for pre-trained models (Li et al.,
    and the error compensation mechanism in MoDiff,                   2021). Several studies have explored the application of
    demonstrating that our approach can significantly re-             PTQ techniques to diffusion models (Li et al., 2023; Wang
    duce the required activation bit precision in PTQ.                et al., 2024; Huang et al., 2024; Shang et al., 2023; He et al.,
                                                                      2023b; Zhao et al., 2025). For example, Q-Diffusion intro-
  • Extensive experiments on CIFAR-10, LSUN-Churches,                 duces a time-step-aware calibration data sampling mecha-
    and LSUN-Bedroom show that MoDiff enables state-                  nism tailored for diffusion models, achieving strong perfor-
    of-the-art quantization techniques to reduce activation           mance with 8-bit activations. However, a common issue
    precision from 8 bits to as low as 3 bits without any             is that existing methods struggle to quantize activations to
    performance degradation in a training-free manner.

                                                                  2
                                        Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

                    1.0         w/o reuse        5 step                                                           Activation     Temporal Difference

                    0.8         3 step           10 step
 Relative 2 Error



                    0.6
                    0.4
                    0.2
                    0.0
                          100   80    60 40       20       0
                                     Time Step

                                     (a)                                                          (b)
Figure 1. A preliminary study using DDIM on CIFAR-10 with 100 generation steps. (a) The relative ℓ2 distance between the cached and
standard diffusion features in middle block, initialized from the same noise. As the reuse frequency increases, error accumulation becomes
more significant. (b) The distribution of activations and their temporal differences across different diffusion time steps. The blue violin
plots show that activation ranges fluctuate over time and exhibit outliers with long-tailed distributions. In contrast, the orange violin plots
demonstrate more consistent ranges and concentrated distributions.


low bitwidths due to the presence of outlier values with                           tribution step by step with a denoising network:
large dynamic ranges (Xiao et al., 2023; Feng et al., 2024).
                                                                                            pθ (xt−1 |xt ) = N (xt−1 ; µθ (xt , t), σt2 I),            (2)
One related method is PTQD (He et al., 2023b), which post
processes quantized models to reduce the quantization error.                       where µθ (xt , t) is predicted by a neural network, while σt is
We pose the detailed comparison to PTQD in Appendix E.                             typically set to βt . With this parametrization, the sampling
                                                                                   process can be expressed as:
Another line of research focuses on quantization-aware train-                                                                        
ing (QAT), which integrates the quantization process into                                          1                 βt
                                                                                     xt−1 = √               xt − √         ϵθ (xt , t) + σt z, (3)
the training phase, enabling model parameters to adapt to                                       1 − βt             1 − ᾱt
quantization (Nagel et al., 2022). These methods effectively                                    Qt
address the challenges of low-bit quantization in diffusion                        where ᾱt = i=1 (1 − βt ), and ϵθ (xt , t) represents a U-Net
models (Feng et al., 2024; He et al., 2023a). However, QAT                         that predicts the noise. However, since generating samples
approaches require costly retraining of diffusion models,                          requires predicting noise across T steps, the diffusion pro-
which is orthogonal to but not the focus of this work.                             cess is computationally expensive for practical applications.
In contrast, the proposed MoDiff framework can be seam-                            Existing approaches reuse historical computations to accel-
lessly integrated to state-of-the-art PTQ methods to reduce                        erate the sampling process by exploiting the similarities
activation bit-widths without additional training.                                 between features at adjacent time steps in diffusion mod-
                                                                                   els (Ma et al., 2024b; Wimbauer et al., 2024; Ma et al.,
3. Preliminary Study                                                               2024a). However, these caching methods directly reuse
                                                                                   past information, which often cause approximation errors
In this section, we introduce the fundamental concepts of                          and deviate from the standard generation path of diffusion
diffusion models and quantization. Additionally, we ex-                            models. This discrepancy introduces errors at each reuse
amine the challenges associated with existing caching and                          step, which accumulate over multiple iterations. As a result,
quantization methods with preliminary experiments.                                 these techniques require careful design of reuse schedules
                                                                                   and even rely on retraining to tune models, necessitating
3.1. Diffusion Models and Cache Reusing                                            expensive hyperparameter search.
Diffusion models consist of two processes: a forward pro-                          To illustrate the impact of reuse schedules, we conduct a
cess and a backward process, operating over T steps. Using                         preliminary study, where we apply caching to the residual
Denoising Diffusion Probabilistic Models (DDPMs) as an                             connections of the U-Net in DDIM on CIFAR-10 without
example (Ho et al., 2020), the forward process incrementally                       tuning following Ma et al. (2024b). Specifically, we reuse
adds noise to the image at each step, gradually transforming                       the activations from the previous time step for N − 1 steps
the data distribution into a standard Gaussian distribution:                       and update them at every N -th step. We compare the rela-
                                p                                                  tive ℓ2 distance between standard diffusion models and the
         q(xt |xt−1 ) = N (xt ; 1 − βt xt−1 , βt I).      (1)
                                                                                   variant with reused caching in middle block. As shown in
Meanwhile, the reverse process progressively denoises the                          Figure 1a, the relative error increases significantly as the
Gaussian distribution, reconstructing the original image dis-                      number of reuse steps and the time steps grows.

                                                                               3
                       Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization


                                   (𝒍)
                                  )𝑻
                                  𝒐
                                                    (𝒍)
                                                  )𝑻%𝟏
                                                  𝒐                                                   )𝑻
                                                                                                      𝒐
                                                                                                        (𝒍)
                                                                                                                       )𝑻%𝟏
                                                                                                                       𝒐
                                                                                                                         (𝒍)
                                                                                                                                      …
                                 𝑨(𝒍)             𝑨(𝒍)                                                𝑨(𝒍)             𝑨(𝒍)
                  𝒍-𝐭𝐡 𝒍𝒂𝒚𝒆𝒓                                 …                         𝒍-𝐭𝐡 𝒍𝒂𝒚𝒆𝒓

                                 𝑸(𝒍)             𝑸(𝒍)                                                𝑸(𝒍)     )𝑻
                                                                                                               𝒂
                                                                                                                 (𝒍)
                                                                                                                       𝑸(𝒍)           …
                                   (𝒍)              (𝒍)                                                 (𝒍)             (𝒍)
                                 𝒂𝑻               𝒂𝑻%𝟏                                                𝒂𝑻               𝒂𝑻%𝟏

        U-Net                  𝒕=𝑻                         𝒕=𝟎               U-Net                  𝒕=𝑻                         𝒕=𝟎

                      (a) Standard Quantization                                           (b) Quantization w/ MoDiff
                                                                                                                                (l)
Figure 2. (a) Standard PTQ methods: The computations at different time steps are independent, with the raw activation at serving
directly as the input to the quantizer. (b) Quantization with our MoDiff: For each linear operator, such as linear layers and convolutional
                                                            (l)                                    (l)      (l)
layers, we cache the output from the previous time step, ât , and input the temporal difference at−1 − ât into the quantizer. The final
                                                                        l                                                   (l)
output is obtained by aggregating the current computation results of A with the cached output from the previous step ôt .


3.2. Post-Training Quantization                                         low-bit activation quantization, as shown in Figure 2. We
                                                                        introduce a high-level motivation in Section 4.1. To ease the
Quantization is an effective technique to reduce the infer-
                                                                        understanding, we first present an equivalent reformulation
ence cost of deep learning models by utilizing low-precision
                                                                        of the diffusion process to reduce the quantization error in
integers (Nagel et al., 2021). Given x, we denote the integer
                                                                        Section 4.2. Then, we propose novel error-compensated
representation as xint and the dequantization vector as Q(x):
                                                                        modulation to address accumulated error across the diffu-
                            jxm
             xint = clamp(       + z; 0, 2b − 1),         (4)           sion steps in Section 4.3. Computation and memory costs
                              s                                         are discussed in Section 4.4, followed by theoretical error
             Q(x) = s(xint − z),                          (5)           analyses of our MoDiff in Section 4.5.
where b represents the quantization bandwidth, and clamp(·)
enforces value cut-offs between two integer bounds. The                 4.1. High-Level Motivation
parameters s and z correspond to the scale factor and zero              While the heuristic design of caching methods exhibit sig-
point, respectively. PTQ (Shang et al., 2023) dynamically               nificant and accumulated computation errors, the motivation
estimates the parameters s and z or derives them using                  to leverage computation in previous time steps to reduce
calibration datasets with a pre-trained model. Due to its               computation in future time steps is still of great interest. In-
simplicity and efficiency, PTQ is widely adopted.                       spired by the similarity of activation patterns across adjacent
The major challenge for PTQ methods in diffusion models                 time steps, we measure the temporal differences between
                                                                                                                            (l)    (l)
is to use low-bit quantization. First, the activation tensor            activation values over the diffusion process as at − at+1 ,
                                                                                 (l)
ranges vary significantly across different time steps, as illus-        where at represents the activation at time step t for the l-th
trated by the height of the blue violin plot in Figure 1b. This         layer of the denoising network. The distribution of these
variation makes it difficult for a shared scaling parameter s           differences is visualized in Figure 1b in orange color. Com-
to handle all ranges. Second, significant outlier values exist          pared to the activations, their temporal differences exhibit a
within the activations at each time step. In Figure 1b, the             much smaller and more consistent range across time steps.
width of the violin plot represents the distribution of activa-         Moreover, their distribution is more concentrated, effec-
tion values for a specific time step. These outliers make it            tively reducing the presence of outliers. These interesting
challenging to select a scaling parameter s that minimizes              observation and analyses suggest that a strong motivation to
both clipping error and rounding error simultaneously.                  leverage this temporal stability with quantized computing
                                                                        to alleviate the computation errors in existing approaches.
In a nutshell, both caching and PTQ methods face their
own inherent challenges, highlighting the need for a more
effective strategy that can incorporate historical information          4.2. Modulated Quantization
while also mitigating the effects of activation distributions.          Notation. Let A(l) (·) denote the l-th linear operator in the
                                                                        denoising network, such as the linear and convolutional lay-
4. Modulated Diffusion                                                  ers, where l ∈ {1, 2, . . . , L}. We denote the input and
                                                                                                                             (l)
                                                                        output activations for A(l) (·) at time step t as at and
In this section, we propose Modulated Diffusion (MoDiff),                (l)         (l)
                                                                        ot = A(l) (at ), respectively. Note that we focus on accel-
a novel framework to accelerate all diffusion models with

                                                                    4
                     Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

erating the computation of linear operators, such as linear                     4.3. Error-Compensated Modulation
and convolutional layers, since they are the most costly op-
                                                                                While the modulated computation and quantization in
erations in neural networks and account for the majority of
                                                                                Eq. (7) can reduce the activation quantization errors, com-
computation during data generation (Zhao et al., 2024).
                                                                                paring with the full-precision computation in Eq. (6), the
Motivated by the insights from Section 4.1, we propose a                        computation error ot − ôt will be carried over across the
novel modulated computation to reformulate the computa-                         diffusion time steps and cause large accumulated errors. In
tion of each l-th linear layer in the denoising network in
diffusion models as follows:                                                    this section, we introduce a novel error-compensated modu-
   (l)                 (l)
                                                                                lation to address the error accumulation, which leads to the
  
   oT        = A(l) (aT )                                                      complete MoDiff framework as follows:
  
  
    (l)                (l)              (l)           (l)      (l)
              = A(l) (aT −1 ) = A(l) (aT −1 − aT ) + oT                            âT      = Q(aT )
  
  
   o
   T −1
                                                                                                                                             (8)
  
                                                                                   ôT      = A(âT )                                         (9)
  
              ···
  
  
                                                                      (6)
     (l)                (l)              (l)         (l)        (l)                âT −1 = Q(aT −1 − âT ) + âT                            (10)
    ot        = A(l) (at )      = A(l) (at − at+1 ) + ot+1
  
  
  
                                                                                                                        
                                                                                   ôT −1 = A(âT −1 ) = A Q(aT −1 − âT ) + ôT
  
  
                                                                                                                                            (11)
  
  
  
             ···
                                                                                            ···
  
  
   (l)                 (l)              (l)         (l)     (l)                                                                             (12)
    o1        = A(l) (a1 )      = A(l) (a1 − a2 ) + o2
                                                                                    ât     = Q(at − ât+1 ) + ât+1                         (13)
                  (l)
                                                                                                                       
where the output ot in time step t can be equivalently com-                         ôt     = A(ât ) = A Q(at − ât+1 ) + ôt+1             (14)
                                             (l)
puted by incrementally refining the output ot+1 computed
                                                                                            ···                                              (15)
in previous time step t + 1 with the modulated computation
       (l)    (l)
A(l) (at − at+1 ). Specifically, the second equality in each                        â1     = Q(a1 − â2 ) + â2                             (16)
                                                                                                                     
equation holds because of the linearity of the operator A(l) :                      ô1     = A(â1 ) = A Q(a1 − â2 ) + ô2                 (17)
          (l)          (l)          (l)            (l)
   A(l) (at ) = A(l) (at ) − A(l) (at+1 ) + A(l) (at+1 )                        Specifically, we construct an intermediate variable ât to
                                                                                store the activation that is actually computed through quan-
                          (l)      (l)         (l)
               = A(l) (at − at+1 ) + ot+1 .                                     tization, which keeps track of the quantization errors:
We further propose to apply a quantizer Q to approximate                                  et = (at − ât+1 ) − Q(at − ât+1 )                (18)
the temporal difference before quantized computation1 :                                     = (at − ât+1 ) − (ât − ât+1 ) = at − ât ,
                        
   
   
     ôT      = A Q(aT )               ≈ A(aT )                                where the second equation comes from Eq. (13). Since we
   
   
   
                                                                             do not have access to the accurate ot but only its approx-
     ôT −1    = A Q(aT −1 − aT ) + ôT ≈ A(aT −1 )
   
                                                                                imation ôt , the incremental refinement will be on top of
   
   
   
   
                                                                                ôt . Given that ôt = A(ât ) is a feature tranformation of ât ,
   
   
   
              ···
                                                                    (7)       the residual should be computed based on ât instead of at ,
     ôt       = A Q(at − at+1 ) + ôt+1 ≈ A(at )                               which will compensate the errors and avoid error accumu-
   
   
   
   
   
   
                                                                               lation. Note that as shown in Eq. (14), ôt = A(ât ) only
   
              ···
                                                                                represents their relation, but the                  computa-
                                                                                                                    actual quantized
   
   
   
                            
   
    ô1       = A Q(a1 − a2 ) + ô2                 ≈ A(a1 )                   tion is the following: ôt = A Q(at − ât+1 ) + ôt+1 . A
   

                                                                                slight rewrite of this update clearly illustrates how quantiza-
                                   (l)   (l)                                    tion error is compensated across the diffusion time steps:
Since the temporal difference at −at+1 has a much smaller
and concentrated range as discussed in Section 4.1, its quan-
                                                                                                                      
                                                                                     ôt = A Q(at − at+1 + et+1 ) + ot+1 − A(et+1 ),
tization will incur much smaller quantization errors.
Remark 4.1. When the input range falls bellow a tolerable                       where the previous time step misses the computation of
threshold due to significant computation redundancy, MoD-                       A(et+1 ) but will be compensated in the next time step by
iff allows assigning a 0-bit representation in the quantizer,                   adding et+1 into the input activations.
which skips the computation. This behavior subsumes exist-                      Remark 4.2. The proposed MoDiff framework is agnostic
ing heuristic caching strategies (Ma et al., 2024b) as special                  to quantization methods and can be applied to existing PTQ
cases within a generalizable and principled framework, al-                      methods. Therefore, it is orthogonal to the contributions of
lowing more flexible control over caching.                                      prior works in this area. Moreover, we argue that MoDiff
   1
     Note that the proposed modulated computation will be inde-                 is not limited to quantization. It can be extended to other
pendently applied to every costly linear neural layer, so we omit               techniques, such as sparse techniques (Han et al., 2015),
the superscript index (l) in the rest of the paper for simplicity.              further demonstrating its generality and versatility.

                                                                            5
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

4.4. Computation and Memory Costs                                    The quantization error is bounded in terms of the quantiza-
                                                                     tion scaling factor s, which depends on the range of x and
Computation Cost. We categorize the computing opera-
                                                                     the bandwidth b. Specifically, we have:
tions into three main types: matrix multiplication, matrix
addition, and quantization/dequantization. For matrix mul-                                            (max(x) − min(x))2 d
tiplication, our method maintains integer-only operations,              ∥x − Q(x)∥22 ≤ s2 d =                              .      (23)
                                                                                                           (2b − 1)2
identical to standard quantization techniques. Additionally,
by reducing quantization errors, our approach enables the
                                                                     The proof is provided in Appendix A.1. Theorem 4.3 estab-
use of a lower bandwidth for activations, potentially reduc-
                                                                     lishes that quantization error is directly influenced by the
ing the computation cost. For matrix addition, our approach
                                                                     input range and quantization bandwidth. Specifically, for
introduces two additional operations in at − ât+1 and ôt+1 .
                                                                     a smaller input range, lower-bit quantization can achieve
For Quantization and Dequantization, only dequantization
                                                                     the same error bound. Our preliminary results show that
on Q(at − ât+1 ) is an additional step introduced by our
                                                                     the residuals exhibit a significantly reduced activation range,
approach. Modern quantization techniques (Nagel et al.,
                                                                     more than 10× smaller, which suggests that activation bit
2021) indicate that matrix multiplication is the dominant
                                                                     precision can be lowered by at least 3 bits while maintaining
computational cost during inference. Since our method in-
                                                                     comparable quantization error.
troduces only a minimal number of additional additions and
quantization/dequantization operations, their overhead is            To illustrate how error-compensated modulation eliminates
negligible in comparison to matrix multiplication. Conse-            error accumulation, we assume that the inputs are indepen-
quently, our approach do not increase or even decrease the           dent for simplicity. The following theorem demonstrates
computation cost compared to existing PTQ methods.                   that it reduces error accumulation at an exponential rate:
Memory Consumption. One limitation of our method is                  Theorem 4.4. Let A(·) be a linear operator and consider
that it requires additional memory to store the intermediate         a sequence of inputs aT , aT −1 , . . . , a1 , with corresponding
variable at and outputs ot for each layer. However, as               outputs oT , oT −1 , . . . , o1 . Given a quantization operator
demonstrated in Section 5.3, this memory overhead remains            Q, we estimate the outputs using standard modulation:
negligible compared to the model size when using small
batch sizes and low-bit activation quantization. Furthermore,                       õt = A(Q(at − at+1 )) + õt+1 ,              (24)
we can locally select the layers that use MoDiff, allowing                         õT = A(aT ),                                  (25)
for a trade-off between performance and memory efficiency.
                                                                     where t = T −1, . . . , 2, 1. Similarly, we estimate the outputs
4.5. Theoretical Error Analysis                                      using error-compensated modulation:

The proposed MoDiff framework enables quantization with                             ôt = A(Q(at − ât+1 )) + ôt+1 ,             (26)
low quantization error while mitigating error accumulation                          ât = Q(at − ât+1 ) + ât+1 ,                (27)
through error compensation. In this section, we provide
                                                                                   ôT = A(aT ),        âT = aT ,                (28)
theoretical analyses to formally justify these advantages.
The following theorem establishes the relationship between           where t = T − 1, . . . , 2, 1. Suppose the quantization opera-
input magnitude and quantization error. For simplicity, we           tor Q satisfies the following error bound:
use dynamic quantizers, which determine the scaling pa-
rameter based on the input values to avoid clipping errors,                     ∥x − Q(x)∥22 ≤ c∥x∥22 ,         0 < c < 1.        (29)
and we consider vector inputs instead of assuming a specific
distribution for the input data.                                     Then, the estimation errors are bounded as follows:
Theorem 4.3 (Quantization Error). Let x ∈ Rd be a vector,                                T −1
and let the quantization bandwidth be b ∈ N. Define the                                  X
                                                                       ∥ot − õt ∥22 ≤          2T −k−1 c∥A∥22 ∥ak − ak+1 ∥22 ,   (30)
max-min dynamic quantizer as follows:
                                                                                         k=t
                     max(x) − min(x)                                                     T −1
                 s=                     ,                (19)                            X
                          2b − 1                                       ∥ot − ôt ∥22 ≤          (2c)T −k−1 ∥A∥22 ∥ak − ak+1 ∥22 . (31)
                                                                                       k=t
                          min(x)
                   z= −              ,                   (20)
                              s
                        jxk                                          The proof is provided in Appendix A.2. Here, we assume
           xint = clamp(     + z, 0, 2b − 1).            (21)        that the quantization error is bounded by the input magni-
                         s
                                                                     tude with a coefficient smaller than 1/2, which is a direct
The corresponding dequantization is given by:
                                                                     corollary of Theorem 4.3 with appropriate b as shown in Ap-
                    Q(x) = s(xint − z).                  (22)        pendix A.3. Theorem 4.4 provides two key insights. First,

                                                                 6
                       Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization


Table 1. The IS, FID, sFID, and GBOPs for CIFAR-10 with DDIM under different precisions. The best performance is bolded.
        Methods                Bits (W/A)   GBops   IS ↑    FID ↓       sFID ↓   Bits (W/A)   GBops   IS ↑   FID ↓    sFID ↓
        Full Prec. (Act)          8/32      1636    9.00     4.24        4.41       4/32       818    8.78    5.09     5.19
        Q-Diff                                      9.48     3.75        4.49                         9.12    4.93     5.03
        Q-Diff+MoDiff (Ours)                        9.10     4.10        4.39                         9.08    5.13     5.18
                                  8/8        409                                    4/8        204
        LCQ                                         9.01     4.21        4.41                         8.80    4.96     4.94
        LCQ+MoDiff (Ours)                           9.10     4.10        4.39                         9.08    4.95     4.95
        Q-Diff                                      8.76    29.16       13.81                         8.51   28.60    15.09
        Q-Diff+MoDiff (Ours)                        9.38     4.19       4.32                          8.85    5.62    4.93
                                  8/6        307                                    4/6        153
        LCQ                                         9.24     4.15       4.61                          9.01    4.49    4.94
        LCQ+MoDiff (Ours)                           9.01     4.21        4.40                         8.80    5.01    4.92
        Q-Diff                                       2.19   332.75      100.37                        2.47   325.76   92.84
        Q-Diff+MoDiff(Ours)                          9.71    13.41       11.25                        9.60    13.62   11.94
                                  8/4        205                                    4/4        102
        LCQ                                         10.01    24.09      13.07                         9.72    22.50   12.95
        LCQ+MoDiff (Ours)                            9.08     4.31       4.38                         8.82     5.10    4.94
        Q-Diff                                      1.19    457.35      165.79                        1.19   457.35   165.79
        Q-Diff+MoDiff (Ours)                        5.19     90.34       41.26                        7.34    47.35    13.87
                                  8/3        153                                    4/3        77
        LCQ                                         4.06    143.39       33.97                        3.86   146.29    33.56
        LCQ+MoDiff (Ours)                           9.02      4.14        4.38                        8.79     4.98    4.95
        Q-Diff                                      1.19    457.34      165.79                        1.19   457.34   165.79
        Q-Diff+MoDiff (Ours)                        1.82    266.68       75.88                        1.36   387.75   168.38
                                  8/2        102                                    4/2        51
        LCQ                                         1.20    429.59      146.46                        1.20   430.26   146.91
        LCQ+MoDiff (Ours)                           8.94     15.85        8.42                        8.63    18.10    11.02



MoDiff without error compensation accumulates error more                of 4 and 8, referred to as LDM-4 (Bedrooms) and LDM-8
than linearly over the generation steps, making its perfor-             (Churches), respectively (Rombach et al., 2022). We use
mance highly dependent on the quantization parameter c.                 500 sampling steps for LDM-4 and 200 steps for LDM-8. To
Second, error-compensation modulation in MoDiff ensures                 demonstrate the generalization capability of MoDiff across
that errors from previous time steps are reduced exponen-               datasets and architecture, we also conduct experiments on
tially, preventing error accumulation.                                  Stable Diffusion and Transformer-based models (Peebles
                                                                        & Xie, 2023) on MS-COCO (Lin et al., 2014) and Ima-
Finally, we note that Theorem 4.4 assumes independent in-
                                                                        geNet (Russakovsky et al., 2015), respectively. Additional
puts. However, in diffusion models, at is computed layer by
                                                                        details and results are provided in Appendix C.1 and C.2.
layer using ot , which can further accumulate errors. As a
result, error compensation has greater meaning in the appli-            We assess generation quality using Inception Score
cation of diffusion models compared to standard modulation,             (IS) (Salimans et al., 2016), Fréchet Inception Distance
as counteracting error propagation is more indispensable.               (FID) (Heusel et al., 2017), and Sliced Fréchet Inception
                                                                        Distance (sFID) (Salimans et al., 2016) for CIFAR-10, and
5. Experiments                                                          FID and sFID for the LSUN, as IS is not a reliable met-
                                                                        ric for datasets that significantly deviate from ImageNet
In this section, we first introduce the experimental setup.             categories. All metrics are computed based on 50,000 gener-
We then evaluate our method across different quantization               ated images. Additionally, we provide precision and recall
precisions, demonstrating its ability to significantly reduce           measurements (Sajjadi et al., 2018) in Appendix C.3.
activation bit requirements compared to existing methods
                                                                        Quantization Methods. We use dynamic channel-wise
across multiple datasets. Additionally, we conduct com-
                                                                        quantization and Q-Diffusion as the base quantization meth-
prehensive ablation studies and present visualizations of
                                                                        ods and apply MoDiff to both (Dettmers et al., 2022; Li et al.,
generated images to assess the effectiveness of MoDiff.
                                                                        2023). We also present results using dynamic tensor-wise
                                                                        quantization in Appendix D.2. Additionally, we include re-
5.1. Experiment Settings                                                sults with full-precision activation (32 bits), for comparison.
Datasets, Models, and Evaluation. We majorly evaluate                   For weight quantization, we adopt the MSE reconstruction
the effectiveness of our MoDiff on the CIFAR-10 (32 × 32),              method, following the Q-Diffusion checkpoints. For ac-
LSUN-Bedrooms (256 × 256), and LSUN-Church-Outdoor                      tivation quantization, dynamic channel-wise quantization
(256 × 256) datasets (Krizhevsky et al., 2009; Yu et al.,               determines the scaling factor based on the channel-wise
2015). For CIFAR-10, we use DDIM models with 100 de-                    min-max range of the input. Due to its dynamic nature,
noising steps (Song et al., 2021a). For the LSUN datasets,              we directly apply MoDiff to this method. In contrast, Q-
we use Latent Diffusion Models with downsampling factors                Diffusion optimizes the scaling factor by minimizing the

                                                                    7
                         Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization


Table 2. The IS, FID, sFID, and GBOPs for LSUN-Church with            Table 3. The IS, FID, sFID, and GBOPs for LSUN-Bedrooms with
LDM-8 under different precisions.                                     LDM-4 under different precisions.
  Methods                  Bits (W/A)   GBops   FID ↓    sFID ↓          Methods             Bits (W/A)   GBops   FID ↓    sFID ↓
  Full Prec. (Act)            8/32      5015     4.03    10.89           Full Prec.             8/32      25560    3.45     8.45
  Q-Diff                                         4.24    10.57           LCQ                                       3.61     8.65
  Q-Diff+MoDiff (Ours)                           3.85    10.82                                  8/8       6390
                              8/8       1254                             LCQ+MoDiff (Ours)                         3.57     8.44
  LCQ                                            4.02    11.53
  LCQ+MoDiff (Ours)                              3.99    10.06           LCQ                                      64.17    63.18
                                                                                                8/6       4609
                                                                         LCQ+MoDiff (Ours)                        3.57     6.53
  Q-Diff                                        55.13    30.98
  Q-Diff+MoDiff (Ours)                           5.43    13.41           LCQ                                      372.30   262.11
                              8/6        940                                                    8/4       3195
  LCQ                                            4.50    12.90           LCQ+MoDiff (Ours)                         27.88    77.85
  LCQ+MoDiff (Ours)                              3.89    10.12
  Q-Diff                                        355.85   187.56
  Q-Diff+MoDiff (Ours)                            3.97    11.16       to page limitations, we only present results for 8-bit weight
                              8/4        627
  LCQ                                           198.37   161.03       quantization on the LSUN datasets here. For results with
  LCQ+MoDiff (Ours)                              34.02    10.59
                                                                      4-bit weight quantization, please refer to Appendix D.1. We
  Q-Diff                                        367.51   354.59       highlight the best performance in bold. Based on these
  Q-Diff+MoDiff (Ours)                            5.40    13.81
                              8/3        470                          results, we draw the following conclusions.
  LCQ                                           341.62   407.68
  LCQ+MoDiff (Ours)                              12.05    35.29
                                                                      Generation Quality. Our method preserves high generation
                                                                      quality and significantly outperforms the base quantization
MSE reconstruction loss using calibration datasets across             approach when using lower activation precision across dif-
different time steps. To apply MoDiff to Q-Diffusion, we              ferent quantization methods and datasets. Specifically, with
calibrate the activation quantizers by inputting the calibra-         LCQ+MoDiff, activation precision in dynamic quantization
tion datasets into our MoDiff and learn the scaling factors           can be reduced to 3 bits for CIFAR-10 without sacrificing
with the residual. Additional implementation details can              generation quality. In contrast, the base quantization method
be found in Appendix B. We also perform few-step gener-               experiences a significant performance drop even at 6-bit ac-
ation experiments using MixDQ (Zhao et al., 2024) as the              tivation precision. For example, the sFID score of Q-Diff
baseline, with results provided in Appendix D.4.                      on CIFAR-10 degrades from 4.49 to 13.81. Furthermore,
                                                                      even at 2-bit activation precision, our method maintains an
For quantization hyperparameters, we select weight                    sFID of 8.42 on CIFAR-10.
bit widths from {4, 8} and activation bit widths from
{2, 3, 4, 6, 8}. For notation simplicity, we use the format           Generality. Our method is generalizable across different
“W/A”, where “W” represents the weight precision and “A”              datasets and various quantization methods. For both Q-Diff
represents the activation precision. We refer to Q-Diffusion          and LCQ, our approach consistently improves their perfor-
and dynamic channel-wise quantization as LCQ and Q-Diff,              mance. However, we observe that quantizing activations to
respectively. Our implementations based on them are de-               extremely low-bit precision becomes increasingly challeng-
noted as LCQ+MoDiff and Q-Diff+MoDiff. We denote                      ing for higher-resolution datasets, even with our method. As
full-precision activation models as Full Prec. (Act).                 shown in Tables 2 and 3, the FID and sFID scores increase
                                                                      significantly at 3-bit precision for the Churches dataset and
Remark 5.1. The primary objective of this paper is to demon-
                                                                      become notably high at 4-bit precision for the Bedrooms
strate the effectiveness of our method. We do not report the
                                                                      dataset. This challenge arises because LDMs are deeper and
real acceleration metrics, such as running time. Following
                                                                      contain higher-dimensional hidden embeddings, making it
existing works (Li et al., 2023; Wang et al., 2024), we evalu-
                                                                      more difficult to minimize quantization error.
ate efficiency by measuring the number of binary operations
(Bops) per denoising step for a single image with the help of         Efficiency. As shown in Tables 1, 2, and 3, our method con-
DeepSpeed (Song et al., 2023). Implementing acceleration              sistently reduces binary operations (Bops) for generation.
on specialized hardware is beyond the scope of this work,             For a full-precision activation model, one denoising step in
but will be a promising future direction, which is plausi-            CIFAR-10 requires 1636 GBops. In contrast, LCQ+MoDiff
ble given the increasing hardware support for low-precision           completes inference with only 154 GBops without any per-
formats such as 4-bit integers (Dave et al., 2019).                   formance degradation, achieving over 10× computational
                                                                      savings. However, the generation quality (sFID) begins to
5.2. Main Results on CIFAR10 and LSUN                                 degrade at 8/6-bit precision, which requires 307 GBops.
We conducted experiments to generate images using quan-
                                                                      5.3. Ablation Study
tized diffusion models and measure their quality. The IS,
FID, and sFID scores for CIFAR-10, Churches, and Bed-                 In this section, we conduct ablation studies to analyze the
rooms are presented in Tables 1, 2, and 3, respectively. Due          effectiveness of MoDiff. First, we evaluate the impact of

                                                                  8
                                      Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization


Table 4. FID on CIFAR-10 using the DDIM sampler in the ablation                  Table 5. FID and sFID on LSUN-Bedrooms using the DDPM sam-
study of error compensation. “EC” denotes error compensation                     pler under different quantization precisions with LCQ. The best
and the best performance is bolded.                                              performance is bolded.
                                                       LCQ+MoDiff                    Methods                    Bits (W/A)    FID ↓   sFID ↓
                Bits (W/A)                LCQ
                                                      w/o EC w/ EC                   LCQ (DDPM)                             3.61      8.65
                                                                                                                 8/8
                               8/8        4.61         4.41         4.40             LCQ+MoDiff (DDPM)                      3.39      8.02
                               8/6        13.07        10.21        4.38             LCQ (DDPM)                             50.17    52.18
                               8/4        33.97        25.42        4.38                                         8/6
                                                                                     LCQ+MoDiff (DDPM)                      12.60    13.71
                                                                                     LCQ (DDPM)                            102.16    104.18
                                                                                                                 8/4
error-compensation modulation. Next, we demonstrate the                              LCQ+MoDiff (DDPM)                      34.25     30.12
compatibility of MoDiff with different samplers. Addition-
ally, we examine how our method balances the trade-off                           indicate that MoDiff enhances the generation quality of
between memory and computational efficiency. Finally, we                         DDPM, particularly at lower activation bit widths. However,
present visualization results to further illustrate the effec-                   the improvement is less pronounced compared to DDIM.
tiveness of MoDiff in Appendix F. To further demonstrate                         This is because the DDPM sampler introduces random noise
the generalization of MoDiff, we also include results on few-                    at each step, increasing the difference between adjacent fea-
step diffusion models, as presented in the Appendix D.4.                         tures. Consequently, this leads to larger residual magnitudes,
                                                                                 which in turn amplify quantization errors. We provide ad-
                                          3-bit           3-bit w/ EC            ditional experiments on PLMS (Liu et al., 2022) and DPM
                              0.6         4-bit           4-bit w/ EC            solver (Lu et al., 2022) in Appendix D.3.
                                          6-bit           6-bit w/ EC
           Relative 2 Error




                                                                                 Memory Consumption. As discussed in Section 4, our
                              0.4
                                                                                 method reduces quantization error at the cost of slightly
                                                                                 increased memory usage. In Table 6, we demonstrate that
                              0.2                                                MoDiff significantly reduces Bops at lower bit precision
                                                                                 while maintaining manageable memory overhead. The re-
                              0.0                                                sults show that the memory overhead is minimal—no more
                                    100   80       60 40       20       0        than 4 MB. For more details, we refer to Appendix D.6.
                                                  Time Step
                                                                                 Table 6. The relationship between BOPs and memory usage of our
Figure 3. The relative ℓ2 distance between the features in the stan-             method using DDIM on CIFAR-10 for generating a single image.
dard diffusion model and the quantized model in middle block. “w/
                                                                                     Measurement      W8A2     W8A4      W8A8       W8A32
EC” denotes the use of the error-compensation technique.
                                                                                     sFID             8.42       4.38     4.39       4.41
                                                                                     GBops             102       205       409      1636
Effects of error compensation We demonstrate how the                                 Memory (Mb)      35.28      36.4     38.89     35.09
error compensation technique mitigates error accumulation
by comparing both generation quality and the quantization
error, using DDIM on CIFAR-10 with LCQ. FIDs are shown                           6. Conclusion
in Table 4. To quantify quantization error, we compute the
                                                                                 In this paper, we propose MoDiff, a principled framework
relative ℓ2 distance between the features of middle block
                                                                                 for accelerating generative modeling. Our preliminary stud-
in the standard diffusion model and the quantized model,
                                                                                 ies reveal the challenges in caching and PTQ methods. To
both initialized from the same noise. As shown in Figure 3,
                                                                                 address these, we introduce modulated quantization and
the dashed line represents the relative error without error
                                                                                 error compensation, which reduce quantization error and
compensation, while the solid line represents the error with
                                                                                 mitigate error accumulation. We provide theoretical anal-
compensation. Without error compensation, error accumula-
                                                                                 yses demonstrating the effectiveness of our approach. Ex-
tion becomes significant below 6-bit precision. In contrast,
                                                                                 perimental results show that MoDiff significantly enhances
with error compensation, the error remains minimal, even
                                                                                 activation quantization, enabling PTQ methods to operate at
at 3-bit precision. In summary, our technique effectively
                                                                                 bit-widths as low as 3 bits without performance degradation.
avoids error accumulation in modulated computing.
                                                                                 One limitation is that MoDiff reduces computation at the
Different Samplers We demonstrate that MoDiff is com-                            cost of increased memory usage. Additionally, we evaluate
patible with different samplers in diffusion models. While                       acceleration based on theoretical computational complexity
DDIM is used as the sampler in our main experiments, we                          rather than real-world hardware speedup. We leave hard-
also evaluate our method with DDPM on LCQ using the                              ware implementation and further memory optimizations of
LSUN-Bedroom dataset, as shown in Table 5. Our results                           our MoDiff for future work.

                                                                             9
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

Acknowledgments                                                      He, Y., Liu, L., Liu, J., Wu, W., Zhou, H., and Zhuang, B.
                                                                       PTQD: Accurate post-training quantization for diffusion
Weizhi Gao, Zhichao Hou, and Dr. Xiaorui Liu are sup-                  models. Advances in Neural Information Processing
ported by the National Science Foundation (NSF) Award un-              Systems, 2023b.
der grant number IIS-2443182, NSF National AI Research
Resource Pilot Award, NCSU Data Science Academy Seed                 Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., and
Grant Award, and NCSU Faculty Research and Professional                Hochreiter, S. Gans trained by a two time-scale update
Development Award.                                                     rule converge to a local nash equilibrium. Advances in
                                                                       Neural Information Processing Systems, 30, 2017.
Impact Statement
                                                                     Ho, J., Jain, A., and Abbeel, P. Denoising diffusion proba-
Ethical Considerations. This work introduces modulated                 bilistic models. Advances in Neural Information Process-
diffusion models to accelerate the generation process of               ing Systems, 33:6840–6851, 2020.
diffusion models. We do not foresee any significant ethical
concerns associated with this approach.                              Hoogeboom, E., Satorras, V. G., Vignac, C., and Welling,
                                                                       M. Equivariant diffusion for molecule generation in 3d.
Societal Impact. Enhancing the efficiency of diffusion                 In International Conference on Machine Learning, pp.
models can facilitate the broader adoption of generative               8867–8887. PMLR, 2022.
AI, benefiting both AI research and hardware development.
This advancement has the potential to contribute to more             Huang, Y., Gong, R., Liu, J., Chen, T., and Liu, X. TFMQ-
efficient and accessible AI-driven solutions.                          DM: Temporal feature maintenance quantization for dif-
                                                                       fusion models. In Proceedings of the IEEE/CVF Confer-
                                                                       ence on Computer Vision and Pattern Recognition, pp.
References
                                                                       7362–7371, 2024.
Chen, P., Shen, M., Ye, P., Cao, J., Tu, C., Bouganis, C.-S.,
  Zhao, Y., and Chen, T. ∆-DiT: A training-free acceler-             Krizhevsky, A., Hinton, G., et al. Learning multiple layers
  ation method tailored for diffusion transformers. arXiv              of features from tiny images. 2009.
  preprint arXiv:2406.01125, 2024.
                                                                     Li, X., Liu, Y., Lian, L., Yang, H., Dong, Z., Kang, D.,
Dave, S., Hao, W., Milind, K., and Niall, E. Int4 preci-               Zhang, S., and Keutzer, K. Q-Diffusion: Quantizing dif-
  sion for ai inference. Technical report, NVIDIA, 2019.               fusion models. In Proceedings of the IEEE/CVF Interna-
  URL https://developer.nvidia.com/blog/                               tional Conference on Computer Vision, pp. 17535–17545,
  int4-for-ai-inference.                                               2023.

Dettmers, T., Lewis, M., Belkada, Y., and Zettlemoyer, L.            Li, Y., Gong, R., Tan, X., Yang, Y., Hu, P., Zhang, Q., Yu,
  LLM.int8(): 8-bit matrix multiplication for transformers             F., Wang, W., and Gu, S. BRECQ: Pushing the limit of
  at scale. Advances in Neural Information Processing                  post-training quantization by block reconstruction. Inter-
  Systems, 35:30318–30332, 2022.                                       national Conference on Learning Representations, 2021.

Dhariwal, P. and Nichol, A. Diffusion models beat gans               Lin, T.-Y., Maire, M., Belongie, S., Hays, J., Perona, P.,
  on image synthesis. Advances in Neural Information                   Ramanan, D., Dollár, P., and Zitnick, C. L. Microsoft
 Processing Systems, 34:8780–8794, 2021.                               COCO: Common objects in context. In European Con-
                                                                       ference on Computer Vision, pp. 740–755, 2014.
Feng, W., Qin, H., Yang, C., An, Z., Huang, L., Diao, B.,
  Wang, F., Tao, R., Xu, Y., and Magno, M. MPQ-DM:                   Liu, L., Ren, Y., Lin, Z., and Zhao, Z. Pseudo numerical
  Mixed precision quantization for extremely low bit diffu-            methods for diffusion models on manifolds. International
  sion models. arXiv preprint arXiv:2412.11549, 2024.                  Conference on Learning Representations, 2022.

Han, S., Mao, H., and Dally, W. J. Deep Compres-                     Lu, C., Zhou, Y., Bao, F., Chen, J., Li, C., and Zhu, J.
  sion: Compressing deep neural networks with pruning,                 DPM-Solver: A fast ode solver for diffusion probabilistic
  trained quantization and huffman coding. arXiv preprint              model sampling in around 10 steps. Advances in Neural
  arXiv:1510.00149, 2015.                                              Information Processing Systems, 35:5775–5787, 2022.

He, Y., Liu, J., Wu, W., Zhou, H., and Zhuang, B. Ef-                Ma, X., Fang, G., Bi Mi, M., and Wang, X. Learning-
  ficientDM: Efficient quantization-aware fine-tuning of              to-cache: Accelerating diffusion transformer via layer
  low-bit diffusion models. International Conference on               caching. Advances in Neural Information Processing
  Learning Representations, 2023a.                                    Systems, 37:133282–133304, 2024a.

                                                                10
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

Ma, X., Fang, G., and Wang, X. Deepcache: Acceler-                    DeepSpeed4Science Initiative: Enabling large-scale sci-
 ating diffusion models for free. In Proceedings of the               entific discovery through sophisticated ai system tech-
 IEEE/CVF Conference on Computer Vision and Pattern                   nologies. NeurIPS 2023 AI for Science Workshop, 2023.
 Recognition, pp. 15762–15772, 2024b.
                                                                    Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Er-
Nagel, M., Fournarakis, M., Amjad, R. A., Bondarenko,                 mon, S., and Poole, B. Score-based generative modeling
 Y., Van Baalen, M., and Blankevoort, T. A white pa-                  through stochastic differential equations. International
  per on neural network quantization. arXiv preprint                  Conference on Learning Representations, 2021b.
  arXiv:2106.08295, 2021.                                           Su, D., Hou, J., Gao, W., Tian, Y., and Tang, B. D4 M :
Nagel, M., Fournarakis, M., Bondarenko, Y., and                       Dataset distillation via disentangled diffusion model. In
  Blankevoort, T. Overcoming oscillations in quantization-            Proceedings of the IEEE/CVF Conference on Computer
  aware training. In International Conference on Machine              Vision and Pattern Recognition, pp. 5809–5818, 2024.
  Learning, pp. 16318–16330. PMLR, 2022.                            Wang, C., Wang, Z., Xu, X., Tang, Y., Zhou, J., and Lu, J.
Nichol, A. Q. and Dhariwal, P. Improved denoising diffusion          Towards accurate post-training quantization for diffusion
  probabilistic models. In International Conference on               models. In Proceedings of the IEEE/CVF Conference
  Machine Learning, pp. 8162–8171. PMLR, 2021.                       on Computer Vision and Pattern Recognition, pp. 16026–
                                                                     16035, 2024.
Peebles, W. and Xie, S. Scalable diffusion models with
                                                                    Wimbauer, F., Wu, B., Schoenfeld, E., Dai, X., Hou, J., He,
  transformers. In Proceedings of the IEEE/CVF Interna-
                                                                     Z., Sanakoyeu, A., Zhang, P., Tsai, S., Kohler, J., et al.
  tional Conference on Computer Vision, pp. 4195–4205,
                                                                     Cache Me If You Can: Accelerating diffusion models
  2023.
                                                                     through block caching. In Proceedings of the IEEE/CVF
Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and               Conference on Computer Vision and Pattern Recognition,
  Ommer, B. High-resolution image synthesis with latent              pp. 6211–6220, 2024.
  diffusion models. In Proceedings of the IEEE/CVF Con-             Wu, J., Wang, H., Shang, Y., Shah, M., and Yan, Y.
  ference on Computer Vision and Pattern Recognition, pp.            PTQ4DiT: Post-training quantization for diffusion trans-
 10684–10695, 2022.                                                  formers. arXiv preprint arXiv:2405.16005, 2024.
Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S.,        Xiao, G., Lin, J., Seznec, M., Wu, H., Demouth, J., and
  Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein,             Han, S. SmoothQuant: Accurate and efficient post-
  M., Berg, A. C., and Fei-Fei, L. ImageNet Large Scale               training quantization for large language models. In In-
  Visual Recognition Challenge. International Journal of              ternational Conference on Machine Learning, pp. 38087–
  Computer Vision, 115(3):211–252, 2015. doi: 10.1007/                38099. PMLR, 2023.
  s11263-015-0816-y.
                                                                    Yang, J., Shen, X., Xing, J., Tian, X., Li, H., Deng, B.,
Sajjadi, M. S., Bachem, O., Lucic, M., Bousquet, O., and              Huang, J., and Hua, X.-s. Quantization networks. In
  Gelly, S. Assessing generative models via precision and             Proceedings of the IEEE/CVF Conference on Computer
  recall. Advances in Neural Information Processing Sys-              Vision and Pattern Recognition, pp. 7308–7316, 2019.
  tems, 31, 2018.
                                                                    Yu, F., Zhang, Y., Song, S., Seff, A., and Xiao, J. Lsun:
Salimans, T., Goodfellow, I., Zaremba, W., Cheung, V.,                Construction of a large-scale image dataset using deep
  Radford, A., and Chen, X. Improved techniques for                   learning with humans in the loop. arXiv preprint
  training gans. Advances in Neural Information Processing            arXiv:1506.03365, 2015.
  Systems, 29, 2016.
                                                                    Zhao, T., Ning, X., Fang, T., Liu, E., Huang, G., Lin,
Shang, Y., Yuan, Z., Xie, B., Wu, B., and Yan, Y. Post-               Z., Yan, S., Dai, G., and Wang, Y. MixDQ: Memory-
  training quantization on diffusion models. In Proceedings           efficient few-step text-to-image diffusion models with
  of the IEEE/CVF Conference on Computer Vision and                   metric-decoupled mixed precision quantization. In Eu-
  Pattern Recognition, pp. 1972–1981, 2023.                           ropean Conference on Computer Vision, pp. 285–302,
                                                                      2024.
Song, J., Meng, C., and Ermon, S. Denoising diffusion
  implicit models. International Conference on Learning             Zhao, T., Fang, T., Huang, H., Liu, E., Wan, R., Soedarmadji,
  Representations, 2021a.                                             W., Li, S., Lin, Z., Dai, G., Yan, S., et al. ViDiT-Q: Effi-
                                                                      cient and accurate quantization of diffusion transformers
Song, S. L., Kruft, B., Zhang, M., Li, C., Chen, S., Zhang,           for image and video generation. International Conference
  C., Tanaka, M., Wu, X., Rasley, J., Awan, A. A., et al.             on Learning Representations, 2025.

                                                               11
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

A. Proof
In this section, we provide proofs for the theorems presented in the main paper.

A.1. Proof of Theorem 4.3
Theorem A.1 (Restated, 4.3). Let x ∈ Rd be a vector, and let the quantization bandwidth be b ∈ N. Define the max-min
dynamic quantizer as follows:

                                                         max(x) − min(x)
                                                    s=                     ,                                          (32)
                                                             2b − 1
                                                                    
                                                              min(x)
                                                       z= −            ,                                              (33)
                                                                s
                                                            jxk
                                               xint = clamp(    + z, 0, 2b − 1).                                      (34)
                                                             s

The corresponding dequantization is given by:

                                                      Q(x) = s(xint − z).                                             (35)


The quantization error is bounded in terms of the quantization scaling factor s, which depends on the range of x and the
bandwidth b. Specifically, we have:

                                                                  (max(x) − min(x))2 d
                                       ∥x − Q(x)∥22 ≤ s2 d =                           .                              (36)
                                                                       (2b − 1)2

Proof: For any i ∈ {1, 2, . . . , d}, the value xi satisfies the following property:


                   min(x)     − min(x)    xi      max(x)     − min(x)    max(x) − min(x)
             0≤⌊          ⌋+⌊          ⌋≤⌊ ⌋+z ≤⌊        ⌋+⌊          ⌋≤                 .                            (37)
                     s           s        s         s           s               s

From condition ( 32), we have:
                                                       0 ≤ xint ≤ 2b − 1.

This ensures that the clipping error is zero, meaning we only need to consider the rounding error. Thus, we obtain:

                                                                  xi
                                              xi − Q(x)i = xi − ⌊ ⌋s                                                  (38)
                                                            x s x 
                                                                i     i
                                                         =s       − ⌊ ⌋ ≤ s.                                          (39)
                                                               s     s

Therefore, applying this to the ℓ2 -norm error bound, we derive:

                                                                  d
                                                                  X
                                              ∥x − Q(x)∥22 =        (xi − Q(x)i )2                                    (40)
                                                                  i=1
                                                                  d
                                                                  X
                                                              ≤         s2                                            (41)
                                                                  i=1
                                                                   2
                                                              = s d.                                                  (42)

                                                                                                                       □

                                                                12
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

A.2. Proof of Theorem 4.4
Theorem A.2 (Restated, 4.4). Let A(·) be a linear operator and consider a sequence of inputs aT , aT −1 , . . . , a1 , with
corresponding outputs oT , oT −1 , . . . , o1 . Given a quantization operator Q, we estimate the outputs using standard
modulation:

                                                õt = A(Q(at − at+1 )) + õt+1 ,                                        (43)
                                               õT = A(aT ),                                                            (44)

where t = T − 1, . . . , 2, 1. Similarly, we estimate the outputs using error-compensated modulation:

                                                ôt = A(Q(at − ât+1 )) + ôt+1 ,                                       (45)
                                                ât = Q(at − ât+1 ) + ât+1 ,                                          (46)
                                               ôT = A(aT ),        âT = aT ,                                          (47)

where t = T − 1, . . . , 2, 1. Suppose the quantization operator Q satisfies the following error bound:
                                                                                     1
                                            ∥x − Q(x)∥22 ≤ c∥x∥22 ,        0<c<        .                                (48)
                                                                                     2
Then, the estimation errors are bounded as follows:
                                                      T
                                                      X −1
                                    ∥ot − õt ∥22 ≤          2T −k−1 c∥A∥22 ∥ak − ak+1 ∥22 ,                            (49)
                                                      k=t
                                                      T
                                                      X −1
                                    ∥ot − ôt ∥22 ≤          (2c)T −k−1 ∥A∥22 ∥ak − ak+1 ∥22 .                          (50)
                                                      k=t


Proof: Denote the error for standard modulation in Equation (43) as ẽt and for error-compensation modulation in Equation
(44) as êt at time step t. We first compute the error for standard modulation:

                              ẽ2t = ∥ot − õt ∥22                                                                      (51)
                                 = ∥ot − A(Q(at − at+1 )) − õt+1 ∥22                                                   (52)
                                 = ∥ot − ot+1 − A(Q(at − at+1 )) + (ot+1 − õt+1 )∥22                                   (53)
                                 = ∥A(at − at+1 ) − A(Q(at − at+1 )) + (ot+1 − õt+1 )∥22                               (54)
                                 = ∥A(at − at+1 − Q(at − at+1 )) + (ot+1 − õt+1 )∥22                                   (55)
                                 ≤ 2|A(at − at+1 − Q(at − at+1 ))∥22 + 2∥ot+1 − õt+1 ∥22                               (56)

Since ∥(ot+1 − õt+1 )∥22 represents the error from the previous time step, applying the submultiplicative inequality yields:

                                   ẽ2t = ∥ot − õt ∥22                                                                 (57)
                                       ≤ 2∥A∥22 ∥at − at+1 − Q(at − at+1 )∥22 + 2e2t+1                                  (58)
                                       ≤ 2c∥A∥22 ∥at − at+1 ∥22 + 2e2t+1 ,                                              (59)

Accumulating the error from time T to t, we obtain Equation (49).
For the error-compensation modulation, we compute:

                                      ê2t = ∥ot − ôt ∥22                                                              (60)
                                         = ∥ot − A(Q(at − ât+1 )) − ôt+1 ∥22                                          (61)
                                         = ∥A(at ) − A(Q(at − ât+1 )) − A(ât+1 )∥22                                   (62)
                                         = ∥A(at − ât+1 − Q(at − ât+1 ))∥22                                           (63)
                                         ≤ c∥A∥22 ∥at − ât+1 ∥22                                                       (64)

                                                                  13
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

Next, we expand at − ât+1 :

                          ∥at − ât+1 ∥22 = ∥at − Q(at+1 − ât+2 ) − ât+2 ∥22                                        (65)
                                        = ∥at − at+1 − Q(at+1 − ât+2 ) + at+1 − ât+2 ∥22                            (66)
                                        ≤ 2∥at − at+1 ∥22 + 2∥Q(at+1 − ât+2 ) + at+1 − ât+2 ∥22                     (67)
                                        ≤ 2∥at − at+1 ∥22 + 2c∥at+1 − ât+2 ∥22                                       (68)

Substituting this into Equation (64), we complete the proof.                                                            □

A.3. Proof of Corollary
Corollary A.3. Let x ∈ Rd be a vector, and let the quantization bandwidth be b ∈ N. Define the max-min dynamic quantizer
as follows:

                                                       max(x) − min(x)
                                                  s=                     ,                                            (69)
                                                           2b − 1
                                                                  
                                                            min(x)
                                                     z= −            ,                                                (70)
                                                              s
                                                          jxk
                                             xint = clamp(    + z, 0, 2b − 1).                                        (71)
                                                           s
The corresponding dequantization is given by:

                                                    Q(x) = s(xint − z).                                               (72)

For any 0 < c < 21 , we can revise Q with a new bandwidth b̂ satisfying:

                                                   ∥x − Q(x)∥22 ≤ c∥x∥22 .                                            (73)

Proof: From Theorem 4.3, we have:

                                                          (max(x) − min(x))2 d
                                          ∥x − Q(x)∥22 ≤                                                              (74)
                                                                 (2b − 1)2
                                                               2
                                                          4∥x∥ d
                                                         ≤ b ∞2                                                       (75)
                                                          (2 − 1)
                                                           4∥x∥2 d
                                                         ≤ b 2 2                                                      (76)
                                                          (2 − 1)

To satisfy the desired bound, we choose b̂ such that:
                                                               r         !
                                                                    4d
                                                  b̂ ≥ log2            +1 .                                           (77)
                                                                     c

Thus, the proof is complete.                                                                                            □

B. Implementation details
In this section, we talk about the hyperparameters in our experiments and the implementation details of our MoDiff.
Baselines. For the implementation of baselines, we follow the existing codebase. Specifically, we conduct Q-Diffusion
experiments by directly using their provided code (Li et al., 2023). We also utilize the calibration datasets they provide
to quantize the models at different bit levels. For LCQ, we follow the BRECQ framework and adopt channel-wise
quantization (Li et al., 2021).
MoDiff. For our MoDiff implementation, we incorporate several key techniques:

                                                               14
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

   • Bias Removal: We remove all bias terms from layers that apply MoDiff. This is necessary because our method, as
     described in Equation (13), requires layers to be bias-free to prevent unwanted accumulation of bias terms.
   • Warm-up: We apply warm-up at the first step, where we use full activation for computation. More detailed analysis is
     shown in Appendix D.5.
   • Calibration Dataset Reconstruction: We reconstruct the calibration dataset for Q-Diff + MoDiff, ensuring it captures
     nearby information. During calibration, we store the inputs and outputs of MoDiff rather than the raw activations.
   • Layer-wise Reconstruction: Instead of reconstructing entire blocks, we reconstruct each layer individually, as we find
     this approach leads to more stable performance.
   • Hyperparameter Consistency: We do not fine-tune the calibration hyperparameters, as optimizing them is not the
     primary focus of our work.

C. Additional Main Results
C.1. Results on Stable Diffusion
To demonstrate that our method generalizes to larger-scale datasets and higher resolutions, we conduct experiments on
MS-COCO 2014 (Lin et al., 2014) using Stable Diffusion v1.4 with DPM solvers(Lu et al., 2022). We apply tensor-wise
dynamic quantization and evaluate the quantized models within the Q-Diffusion framework. A total of 30,000 images are
generated using 50 sampling steps. As shown in Table 7, the resulting FID scores confirm that MoDiff consistently performs
well on large-scale diffusion models.


Table 7. The FID and sFID on MS-COCO with Stable Diffusion using PLMS solver under different precisions. The best performance is
bolded.
                                   Methods                  Bits (W/A)      FID ↓      sFID ↓
                                   LTQ                                      12.15       19.05
                                                                 8/8
                                   LTQ+MoDiff (Ours)                        12.14       19.05
                                   LTQ                                      71.38       59.74
                                                                 8/6
                                   LTQ+MoDiff (Ours)                        13.21       20.07
                                   LTQ                                      408.42     199.59
                                                                 8/4
                                   LTQ+MoDiff (Ours)                        225.22     104.12


C.2. Results on Transformer-Based Models
To evaluate the generalizability of MoDiff across different architectures, we conduct experiments on the Diffusion Trans-
former (Peebles & Xie, 2023). Following PTQ4DiT (Wu et al., 2024), we use DiT-XL/2 as the baseline model. The
experiments are performed on the ImageNet 256×256 dataset (Russakovsky et al., 2015) using tensor-wise dynamic quan-
tization. We generate 10,000 images using 50 sampling steps for evaluation. As shown in Table 8, MoDiff consistently
enhances generation quality under low activation bit widths.


Table 8. The IS, FID, and sFID for ImageNet 256x256 with DiT-XL/2 under different precisions. The best performance is bolded.
                           Methods                         Bits (W/A)      IS ↑      FID ↓      sFID ↓
                           PTQ4DiT                                        36.91      54.80      89.60
                                                               8/8
                           PTQ4DiT+MoDiff (Ours)                          37.37      53.76      89.53
                           PTQ4DiT                                         3.41      200.26     373.71
                                                               8/6
                           PTQ4DiT+MoDiff (Ours)                          36.74      54.74      88.49
                           PTQ4DiT                                         1.45      271.87     207.59
                                                               8/4
                           PTQ4DiT+MoDiff (Ours)                          17.23      90.91      102.07


                                                               15
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

C.3. More Measurements on Generation Quality
In the main paper, we evaluate the quality of generated outputs using Inception Score (IS), Fréchet Inception Distance (FID),
and sFID. Here, we further assess the performance of our method using precision and recall.
The results are presented in Table 9, Table 10, and Table 11. These results demonstrate that MoDiff effectively preserves
precision and recall even at low activation bit levels. For instance, on CIFAR-10, LCQ+MoDiff achieves a precision of 0.58
and a recall of 0.50, whereas LCQ alone results in 0 for both metrics.


         Table 9. The Precision and Recall for CIFAR-10 with DDIM under different Bits. The best performance is bolded.
               Methods                  Bits (W/A)    Precision     Recall   Bits (W/A)   Precision    Recall
               Full Prec. (Act)            8/32         0.65         0.55       4/32         0.64       0.56
               Q-Diff                                   0.65         0.55                    0.66       0.58
               Q-Diff+MoDiff (Ours)                     0.65         0.56                    0.65       0.58
                                            8/8                                  4/8
               LCQ                                      0.67         0.59                    0.67       0.57
               LCQ+MoDiff (Ours)                        0.66         0.59                    0.67       0.55
               Q-Diff                                   0.46         0.47                    0.47       0.44
               Q-Diff+MoDiff (Ours)                     0.66         0.57                    0.65       0.59
                                            8/6                                  4/6
               LCQ                                      0.67         0.58                    0.67       0.57
               LCQ+MoDiff (Ours)                        0.66         0.58                    0.67       0.56
               Q-Diff                                   0.08         0.00                    0.05       0.00
               Q-Diff+MoDifff(Ours)                     0.54         0.53                    0.53       0.55
                                            8/4                                  4/4
               LCQ                                      0.47         0.44                    0.48       0.43
               LCQ+MoDiff (Ours)                        0.67         0.59                    0.67       0.57
               Q-Diff                                   0.00         0.00                    0.00       0.00
               Q-Diff+MoDiff (Ours)                     0.45         0.39                    0.33       0.32
                                            8/3                                  4/3
               LCQ                                      0.33         0.08                    0.35       0.08
               LCQ+MoDiff (Ours)                        0.66         0.59                    0.67       0.57
               Q-Diff                                   0.00         0.00                    0.00       0.00
               Q-Diff+MoDiff (Ours)                     0.00         0.00                    0.14       0.00
                                            8/2                                  4/2
               LCQ                                      0.00         0.00                    0.00       0.00
               LCQ+MoDiff (Ours)                        0.58         0.50                    0.58       0.47



         Table 10. The Precision and Recall for Church with LDM-8 under different Bits. The best performance is bolded.
                Methods                Bits (W/A)    Precision      Recall   Bits (W/A)   Precision   Recall
                Full Prec. (Act)          8/32          0.63        0.51        4/32        0.63       0.52
                LCQ                                     0.62        0.47                    0.62       0.46
                                           8/8                                  4/8
                LCQ+MoDiff (Ours)                       0.63        0.53                    0.63       0.53
                LCQ                                     0.59        0.46                    0.59       0.45
                                           8/6                                  4/6
                LCQ+MoDiff (Ours)                       0.63        0.53                    0.63       0.53
                LCQ                                     0.03        0.14                    0.02       0.07
                                           8/4                                  4/4
                LCQ+MoDiff (Ours)                       0.63        0.53                    0.63        0.5
                LCQ                                     0.00        0.00                    0.00       0.00
                                           8/3                                  4/3
                LCQ+MoDiff (Ours)                       0.61        0.34                    0.60       0.34



D. Ablation Study
D.1. Results on Other Weight Precision
In the main paper, we present results for 8-bit weight quantization on LSUN-Churches and LSUN-Bedroom for the page
limitation. In this section, we extend our analysis to 4-bit weight quantization and observe consistent conclusions. As shown
in Table 12 and Table 13, our method successfully maintains generation quality at 4/3 bits for Churches and 4/4 bits for
Bedrooms. In contrast, LCQ experiences a significant performance drop.

                                                               16
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization


         Table 11. The Precision and Recall for Bedroom with LDM-4 under different Bits. The best performance is bolded.
                Methods                    Bits (W/A)   Precision       Recall       Bits (W/A)   Precision   Recall
                Full Prec. (Act)                8/32      0.65          0.45            4/32        0.66      0.41
                LCQ                                       0.65          0.45                        0.68      0.41
                                                8/8                                     4/8
                LCQ+MoDiff (Ours)                         0.60          0.51                        0.62      0.47
                LCQ                                       0.17          0.13                        0.63      0.43
                                                8/6                                     4/6
                LCQ+MoDiff (Ours)                         0.59          0.51                        0.62      0.47
                LCQ                                       0.00          0.00                        0.00      0.00
                                                8/4                                     4/4
                LCQ+MoDiff (Ours)                         0.40          0.17                        0.46      0.22



Table 12. The IS, FID, sFID, and GBOPs for LSUN-Church with LDM under 4-bit weight quantization. The best performance is bolded.
                             Methods                     Bits (W/A)         GBops        FID ↓     sFID ↓
                             Full Prec. (Act)               8/32             5015         4.03      10.89
                             LCQ                                                          4.02      11.53
                                                             8/8             1254
                             LCQ+MoDiff (Ours)                                            3.99      10.06
                             LCQ                                                          4.50      12.90
                                                             8/6               940
                             LCQ+MoDiff (Ours)                                            3.89      10.12
                             LCQ                                                         198.37    161.03
                                                             8/4               627
                             LCQ+MoDiff (Ours)                                            34.02     10.59
                             LCQ                                                         341.62    407.68
                                                             8/3               470
                             LCQ+MoDiff (Ours)                                            12.05     35.29


Table 13. The IS, FID, sFID, and GBOPs for LSUN-Bedrooms with LDM under 4-bit weight quantization. The best performance is
bolded.
                                 Methods            Bits (W/A) GBops     FID ↓    sFID ↓
                                   Full Prec.               8/32           25560         3.45      8.45
                                   LCQ                                                   3.61      8.65
                                                             8/8            6390
                                   LCQ+MoDiff (Ours)                                     3.57      8.44
                                   LCQ                                                  64.17     63.18
                                                             8/6            4609
                                   LCQ+MoDiff (Ours)                                    3.57      6.53
                                   LCQ                                                  372.30    262.11
                                                             8/4            3195
                                   LCQ+MoDiff (Ours)                                     27.88     77.85



D.2. Results on Tensor-Wise Quantization
In our main experiments, we present results using dynamic channel-wise quantization (LCQ). In this section, we extend
our analysis to dynamic tensor-wise quantization (LTQ), which is more hardware-friendly. We conduct experiments on
CIFAR-10 using DDIM, while continuing to use Q-Diffusion checkpoints for weight quantization. As shown in Table 14, our
MoDiff framework is also effective for LTQ. However, the minimum activation bit-width achievable with LTQ is higher than
that of LCQ. This is because tensor-wise quantization operates on higher-dimensional data, making accurate quantization
more challenging.

D.3. Results on More Samplers
In the main paper, we demonstrate that MoDiff generalizes to the DDPM sampler. Here, we further show its applicability
to additional solvers. Specifically, we perform tensor-wise dynamic quantization using DPM-Solver-2 (Lu et al., 2022)
on CIFAR-10 with 20 sampling steps. Additionally, we evaluate MoDiff with the PLMS solver using 50 steps on Stable
Diffusion with the MS-COCO 2014 dataset (Liu et al., 2022). As shown in Table 15 and Table 7, MoDiff consistently

                                                                   17
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization
Table 14. The IS, FID, sFID, and GBOPs for CIFAR-10 with DDIM using tensor-wise quantization under different precisions. The best
performance is bolded.
        Methods                 Bits (W/A)      IS ↑   FID ↓     sFID ↓       Bits (W/A)   IS ↑    FID ↓      sFID ↓
        Full Prec. (Act)            8/32        9.00    4.24         4.41         4/32     8.78     5.09       5.19
        LTQ                                     9.08    4.19         4.40                  8.80     5.02       5.21
                                     8/8                                          4/8
        LTQ+MoDiff (Ours)                       9.04    4.21         4.37                  8.76     5.05       5.16
        LTQ                                     8.98    9.93         8.69                  8.89     9.96       8.07
                                     8/6                                          4/6
        LTQ+MoDiff (Ours)                       9.09    4.00         4.27                  8.80     5.04       4.42
        LTQ                                     2.27   306.06        94.28                 2.37    294.88     90.91
                                     8/4                                          4/4
        LTQ+MoDiff(Ours)                        8.37    28.19        19.90                 8.35    26.17      18.94
        LTQ                                     1.19   457.25    165.85                    1.19    457.11     165.61
                                     8/2                                          4/2
        LTQ+MoDiff (Ours)                       4.26   186.04    86.73                     3.29    146.52      87.78



improves FID scores across different solvers.


Table 15. The FID on CIFAR-10 with DDIM using DPM solver under different precisions. The best performance is bolded.
                                        Methods                      Bits (W/A)    FID ↓
                                        DPM                                         3.92
                                                                        8/8
                                        DPM+MoDiff (Ours)                           3.91
                                        DPM                                        10.82
                                                                        8/6
                                        DPM+MoDiff (Ours)                           3.91
                                        DPM                                       299.72
                                                                        8/4
                                        DPM+MoDiff (Ours)                         26.54


D.4. Results on Fewer Generation Steps
To demonstrate that MoDiff remains effective with fewer generation steps, we conduct experiments on CIFAR-10 using the
DDIM sampler with only 20 steps. Tensor-wise dynamic quantization is applied throughout. As shown in Table 16, MoDiff
maintains strong performance even under this reduced-step setting.


                     Table 16. FID on CIFAR-10 using the DDIM sampler in the ablation study of fewer steps.
                                           Methods               Bits (W/A)       FID ↓
                                           LTQ                                     6.93
                                                                        8/8
                                           LTQ+MoDiff (Ours)                       6.90
                                           LTQ                                     20.28
                                                                        8/6
                                           LTQ+MoDiff (Ours)                        6.75
                                           LTQ                                    297.21
                                                                        8/4
                                           LTQ+MoDiff (Ours)                      22.12


A line of research has focused on distilling diffusion models into few-step variants, which can achieve comparable generation
quality within significantly fewer sampling steps. To evaluate the generalizability of MoDiff in this setting, we conduct
experiments with MixDQ (Zhao et al., 2024), a method specifically designed for few-step diffusion. We use SDXL-Turbo as
the backbone and apply 2, 4, and 8 sampling steps for image generation on the MS-COCO 2014 dataset (Lin et al., 2014),
generating 10,000 images for FID computation. As shown in Table 17, our method is compatible with MixDQ and further
improves performance in the few-step diffusion regime. The performance indicates that it is more challenging to lower the
activation bit for SDXL-Turbo.

                                                                18
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization


Table 17. FID on MS-COCO using SDXL-Turbo and MixDQ across different generation steps. The best performance is bolded.
                                     Step    Bits(W/A)         MixDQ     MixDQ+MoDiff
                                                 8/8            46.48         46.30
                                       2         8/6           318.68        193.17
                                                 8/4           304.77        192.65
                                                 8/8            44.29         44.74
                                       4         8/6           318.57        191.59
                                                 8/4           325.68        192.74
                                                 8/8            44.61         43.30
                                       8         8/6           347.75        210.38
                                                 8/4           348.75        212.68


D.5. Results on Warm-up
To verify that warm-up is not the primary source of improvement, we conduct an ablation study by applying warm-up to the
baseline and removing it from MoDiff. The experiments are performed using the DDIM sampler on CIFAR-10 with LCQ.
As shown in Table 18, MoDiff consistently outperforms the baseline under fair comparison, indicating that the observed
performance gains are not attributable to the warm-up mechanism.


      Table 18. FID on CIFAR-10 using the DDIM sampler in the ablation study of warm-up. The best performance is bolded.
     Bits (W/A)    LCQ w/o warmup          LCQ w/ warmup         LCQ+MoDiff w/o warmup        LCQ+MoDiff w/ warmup
         8/8               4.19                 4.19                       4.22                          4.21
         8/6               9.93                 9.53                       4.25                          4.00
         8/4             306.06                299.96                      31.22                        28.19

Moreover, as indicated by Theorem 4.4, warm-up can be achieved by repeatedly inputting aT . This process converges to the
full-precision activation due to the contraction of the quantization error. As demonstrated in our experiments, approximately
4 to 5 steps are sufficient to reduce the quantization error to a negligible level on CIFAR-10 using 4-bit precision.

D.6. Analysis on Memory Consumption
In the main paper, we present the trade-off analysis between computation cost and memory cost for MoDiff when generating
a single image on CIFAR-10 with DDIM. In this section, we extend our analysis to larger batch sizes selected from {2, 4, 8}.
The results are shown in Tables 19, 20, and 21. The results, shown in Tables 19, 20, and 21, demonstrate that MoDiff
significantly reduces computation cost while incurring only a minimal increase in memory usage.


Table 19. The relationship between BOPs and memory usage of our method using DDIM on CIFAR-10 for generation with batch size 2.
                                     Measurement       W8A2      W8A4    W8A8      W8A32
                                     GBops              204       410      918     3272
                                     Memory (Mb)       36.49     38.89    43.69    36.09




Table 20. The relationship between BOPs and memory usage of our method using DDIM on CIFAR-10 for generation with batch size 4.
                                     Measurement       W8A2      W8A4    W8A8      W8A32
                                     GBops              408       820     1836     6544
                                     Memory (Mb)       38.89     43.69    53.28    38.09



                                                                19
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization


Table 21. The relationship between BOPs and memory usage of our method using DDIM on CIFAR-10 for generation with batch size 8.
                                     Measurement     W8A2      W8A4     W8A8      W8A32
                                     GBops             906     1640      3672     13088
                                     Memory (Mb)      43.69    53.28     72.47    42.09


E. Compared to PTQD
Post-Training Quantization for Diffusion Models (PTQD) aims to reduce quantization error by post-processing quantized
models, sharing a similar objective with our work. In this section, we highlight the key differences between MoDiff
and PTQD. Compared to PTQD, MoDiff is (1) more general and flexible, (2) free from strong assumptions about error
distribution, and (3) significantly more effective in low-precision scenarios.
(1) PTQD requires solver-specific adaptations to address variance and bias, while MoDiff can be applied across solvers
without modification. Moreover, PTQD is restricted to standard diffusion models, whereas MoDiff also supports cached
diffusion models by compensating for reuse errors in cached components.
(2) PTQD relies on strong assumptions about error distribution, specifically that quantization errors follow a Gaussian
distribution after input rescaling. This assumption can introduce inaccuracies in error estimation. In contrast, MoDiff
leverages the widely observed similarity between timesteps, which is well-supported by prior works (Ma et al., 2024b).
(3) MoDiff performs well in low-precision activation settings, whereas PTQD fails entirely. To demonstrate this, we evaluate
both methods on CIFAR-10 with W8A4 quantization. PTQD yields an FID of 397.12 and fails to produce meaningful
images, while MoDiff achieves a much lower FID of 13.41.

F. Comprehensive Visualization Results
In this section, we present visualization results for CIFAR-10, LSUN-Churches, LSUN-Bedroom, and MS-COCO-2014.
These results illustrate the performance that MoDiff can achieve. For instance, as shown in Figure 5, LCQ+MoDiff closely
aligns with full-precision generation at W8A4, whereas LCQ only captures the image textures. Additionally, LCQ+MoDiff
can still generate recognizable images at W8A3, albeit with some loss of detail.




                          LTQ+MoDiff W8A8                                            LTQ W8A8




                          LTQ+MoDiff W8A6                                            LTQ W8A6




                          LTQ+MoDiff W8A4                                            LTQ W8A4

Figure 4. Visualization of MS-COCO-2014 generated using LTQ and LTQ+MoDiff under 8-bit weight quantization precisions on Stable
Diffusion v1.4.




                                                              20
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization




                                                  Full Precision (Act) W8A32




                          LCQ+MoDiff W8A8                                             LCQ W8A8




                          LCQ+MoDiff W8A6                                             LCQ W8A6




                          LCQ+MoDiff W8A4                                             LCQ W8A4




                          LCQ+MoDiff W8A3                                             LCQ W8A3

Figure 5. Visualization of LSUN-Churches 256 × 256 generated using LCQ and LCQ+MoDiff under 8-bit weight quantization precisions.


                                                               21
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization




                                                  Full Precision (Act) W4A32




                          LCQ+MoDiff W4A8                                             LCQ W4A8




                          LCQ+MoDiff W4A6                                             LCQ W4A6




                          LCQ+MoDiff W4A4                                             LCQ W4A4




                          LCQ+MoDiff W4A3                                             LCQ W4A3

Figure 6. Visualization of LSUN-Churches 256 × 256 generated using LCQ and LCQ+MoDiff under 4-bit weight quantization precisions.


                                                               22
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization




                                                  Full Precision (Act) W8A32




                          LCQ+MoDiff W8A8                                             LCQ W8A8




                          LCQ+MoDiff W8A6                                             LCQ W8A6




                          LCQ+MoDiff W8A4                                             LCQ W8A4

Figure 7. Visualization of LSUN-bedrooms 256 × 256 generated using LCQ and LCQ+MoDiff under 8-bit weight quantization precisions.




                                                               23
                    Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization




                                                  Full Precision (Act) W4A32




                          LCQ+MoDiff W4A8                                             LCQ W4A8




                          LCQ+MoDiff W4A6                                             LCQ W4A6




                          LCQ+MoDiff W4A4                                             LCQ W4A4

Figure 8. Visualization of LSUN-bedrooms 256 × 256 generated using LCQ and LCQ+MoDiff under 4-bit weight quantization precisions.




                                                               24
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization




                                               Full Precision (Act) W8A32




               LCQ+MoDiff W8A8             LCQ W8A8             Q-Diff+MoDiff W8A8       Q-Diff W8A8




               LCQ+MoDiff W8A6             LCQ W8A6             Q-Diff+MoDiff W8A6       Q-Diff W8A6




               LCQ+MoDiff W8A4             LCQ W8A4             Q-Diff+MoDiff W8A4       Q-Diff W8A4




               LCQ+MoDiff W8A3             LCQ W8A3             Q-Diff+MoDiff W8A3       Q-Diff W8A3




               LCQ+MoDiff W8A2             LCQ W8A2             Q-Diff+MoDiff W8A2       Q-Diff W8A2

Figure 9. Visualization of LSUN-bedrooms 256 × 256 generated using LCQ, LCQ+MoDiff, Q-Diff, and Q-Diff+MoDiff under 8-bit
weight quantization precisions.




                                                           25
                   Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization




                                                Full Precision (Act) w4A32




                LCQ+MoDiff w4A8            LCQ w4A8             Q-Diff+MoDiff w4A8        Q-Diff w4A8




                LCQ+MoDiff w4A6            LCQ w4A6             Q-Diff+MoDiff w4A6        Q-Diff w4A6




                LCQ+MoDiff w4A4            LCQ w4A4             Q-Diff+MoDiff w4A4        Q-Diff w4A4




                LCQ+MoDiff w4A3            LCQ w4A3             Q-Diff+MoDiff w4A3        Q-Diff w4A3




                LCQ+MoDiff w4A2            LCQ w4A2             Q-Diff+MoDiff w4A2        Q-Diff w4A2

Figure 10. Visualization of LSUN-bedrooms 256 × 256 generated using LCQ, LCQ+MoDiff, Q-Diff, and Q-Diff+MoDiff under 4-bit
weight quantization precisions.




                                                           26
