              TimeDART: A Diffusion Autoregressive Transformer for Self-Supervised Time Series Representation


     Embeddings                                                                                                           Autoregressive Optimization

     Start of Sequence Embedding                      Reverse Instance Normalization




                   Keys & Values                      Masked Denoising Decoder                                          Queries    Reverse Process




        Causal Transformer Encoder                                TimeDART
                                                                                                𝑥!#""      𝑥#$"                              𝑥$%""
                                                                                                                  Sampling s independently


                                                                                       𝑥!!"""




                                                                                                  …
            𝑥1          𝑥2         𝑥3         𝑥4      𝑥5




                                                                                                             …
                                                                                       𝑥!#""
                                                                                                                  x!!




                                                                                                                                     …
                         Instance Normalization




                                                                                                                           …
                                                                                                  …




                                                                                                                                               …
                                                                              Cosine
                                   …




                                                                               Noise
                                                                             Scheduler
                                                                                                 𝑥1         𝑥2            𝑥3        𝑥4         𝑥5
                  Original Multivariate Time Series                                                         Forward Process

Figure 2: The overall architecture of TimeDART, which employs patch-level modeling, enhances the power of the
autoregressive self-supervised method through a diffusion denoising process. It captures both long-term dynamics evolution
and subtle local patterns to strengthen consistent and effective representation learning.

As shown in Figure 2, we independently add noise to each                    encoder output at position j aggregates information from
patch at time step s, enabling the model to learn varying                   clean patches at positions 1 to j − 1, enabling autoregressive
denoising scales across the sequence. This prevents task                    optimization. The reverse process is expressed as:
oversimplification. The noisy patches are represented as:
                                                                                                               in
                                                                                         zjout = g(ẑjin , f (z1:j−1 )),       1 ≤ j ≤ N,           (7)
                    x̂1:N = [xs11 , . . . , xsNN ].               (5)
                                                                            where g(·) denotes the processing of the encoder output and
We use a cosine scheduling approach for the noise scheduler,               noise-added patch embeddings by the denoising decoder.
where α(s) ∝ cos Ts π , instead of the linear decrease in                   Finally, deep representations are mapped back to the original
DDPMs (Ho et al., 2020). This smoother transition empha-                    space via linear projection:
sizes the early and late stages of diffusion, improving model
stability and better capturing the data distribution. Further-                                     xout            out
                                                                                                    j = Projector(zj ).                             (8)
more, both noise-added and clean patches share the same
embedding layer and weights, with sinusoidal positional
encoding applied:                                                           3.2. Self-supervised Optimization Objective

             in                                                             Traditional time series autoregressive pre-training objective
           ẑ1:N = Embedding(x̂1:N ) + PE1:N ,                    (6)       is typically a simple mean squared error (MSE), aiming to
        in
where ẑ1:N denotes embeddings of the noise-added patches.                  minimize the discrepancy between the regressed and true
                                                                            patches. This can be formalized as follows:
Reverse Process The reverse process is handled by the de-                                       N
                                                                                                X
noising decoder which takes the encoder output as keys and                           Lmse ∝                                 in
                                                                                                      ||x0j − Projector(f (z1:j−1 ))||2 .           (9)
values, while the noise-added patch embeddings serve as                                         j=1
queries. A self-only mask is applied to the decoder to ensure
that the j-th input in the noise-added sequence attends only                While straightforward, this MSE objective fundamentally
to the j-th encoder output. Informed by the causal mask, the                assumes that the underlying data distribution is Gaussian.

                                                                        4
