A Non-isotropic Time Series Diffusion Model with Moving Average Transitions


                      Chenxi Wang 1 2 Linxiao Yang 2 Zhixian Wang 1 2 Liang Sun 2 Yi Wang 1


                         Abstract                                   time series analysis (Yang et al., 2024). So far, pioneer
                                                                    works have accommodated the diffusion model for time se-
     Diffusion models, known for their generative abil-
                                                                    ries forecasting (Rasul et al., 2021; Shen & Kwok, 2023; Li
     ity, have recently been adapted to time series anal-
                                                                    et al., 2022), missing value imputation (Tashiro et al., 2021;
     ysis. Most pioneering works rely on the standard
                                                                    Alcaraz & Strodthoff, 2023), uncertainty quantification (Li
     isotropic diffusion, treating each time step and
                                                                    et al., 2024) and so on.
     the entire frequency spectrum identically. How-
     ever, it may not be suitable for time series, which            Despite the initial success of these works, most of them
     often have more informative low-frequency com-                 still relied on the classical standard isotropic diffusion
     ponents. We empirically found that direct applica-             model, namely the Denosing Diffusion Probabilistic Model
     tion of standard diffusion to time series may cause            (DDPM) (Ho et al., 2020). It treats each time step indepen-
     gradient contradiction during training, due to the             dently and applies the same diffusion schedule. In the fre-
     rapid decrease of low-frequency information in                 quency domain, both low and high-frequency components
     the diffusion process. To this end, we proposed                are also degraded identically (see Figure 1). However, low-
     a novel time series diffusion model, MA-TSD,                   frequency components are usually more informative than
     which utilizes the moving average, a natural low-              high-frequency ones in time series analysis (Xu et al., 2024).
     frequency filter, as the forward transition. Its back-         We found that decreasing the low-frequency components
     ward process is accelerable like DDIM and can be               identically to the high-frequency ones during the diffusion
     further considered a time series super-resolution.             process may cause a drastic reduction of the essential time
     Our experiments on various datasets demonstrated               series information. It may further lead to contradictions
     MA-TSD’s superior performance in time series                   on the gradient directions of DDPM at different diffusion
     forecasting and super-resolution tasks.                        steps, impeding the training convergence (see Section 3).
                                                                    Therefore, it’s inappropriate to handle all the frequencies
                                                                    with the same diffusion process, and the classical design of
1. Introduction                                                     the DDPM doesn’t fully fit the inductive bias of time series
                                                                    data.
Time series data is widely adopted in the real world. Ex-
tensive examples include electricity consumption in power           To tackle such inequality in the frequency domain of time
systems, stock prices in financial markets, traffic flows in        series, we utilized moving average operation, a natural low-
transportation systems, etc. Over the past decade, remark-          pass filter, to build a non-isotropic time series diffusion
able time series models have been developed with versatile          model, Moving Average Time Series Diffusion (MA-TSD).
deep neural networks to perform various time series analy-          In the forward process, moving averages are set by small-
ses (Wang et al., 2024).                                            to-large kernel sizes, gradually coarsening the time series
                                                                    until zero-frequency components. The corresponding transi-
In recent years, the diffusion model (Ho et al., 2020) has          tion matrices are no longer diagonal like standard diffusion
risen as a shining generative model, showing remarkable per-        models. A corresponding dataset-based noise schedule is
formance for image and video synthesis. Such supercity in           provided alongside. Similar to Denosing Diffusion Implicit
modeling complex data distributions also drives the commu-          Models (DDIM) (Song et al., 2021a), we give an accelerable
nity to seek how to adapt it to time series, and thus empower       backward process with a customized strategy to select back-
   1                                                                ward steps. Naturally, with the coarse-to-fine philosophy,
     Department of Electrical and Electronic Engineering, The
University of Hong Kong, Hong Kong SAR 2 DAMO Academy,              the backward process of MA-TSD can also be viewed as
Alibaba Group, Hangzhou, China. Correspondence to: Yi Wang          time series super-resolution. Empirically, we show on di-
<yiwang@eee.hku.hk>.                                                verse datasets that MA-TSD has outstanding performances
                                                                    over time series forecasting and super-resolution tasks.
Proceedings of the 42 nd International Conference on Machine
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025         Contributions: 1) We empirically disclosed the training
by the author(s).

                                                                1
                          A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

                                               Degraded Data (K tx0)              Added Noise (β tt)
                                                                                                                                                                100




                                                                                                  Magnitude(dB)
                                                                                                                  −25
DDPM




                                                                                                                  −50




                                                                                                                                                                      Diffusion step
                                                                                                                  −75

                                                                                                                  −100

                                                                                                                                                                50




                                                                                                  Magnitude(dB)
Proposed




                                                                                                                  −25

                                                                                                                  −50

                                                                                                                  −75

                                                                                                                  −100

                                                                                                                                                                0
                                                                                                                         0.0    0.2     0.4   0.6   0.8   1.0
                                                                                                                                  Frequency fk /fNyq


Figure 1. DDPM versus our proposed moving average diffusion process. Visualization relies on reparameterization, i.e. xt = K t x0 +βt ϵt .
Left: Comparison in time domain. Right: Comparison in the frequency domain. For illustration, ϵt is fixed.


issue when directly applying DDPM to time series data, and                 whole process is modeled as a Markovian chain:
explored the relationship between the gradient similarity at                                                                   T
different diffusion steps and the change of frequency infor-                                                                   Y
                                                                                          q(x1:T |x0 ) :=                             q(xt |xt−1 ),                   (2)
mation. 2) We accordingly proposed a novel time series
                                                                                                                               t=1
diffusion model with moving average as transition. The
backward process can also be naturally considered as time                  where the one-step transition    is given by: q(xt |xt−1 ) :=
                                                                               √                      
series super-resolution. 3) We conducted extensive experi-                 N      αt xt−1 , (1 − αt )I . The coefficient αt ∈ [0, 1]
ments to demonstrate our salient performances over existing                monotonically decreases with t. Through the property of
DDPM-based diffusion models on time series-related tasks                   Gaussian distribution, the transition from x0 to xt can be
like time series forecasting and time series super-resolution.             derived:
                                                                                                        √                     
                                                                                       q(xt |x0 ) = N     ᾱt x0 , (1 − ᾱt )I ,      (3)
2. Background                                                                                                         Qt
                                                                           with the transition coefficient ᾱt = i=1 αi . Through
Given samples from a data distribution q(x0 ), diffusion                   Bayes rule and the property of Markovian chain, Equa-
models
R        are latent variable models in the form of pθ (x0 ) =              tion (2) can be reformulated as:
  pθ (x0:T ) dx1:T , trying to approximate the unknown
q(x0 ). The joint distribution is usually modeled as a Marko-                                                                     T
                                                                                                                                  Y
                                  QT
vian chain: p(x0:T ) = p(xT ) t=1 pθ (xt−1 |xt ). The la-                         q(x1:T |x0 ) = q(xT |x0 )                              q(xt−1 |xt , x0 ),           (4)
                                                                                                                                  t=2
tent variables of the diffusion models lie in the same space
of the original data, i.e. xt ∈ RL , ∀t ∈ [0, 1, · · · , T ]. In our       where the close form of q(xt−1 |xt , x0 ) can be analyt-
context, x0 is a time series with L time steps.                            ically derived by Bayes rule. With the factorization
The trainable parameters θ are optimized to minimize the                   of the forward pθ (x0:T ) and the backward q(x1:T |x0 ),
negative variational lower bound of the log-likelihood on                  the optimization target (Equation (1)) can be simpli-
the data distribution q(x0 ):                                              fied. A large part of the simplified optimization tar-
                                                                           get is minθ Eq(x0 ,xt ) [DKL (q(xt−1 |xt , x0 )∥pθ (xt−1 |xt ))].
     min L = Eq(x0:T ) [log q(x1:T |x0 ) − log pθ (x0:T )] , (1)           Therefore, the backward one-step transition pθ (xt−1 |xt ) is
           θ                                                               modeled to approximate the true posterior:
where the conditional joint q(x1:T |x0 ) is the core of diffu-                       pθ (xt−1 |xt ) = q (xt−1 |xt , fθ (xt , t)) ,                                    (5)
sion design. The designs of classical DDPM and DDIM will
be introduced to pave the way for our proposed method.                     where fθ (xt , t) is a trainable denosing neural network to
                                                                           estimate the x0 . The loss function can be consequently
2.1. Denosing diffusion probabilistic model                                simplified as:
                                                                                                           h                    i
                                                                                                                              2
In DDPM, the forward process degrades an original data                            L = Ex0 ∼q(x0 ),t∼[1,T ] ∥fθ (xt , t) − x0 ∥2 ,  (6)
x0 by gradually compressing the data and adding Gaussian                               √        √
noises until T ∈ N+ diffusion steps so that all the structures             with xt = ᾱt x0 + 1 − ᾱt ϵ, ϵ ∼ N (0, I) via reparame-
of original data are lost, i.e. q(xT |x0 ) = N (0, I). The                 terization. This means that the network fθ takes in the noisy

                                                                       2
                         A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

data xt and the current diffusion step t, and outputs the              types of time series analysis tasks can also be modeled in
prediction of the clean data x̂0 . Alternatively, the network          this way, for example super-resolution (conditional on low-
                         to estimate the added√noise ϵt , and
fθ can also be optimized √                                             resolution time series).
then apply x̂0 = (xt − 1 − ᾱt fθ (xt , t))/ ᾱt to obtain
the prediction of clean data. After training, one can simply           3. Empirical Findings on Applying DDPM to
generate a synthetic data sample by iteratively denoising a
xT ∼ p(xT ) with Equation (5).
                                                                          Time Series
                                                                       In this section, we discovered a training issue when directly
2.2. Denosing diffusion implicit model                                 applying DDPM on time series (see Appendix A for de-
                                                                       tailed settings). As depicted in the left of Figure 2, the
Based on DDPM, DDIM generalized the foward process
                                                                       training process of DDPM on a typical time series dataset,
to be non-Markovian and derived a new backward process.
                                                                       Electricity, experienced large variations, even in the
First, DDIM bypasses the DDPM design of q(xt |xt−1 ),
                                                                       beginning stage. As we introduced above, the DDPM is op-
and directly considers the conditional joint q(x1:T |x0 ) in
                                                                       timized to denoise the corrupted time series at all diffusion
the form of Equation (4), where q(xt−1 |xt , x0 ) is specially
                                                                       steps (see Equation (6)), but we observed that the direc-
designed to ensure that for all t, the transition q(xt |x0 )
                                                                       tions of model gradients at different diffusion steps could be
             R Equation (3). In other words, the marginal
always matches
                                                                       contradicted during training. When we specifically probed
is satisfied, q(xt−1 |xt , x0 )q(xt |x0 )dxt = q(xt−1 |x0 ).
                                                                       the 100th training step (see the left down of Figure 2), the
Since the conditional joint q(x1:T |x0 ) is defined as the same        gradients of about the first 25% diffusion steps show greater
form as DDPM’s, the optimization target of DDIM can be                 similarity, while they could be opposite with the rest 75%
identically factorized, and the backward one-step transition           diffusion steps, and vice versa. Since each data sample is
is also chosen as Equation (5). In this way, DDIM shares               corrupted to varying degrees during DDPM training, the
the identical loss function of DDPM.                                   averaged gradient of each mini-batch can accordingly show
                                                                       considerable variation with polarized per-sample gradients.
For backward process, DDIM offers an accelerable infer-
                                                                       Consequently, it may lead to the unstable optimization of
ence option. Specifically, given an ascending subset of
                                                                       DDPM on time series.
[1, · · · , T ], denoted as {ti }τ1 , ∀ti ∈ [0, T ] with τ ≤ T ,
DDIM allows the following sampling scheme:                             To further analyze the reason for this phenomenon, we first
                  p                                                    explored the change of the frequency information during the
      xti−1 = ᾱti−1 fθ (xti , ti )+                                   whole diffusion process (see the right up of Figure 2). We
                                      √
      q                      xt − ᾱt fθ (xti , ti )                   computed the spectral energy ratio between low-frequency
          1 − ᾱti−1 − ηt2i · i √ i                   + ηti ϵ,         components and high-frequency ones of the time series at
                                       1 − ᾱti
                                                                       each diffusion step. During the whole diffusion process,
where {ηti } are hyperparameters. DDIM can generate rea-               low-frequency energy was dominant at the early stage, and
sonable synthetic data within 50 steps for images. Besides,            then steeply decreased until a turning point after which
when ηti = 0, also known as deterministic sampling, such               the corrupted time series barely had salient low-frequency
scheme is considered as the numerical solution of a proba-             information, i.e., they became almost noises. If we compare
bility flow ordinary differential equation (ODE)(Song et al.,          this energy ratio change with the gradient similarity with
2021b).                                                                different diffusion steps (see the right of Figure 2). We found
                                                                       that the shift of gradient directions is highly aligned with the
2.3. Conditional diffusion for time series forecasting                 turning point of energy ratios. It implies that when DDPM is
                                                                       directly applied on time series, low-frequency information
Time series forecasting can be viewed as a conditional gen-            decays so steeply that there is a large discrepancy in the
eration task. Given a look-back window c ∈ RH with H                   model’s perception of the input data, with a few steps in the
time steps, we are aimed to predict the next L steps, i.e. the         early diffusion being informative, whereas, in the middle
target window x0 . In other words, we are interested in the            and late diffusion, they are nearly noises. Therefore, to
conditional distribution q(x0 |c). To include the guidance of          prevent the drastic decline of the energy ratio, we expect
the look-back window into the diffusion model, we can add              a time series diffusion model to have a gradual diffusion
the condition at each transition(Shen & Kwok, 2023):                   process that can keep more low-frequency information.
                                T
                                Y                                      In the following sections, we will introduce our method.
          p(x0:T |c) = p(xT )         pθ (xt−1 |xt , c).    (7)        Based on the moving average, a natural low-pass filter, it
                                t=1
                                                                       keeps more essential time series information during diffu-
Accordingly, the condition c is handled as another feature             sion, alleviates the gradient contradiction during training,
input to the denosing network, fθ (xt , t, c) ≈ x0 . Other             and thus obtains a less fluctuate training process (see the

                                                                   3
                                                                A Non-isotropic Time Series Diffusion Model with Moving Average Transitions




                                                                                                                                               Energy ratio
                                                                                                   DDPM
  Train Loss
                                                                                                                                                               60                                           60                          60
                                                                                                   Ours
               1.0
                                                                                                                                                               40                                           40                          40

               0.5                                                                                                                                             20                                           20                          20

                                                                                                                                                                      0                                      0                           0
                     0      250            500       750      1000      1250          1500    1750          2000
                                                                                                                                                                             0        25       50     75         0      200       400        0   250   500   750
                                                           train step
                 0                                                                                                 1.0                                                                diffusion step                 diffusion step              diffusion step




                                                                                                                                                       Gradient Similarity
 DDPM




               500                                                                                                 0.5




                                                                                                                          Cosine Similarity
                 0                                                                                                 0.0
 Ours




               500                                                                                                 −0.5



                                                                                                                                                                             0        25       50     75         0      200       400        0   250   500   750
                                                                                                                   −1.0
                     0        500
                         train step=0
                                                 0             500
                                                      train step=50
                                                                                 0           500
                                                                                     train step=100                                                                                   T=100                          T=500                       T=1000

Figure 2. Gradient analysis on Electricity dataset. Left up: Training loss curves of DDPM and ours. Left down: Cosine similarity
matrices of gradients w.r.t. the denosing network with different diffusion steps (total diffusion steps T = 1000). Right up: Energy ratio at
different diffusion steps between the low-frequency components and the high-frequency ones. Right down: Cosine similarity matrices
with different T at 100th training step.


                                                                                                                                                                                               where µ(·), σ(·) denotes the functions obtaining the mean
                                      q(z t | z 0 )                                                                                                                                            and standard deviation of a time series, respectively. There-
                                                                                                                                              Norm.
                 zT               ......             zt
                                                             pθ (z t−1 | z t )
                                                                                     z t−1         ......          z0                                                            x0
                                                                                                                                                                                               fore, we will build on the diffusion framework on the nor-
                                                                                                                                              Denorm.                                          malized time series. The denormalization strategies will be
                                                                                                                                                                                               investigated in Section 4.4.

                                                                                                                                                                                               4.2. Non-isotropic forward process
Figure 3. Our proposed MA-TSD. Dashed lines denote the forward                                                                                                                                 We now consider the following transition process for normal-
process, while solid lines represent the backward process.                                                                                                                                     ized time series, q(z t |z 0 ) := N z t ; K t z 0 , βt2 I , which
                                                                                                                                                                                               can also be reparameterized to:

left of Figure 2).                                                                                                                                                                                           z t = K t z 0 + βt ϵt , ϵt ∼ N (0, I)                 (9)

                                                                                                                                                                                               with the transition matrix K t ∈ RL×L , and the noise sched-
4. Moving Average Time Series Diffusion                                                                                                                                                        ule βt ∈ R. In the standard DDPM, the transition
                                                                                                                                                                                                                                            √ matrix is
In this section, we present our proposed MA-TSD, depicted                                                                                                                                      diagonal with identical entries, K t = diag( ᾱt ), and the
by Figure 3. Time series will first be normalized to be zero-                                                                                                                                        schedule is set accordingly to maintain the variance,
                                                                                                                                                                                               noise √
mean and unit-variance. Then, we utilize moving average to                                                                                                                                     βt = 1 − ᾱt .
build the diffusion model. Finally, the generated time series                                                                                                                                  Transition matrix. In our design, we expect to utilize
will be denormalized for downstream tasks.                                                                                                                                                     moving average to build our non-isotropic transition. First,
                                                                                                                                                                                               let us consider non-overlapping moving average filters. The
4.1. Instance normalization                                                                                                                                                                    kernel sizes {ki } are naturally chosen as all the factors of
                                                                                                                                                                                               the length of our target time series, given by:
Since moving average operation doesn’t modify the zero-
frequency component of a time series, the final p(xT ) will                                                                                                                                         {ki }n1 = {ki ∈ N | 1 < ki ≤ L, L mod ki = 0}. (10)
no longer be a easy-to-sample standard Gaussian distribu-
tion if we directly construct moving average diffusion on x0 .                                                                                                                                 Here, we sort the {ki }n1 in ascending order, and use the
Therefore, we apply instance normalization to each target                                                                                                                                      index i instead of t to tell from diffusion step indices for
time series sample x0 ∈ RL , and obtain the normalized                                                                                                                                         now.
z 0 ∈ RL with zero mean and unit variance, specifically:
                                                                                                                                                                                               The corresponding moving average kernels are denoted as
                                                                                                                                                                                               {K̂ i }n1 , and for each kernel, it convolves the normalized
                                                                       x0 − µ(x0 )                                                                                                             time series, i.e. K̂ i ∗ z 0 . Such convolution can be unrolled
                                                          z0 =                     ,                                                                                             (8)           and reformulated as matrix multiplication for generality,
                                                                         σ(x0 )

                                                                                                                                                                                           4
                             A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

namely K̂ i ∗ z 0 = K̄ i z 0 , with K̄ i = Unroll(K̂ i ) ∈                       The mean is chosen in order to guarantee that the mod-
R(L/ki )×L . We can further interpolate K̄ i along the time                      elling
                                                                                 R      of the joint matches the marginal for all t, i.e.
step axis to make it square to keep the shape of K̄ i z 0 un-                      q(z t−1 |z t , z 0 )q(z t |z 0 )dz t = q(z t−1 |z 0 ). In other
changed during transitions, and thus the transition matrix                       words, the choice of Equation (14) ensures q(z t |z 0 ) =
for ith moving average kernel is given as:                                       N z t ; K t z 0 , βt2 I for all t. The proof of such choice is
                                                                               included in Appendix B.3.
       K ′i = Interp Unroll(K̂ i ) ∈ RL×L .              (11)
                                                                                 4.3. Accelerable backward process
Though the moving average transition matrices are defined                        Analogous to DDIM, we now define the backward process
well, we find that such transition could have large jumps                        on the normalized time series as follows: pθ (z t−1 |z t ) =
between adjacent kernel sizes, since the factors of the time                     q (z t−1 |z t , fθ (z t , t, c)), where the denosing network
series length can be non-consecutive integers. To extend                         fθ (z t , t, c) tries to predict the clean normalized time se-
such design to the continuous case (i.e. arbitrary diffusion                     ries. For generality, we include the possible condition c as
steps), we can further interpolate on {K ′i }n1 along side the                   input of the denoising network for the conditional gener-
diffusion steps to have unlimited T -step transition matrices                    ation task, like time series forecasting. For unconditional
{K t }T1 :                                                                       tasks, we can simply set c = ∅.
              {K t }T1 = Interp {K ′i }n1 ,
                                             
                                                          (12)
                                                                                 For the normalized time series, we modeled q(z 1:T |z 0 ) and
where K t is no longer a diagonal matrix like DDPM. A sim-                       pθ (z t−1 |z t ) the same as DDIM, so it’s natural to derive
ple example of how we obtain the moving average transition                       the similar optimization target as Equation (6) but in the
is included in Appendix B.1.                                                     normalized space:
                                                                                                                h                          i
Noise schedule. For the noise schedule, we follow the vari-                                                                              2
                                                                                   Lz = Ez0 ,c∼q(z0 ,c),t∼[1,T ] ∥fθ (z t , t, c) − z 0 ∥2 , (15)
ance preserving principle in (Ho et al., 2020; Song et al.,
2021b). The noise schedules of the standard diffusion can                        After training, we can also accelerate the backward process
be analytically designed√ to keep variances√ according to the                    as we introduced in Section 2.2, given as:
transition coefficient ᾱt , i.e. βt = 1 − ᾱt , while the
decrease of time series variance caused by moving average                           z ti−1 = K ti−1 fθ (z ti , ti , c)+
                                                                                    q
varies by datasets. Therefore, we provide a dataset-based                               βt2i−1 − ηt2i                                             (16)
noise schedule to complement our forward process. Specifi-                                            (z ti − K ti fθ (z ti , ti , c)) + ηti ϵ,
cally, we can first compute the averaged decrease ratio γt                                  β ti
over the whole time series dataset:                                              where {ti }τ1 is an ascending sub-sequence of [1, · · · , T ].
                                  
                                    σ (K t x0 )
                                                                                The detailed proof that the accelerated backward process
                γt = Ex0 ∼q(x0 )                  .       (13)                   doesn’t essentially change the training objective can be
                                      σ(x0 )
                                                                                 found in the (Song et al., 2021a).
                                  p
Then, we accordingly set βt = 1 − γt2 as our noise sched-                        Acceleration strategy. Though the backward process can
ule to compensate for variance decrease. At the last diffu-                      be fastened by selecting a subset of total diffusion steps, how
sion step, the kernel size of the moving average equals to the                   this subset is chosen may cause performance differences.
time series length, and the corresponding γT = 0, βT = 1,                        Here, we offer a reasonable sampling strategy based on our
which ensures q(z T |z 0 ) = N (0, I). It should be noted that                   moving average forward process. Specifically, we recall
though we conduct the diffusion model on the normalized                          that the diffusion transition matrices {K t } are obtained by
time series, it makes no difference to compute {γt }, {βt }                      interpolating the original moving average transition matrices
over the normalized or original time series, The proof can                       {K ′i }. We consider shortening the backward process by
be found in the Appendix B.3.                                                    finding those diffusion steps whose transition matrices are
Conditional joint distribution. Similar to DDIM, we                              the closest to the original {K ′i }. For the ith original matrix
directly define the followingQfamily of joint distribu-                          K ′i , we search by:
                                      T
                                       q(z t−1 |z t , z 0 ), where
tion: q(z 1:T |z 0 ) := q(z T |z 0 ) t=2                                           t∗i = arg min ∥K t − K ′i ∥22 ,      s.t. K t ∈ {K t }T1 . (17)
                                    2
q(z T |z 0 ) = N z T ; K T z 0 , βt I , and for t ≥ 2:                                         t

                                                                                 Therefore, we can collect n diffusion steps {t∗i }n1 , corre-
 q(z t−1 |z t , z 0 ) =                                                          sponding to the original non-overlapping moving average
                      q                                      
                            2
                           βt−1 − ηt2                                 (14)       kernels, as our accelerated backward steps. We call such
 N K t−1 z 0 +                         (z t − K t z 0 ), ηt2 I  .              a strategy as factor-only backward since the selected back-
                             βt                                                  ward steps are only related to the factors of the length of

                                                                             5
                          A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

the time series. When ηt = 0, ∀t ∈ [1, · · · , T ], the back-              prediction network for µ̂, σ̂, we optimize both the denosing
ward process can also be viewed as a numerical solution to                 model fθ and the statistics prediction model with parameters
an ODE with Euler discretization. Further, if the function                 ω, gω = {gωµ , gωσ }, in a hybrid manner. In the appendix, Fig-
Interp(·) in Equation (12) interpolates evenly between                     ure 7 shows how these two networks work together for time
K ′i , K ′i−1 , ∀i ≥ 2, the factor-only backward essentially               series forecasting. Specifically, we modify the loss function
solves that ODE with larger steps. Refer to Appendix B.3                   on the normalized data (Equation (15)) into a hybrid case:
for details.
                                                                                         Lhybrid = λz Lz + λµ Lµ + λσ Lσ ,             (18)
Backward as super-resolution. As the forward pro-                                                                  h                      i
                                                                                                                                        2
cess is designed as gradually coarsening the time series,                  where we denote Lµ = Ex0 ∼q(x0 ) ∥gωµ (c) − µ(x0 )∥2 ,
the backward process can be spontaneously utilized for
                                                                                                     h                     i
                                                                                                                         2
                                                                           and Lσ = Ex0 ∼q(x0 ) ∥gωσ (c) − σ(x0 )∥2 . The coeffi-
super-resolution. Here, we don’t have to include the low-
resolution time series as the condition input into MA-TSD,                 cients λz , λµ , λσ are hyperparameters. We interpret that
since the framework itself demonstrates the multi-resolution               Lz aims to learn the shape of the target time series, while
property.                                                                  Lµ and Lσ are set for the statistics. Therefore, we can set
                                                                           µ̂ = gωµ (c), σ̂ = gωσ (c), to denormalize z 0 in the context
To be specific, let us consider a coarse time series whose                 of time series forecasting. Besides, when the coefficients
downscale rate is one of the factors of the original time                  λz , λµ , λσ are set properly, we can prove that the hybrid loss
series length. Utilizing the moving average transition ma-                 (Equation (18)) is essentially the upper bound of the loss of
trix, we denote such coarse time series as xi = K ′i x0 and                conditional diffusion models without instance normalization.
denote the normalized one as z i . The super-resolution scale              The detailed proof can be found in Appendix B.3.
we expected is then exactly ki . With Equation (17), we can
locate such scale in the diffusion process, and accordingly                Time series super-resolution. For super-resolution, since
choose a subset of total diffusion steps as [1, · · · , t∗i ]. Then,       the coarse time series xi obtained by moving average
we can start with z t∗i = z i , and iteratively apply Equa-                shares the same mean of the target time series, we can use
tion (16) to obtain a super-resolution result of z i . Therefore,          µ̂ = µ(xi ). On the other hand, though the standard devia-
the backward process of MA-TSD can be viewed as super-                     tions are not shared, we can utilize the dataset-based noise
resolution.                                                                schedule to re-scale σ(xi ) as: σ̂ = σ(xi )/γt∗i where γt∗i is
                                                                           the decrease ratio of the standard deviation at the diffusion
Compared with the diffusion-based models which take low-                   step t∗i mentioned before.
resolution inputs as conditions, the time complexity is de-
creased from O(nM ) to O(M ), where n is the number of
scales and O(M ) is the complexity of training.                            5. Experiments
                                                                           In this section, we mainly focus on two important time series
4.4. Denormalization                                                       analysis tasks, forecasting and super-resolution. The stan-
                                                                           dard time series synthesis task is included in Appendix C.1.
Given the denoised ẑ 0 from Equation (16), we need to
                                                                           An ablation study of our framework design is also included.
denormalize it to generate the final time series x0 , i.e. x̂0 =
ẑ 0 · σ̂ + µ̂. In this section, the choice of µ̂, σ̂ is considered
different, depending on the downstream application of MA-                  5.1. Time series forecasting
TSD.                                                                       Datasets. We consider six real-world datasets with di-
Time series synthesis. For the unconditional generation,                   verse temporal dynamics, commonly used by the commu-
we usually expect unlimited time series synthesis. There-                  nity (Wang et al., 2024), namely Electricity, ETTh2,
fore, we can simply sample from the empirical distribu-                    ETTm2, exchange, traffic, weather.
tion of time series means and standard deviations, µ̂ ∼                    Evaluation metrics. We assess time series forecasting us-
qemp (µ(x0 )), σ̂ ∼ qemp (σ(x0 )). Given a time series dataset,            ing MSE (Mean Squared Error) for deterministic accuracy
we can easily obtain the empirical distributions and denor-                and CRPS (Continuous Ranked Probability Score) for prob-
malize them.                                                               abilistic accuracy.
Time series forecasting. For time series forecasting, the                  Benchmarks. We compare our proposed MA-TSD with
mean and standard deviation of the target window is vital                  other diffusion-based time series forecasting models, includ-
for the prediction accuracy (Kim et al., 2021; Qin et al.,                 ing CSDI (Tashiro et al., 2021), SSSD (Alcaraz & Strodthoff,
2024). It’s improper to randomly sample from the empir-                    2023), D3VAE (Li et al., 2022), TMDM (Li et al., 2024)
ical distribution to conduct denormalization. We consider                  and mr-diff (Shen et al., 2024). Details about the implemen-
to utilize the look-back window c to produce the µ̂, σ̂ for                tation and comparison to non-diffusion models are included
the target window. To prevent training a separate statistics               in the Appendix C.2.

                                                                       6
                         A Non-isotropic Time Series Diffusion Model with Moving Average Transitions


Table 1. Average MSEs over prediction lengths L = {96, 192, 336, 720}. The best is bold and the second best is underlined.
           METHOD        EL E C T R I C I T Y   ETT H 2   ETT M 2     EXCHANGE        TRAFFIC       WEATHER       RANK

           CSDI               0.4581            0.2571    2.1230        1.2557         0.4991        0.1938        3.50
           SSSD               1.0257            0.7201    0.8936        2.9004         1.9662        0.6905        5.17
          D3VAE               0.8450            1.3961    3.3449        2.1086         6.3583        1.5461        5.67
          TMDM                0.4071            0.2508    0.1789        0.7885         0.1805        0.2209        2.83
          MR - DIFF           0.5287            0.2172    0.1700        0.4801         0.2471        0.2078        2.67
          MA-TSD              0.3404            0.2121    0.1241        0.3718         0.1660        0.2074        1.17


Table 2. Average CRPSs over prediction lengths L = {96, 192, 336, 720}. The best is bold and the second best is underlined.
           METHOD        EL E C T R I C I T Y   ETT H 2   ETT M 2     EXCHANGE        TRAFFIC       WEATHER       RANK

           CSDI               0.1939            0.1638    0.4720        0.3028         0.1883        0.1261        3.33
           SSSD               0.3216            0.3108    0.3565        0.6743         0.4579        0.3129        5.17
          D3VAE               0.3111            0.4173    0.6497        0.5380         0.8314        0.4497        5.67
          TMDM                0.1881            0.1591    0.1253        0.2959         0.1076        0.1380        2.00
          MR - DIFF           0.2357            0.1647    0.1293        0.2117         0.1453        0.1506        3.17
          MA-TSD              0.1747            0.1567    0.1135        0.2178         0.1156        0.1501        1.67


Results. As depicted in Table 1 and Table 2, the proposed             benchmark models are re-trained for each super-resolution
MA-TSD generally outperforms the benchmark time series                scale, since the condition inputs change. Details about the
diffusion models, achieving the best or the second best posi-         implementation are all included in the Appendix C.3.
tion on 6/6 and 5/6 datasets, respectively. The improvement
                                                                      Results. Table 3 records the results of time series super-
on the weather dataset is marginal, possibly because it is
                                                                      resolution. The proposed MA-TSD generally exceeds the
recorded in a higher resolution (Table 6). Both informa-
                                                                      conditional DDPM and FM-VP in terms of both consistency
tive high-frequency components and stochastic noises are
                                                                      and quality. Despite the slight inferiority in Context-FID on
revealed, which could be simultaneously suppressed by the
                                                                      the Solar dataset at the large scale, ours still outperformed
moving average process, and thus lead to the difficulty to
                                                                      the FM-VP model significantly in terms of consistency. No-
accurately forecast. Refer to Appendix C.2 for visualization
                                                                      tably, MA-TSD performs SR naturally through its backward
and Table 7 for the full results on each prediction length.
                                                                      process instead of retraining individually on each scale. Be-
                                                                      sides, our SR backward starts in the middle of the whole
5.2. Time series super-resolution                                     process, resulting in even fewer backward steps compared
Datasets. We consider three high-resolution real-world                to benchmarks (Figure 12). Therefore, we believe that our
datasets with 5-minute resolution, MFRED, Wind, Solar.                method provides a better trade-off of computational over-
For each dataset, we test the models for the following 3              heads, SR quality, and consistency to the low-resolution
tasks, i.e. 5min-to-15min (3×), 5min-to-30min (6×), and               input. Refer to Appendix C.3 for more visualization.
5min-to-60min (12×).
                                                                      5.3. Ablation study
Evaluation metrics. We assess time series super-resolution
by Consistency and Context-FID. The former one measures               In this section, we evaluate the effectiveness of impor-
MSE between the low-resolution inputs and the down-scaled             tant components and designs of MA-TSD through unlim-
super-resolution outputs (Saharia et al., 2022), while the            ited time series synthesis on the mentioned MFRED, Wind,
latter one examines the quality of the super-resolution results       Solar datasets.
compared to the real high-resolution time series (Jeha et al.,
                                                                      Key modules. Two key different designs from the standard
2022).
                                                                      time series diffusion model are the moving average diffusion
Benchmarks. We compare ours with two diffusion models                 schedule and the instance normalization in our proposed
directly conditioned on low-resolution inputs. One is trained         MA-TSD. We compared the possible design with/without
under DDPM framework (Saharia et al., 2022), and the other            these two components, as shown in Table 4. Without MA
is trained by flow matching with a variance-preserving path           and IN, namely directly applying DDIM on time series data,
(Lipman et al., 2023), which we denote as FM-VP. The                  exhibited the worst performance. Equipped with either IN or


                                                                  7
                        A Non-isotropic Time Series Diffusion Model with Moving Average Transitions


              Table 3. Comparison on time series super-resolution. The best is bold and the second best is underlined.
                                        MFRED                                                   WI N D                                    SO L A R
   S CALE     METHOD
                            C ONSIST.     C ONTEXT-FID         C ONSIST.                         C ONTEXT-FID                  C ONSIST.         C ONTEXT-FID
              MA-TSD         0.0032            0.1047             0.0067                              0.2863                    0.0106                       0.3491
      3        DDPM          0.0291            3.1028             0.0382                              7.4843                    0.0367                       1.7197
              FM-VP          0.0328            1.3481             0.0636                              4.2311                    0.0523                       0.7950
              MA-TSD         0.0037            0.1235             0.0098                              1.0241                    0.0115                       0.6972
      6        DDPM          0.0214            3.0740             0.0343                              7.9524                    0.0260                       2.2293
              FM-VP          0.0238            1.3381             0.0505                              4.4683                    0.0361                       0.6846
              MA-TSD         0.0047            0.4358             0.0136                              3.0567                    0.0129                       1.4135
     12        DDPM          0.0157            3.4044             0.0318                              9.2504                    0.0429                       6.2596
              FM-VP          0.0156            1.5222             0.0350                              4.8737                    0.0249                       0.8616


                                                                                                           random               uniform                     factor-only
Table 4. Context-FIDs of MA-TSDs with different components.
                                                                                                  MFRED                         Wind                             Solar
MA: Moving Average schedule. IN: Instance Normalization
                                                                                     30



                                                                       Context-FID
                                                                                                                    60
      M ODULES              DATASETS                                                                                                             40
                                                                                     20
     MA    IN         MFRED   WI N D            SO L A R                                                            40
                                                                                                                                                 20
                                                                                     10
      -       -      29.7093      52.3499      43.6236                                                              20


      -       ✓      13.1704      44.6908      35.3704                                    0.0       0.5
                                                                                                    τ /T
                                                                                                              1.0        0.0     0.5
                                                                                                                                 τ /T
                                                                                                                                           1.0        0.0          0.5
                                                                                                                                                                  τ /T
                                                                                                                                                                          1.0


      ✓       -      4.9403       21.3606      8.0744
      ✓       ✓      2.6742       16.9026      8.0297
                                                                      Figure 4. Comparison among accelerated backward strategies.



                                                                      6. Related Works
MA, the model obtained considerable improvements, with
                                                                      Diffusion models have been embraced by the time series
MA functioning more significantly than IN, which implies
                                                                      analysis community for their advanced probability modeling
the importance of MA in our framework design. Combining
                                                                      ability. (Rasul et al., 2021) first combined autoregressive
both modules achieved the best scores over all three datasets.
                                                                      modeling of recurrent neural networks and the diffusion
Accelerated backward. For a given backward step budget                process for time series forecasting. Then (Shen & Kwok,
τ ≤ T = 100, we compare our factor-only backward strat-               2023) proposed a non-autoregressive diffusion strategy for
egy with 1) randomly selecting subsets from [1, · · · , T ] and       foreasting, improving on both efficiency and accuracy. In
2) uniformly choosing a subset, i.e. linspace(1, T, τ ).              addition, there are also several works (Kollovieh et al., 2024;
Notably, given a budget τ , uniformly sampling renders a              Alcaraz & Strodthoff, 2023; Tashiro et al., 2021) that link
fixed subset {ti }τ1 , resulting in a deterministic result.           time series forecasting and time series imputation, modeling
                                                                      them with a conditional generation design, proposing unified
As shown in Figure 4, given a fixed ratio τ /T , randomly
                                                                      frameworks for these two tasks with diffusion models.
selecting the backward steps may cause large variances in
model performances. Uniform sampling did offer a better               Recently, the community began to fuse the unique time
result than random sampling, but the marginal gain on the             series property into diffusion models. (Fan et al., 2024)
performance decreases by τ /T . Compared to both random               leveraged coarse time series data as guidance during the
and uniform strategies, our factor-only strategy consistently         diffusion process, and added regularization terms into the
offers fair and effective results given the same τ /T budget,         loss function to constrain the backward process is coarse-to-
optimizing the resources while maintaining the quality of the         fine. (Shen et al., 2024) set several diffusion stages, where
results. Especially on MFRED and Solar, whose periodical              the previous diffusion stage generates coarse time series as
patterns are more significant, the factor-only accelerating           condition input for the latter stage to refine. (Liu et al., 2024)
strategy could even achieve competitive performance with              leveraged the historical windows to retrieve the k nearest
the full-step backward, indicating that the strategy captures         samples as references to guide diffusion model to generate
the key transition steps and can be utilized for fastening            more accurate forecasts. Despite the recent special design
MA-TSD.                                                               on time series data, they still rely on the DDPM process and

                                                                  8
                         A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

hardly improve on the typical isotropic design to meet the              Impact Statement
characteristics of time series.
                                                                        This paper presents work whose goal is to advance the field
Beyond time series diffusion models, some works simi-                   of Machine Learning. There are many potential societal
larly investigated non-isotropic diffusion models for images.           consequences of our work, none which we feel must be
(Hoogeboom & Salimans, 2023; Rissanen et al., 2023) de-                 specifically highlighted here.
signed frequency-domain diffusion with Gaussian blurring
as transition. (Daras et al., 2023) tried to generalize the
transition to linear corruptions, and gave examples of blur-
                                                                        References
ring and masking while (Bansal et al., 2024) proposed a                 Alcaraz, J. L. and Strodthoff, N. Diffusion-based time
diffusion model with arbitrary degradation functions, for                 series imputation and forecasting with structured state
example snowification and animorphosis, but without noise.                space models. Transactions on Machine Learning Re-
However, few of them obtained tremendous improvements,                    search, 2023. ISSN 2835-8856. URL https://
let alone being further explored by our time series commu-                openreview.net/forum?id=hHiIbk7ApW.
nity.
                                                                        Bansal, A., Borgnia, E., Chu, H.-M., Li, J., Kazemi, H.,
Regarding diffusion design, probably the most related work                Huang, F., Goldblum, M., Geiping, J., and Goldstein, T.
to ours is (Hoogeboom & Salimans, 2023), which shared                     Cold diffusion: Inverting arbitrary image transforms with-
a similar high-level idea of building the degradation pro-                out noise. Advances in Neural Information Processing
cess with low-pass filters (blurring in theirs, MA in ours).              Systems, 36, 2024.
However, they still tried to fit low-pass filters into the tradi-
tional DDPM’s Markovian process in the frequency domain,                Daras, G., Delbracio, M., Talebi, H., Dimakis, A., and
while we reformulated a non-Markovian design with a new                   Milanfar, P. Soft diffusion: Score matching with gen-
backward process. Besides, our noise schedule is specially                eral corruptions. Transactions on Machine Learning
designed to be dataset-based, regarding the variance de-                  Research, 2023. ISSN 2835-8856. URL https://
crease caused by the filters on different time series data.               openreview.net/forum?id=W98rebBxlQ.
Please refer to Appendix B.4 for more detailed information.
                                                                        Fan, X., Wu, Y., Xu, C., Huang, Y., Liu, W., and Bian,
7. Conclusion                                                             J. MG-TSD: Multi-granularity time series diffusion
                                                                          models with guided learning process. In The Twelfth
In this paper, we first revealed that direct application of               International Conference on Learning Representations,
standard DDPM to time series data may cause gradient con-                 2024. URL https://openreview.net/forum?
tradiction, because of rapid degradation of low-frequency                 id=CZiY6OLktd.
information. A novel time series diffusion model, MA-TSD,
is accordingly proposed, equipped with moving average for-              Ho, J., Jain, A., and Abbeel, P. Denoising diffusion proba-
ward transitions to keep more low-frequency information.                  bilistic models. Advances in neural information process-
The backward process can be accelerated in a DDIM style                   ing systems, 33:6840–6851, 2020.
and further act as super-resolution. The experiments show
that MA-TSD has superior performances over the state-of-                Hoogeboom, E. and Salimans, T. Blurring diffusion models.
the-art time series diffusion models in terms of forecasting              In The Eleventh International Conference on Learning
and super-resolution.                                                     Representations, 2023. URL https://openreview.
                                                                          net/forum?id=OjDkC57x5sz.
Software and Data                                                       Jeha, P., Bohlke-Schneider, M., Mercado, P., Kapoor, S., Nir-
Our codes can be found in https://github.com/                             wan, R. S., Flunkert, V., Gasthaus, J., and Januschowski,
WillWang1113/Moving-Average-Diffusion.                                    T. Psa-gan: Progressive self attention gans for synthetic
                                                                          time series. In The Tenth International Conference on
                                                                          Learning Representations, 2022.
Acknowledgements
                                                                        Kim, T., Kim, J., Tae, Y., Park, C., Choi, J.-H., and Choo, J.
The work was supported in part by the Research Grants
                                                                          Reversible instance normalization for accurate time-series
Council of the Hong Kong SAR (HKU 17200224), and in
                                                                          forecasting against distribution shift. In International
part by the Alibaba Group through Alibaba Research Intern
                                                                          Conference on Learning Representations, 2021.
Program.
                                                                        Kollovieh, M., Ansari, A. F., Bohlke-Schneider, M.,
                                                                          Zschiegner, J., Wang, H., and Wang, Y. B. Predict, refine,

                                                                    9
                       A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

  synthesize: Self-guiding diffusion models for probabilis-         Peebles, W. and Xie, S. Scalable diffusion models with
  tic time series forecasting. Advances in Neural Informa-            transformers. In Proceedings of the IEEE/CVF Interna-
  tion Processing Systems, 36, 2024.                                  tional Conference on Computer Vision, pp. 4195–4205,
                                                                      2023.
Li, Y., Lu, X., Wang, Y., and Dou, D. Generative time series
   forecasting with diffusion, denoise, and disentanglement.        Qin, D., Li, Y., Chen, W., Zhu, Z., Wen, Q., Sun, L., Pinson,
  Advances in Neural Information Processing Systems, 35:              P., and Wang, Y. Evolving multi-scale normalization for
   23009–23022, 2022.                                                 time series forecasting under distribution shifts. arXiv
                                                                      preprint arXiv:2409.19718, 2024.
Li, Y., Chen, W., Hu, X., Chen, B., Zhou, M., et al.
  Transformer-modulated diffusion models for probabilis-            Rasul, K., Seward, C., Schuster, I., and Vollgraf, R. Au-
  tic multivariate time series forecasting. In The Twelfth            toregressive denoising diffusion models for multivariate
  International Conference on Learning Representations,               probabilistic time series forecasting. In International Con-
  2024.                                                               ference on Machine Learning, pp. 8857–8868. PMLR,
                                                                      2021.
Lipman, Y., Chen, R. T. Q., Ben-Hamu, H., Nickel, M., and
  Le, M. Flow matching for generative modeling. In The              Rissanen, S., Heinonen, M., and Solin, A. Generative mod-
  Eleventh International Conference on Learning Represen-             elling with inverse heat dissipation. In The Eleventh
  tations, 2023. URL https://openreview.net/                          International Conference on Learning Representations,
  forum?id=PqvMRDCJT9t.                                               2023. URL https://openreview.net/forum?
                                                                      id=4PJUBT9f2Ol.
Liu, J., Yang, L., Li, H., and Hong, S. Retrieval-augmented
  diffusion models for time series forecasting. In The Thirty-      Saharia, C., Ho, J., Chan, W., Salimans, T., Fleet, D. J.,
  eighth Annual Conference on Neural Information Pro-                 and Norouzi, M. Image super-resolution via iterative
  cessing Systems, 2024. URL https://openreview.                      refinement. IEEE transactions on pattern analysis and
  net/forum?id=dRJJt0Ji48.                                            machine intelligence, 45(4):4713–4726, 2022.
Liu, Y., Wu, H., Wang, J., and Long, M. Non-stationary              Shen, L. and Kwok, J. Non-autoregressive conditional
  transformers: Exploring the stationarity in time series             diffusion models for time series prediction. In Inter-
  forecasting. Advances in neural information processing              national Conference on Machine Learning, pp. 31016–
  systems, 35:9881–9893, 2022.                                        31029. PMLR, 2023.
Meinrenken, C. J., Rauschkolb, N., Abrol, S., Chakrabarty,          Shen, L., Chen, W., and Kwok, J. Multi-resolution diffu-
 T., Decalf, V. C., Hidey, C., McKeown, K., Mehmani, A.,              sion models for time series forecasting. In The Twelfth
 Modi, V., and Culligan, P. J. Mfred, 10 second interval              International Conference on Learning Representations,
 real and reactive power for groups of 390 us apartments              2024.
 of varying size and vintage. Scientific Data, 7(1):375,
 2020.                                                              Song, J., Meng, C., and Ermon, S. Denoising diffu-
                                                                      sion implicit models. In International Conference on
Naiman, I., Berman, N., Pemper, I., Arbiv, I., Fadlon, G.,            Learning Representations, 2021a. URL https://
  and Azencot, O. Utilizing image transforms and diffu-               openreview.net/forum?id=St1giarCHLP.
  sion models for generative modeling of short and long
  time series. Advances in Neural Information Processing            Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A.,
  Systems, 37:121699–121730, 2024a.                                   Ermon, S., and Poole, B. Score-based generative mod-
                                                                      eling through stochastic differential equations. In In-
Naiman, I., Erichson, N. B., Ren, P., Mahoney, M. W., and             ternational Conference on Learning Representations,
  Azencot, O. Generative modeling of regular and irregular            2021b. URL https://openreview.net/forum?
  time series data via koopman VAEs. In The Twelfth                   id=PxTIG12RRHS.
  International Conference on Learning Representations,
  2024b. URL https://openreview.net/forum?                          Tashiro, Y., Song, J., Song, Y., and Ermon, S. Csdi: Con-
  id=eY7sLb0dVF.                                                      ditional score-based diffusion models for probabilistic
                                                                      time series imputation. Advances in Neural Information
Nie, Y., Nguyen, N. H., Sinthong, P., and Kalagnanam, J. A            Processing Systems, 34:24804–24816, 2021.
  time series is worth 64 words: Long-term forecasting with
  transformers. In The Eleventh International Conference            Wang, Y., Wu, H., Dong, J., Liu, Y., Long, M., and Wang, J.
  on Learning Representations, 2023. URL https://                    Deep time series models: A comprehensive survey and
  openreview.net/forum?id=Jbdc0vTOcol.                               benchmark. arXiv preprint arXiv:2407.13278, 2024.

                                                               10
                       A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

Wu, H., Xu, J., Wang, J., and Long, M. Autoformer: Decom-
 position transformers with auto-correlation for long-term
 series forecasting. Advances in neural information pro-
 cessing systems, 34:22419–22430, 2021.
Xu, Z., Zeng, A., and Xu, Q. FITS: Modeling time
  series with $10k$ parameters. In The Twelfth In-
  ternational Conference on Learning Representations,
  2024. URL https://openreview.net/forum?
  id=bWcnvZ3qMb.
Yang, Y., Jin, M., Wen, H., Zhang, C., Liang, Y., Ma, L.,
  Wang, Y., Liu, C., Yang, B., Xu, Z., et al. A survey on
  diffusion models for time series and spatio-temporal data.
  arXiv preprint arXiv:2404.18886, 2024.




                                                               11
                        A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

A. Details of directly applying DDPM on time series
As an example of illustrating the potential glitch when DDPM is directly applied on time series data, we used Electricity
dataset, a typical time series dataset with complex patterns. We consider L = 400 and the spectral energy ratio e is calculated
as follows:


                                                                                 Pζ
                                                                                            |ui0 |2
                                                                          e = PNi=1                       ,                   (19)
                                                                                Nyq        i 2
                                                                                   i=ζ+1 |u0 |




                                                                                                                          N
where we denote the real fast Fourier transform (rFFT) of the time series x0 as u0 = [u10 , u20 , · · · , u0 Nyq ], and ui0 ∈ C is
the ith frequency component. The parameter ζ is the split ratio. We set ζ = round(0.2 · NNyq ) in this example, since the
frequency components are in a relative low level after then (see Figure 5).




                                                        0.6


                                                        0.5
                                   Magnitude (energy)




                                                        0.4


                                                        0.3


                                                        0.2


                                                        0.1


                                                        0.0

                                                              0.0   0.2         0.4            0.6            0.8   1.0
                                                                           Frequency (divided by NNyq )




               Figure 5. Frequency energy of a data sample in Electricity dataset. The x-axis is devided by NNyq




During training, we fixed the random seed to guarantee the same initialization of models and the order of data samples.
In this simple example, for each epoch, we did 20 times mini-batch training with batch size set as 64, thus in total 2000
training steps.

B. Details of MA-TSD
B.1. Transition matrix example
As depicted in Figure 6, we consider the situation of L = 6 as an naive example to illustrate how we get the square transition
matrix K t with moving average.

B.2. Combination of denosing networks and conditioning networks
The combination of denosing networks and conditioning networks are shown in Figure 7. The Encoder embeds the noisy z t
and fuse with the position embedding of t. In the conditional generation, the condition c is also encoded and fused together.
Then, the Decoder will output the prediction ẑ 0 , and the conditional decoder will output the σ̂, µ̂ for denormalization, if
needed. During inference, z t−1 will be obtained by z t and ẑ 0 .

                                                                                     12
                              A Non-isotropic Time Series Diffusion Model with Moving Average Transitions




                               Unroll                                              Interp.
                                                                       ·                                                                    ·
                                                                                 on time steps


                                                   K̄ i+1



                 K̃i+1 ∗ z 0                                                z0                               K ′i+1                             z0




                                                                                                                       on diffusion steps
                                                                                                             Interp.

                                                                                                                             {K t}
                               Unroll                                              Interp.
                                                                       ·                                                                    ·
                                                                                 on time steps



                                                    K̄ i


                  K̃i ∗ z 0                                                 z0                                  K ′i                            z0


Figure 6. Example at k1 = 2 and k2 = 3. The convolution kernels are first unrolled to a matrix, and then interpolate along side the time
steps to be square. Across the diffusion steps, the transition matrices are also interpolated.


B.3. Proofs and Derivations
B.3.1. D ECREASE RATIO γt CALCULATION
We denote the decrease ratio calculated over the z 0 as γtz :
                                                                −µ(x0 )
                                                                            
                                                         σ K t x0
                                                                              = Ex0 ∼q(x0 ) σ (K t (x0 − µ(x0 )))
                                                                                                                
                           σ (K  z
                                t 0  )                            σ(x
                                                                    0 )
       γtz = Ez0 ∼q(z0 )                 = Ex0 ∼q(x0 )         −µ(x0 )
                             σ(z 0 )                       σ( x0         )                     σ(x0 − µ(x0 ))
                                                                σ(x
                                                                  0)
                                                                   
                           σ (K t x0 − µ(x0 ))
                                                                           
                                                                  σ (K t x0 )
           = Ex0 ∼q(x0 )                          = Ex0 ∼q(x0 )                 = γt ,
                             σ(x0 − µ(x0 ))                         σ(x0 )
where the first equal in the second line is because moving average doesn’t change the mean value of x0 , i.e.
K t (x0 − µ(x0 )) = K t x0 − µ(x0 ), and the second equal in the second line is because σ(x0 + const.) = σ(x0 ).
Therefore, it’s the same to calculate γt over z 0 and x0 .

B.3.2. T HE CHOICE OF q(z t−1 |zt , z 0 )
                                                  QT
Given the defined q(z 1:T |z 0 ) := q(z T |z 0 ) t=2 q(z t−1 |z t , z 0 ), the defined q(z  t−1 |zt , z 0 ) in Equation (14) and
q(z T |z 0 ) := N z T ; K T z 0 , βT2 I , we can have q(z t |z 0 ) = N z t ; K t z 0 , βt2 I for all t. The proof is similar to
that of (Song et al., 2021a), with the transition generalized to K t x0
Proof. We can prove         the above statement through an induction argument.            Assume that for t ≤ T , q(z t |z 0 ) =
                                                                               2
N z t ; K t z 0 , βt2 I stands, and if q(z t−1 |z 0 ) = N z t−1; K t−1 z 0 , βt−1
                                                                                   
                                                                                   I also stands, then we can prove it from t = T
to t = 1 with the initial q(z T |z 0 ) := N z T ; K T z 0 , βT2 I .
First, via the marginalization, we have:
                                                               Z
                                            q(z t−1 |z 0 ) =        q(z t−1 |z t , z 0 )q(z t |z 0 )dz t .                                           (20)
                                                               xt

                                                                           13
                              A Non-isotropic Time Series Diffusion Model with Moving Average Transitions




                ......                                                                                           z t−1   ......
                         zt           Encoder           +                 Decoder                ẑ 0                             z0         x0




                         t           Pos. Emb.          +



                                                                                                 σ̂                               ×           +
                         c           Cond. Enc.                          Cond. Dec.
                                                                                                 µ̂



Figure 7. The denoising and statistics prediction models for time series forecasting. To include the unconditional generation c = ∅, we
make the dashed line for illustration. Pos. Emb.=Position Embedder, Cond. Enc.=Condition Encoder, Cond. Dec.=Condition Decoder.

                                                                                                                    √ 2                                     
                                                                                                                         βt−1 −ηt2
With the given q(z t |z 0 ) = N z t ; K t z 0 , βt2 I and q(z t−1 |z t , z 0 ) = N                                                 (z t − K t z 0 ), ηt2 I
                                                     
                                                                                                    K t−1 z 0 +            βt                                    , we
can deduce that q(z t−1 |z 0 ) is also Gaussian, with the mean µzt−1 and the variance Σzt−1 :
                                                             q
                                                               2
                                                              βt−1 − ηt2
                                   µzt−1 = K t−1 z 0 +            (K t z 0 − K t z 0 ) = K t−1 z 0 ,
                                                            βt                                                                                                   (21)
                                                                        β 2 − η2
                                                                                   
                                                              2
                                                    Σzt−1 = ηt−1 + βt2 · t−1 2 t I = βt−1   2
                                                                                                I.
                                                                            βt
                                            2
Therefore, q(z t−1 |z 0 ) = N (K t−1 z 0 , βt−1 I) holds and the inductive argument can be processed.

B.3.3. BACKWARD ODE
Let us first consider our backward process without acceleration, given by:
                                                                     q
                                                                       2
                                                                      βt−1 − ηt2
                               z t−1 = K t−1 fθ (z t , t, c) +                          (z t − K t fθ (z t , t, c)) + ηt ϵ.                                      (22)
                                                                           βt

When ηt = 0, we can have:
                                                                                βt−1
                                       z t−1 = K t−1 fθ (z t , t, c) +               (z t − K t fθ (z t , t, c))                                                 (23)
                                                                                 βt
After reformulation, we further have:
                                                                                         
                                                z t−1   zt               K t−1   Kt
                                                      −    =                   −              fθ (z t , t, c),                                                   (24)
                                                βt−1    βt               βt−1    βt

which can be viewed as the numerical solution with Euler method to the following ODE with the discrete step ∆t = 1:
                                                                                                 !
                                                                                          K⊤
                                                                
                                                            zt
                                                    d                = fθ⊤ (z t , t)d      t
                                                                                                        .                                                        (25)
                                                            βt                            βt


Now, we consider the even interpolation between {K ′i }ni where we anchor the original K ′i , and linearly inject m intermediate
matrices between K ′i and K ′i+1 . Then the collected diffusion step subset {t∗i }n1 are essentially {i(m + 1)}n1 = {m +
1, 2(m + 1), · · · , n(m + 1)}. Therefore, backward with {t∗i }n1 in this situation is basically Euler method with the discrete
step ∆t = m + 1.

                                                                            14
                         A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

B.3.4. H YBRID OPTIMIZATION
The conditional diffusion loss function without instance normalization over x0 can be written by:

                                         Lx = Ex0 ,c,t ∥hΘ (xt , t, c) − x0 ∥22 ,
                                                                              
                                                                                                                             (26)

where we use hΘ to distinguish from fθ and gω mentioned previously.
Further, we can express the x0 into: x0 = z 0 · σ(x0 ) + µ(x0 ), and then parameterize the denosing network accordingly:
hΘ (xt , t, c) = fθ (z t , t, c) · gωσ (c) + gωµ (c)
For simplicity, we denote lx = ∥hΘ (xt , t, c) − x0 ∥2 , and have:

        lx2 = ∥hΘ (xt , t, c) − x0 ∥22                                                                                       (27)
           = ∥fθ (z t , t, c) · gωσ (c) + gωµ (c) − z 0 · σ(x0 ) − µ(x0 )∥22                                                 (28)
                                                                                 2
           ≤ (∥fθ (z t , t, c) · gωσ (c) − z 0 · σ(x0 )∥2 + ∥gωµ (c) − µ(x0 )∥2 )                    (Triangle inequality)   (29)
                                                                                                2
           = (∥fθ (z t , t, c) · gωσ (c) − z 0 · σ(x0 ) + z 0 · gωσ (c) − z 0 · gωσ (c)∥2 + lµ )                             (30)
                                                                                       2
           = (∥z 0 · (gωσ (c) − σ(x0 )) + gωσ (c) · (fθ (z t , t, c) − z 0 )∥2 + lµ )                                        (31)
                                                                                             2
           ≤ (∥z 0 ∥∞ ∥gωσ (c) − σ(x0 )∥2 + ∥gωσ (c)∥2 ∥(fθ (z t , t, c) − z 0 )∥2 + lµ )            (Triangle inequality)   (32)
                                               2
           = (∥z 0 ∥∞ lσ + ∥gωσ (c)∥2 lz + lµ )                                                                              (33)
           ≤ ∥z 0 ∥2∞ + ∥gωσ (c)∥22 + 1 lz2 + lµ2 + lσ2
                                                       
                                                                                                     (Cauchy inequality).    (34)

Further, we can scale ∥z 0 ∥∞ to the maximum absolute value of the all the z 0 over the dataset. Then, for gωσ (c), it
tries to approximate the real standard deviation, gωσ (c) ≈ σ(x0 ), and the maximum σ(x0 ) over the whole training
dataset q(x0 ) can be obtained. We can further limit the output of the gωσ to the largest σ(x0 ). Therefore, we can scale
        2     σ     2
                         
  ∥z 0 ∥∞ + ∥gω (c)∥2 + 1 ≤ (z max + σmax + 1) = λ
Therefore, we have:

                                   Lx = Ex0 ,c,t lx2
                                                 
                                                                                                                             (35)
                                      ≤ Ex0 ,c,t ∥z 0 ∥2∞ + ∥gωσ (c)∥22 + 1 lz2 + lµ2 + lσ2
                                                                                          
                                                                                                                             (36)
                                      ≤ Ex0 ,c,t λ lz2 + lµ2 + lσ2
                                                                  
                                                                                                                             (37)

We compare the hybrid loss function:

               Lhybrid = λz Lz + λµ Lµ + λσ Lσ
                       = Ex0 ,c,t ∥λz fθ (z t , t, c) − z 0 ∥22 + λµ ∥gωµ (c) − µ(x0 )∥22 + λσ ∥gωσ (c) − σ(x0 )∥22
                                                                                                                   
                                                                                                                             (38)
                       = Ex0 ,c,t λz lz2 + λµ lµ2 + λσ lσ2 .
                                                           

We can see that if the λz = λµ = λσ = λ, then Lx ≤ Lhybrid .

B.4. Differences from Blurring Diffusion Models (Hoogeboom & Salimans, 2023)
From a high-level perspective, BDM and ours shared a similar idea, i.e., building the degradation process with low-pass
filters (blurring in BDM, MA in ours). However, there exist clear distinctions.
Filtering space: We filtered the data in the time space by convolution (matrix multiplication), q(xt | x0 ) = N (K t x0 , βt2 I)
while BDM blurs the images in the frequency domain and transform back to the pixel domain (using convolution theorem),
i.e., q(xt | x0 ) = N (V αt V ⊤ x0 , σt2 I), where V ⊤ , V are Discrete Cosine Transform (DCT) and Inverse DCT (IDCT),
and αt represent the frequency response of Gaussian blurring kernel, a diagonal matrix, whose each entry αti ∈ (0, 1] is
a coefficient of ith frequency component. For low pass filters, ∀t, αti decreases by i until (nearly) zero to suppress high
frequency components.
Markovian or not: Since αt is diagonal, BDM proposed that for each frequency component, a standard Markovian
                                                                                                                2
DDPM can be constructed. The one-step transition is accordingly defined, i.e. q(ut | ut−1 ) = N (αt|t−1 ut−1 , σt|t−1 I),

                                                                   15
                        A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

where ut = V ⊤ x0 is the frequency representation and αt|t−1 = αt /αt−1 . However, dividing αt−1 could be numerically
unstable in practice. As we mentioned above, αti could become to be (nearly) zero for larger i, so dividing αt−1 is unstable
for all diffusion steps. Though some epsilons can be added to ensure stable division, tiny errors in the high frequency
components will still be amplified a lot through the iterative backward process. Chances are that the generated data are
dominated by the improperly amplified high frequency components. Therefore, when it comes to designing a diffusion
process with non-reversible low-pass filters, we believe it’s improper to follow the Markovian assumption and define the
necessary q(xt | xt−1 ). Instead, in our framework, faced with similar non-reverible MA, we bypassed the definition of
q(xt | xt−1 ), assumed q(x1:T | x0 ) non-Markovian (in the DDIM-style) and then delicately defined q(xt−1 | xt , x0 ) to
satisfy q(xt | x0 ) for all t. Thus, whether it’s Markovian or not is another distinct difference from ours and BDM.
Noise schedule: BDM designed αt = at dt , where dt is the frequency response of blurring kernel and at ∈ [0, 1] is an
extra scaler decreasing by t, and the noise schedule σt = 1 − a2t . In our framework, the noise schedule βt is dataset-based,
chosen regarding the variance decrease caused by MA (Equation (13)) on different datasets.
In summary, despite the similar high-level idea, there exist clear differences between BDM and ours. BDM tried to fit in the
standard Markovian DDPM framework, while we reformulated a framework with special adaptation on moving average
filters and time series.

C. Experiment details
We launch our experiments on a single NVIDIA GeForce RTX 4090 24GB GPU.

C.1. Synthesis
We follow the setting of KoVAE (Naiman et al., 2024b) and ImagenTime (Naiman et al., 2024a) on three datasets, ETTh2,
Exchange, and ECG (medical time series)1 , i.e. L = 24. KoVAE is a SOTA VAE-based time series generative model while
ImagenTime is a diffuison-based one.
We also include discriminative score (Disc. Score) and predictive score (Pred. Score) as additional metrics for evaluating the
fidelity and usefulness of synthetic time series, as the following table shows.

                                         Table 5. Results on standard time series synthesis
                     DATASET           M ODEL          D ISC . S CORE     P RED . S CORE      C ONTEXT-FID
                                        KOVAE               0.069              0.034             0.258
                      ETT H 2        I MAGEN T IME          0.053              0.054             0.118
                                        OURS                0.044              0.026             0.075
                                        KOVAE               0.137              0.038             1.520
                    EX C H A N G E   I MAGEN T IME          0.129              0.067             1.112
                                        OURS                0.030              0.027             0.083
                                        KOVAE               0.459              0.081             1.206
                        ECG          I MAGEN T IME          0.400              0.079             1.223
                                        OURS                0.345              0.076             0.979

We can see that compared to the SOTA time series generative models, our method still shows salient improvements in
discriminative score and predictive score, illustrating the capability of generating high-fidelity and useful synthetic time
series samples.

C.2. Forecasting
The length of the look-back window is set as 96, and the target time series length is set as L ∈ {96, 192, 336, 720}. Such a
setting is aligned with (Wang et al., 2024). Table 6 recorded the information of the forecasting datasets, Electricity2 , ETT3 ,
   1
     https://www.kaggle.com/datasets/devavratatripathy/ecg-dataset
   2
     https://archive.ics.uci.edu/ml/datasets/ElectricityLoadDiagrams20112014
   3
     https://github.com/zhouhaoyi/ETDataset

                                                                16
                        A Non-isotropic Time Series Diffusion Model with Moving Average Transitions


                                                     Table 6. Forecasting datasets
                       Dataset        Resolution      Time steps                     Description
                      Electricity      1 hour           26304                  Electricity consumptions
                        ETTh           1 hour           17420           Oil temperature of power transformers
                        ETTm           15 min           69680           Oil temperature of power transformers
                      Exchange          1 day            7588                 Panel data of exchange rates
                        Traffic        1 hour           17544                        Traffic loads
                       Weather         10 min           52695                  Meteorological indicators


Exchange4 , Traffic5 and Weather6 .
We set the batch size as 64, the learning rate as 2 × 10−4 , the training epoch as 100 with early stopping, and the diffusion
step T = 100. To include the condition input, the condition encoder and decoder are all Multi-Layer Perceptrons (MLP).
The hyperparameters of hybrid optimization are chosen as λz = λµ = λσ = 1. The specific network architectures can be
referred to as our source code.
The diffusion models inferred for 100 times to calculate the metrics. For MSE, we averaged over 100 times to have
deterministic forecasts, while for CRPS, we first calculated nine quantiles at {0.1, 0.2, · · · , 0.9}, and then approximated
CRPS.
For each target length, benchmarks and our proposed model are trained with 5 different random initialization seeds, and the
full results on each target length are reported in Table 7.
Non-diffusion time series forecasting benchmarks. Although our paper focuses on how to improve the time series
diffusion model, we also believe that it’s necessary to include SOTA non-diffusion time series forecasting methods as
a reference. Therefore, we included Autoformer (Wu et al., 2021), Non-stationary Transformer (Liu et al., 2022), and
PatchTST (Nie et al., 2023) to compare deterministic forecasting performance. We run all models in the same setting
mentioned above, i.e., L = {96, 192, 336, 720}, and the averaged MSEs over all L is reported in Table 8.
Regarding overall performance, our model still ranks first among these benchmarks, though it is slightly inferior to ETTh2
and weather compared to PatchTST.
It should be noted that these SOTA architectures are particularly tailored for time series forecasting and well adapted to
the benchmark datasets, while forecasting is one of the downstream applications of our proposed MA-TSD framework.
Therefore, we think there exists great potential to accommodate the SOTA architectures into our MA-TSD framework to
have a better forecasting performance in our future work.

C.3. Super-resolution
For time series super-resolution, we set the length of the time series as L = 576, and also train with the batch size as 64, the
learning rate as 2 × 10−4 , the training epoch as 100 with early stopping, the diffusion step T = 100.
The information of the datasets, MFRED (Meinrenken et al., 2020), Wind7 and Solar8 are listed in Table 9.


                                                   Table 9. Super-resolution datasets
                   Dataset     Resolution       Time steps                           Description
                   MFRED            5 min          25908          Household electricity load in Manhattan
                    Wind            5 min          26496        Power generation from Australian wind farms
                    Solar           5 min          52992        Power generation from Australian PV panels
   4
     https://github.com/laiguokun/multivariate-time-series-data
   5
     http://pems.dot.ca.gov
   6
     https://www.bgc-jena.mpg.de/wetter/
   7
     https://zenodo.org/records/4654858
   8
     https://zenodo.org/records/8219786

                                                                   17
                                A Non-isotropic Time Series Diffusion Model with Moving Average Transitions

                                 electricity                                                                            etth2                                                                   ettm2
      2                real               fcst               90%PI                                       real              fcst                90%PI                            real               fcst               90%PI
                                                                                   0.0
                                                                                                                                                                     0.5
      1
                                                                                 −0.5
                                                                                                                                                                     0.0
      0
                                                                                 −1.0
                                                                                                                                                                   −0.5
 −1
                                                                                 −1.5
                                                                                                                                                                   −1.0
          0               50             100               150             200              0               50            100                150             200           0         50           100               150               200
                               exchange rate                                                                           traffic                                                              weather
                       real               fcst               90%PI                                       real              fcst                90%PI                 0.6        real               fcst               90%PI
2.75
                                                                                        2
                                                                                                                                                                     0.4
2.50
                                                                                        1                                                                            0.2
2.25
                                                                                                                                                                     0.0
2.00                                                                                    0
                                                                                                                                                                   −0.2
1.75
                                                                                   −1
                                                                                                                                                                   −0.4
1.50

          0               50             100               150             200              0               50            100                150             200           0         50           100               150               200




                                                                            Figure 8. Forecasting samples on L = 96

                                electricity                                                                            etth2                                                                    ettm2
                   real                  fcst               90%PI                                    real                 fcst                90%PI                  1.0        real               fcst               90%PI
 2
                                                                                  0.0
                                                                                                                                                                     0.5
 1
                                                                                 −0.5

                                                                                                                                                                     0.0
 0                                                                               −1.0

                                                                                                                                                                   −0.5
−1                                                                               −1.5

                                                                                                                                                                   −1.0
          0       50           100      150         200      250          300               0       50           100      150         200      250          300            0   50         100     150         200         250         300
                              exchange rate                                                                            traffic                                                              weather
                   real                  fcst               90%PI                                    real                 fcst                90%PI                 0.75        real               fcst               90%PI
                                                                                    2
2.5                                                                                                                                                                 0.50

                                                                                    1                                                                               0.25
2.0
                                                                                    0                                                                               0.00

                                                                                                                                                                   −0.25
1.5                                                                               −1
                                                                                                                                                                   −0.50

          0       50           100      150         200      250          300               0       50           100      150         200      250          300            0   50         100     150         200         250         300




                                                                           Figure 9. Forecasting samples on L = 192

                                     electricity                                                                        etth2                                                                   ettm2
                                                                                   1.0
      2                real                  fcst                90%PI                                   real                  fcst                90%PI                        real                   fcst               90%PI
                                                                                   0.5                                                                               0.5
      1
                                                                                   0.0                                                                               0.0
      0
                                                                                 −0.5
                                                                                                                                                                   −0.5
 −1
                                                                                 −1.0
                                                                                                                                                                   −1.0
              0         100            200           300            400                         0         100            200           300            400                  0        100          200          300               400
                               exchange rate                                                                            traffic                                                                 weather
                                                                                                                                                                     0.2
1.75
                       real                  fcst                90%PI                                   real                  fcst                90%PI                        real                   fcst               90%PI
1.50                                                                                    2                                                                            0.0
1.25
                                                                                        1                                                                          −0.2
1.00
                                                                                        0                                                                          −0.4
0.75

0.50                                                                               −1                                                                              −0.6
0.25

              0         100            200           300            400                         0         100            200           300            400                  0        100          200          300               400




                                                                          Figure 10. Forecasting samples on L = 336


                                                                                                                       18
                                   A Non-isotropic Time Series Diffusion Model with Moving Average Transitions


                                                  Table 7. Forecasting performance measured in MSE and CRPS.
                             MA-TSD                       mrdiff                      TMDM                        SSSD                        D3VAE                        CSDI
 Dataset      L
                       MSE            CRPS          MSE            CRPS         MSE          CRPS           MSE          CRPS           MSE           CRPS           MSE           CRPS
              96    0.288±0.003   0.158±0.001    0.496±0.008   0.226±0.004   0.348±0.018   0.175±0.006   0.976±0.043   0.309±0.004   0.816±0.078   0.306±0.014    0.358±0.022   0.168±0.006
              192   0.297±0.006   0.160±0.002    0.466±0.010   0.218±0.002   0.380±0.020   0.182±0.005   1.020±0.037   0.319±0.004   0.885±0.083   0.314±0.023    0.415±0.006   0.185±0.002
Electricity
              336   0.347±0.008   0.177±0.003    0.496±0.009   0.224±0.006   0.423±0.016   0.192±0.004   1.035±0.040   0.324±0.006   0.808±0.126   0.307±0.021    0.459±0.011   0.195±0.003
              720   0.430±0.018   0.204±0.003    0.657±0.025   0.275±0.006   0.478±0.025   0.203±0.005   1.072±0.037   0.335±0.004   0.871±0.138   0.318±0.021    0.601±0.052   0.228±0.011
              96    0.136±0.002   0.121±0.001    0.149±0.003   0.134±0.001   0.208±0.015   0.141±0.006   0.590±0.039    0.27±0.011   1.577±0.721   0.464±0.106    0.212±0.033   0.140±0.011
              192   0.199±0.007   0.149±0.002    0.194±0.004   0.155±0.002   0.241±0.010   0.156±0.004   0.712±0.084   0.304±0.023   1.635±0.339   0.461±0.042    0.236±0.009   0.151±0.002
 ETTh2
              336   0.229±0.009   0.166±0.003    0.236±0.003   0.176±0.002   0.277±0.009   0.170±0.002   0.799±0.132   0.331±0.036   1.522±0.722   0.414±0.089    0.262±0.009   0.165±0.006
              720   0.284±0.017   0.191±0.006    0.289±0.005   0.194±0.003   0.278±0.006   0.169±0.003   0.779±0.088   0.339±0.027   0.851±0.200   0.330±0.040    0.319±0.040   0.199±0.014
              96    0.070±0.002   0.085±0.001    0.122±0.042   0.105±0.015   0.090±0.008   0.089±0.004   0.549±0.061   0.264±0.017   3.743±0.637   0.719±0.059    1.609±0.417   0.427±0.067
              192   0.105±0.003   0.105±0.002    0.125±0.010   0.112±0.004   0.142±0.008   0.114±0.004   0.782±0.070   0.332±0.018   2.934±0.639   0.624±0.077    1.763±0.389   0.438±0.054
 ETTm2
              336   0.136±0.004   0.121±0.002    0.198±0.013   0.144±0.008   0.187±0.020   0.132±0.006   1.038±0.124   0.394±0.029   3.490±0.866   0.671±0.090    2.751±0.747   0.556±0.113
              720   0.185±0.003   0.143±0.002    0.235±0.023   0.157±0.007   0.297±0.061   0.166±0.015   1.206±0.085   0.437±0.021   3.212±1.440   0.585±0.115    2.369±0.256   0.466±0.021
              96    0.098±0.006   0.110±0.004    0.102±0.005   0.104±0.003   0.392±0.096   0.196±0.025   2.572±0.200   0.620±0.022   0.674±0.131   0.290±0.037    0.170±0.083   0.123±0.021
              192   0.187±0.005   0.158±0.002    0.251±0.011   0.170±0.003   0.670±0.097   0.297±0.019   3.672±0.318   0.775±0.040   2.608±0.859   0.601±0.113    0.259±0.089   0.170±0.018
Exchange
              336   0.333±0.017   0.221±0.005    0.456±0.034   0.220±0.006   0.929±0.116   0.333±0.011   3.131±0.088   0.710±0.017   2.851±0.495   0.674±0.063    0.699±0.316   0.302±0.037
              720   0.869±0.140   0.382±0.037    1.111±0.069   0.353±0.015   1.163±0.270   0.358±0.036   2.226±0.143   0.592±0.025   2.301±0.732   0.587±0.143    3.895±3.406   0.617±0.313
              96    0.166±0.004   0.112±0.003    0.269±0.002   0.153±0.002   0.209±0.019   0.114±0.004   1.943±0.017   0.453±0.002   4.714±2.358   0.729±0.149    0.278±0.017   0.145±0.006
              192   0.157±0.003   0.109±0.003    0.228±0.001   0.136±0.001   0.172±0.010   0.105±0.005   1.959±0.006   0.455±0.002   7.353±0.692   0.918±0.049    0.276±0.022   0.143±0.009
 Traffic
              336   0.157±0.005   0.114±0.004    0.225±0.011   0.137±0.007   0.161±0.010   0.102±0.005   1.965±0.015   0.458±0.003   5.155±2.550   0.734±0.153    0.310±0.034   0.153±0.010
              720   0.184±0.010   0.128±0.007    0.267±0.01    0.155±0.005   0.180±0.010   0.109±0.003   1.998±0.022   0.465±0.004   8.212±0.999   0.944±0.054    1.132±0.629   0.312±0.106
              96    0.096±0.001   0.102±0.002    0.108±0.006   0.109±0.003   0.109±0.011   0.100±0.006   0.511±0.029   0.265±0.010   1.447±0.138   0.448±0.021   0.095±0.002    0.089±0.001
              192   0.146±0.004   0.126±0.002    0.152±0.003   0.130±0.002   0.163±0.017   0.120±0.006   0.660±0.049   0.305±0.015   1.901±0.324   0.508±0.034   0.138±0.004    0.109±0.002
 Weather
              336   0.225±0.006   0.161±0.005    0.221±0.006   0.155±0.002   0.250±0.022   0.149±0.007   0.759±0.059   0.331±0.015   1.600±0.313   0.457±0.039   0.204±0.004    0.133±0.001
              720   0.362±0.007   0.211±0.003    0.350±0.004   0.208±0.002   0.363±0.032   0.183±0.008   0.833±0.062   0.351±0.016   1.237±0.143   0.386±0.023   0.338±0.023    0.173±0.006




                                             Table 8. Average MSEs over prediction lengths L = {96, 192, 336, 720}.
                    method                        Electricity                  ETTh2            ETTm2         exchange                traffic                weather              rank
          Autoformer                                      0.594                 0.218           0.168              0.601                  0.267                  0.293            3.83
   Nonstationary Transformer                              0.367                 0.230           0.146              0.440                  0.229                  0.278            2.83
           PatchTST                                       0.412                 0.202           0.122              0.500                  0.179                  0.189            1.83
           MA-TSD                                         0.340                 0.212           0.124              0.372                  0.166                  0.207            1.50


For MFRED and Solar, the original resolution is 10 seconds and 1 minute respectively, we resampled them to 5 minutes for
alignment.
We unify the denoising networks of both our proposed MA-TSD and the DDPM as the DiT(Peebles & Xie, 2023). For
consistency, we calculated as the MSE between the low-resolution inputs and the down-scaled super-resolution outputs.
For Context-FID, we trained Autoencoders for each training dataset individually, obtained the time series embeddings of
super-resolution outputs and the real high-resolution data, and calculated the Fréchet distance over these two embeddings.
The comparison of inference steps on each scale is shown in Figure 12. Here, though we conduct the experiments only on
{3, 6, 12} scales, we can theocratically calculate the expected inference steps on other scales according to Equation (17).
Visualization of super-resolution can be found in Figure 13, Figure 14 and Figure 15.




                                                                                           19
                  A Non-isotropic Time Series Diffusion Model with Moving Average Transitions




                  electricity                                                              etth2                                                    ettm2
                                                                                                                                  1.0
 4        real         fcst                        90%PI                        real          fcst            90%PI                          real      fcst         90%PI
                                                                  0.0
 3                                                                                                                                0.5

 2                                                               −0.5
                                                                                                                                  0.0
 1                                                               −1.0
 0                                                                                                                               −0.5
                                                                 −1.5
−1
                                                                 −2.0                                                            −1.0
−2
      0    200        400          600                     800          0        200        400         600           800               0     200     400     600           800
                 exchange rate                                                             traffic                                                  weather
2.5                                                                                                                               0.4
          real         fcst                        90%PI                        real          fcst            90%PI                          real      fcst         90%PI
                                                                    2                                                             0.2
2.0

                                                                    1                                                             0.0
1.5
                                                                                                                                 −0.2
                                                                    0
1.0                                                                                                                              −0.4
                                                                  −1                                                             −0.6
0.5

                                                                  −2                                                             −0.8
      0    200        400          600                     800          0        200        400         600           800               0     200     400     600           800




                                                            Figure 11. Forecasting samples on L = 720




                                                  102
                                inference steps




                                                  101

                                                                                                                                  Proposed
                                                                                                                                  DDPM

                                                        2           4       6          8           10         12            14          16
                                                                                           scale

                   Figure 12. Comparison of inference steps under different super-resolution scales.




                                                                                           20
                  A Non-isotropic Time Series Diffusion Model with Moving Average Transitions




                         3                                  6                                12
          1
Input




          0


         −1


         −2
DDPM




          1


          0


         −1


         −2
MA-TSD




          1


          0


         −1


         −2



          1
Real




          0


         −1


         −2
              0    200       400       600   0        200       400       600     0    200        400   600



                                   Figure 13. Super-resolution on MFRED dataset




                                                       21
                  A Non-isotropic Time Series Diffusion Model with Moving Average Transitions




                         3                                  6                                12
Input




          2

          1

          0

         −1
DDPM




          2

          1

          0

         −1
MA-TSD




          2

          1

          0

         −1




          2
Real




          1

          0

         −1

              0    200       400      600   0         200       400       600    0     200        400   600



                                   Figure 14. Super-resolution on Wind dataset




                                                       22
                 A Non-isotropic Time Series Diffusion Model with Moving Average Transitions




                        3                                  6                                12
         3
Input




         2

         1

         0




         3
DDPM




         2

         1

         0
MA-TSD




         3

         2

         1

         0




         3
Real




         2

         1

         0


             0    200       400      600   0         200        400       600    0    200        400   600



                                  Figure 15. Super-resolution on Solar dataset




                                                      23
