Exploring Zero-Shot Foundation Models for Multivariate Time Series Anomaly Detection

Martin Uray, Saverio Messineo, Roland Kwitt, Stefan HuberarXiv 2026

TL;DR

This paper evaluates whether a state-of-the-art time series foundation model (TimesFM) can perform multivariate anomaly detection in a zero-shot setting without any task-specific training. Surprisingly, the naive zero-shot approach fails because the model generalizes too well—it quickly adapts to anomalous dynamics, making persistent anomalies invisible to standard detection methods. However, its prediction errors spike sharply at anomaly boundaries, revealing its strong potential for change-point detection.

What Problem Does This Paper Address?

Multivariate Time Series Anomaly Detection (MTSAD) is vital for maintaining safety and reliability in industrial systems (like power plants or water treatment facilities) and financial risk management. However, traditional deep learning approaches are highly specialized: they must be trained from scratch on a specific dataset's normal operating data, making them expensive to develop, scale, and maintain.

Recently, Foundation Models (FMs) pre-trained on massive datasets have revolutionized natural language processing and computer vision with their zero-shot capabilities. While univariate time series FMs have emerged for forecasting, their ability to detect anomalies in complex, multi-channel industrial data without any fine-tuning remains largely unexplored. This paper investigates whether we can bypass dataset-specific training entirely by leveraging these zero-shot models.

Methods

The authors test Google’s TimesFM (a Transformer-based univariate forecasting foundation model) on multivariate data by treating each channel independently. They propose and evaluate two distinct zero-shot strategies:

  1. Forecasting-Based Anomaly Detection: TimesFM ingests a historical context window for each channel and forecasts future values. The system computes a joint anomaly score by aggregating the prediction errors across all channels. If the total error exceeds a predefined threshold, an anomaly is flagged.
Fig. 2: Forecasting-based anomaly detection with a FM. For each channel, a con- text window of length w is mapped by fθ to a forecast horizon of length h, and anomalies are assessed from the discrepancy between predicted and observed fu- ture values. The lower panel illustrates the aggregation of per-channel prediction errors into a joint score that can be compared against a threshold τerror.
  1. Embedding-Based Anomaly Detection: Instead of using the final forecast, the authors use TimesFM’s internal encoder to extract latent representations (embeddings) for each channel. These per-channel embeddings are concatenated into a single joint vector and fed into a downstream outlier detector (an Isolation Forest) trained only on normal operating data.
Embedding-based anomaly detection pipeline

Datasets

The methods were evaluated using two prominent industrial water-treatment benchmarks:

  • SWaT (Secure Water Treatment): Contains 51 channels spanning 11 days of continuous operation (7 days normal, 4 days with physical/cyber-attack anomalies). This was used for primary quantitative evaluation.
  • WaDi (Water Distribution): Used for qualitative visualization of the model's embedding spaces.

Key Insights and Ideas

  • Suffering from Success: The primary reason the zero-shot strategies failed is not a lack of domain knowledge, but rather that the foundation model is too good at forecasting. When an anomaly occurs, the model initially struggles (causing an error spike), but as the sliding context window fills with the new anomalous data, TimesFM rapidly adapts and begins forecasting the anomalous behavior perfectly.
  • Reconstruction vs. Sensitivity: A model optimized purely for forecasting fidelity inherently tries to minimize prediction error everywhere. This objective is fundamentally at odds with detecting persistent anomalies, which require a fixed, global understanding of what constitutes "normal" behavior.
  • From Anomaly to Change-Point Detection: While the model fails to flag the entire duration of a prolonged anomaly, its prediction error spikes dramatically at the exact moments an anomaly starts and ends. This makes zero-shot FMs highly promising candidates for change-point detection (identifying when a system shifts regimes) rather than continuous anomaly tracking.

Key Results

Quantitatively, the zero-shot foundation model approaches underperformed compared to even the simplest baseline heuristics on the SWaT dataset:

  • TimesFM + Isolation Forest (Embedding): Achieved an $F_1$ score of 0.480.
  • Simple L2-Norm Baseline: Outperformed the FM with an $F_1$ score of 0.782.
  • PCA Error (Best Baseline): Achieved the highest performance with an $F_1$ score of 0.833.

Qualitatively, visualizing the multivariate score profile over time clearly demonstrates the adaptation problem. The anomaly score spikes sharply at the entry and exit boundaries of an anomalous window but collapses back to near-zero during the middle of the anomaly.

Fig. 4: Anomaly scoring on the SWaT dataset using per-channel forecasts from a FM, with per-channel errors summed into a joint score.

Limitations and Future Work

The authors note several limitations in their exploratory study:

  • Scope: The evaluation was restricted to a single univariate foundation model (TimesFM) on a limited set of benchmarks. Other FMs (like Chronos) might exhibit different inductive biases.
  • Lack of Cross-Channel Modeling: Treating channels independently ignores the complex inter-sensor correlations typical of industrial systems.
  • Zero-Shot Constraint: The study did not explore few-shot adaptation or parameter-efficient fine-tuning, which could potentially force the model to specialize in domain-specific normal behavior.

Future Directions: The authors suggest pivoting toward utilizing zero-shot FMs for change-point detection and root-cause analysis (e.g., identifying which sensor channel caused the sharpest boundary spike to localize a fault).

Summary updated

BibTeX
@misc{uray2026exploring,
  author = {Martin Uray and Saverio Messineo and Roland Kwitt and Stefan Huber},
  title = {{Exploring Zero-Shot Foundation Models for Multivariate Time Series Anomaly Detection}},
  year = {2026},
  eprint = {2607.12454},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.12454},
}
Figure