                                                 Temperature decreasing…
                                                     Progressive   Tempering Sampler with Diffusion

               𝑇𝐾           𝑇𝐾−1            𝑇𝑘         𝑇𝑘−1           𝑇𝑘−2        the 𝑇score
                                                                                        𝑘
                                                                                             function
                                                                                                𝑇𝑘−1    ∇xt𝑇𝑘−2
                                                                                                              log pt (xt , T ) for t ∈ [0, tmax ] and
                                                               init
                                                                                  T ∈ [T1 , T2 ]. Now,initwe want to generate samples at a lower
               𝜽𝐾           𝜽𝐾−1           𝜽𝑘          𝜽𝑘−1           𝜽𝑘−2            𝜽3
                                                                                  temperature,   𝜽T20 < T1 , 𝜽which
                                                                                                               1      requires knowing the score
                                                                                  function ∇xt log pt (xt , T0 ). At t = 0, this is simple be-
train
                                                                                  cause, by definition, the scores at different temperatures are
           DSM             DSM                       DSM            DSM                       DSM          DSM
                                                              guide                                    p0 (x0 , T0 )·T0 = ∇x0 log p0 (x0 , T1 )·T1 .
                                                                                  related by ∇x0 logguide
                                                                                  However, for t > 0, this relationship no longer holds in gen-
                      PT                                       PT                                      PT
                                                                                  eral due to the complex nature of Gaussian convolution.
                                                                                  Instead, we apply Taylor expansion on score around T1 :
              MCMC          MCMC                       MCMC           MCMC                      MCMC        MCMC
                                                                                    ∇xt log pt (xt , T ) ≈ ∇xt log pt (xt , T1 )
           Stage 1: initialize buffer      Stage 𝐾 − 𝑘 + 1: sample with               Final Stage: sample with
            and model at highest             guidance and train model                guidance and train model ∂
              two temperatures                  at temperature 𝑇𝑘−2                              + (T −𝑇1T1 )
                                                                                          at temperature          ∇xt log pt (xt , T )       . (9)
                                                                                                               ∂T                      T =T1
        Figure 3. The training process of PTSD. We unroll the training            If the trained model is conditioned on a continuum of tem-
        process into a sequence of target temperatures. We first initialize       peratures T , we could calculate the partial derivative by au-
        buffers and models at the highest two temperatures and generate           tomatic differentiation. However, this requires training the
        samples from lower temperatures sequentially using the tempera-
                                                                                  temperature-conditioned diffusion model on a sufficiently
        ture guidance to extrapolate to lower temperatures.
                                                                                  diverse set of temperatures to ensure a robust estimation of
                                                                                  the partial derivative.
        and hence share a global similarity, the swapping is only                 Fortunately, we can approximate the derivative with finite
        performed by “copying and pasting” the sample between                     differences:
        temperatures, failing to leverage such prior knowledge.
                                                                                      ∂
        Therefore, a natural question is: can we find an algorithm                      ∇xt log pt (xt , T )
                                                                                     ∂T                      T =T1
        to produce uncorrelated samples for higher temperatures,
                                                                                             ∇xt log pt (xt , T2 ) − ∇xt log pt (xt , T1 )
        and more efficiently propagate the samples for higher tem-                       ≈                                                 . (10)
                                                                                                                T2 − T1
        peratures to lower ones?
                                                                                  Plugging Eq. (10) into Eq. (9), we have
        We answer this question affirmatively with a learned neural
        sampler. A well-trained neural sampler at one tempera-                                       T2 − T
                                                                                  ∇xt log pt (xt , T ) ≈        ∇x log pt (xt , T1 )
        ture can produce independent samples at a cheaper cost.                                     T2 − T1 t
        Moreover, the neural sampler can be viewed as a “func-                                         T1 − T
                                                                                                  −              ∇x log pt (xt , T2 ) (11)
        tional representation” of the target density, and sharing the                                 T2 − T1 t
        weights of the neural sampler across temperatures offers                  = (1 + w)∇xt log pt (xt , T1 ) − w∇xt log pt (xt , T2 ),
        a more efficient mechanism for transferring information
        compared to traditional sample swapping.                                  where w = (T1 − T )/(T2 − T1 ). We highlight the similarity
                                                                                  between Eq. (11) and the guidance in diffusion models
        With these motivations, we now turn to the details of our                 (Ho & Salimans, 2021; Karras et al., 2024), offering an
        approach. We begin by introducing temperature guidance in                 intuitive perspective on this estimator: contrasting a “better”,
        Sec. 3.1, which is a more efficient way to share information              lower-temperature model by guiding the model at current
        between temperatures by enabling the neural sampler trained               temperature T1 with its “worse”, higher-temperature version.
        at higher temperatures to generate approximate samples for                For this reason, we term Eq. (11) as temperature guidance.
        a lower temperature. Then, we integrate this guidance term
        into the full pipeline of PTSD in Sec. 3.2.                               One concern on this guidance is that when diffusion
                                                                                  time t = 0, the known relation ∇x0 log p0 (x0 , T ) · T =
                                                                                  ∇x0 log p0 (x0 , T1 ) · T1 = ∇x0 log p0 (x0 , T2 ) · T2 does not
        3.1. Temperature guidance
                                                                                  hold, indicating this approximate guidance is inaccurate
        To avoid overloading notation, we use uppercase T to de-                  when t → 0. Fortunately, in diffusion models, the accuracy
        note temperatures while reserving lowercase t for diffusion               of the score at small time steps typically has a minimal
        time steps. Given the target unnormalized density p̃, the un-             impact on the quality of the generation.
        normalized density function at temperature T is defined by
                                                                                  Finally, similar to standard guidance methods, we note that
        p̃1/T . For simplicity, we will use p0 (x0 , T ) to represent the
                                                                                  temperature guidance is independent of the specific parame-
        target distributionR at temperature T , i.e. p0 (x0 , T ) ∝ p̃1/T ,
                                                                                  terization of diffusion models. In our experiments, instead
        and pt (xt , T ) = N (xt | x0 , σ(t)2 I) p0 (x0 , T ) dx0 .
                                                                                  of estimating the score function, we follow Karras et al.
        Assume we have a trained diffusion model that approximates                (2022) to learn the denoising mean using a denoiser.

                                                                              4
