TL;DR
Time-Series Foundation Models (TSFMs) achieve remarkable zero-shot forecasting performance, but they are alarmingly fragile to adversarial manipulation. This paper presents the first systematic robustness benchmark across six leading native TSFMs, uncovering unique temporal vulnerabilities—such as sensitivity near forecast boundaries and increased brittleness with longer contexts—while demonstrating that lightweight latent adversarial fine-tuning can provide strong, cross-domain protection.
What Problem Does This Paper Address?
While foundation models in computer vision and natural language processing have undergone extensive security scrutiny, native non-LLM Time-Series Foundation Models (e.g., TimesFM, Moirai, UniTS) remain largely unvetted. Time series lack human-perceptible semantics, meaning small, imperceptible distortions can slip past simple anomaly checks while causing catastrophic errors in critical systems like automated financial trading, healthcare monitoring, and power grid control. This paper investigates whether current TSFMs are truly deployment-ready from an adversarial robustness standpoint.
Methods
The authors establish a standardized, time-series-grounded evaluation framework:
- Variance-Normalized & Sparse Perturbation Budget: Combines an $\ell_0$ constraint (perturbing a fraction $r$ of time steps) and an $\ell_\infty$ bound ($\epsilon$). The bound is scaled by the variance of the input sequence ($\epsilon^* = \epsilon \cdot \text{var}(x)$) to ensure fair comparisons across wildly different scales.
- Unified Robustness Metric ($\text{RED}_E$): Introduces Relative Error Deviation, a scale-invariant metric that consistently measures performance drop under both untargeted attacks (maximizing error) and targeted attacks (guiding predictions toward trends like scaling, flipping, drifting, or local offsets).
- Threat Models:
- White-box: Projected Gradient Descent (PGD) and Fast Gradient Sign Method (FGSM).
- Black-box: Zeroth-Order Optimization (ZOO) and Simple Black-box Attack (SimBA) across Cartesian, DCT (low-frequency), and Wavelet bases.
- Defenses Explored: Inference-time moving-average smoothing, input-space adversarial training (IAT), and latent adversarial training (LAT), which perturbs intermediate model representations.
Datasets
The authors evaluated models using 8 diverse datasets from the GIFT-Eval benchmark, spanning healthcare, energy, transport, nature, sales, and web operations (Solar, Electricity, ETT1, Loop Seattle, BizITObs-L2C, Jena Weather, US Births, and Hierarchical Sales). For cross-domain adversarial fine-tuning experiments, they utilized the KDD Cup 2018 dataset. Clean comparisons also incorporated Exchange and Weather datasets against supervised baselines.
Key Insights and Ideas
- Horizon-Proximal Brittleness: Perturbations applied to time steps immediately preceding the forecast horizon have a far more devastating impact than perturbations placed further back in history.
- The "Context Paradox": While feeding longer historical context windows improves clean zero-shot accuracy, it drastically expands the model's attack surface. Extending context length from 128 to 512 increased PGD attack error by over $7\times$.
- Global Over Local Susceptibility: Attackers can steer forecasts into holistic trajectories (e.g., scaling or linear drifts) much more easily than injecting localized subsegment shifts, suggesting TSFMs lack robust global consistency constraints.
- Gradient Obfuscation in Mixture-of-Experts (MoE): Models like TimeMoE initially appeared robust against iterative PGD. However, this proved to be an illusion caused by gating mechanisms disrupting gradient flow; the model remained highly susceptible to single-step (FGSM) and black-box (SimBA) queries.
- Poor Attack Transferability: Perturbations crafted on one model (e.g., TimesFM) transfer weakly to others (e.g., Moirai or classical ARIMA). The vulnerabilities exploit architecture-specific inductive biases rather than generic dataset properties.
- Transferable Defenses: Adversarial defenses are remarkably portable. Latent Adversarial Training (LAT) performed on an unrelated dataset (KDD Cup) recovered 80–95% of the robustness gains achieved by training directly on in-domain data.
Key Results
- Extreme Brittleness: On models like TimesFM, PGD attacks resulted in forecast error degradation up to $50\times$ higher than clean performance.
- Foundation vs. Supervised Trade-Off: Standard supervised baselines (e.g., GRU, TCN) proved far more robust under identical budgets than zero-shot TSFMs (e.g., on Electricity, TimesFM $\text{RED}_{\text{NMAE}}$ reached 2.1000 vs. GRU's 0.0011).
- Defense Efficacy: Latent Adversarial Training (LAT) consistently reduced worst-case PGD errors by $\sim 4\text{–}10\times$ compared to unhardened models.
- Black-Box Defenses Lag: While fine-tuning effectively blunts white-box gradient attacks, black-box query attacks (SimBA) remain elusive, occasionally worsening error on complex datasets like Hierarchical Sales.
Limitations and Future Work
- Threat Scope: The study focused on standard $\ell_p$-bounded perturbations; future evaluations need to examine adaptive and universal adversarial patches.
- Lightweight Defenses Only: The authors evaluated post-hoc fine-tuning and inference filters rather than full-scale adversarial pretraining from scratch.
- Mechanistic Roots: Further research is required to isolate exactly how specific architectural modules, such as patchification schemes and attention heads, facilitate these failure modes.
Summary updated