Are Time-Series Foundation Models Deployment-Ready? A Systematic Study of Adversarial Robustness Across Domains

Jiawen Zhang, Zhenwei Zhang, Shun Zheng, Xumeng Wen, Jia Li, Jiang Bian

TL;DR

Time-Series Foundation Models (TSFMs) excel at zero-shot forecasting but suffer from extreme fragility when faced with adversarial attacks. This paper presents the first systematic study of TSFM robustness, revealing unique vulnerabilities like "horizon-proximal brittleness" and demonstrating that lightweight latent adversarial fine-tuning can successfully defend these models—even when trained on entirely out-of-domain data.

What Problem Does This Paper Address?

Time-Series Foundation Models (TSFMs) are rapidly transitioning from academic novelties to core components of production pipelines in high-stakes industries like finance, energy grid management, and healthcare. Thanks to massive pre-training, these models can forecast accurately on entirely unseen datasets without retraining.

However, their security landscape remains a dangerous blind spot. Unlike images or text, time-series data completely lacks human-perceptible semantic structures. A human reviewer cannot easily spot a micro-tweak in a sequence of power grid loads or stock prices. Yet, these tiny, imperceptible malicious perturbations can cause catastrophic downstream failures—such as triggering massive automated trading losses or destabilizing electrical grids—without triggering traditional anomaly detection filters.

Methods

The authors establish a unified diagnostic framework to evaluate TSFMs across different adversarial goals (targeted vs. untargeted), capabilities, and attacker knowledge levels (white-box vs. black-box).

Key components of their methodology include:

  • Hybrid Norm Constraint: Instead of relying on a simple $l_p$-norm constraint, they introduce a hybrid constraint bounding both perturbation sparsity (the fraction of time steps altered) and amplitude (the maximum change per step), normalized by variance to ensure fair cross-dataset evaluation.
  • Targeted Transformations: They define a family of functions to systematically manipulate forecasts into specific malicious shapes: uniform scaling, trend flipping, global linear drifting, and localized offsetting.
  • Relative Error Deviation ($RED_E$): A novel, scale-invariant metric that unifies the evaluation of both untargeted (performance degradation) and targeted (goal-seeking) attacks across highly heterogeneous datasets.
  • Defenses: They evaluate inference-time moving-average smoothing alongside two adversarial training variants: Input-space Adversarial Training (IAT) and Latent Adversarial Training (LAT), which injects perturbations directly into the model's internal feature representations.
Figure 2: Overview of the adversarial evaluation protocol for time-series foundation models. We evaluate TSFMs across diverse domains under a unified adversarial framework. Adversarial perturbations are applied to clean inputs, which are then passed through the TSFM to produce perturbed forecasts. We assess the impact of these attacks using both accuracy and robustness metrics.

Datasets

The framework was benchmarked using eight diverse domains from the GIFT-Eval suite:

  • Loop Seattle (Transportation)
  • BizTObs-L2C (Web/Cloud Ops)
  • Electricity & ETT1 (Energy grid metrics)
  • Hierarchical Sales (Retail)
  • Jena Weather (Climate/Nature)
  • Solar (Renewable Energy)
  • US Births (Healthcare)

For evaluating cross-domain defense transferability, the authors utilized the KDD Cup 2018 air quality dataset as an out-of-domain training set.

Key Insights and Ideas

  • Horizon-Proximal Brittleness: Input time steps closest to the future forecast horizon are drastically more sensitive to adversarial manipulation than older historical data points.
  • The Context Paradox: While feeding longer historical context windows into a TSFM generally improves its clean forecasting accuracy, it simultaneously amplifies its vulnerability by expanding the available attack surface for adversaries.
  • Model-Specific Weaknesses: Adversarial examples transfer poorly across different TSFM architectures. This indicates that attacks exploit specific architectural inductive biases (like patching configurations) rather than generic data distortions.
  • Gradient Obfuscation Illusions: Models utilizing Mixture-of-Experts (MoE) gating (like TimeMoE) initially appear robust against multi-step white-box attacks (PGD). However, the authors reveal this is an illusion caused by disrupted gradient flow; these models remain highly vulnerable to single-step (FGSM) and black-box query attacks.
  • TSFMs vs. Supervised Models: Traditional, domain-specific supervised models (like GRUs and TCNs) are inherently much more robust against adversarial attacks than zero-shot TSFMs, highlighting a stark robustness-generalization trade-off.

Key Results

  • Current TSFM architectures are alarmingly fragile: White-box PGD attacks on the TimesFM model resulted in forecast errors up to 50 times higher than clean performance.
  • Targeted attacks easily succeeded in forcing models into specific failure modes, such as completely reversing a trend or introducing gradual, malicious drifts.
  • Latent Adversarial Training (LAT) proved highly effective, reducing worst-case errors (NMAE) by 4× to 10× compared to vanilla models.
  • Cross-Domain Defense Transferability: Crucially, Cross-Domain LAT (trained on completely unrelated data like KDD Cup) recovered 80% to 95% of the robustness gains achieved by in-domain training, offering a practical path to secure zero-shot models when task-specific downstream data is completely unavailable.

Limitations and Future Work

  • Perturbation Scope: The study prioritizes widely used, localized perturbations; future work needs to explore adaptive and universal adversarial strategies to fully map the threat landscape.
  • Defense Overhead: The defenses evaluated were lightweight and applied post-pretraining; resource-intensive methods like full adversarial pre-training from scratch remain unexplored.
  • Architectural Mechanics: A deeper mechanistic analysis is required to isolate exactly how specific architectural choices (such as token patching schemes vs. point-wise processing) drive these unique vulnerability patterns.

Summary updated

BibTeX
@misc{zhang2025are,
  author = {Jiawen Zhang and Zhenwei Zhang and Shun Zheng and Xumeng Wen and Jia Li and Jiang Bian},
  title = {{Are Time-Series Foundation Models Deployment-Ready? A Systematic Study of Adversarial Robustness Across Domains}},
  year = {2025},
  eprint = {2505.19397},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.19397},
}
Figure