NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TimeDiT: General-purpose Diffusion Transformers for Time Series Foundation Model

Defu Cao, Wen Ye, Yizhou Zhang, Yan Liu · DOI

Introduction

While Large Language Models (LLMs) have revolutionized text and vision, time series data remains a challenging frontier for foundation models. Time series are often characterized by domain-specific irregularities, such as missing values, varying sampling frequencies (multi-resolution), and irregular intervals.

Existing attempts to build time series foundation models often repurpose LLMs or focus solely on deterministic forecasting, frequently ignoring inherent uncertainty and physical constraints—such as thermodynamics or fluid dynamics—that govern scientific datasets. TimeDiT addresses these gaps by merging the structural modeling power of Transformers with the probabilistic flexibility of Diffusion models into a single, versatile architecture.

Methodology

TimeDiT is built on a Diffusion Transformer (DiT) architecture, shifting away from standard autoregressive approaches toward a generative diffusion process. This framework allows the model to handle a wide spectrum of tasks through several key innovations:

  • Unified Masking Units: The model employs four mask types—random, block, stride, and reconstruction. By varying the mask, the same architecture can switch between tasks like forecasting (future block mask) and imputation (random mask) seamlessly.
  • Adaptive Layer Normalization (AdaLN): Rather than simple concatenation, TimeDiT uses AdaLN to modulate internal representations based on conditional observations and metadata.
  • Physics-Informed Sampling: A novel "model-editing-free" framework allows the injection of energy-based priors derived from Partial Differential Equations (PDEs) during the denoising phase. This guides the model to obey physical laws without requiring retraining.
  • Multimodal Conditioning: The model integrates textual metadata, such as data category or frequency, to enhance zero-shot performance across diverse domains.
Overview of the TimeDiT architecture, illustrating the unified masking unit, the internal block structure, and the mapping of masks to specific inference tasks.

Experimental Setup

TimeDiT was pre-trained on the Chronos dataset, encompassing approximately 5 billion time points. Evaluation spanned multiple benchmarks:

  • Forecasting & Imputation: ETTh1/2, ETTm1/2, Weather, Electricity, Traffic, and Exchange.
  • Specialized Scenarios: Air Quality (missing data), healthcare (MIMIC-III/PhysioNet), and finance (NASDAQ).
  • Anomaly Detection: Industrial datasets including MSL, SMAP, and SWaT.

Results and Discussion

TimeDiT demonstrates significant improvements over specialized state-of-the-art (SOTA) models. In zero-shot forecasting, it consistently outperformed models like MOIRAI and iTransformer. For imputation tasks on ETTh1, the model achieved a 39% reduction in MSE and a 22% reduction in MAE compared to the strongest baselines.

In anomaly detection, TimeDiT set a new benchmark with a 23.03-point improvement in F1 score on the SMAP dataset. Furthermore, the integration of physics-informed priors (e.g., Navier-Stokes equations) resulted in forecasts that were both more accurate and physically consistent than standard diffusion methods.

Performance comparison showing the impact of frequency (Fre) and category (Cat) conditioning on the model's accuracy.

Key insights from the study include:

  • Generative Modeling: By modeling the entire probability distribution, TimeDiT provides superior uncertainty quantification compared to deterministic models.
  • Zero-Shot Versatility: The model's temporal "prior" generalizes effectively to unseen domains like healthcare or finance without domain-specific fine-tuning.
  • Physics as a Guide: Treating physical laws as a "gradient nudge" during inference makes the foundation model adaptable to scientific fields without expensive retraining.

Conclusion and Future Work

TimeDiT represents a significant step toward a general-purpose time series foundation model. While highly effective, current limitations include scaling to very long sequences and managing highly variable feature counts in multivariate data. Future research will focus on extending the model to sequence-level classification and exploring more complex domain-specific conditioning beyond text tags.

Summary updated

BibTeX
@inproceedings{cao2024timedit,
  author = {Defu Cao and Wen Ye and Yizhou Zhang and Yan Liu},
  title = {{TimeDiT: General-purpose Diffusion Transformers for Time Series Foundation Model}},
  booktitle = {FM-Wild @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=DA36Myd4HD},
}
Figure