cs.LGAug 19, 2026

CAST: Context- and Anomaly Structure-Conditioned Time Series Anomaly Generation

Authors: Haochen Zhang, Jie Peng, Songyuan Sui, Yu-Chao Huang, Xiangqi Zhu, Tianlong Chen

Organizations: UNITES Lab, University of North Carolina at Chapel Hill · Rice University · Oregon State University

Abstract

Anomalous time series play a critical role in safety-critical domains, yet they are inherently scarce, heterogeneous, and costly to obtain. Existing time series generation methods predominantly focus on synthesizing normal data, providing limited value when anomalous samples are needed. We identify two fundamental challenges in anomaly generation: (i) the scarcity of anomaly data, and (ii) the heterogeneous morphological characteristics of anomalies. To address these challenges, we propose CAST, a Context- and Anomaly Structure-conditioned Time series anomaly generation framework with principled two-stage pretraining and finetuning strategy. In pretraining stage, we leverage abundant normal time series data to learn underlying system dynamics and substantially mitigate the limited availability of anomaly data. During finetuning, CAST explicitly conditions the generator on learned anomaly structure representations, enabling it to capture heterogeneous anomaly morphologies under similar contextual conditions. Extensive experiments on multiple real-world univariate and multivariate datasets demonstrate that CAST consistently outperforms state-of-the-art anomaly generation methods in terms of both generation fidelity and downstream task utility, highlighting the effectiveness of the proposed approach.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Fun-TSG: A Function-Driven Multivariate Time Series Generator with Variable-Level Anomaly Labeling

    Apr 14, 2026Pierre Lotte, André Péninou, Olivier TesteTime Series GenerationAnomaly Localization

  2. BoundAD: Boundary-Aware Negative Generation for Time Series Anomaly Detection

    Mar 18, 2026Xiancheng Wang, Lin Wang, Zhibo Zhang +2Time-Series Anomaly DetectionUnsupervised Anomaly Detection