Time Weaver: A Conditional Time Series Generation Model
Sai Shankar NarasimhanShubhankar AgarwalOguzhan AkcinSujay SanghaviSandeep P. Chinchali
Introduces a diffusion-based framework and a dedicated evaluation metric for generating realistic multivariate time series conditioned on complex categorical, continuous, and time-varying metadata.
Generating realistic synthetic time series data is vital for high-stakes applications such as stress-testing infrastructure systems, conducting scenario planning, preserving privacy through data anonymization, and training machine learning models. In real-world environments, time series data naturally pairs with rich contextual metadata, including discrete categories, continuous measurements, and time-varying external variables like weather forecasts. However, existing generative models largely fail to incorporate these diverse metadata conditions, limiting their ability to generate targeted, scenario-specific sequences. Furthermore, standard evaluation metrics fail to verify whether generated data actually matches paired metadata conditions.
The article develops and evaluates TIME WEAVER, a diffusion-based generative model designed to synthesize realistic multivariate time series conditioned on complex, heterogeneous metadata. Additionally, the article introduces a specialized evaluation metric to measure both the overall realism of generated time series and their precise fidelity to specific input metadata.
The authors designed a dedicated architecture that separately tokenizes categorical and continuous variables, links them through self-attention mechanisms, and feeds the resulting representations into sequential diffusion denoisers. To evaluate model outputs fairly, the authors established the Joint Frechet Time Series Distance (J-FTSD), a metric that measures distance across joint data-metadata representations trained via contrastive learning. The authors tested the framework across four diverse real-world benchmarks: urban air quality monitoring, highway traffic flow, electricity demand, and medical electrocardiograms (ECGs).
The experimental findings show that TIME WEAVER consistently outperforms traditional generative adversarial networks (GANs) and standard diffusion baselines across all datasets. In distributional similarity evaluated by J-FTSD, TIME WEAVER beats baseline GAN models by roughly 6 times on air quality data, 1.75 times on ECG signals, 4 times on electricity demand, and over 40 times on traffic volume. Downstream classification models trained entirely on synthetic data and evaluated on real-world test sets achieve up to 30% higher accuracy when using TIME WEAVER samples over GAN-generated baselines. In addition, ablations show that while GANs degrade significantly when tasked with handling continuous and time-varying inputs, TIME WEAVER reliably preserves complex relationships, value distributions, and physical trends across diverse time horizons.
These results demonstrate that incorporating paired contextual metadata into specialized diffusion architectures creates substantially higher-utility synthetic data. Organizations relying on data simulation for capacity planning, medical research, or risk testing can generate high-fidelity scenarios without suffering the training instability or mode collapse common in GANs. Moreover, adopting joint evaluation metrics like J-FTSD ensures that practitioners can accurately verify whether synthetic data reflects the true underlying conditions before deploying models into production.
Organizations developing or deploying time series generation tools should adopt diffusion architectures specifically tailored to handle multimodal conditioning and transition from unconditional evaluation metrics to paired metrics like J-FTSD. When implementing these architectures, engineering teams must evaluate operational trade-offs: the attention-based denoiser variant provides lower latency for individual sequence generation, whereas state-space denoiser backbones offer better scalability for large-batch synthesis. Future efforts should also focus on integrating progressive distillation techniques to accelerate inference speeds and extending metadata-conditioned diffusion into anomaly detection and forecasting pipelines.
Decision-makers should consider the computational demands of diffusion models, as both training iterations and sequential sampling steps require more computational time and memory than simpler generative frameworks. Additionally, while the generated patterns qualitatively adhere to known physical dependencies, such as rainfall reducing air pollutants, the authors note that empirical correlation does not constitute a formal mathematical proof of causality. Confidence in the model's performance on standard benchmark distributions is high, but validation on specialized edge-case conditions is recommended prior to mission-critical deployment.
- Paper: Denoising Diffusion Probabilistic Models, Jonathan Ho et al. (2020). Read this foundational account of denoising diffusion first to understand the noise-and-reversal process that TIME WEAVER adapts for time-series generation.
- Paper: Score-Based Generative Modeling through Stochastic Differential Equations, Yang Song et al. (2021). Its continuous-time SDE formulation provides the score-based diffusion framework that helps explain TIME WEAVER’s generative design.
- Paper: Modeling Temporal Data as Continuous Functions with Stochastic Process Diffusion, Marin Bilos et al. (2023). This work applies diffusion to continuous temporal trajectories, establishing time-series-specific modeling ideas that contextualize TIME WEAVER’s diffusion approach.
- Paper: Time-series Generative Adversarial Networks, Jinsung Yoon et al. (2019). TimeGAN is a key time-series synthesis baseline whose temporal modeling and limitations help explain the comparisons TIME WEAVER makes against GANs.
- Paper: CoDi: Co-evolving Contrastive Diffusion Models for Mixed-type Tabular Synthesis, Chaejeong Lee et al. (2023). CoDi’s linked diffusion models for continuous and categorical variables provide a useful precursor to TIME WEAVER’s treatment of heterogeneous metadata.
- Paper: Non-autoregressive Conditional Diffusion Models for Time Series Prediction, Lifeng Shen et al. (2023). TimeDiff shows how conditioning mechanisms can be built into time-series diffusion, preparing readers for TIME WEAVER’s metadata-conditioned generation.
- Paper: Diffusion Models: A Comprehensive Survey of Methods and Applications, Ling Yang et al. (2022). This survey organizes diffusion foundations and design choices that clarify the architecture and sampling trade-offs TIME WEAVER draws on.
- Paper: TarDiff: Target-Oriented Diffusion Guidance for Synthetic Electronic Health Record Time Series Generation, Bowen Deng et al. (2025). TarDiff carries conditional time-series diffusion into clinical utility optimization, steering generated records toward rare outcomes rather than fidelity to metadata alone.
