VETime: Vision Enhanced Zero-Shot Time Series Anomaly Detection

Yingyuan Yang, Tian Lan, Yifei Gao, Yimeng Lu, Xuming An, Wenjun He, Meng Wang, Chenghao Liu, Chen ZhangNeurIPS 2026

TL;DR

Spotting anomalies in unfamiliar time-series data usually forces an uncomfortable choice: read the raw numbers with a 1D model to catch sharp, instantaneous spikes, or plot the data as an image for a 2D vision model to spot subtle, long-range pattern breaks. VETime eliminates this trade-off by weaving both perspectives together—converting 1D sequences into reversible 2D images, aligning their timelines down to the exact patch, and dynamically fusing them. The result is a zero-shot anomaly detector that beats state-of-the-art foundation models while running roughly 100 times faster than vision-language alternatives.

What Problem Does This Paper Address?

Imagine staring at an electrocardiogram or server telemetry late at night, hunting for glitches in a system you’ve never seen before (zero-shot time-series anomaly detection). You are looking for two fundamentally different beasts: point anomalies (sudden, sharp numerical spikes) and contextual anomalies (slower, structural rule-breaks, like a sine wave quietly stretching out of rhythm).

Existing foundation models suffer from a classic "trees versus forest" dilemma:

  • 1D Temporal Models read raw numerical sequences through narrow local windows. They have great eyesight for the "trees" (pinpointing exact timestamps of sudden spikes) but miss the "forest" (long-range contextual shifts).
  • 2D Vision/VLM Models render time series as line plots and ask pretrained vision backbones what looks weird. They see the "forest" effortlessly, capturing macroscopic shapes, but space-blurring and coarse image patches ruin their ability to tell you exactly when an anomaly happened—and prompting giant Vision-Language Models (VLMs) is painfully slow.
Figure 1: Comparison of the previous TSAD methods and the proposed VETime. While existing methods often rely on single-modality or coarse visual mapping, VETime introduces fine-grained temporal alignment and dynamic fusion to bridge the gap between visual and temporal perceptions.

You can't just slap a 1D encoder and a 2D Vision Transformer (ViT) together, either. Standard time-series-to-image tricks (like Gramian Angular Fields or simple line plots) scramble or dilute exact timestamp indices, making fine-grained fusion impossible.

Methods

VETime unifies a trainable/LoRA-adapted temporal branch with a frozen pretrained Vision Transformer (ViT) using four novel mechanisms:

  1. Traceable Image Conversion (TIC): Instead of drawing a naive line plot, VETime decomposes the 1D signal into raw, trend, and remainder components, mapping them to R, G, and B channels. It then estimates the signal's dominant period (via autocorrelation) and folds the 1D ribbon into a 2D grid—stacking periods vertically so cross-period comparisons become spatial neighbors—before scaling it to $224 \times 224 \times 3$ without interpolating across periods.
  2. Patch-level Temporal Alignment (PTA): Once the frozen ViT extracts 2D visual features, PTA mathematically inverts the folding logic. It reshapes, interpolates, and pools the visual patches right back onto the exact 1D timeline of the temporal encoder, adding learnable positional encodings so both branches speak a shared timestamp language.
  3. Anomaly Window Contrastive Learning (AWCL): During pretraining, VETime builds context windows around synthetic anomalies and runs dual cross-attention. For short point anomalies, intra-window contrast pulls visual features toward sharp 1D temporal anchors; for long contextual anomalies, inter-window contrast pulls pooled temporal features toward macroscopic 2D visual anchors.
  4. Task-Adaptive Multi-Modal Fusion (TMF): Acting like a Mixture-of-Experts router, TMF dynamically weighs three "experts"—temporal features, aligned visual features, and contrastive anomaly-enhanced features—at every patch. It feeds two heads simultaneously: an anomaly classifier and an auxiliary sequence reconstructor (which prevents overfitting to sparse labels).
Anomaly Window Contrastive Learning and Task-Adaptive Multi-Modal Fusion

Datasets

  • Training (Strict Zero-Shot): To guarantee zero data leakage, VETime is pretrained exclusively on a 0.5-billion-point synthetic corpus generated from mathematical equations (introduced by prior work, TimeRCD), with validation and hyperparameter tuning done strictly on a held-out synthetic split.
  • Evaluation: Tested directly without fine-tuning on 26 public datasets from the TSB-AD benchmark—11 univariate (e.g., NAB, YAHOO, WSD, UCR, IOPS) and 15 multivariate (e.g., MSL, SMAP, SMD, SWaT, GECCO). For targeted experiments, the authors also reorganized NAB and YAHOO subsets into explicit Point, Context, and Mixed anomaly categories.

Key Insights and Ideas

  • Folding turns long-range memory into local vision: Gradient-based Effective Receptive Field (ERF) analysis reveals why the visual branch works so well. While the 1D branch's attention dies out beyond immediate neighbors, folding periods into a 2D grid lets the ViT attend to corresponding phases several cycles away as if they were adjacent pixels.
  • Alignment is mandatory, not optional: In ablation studies, feeding unaligned visual features into the fusion module actually degraded performance below the plain 1D baseline. Multimodal synergy only clicks once 2D patches are strictly mapped back to 1D timestamps.
  • Natural division of labor in routing: Visualizing the TMF router weights shows spontaneous specialization—the anomaly-detection head leans heavily on the contrastive anomaly-enhanced features for high-level discrimination, while the reconstruction head relies on 1D temporal features to preserve exact numerical continuity.

Key Results

  • Dominates 1D Foundation Models: Across 26 TSB-AD datasets, VETime achieves a new zero-shot state of the art, taking 1st place in 24 of 44 univariate evaluations (average rank 2.05) and 34 of 60 multivariate evaluations (average rank 1.58), outperforming TimeRCD, Chronos, TimesFM, DADA, and MOMENT.
  • Crushes Vision/VLM Baselines in Speed and Precision: Compared against VLM4TS, ViT4TS, VisualTimeAnomaly, and AnomLLM on four benchmarks, VETime wins across the board (e.g., hitting 88.61% VUS-PR on YAHOO vs. VLM4TS's 33.09%). Better yet, because it skips VLM text prompting, VETime runs in 0.02–0.04 seconds per series—roughly 100$\times$ faster than VLM-based detectors (which take 2.3 to 9.3 seconds).
  • Balanced Across Anomaly Types: On the reorganized Point, Context, and Mixed benchmarks, VETime leads on Affiliation-F1, F1-T, and Standard-F1 across every single category.

Limitations and Future Work

  • High-frequency noise: Because Traceable Image Conversion starts with seasonal-trend decomposition, chaotic signals where structure and high-frequency noise are tightly entangled can trip up the visual mapping.
  • High-dimensional multivariate data: VETime handles multivariate series in a channel-independent manner, meaning it can miss subtle cross-sensor correlations, and squeezing ultra-high-dimensional data onto a fixed $224 \times 224$ canvas risks blurring fine details.
  • Overhead and Future Directions: Running a ViT backbone still adds compute overhead compared to tiny pure-1D models, and rigorous theoretical foundations for multimodal time-series representations remain an open question. Next, the authors plan to bring text modalities back into the fold—not to bottleneck detection speed, but to generate human-readable semantic explanations for why a detected anomaly occurred.

Summary updated

Abstract

Time-series anomaly detection (TSAD) requires identifying both immediate Point Anomalies and long-range Context Anomalies. However, existing zero-shot foundation models face a fundamental trade-off: 1D temporal models provide fine-grained pointwise localization but lack a global contextual perspective, while 2D vision-based models capture global patterns but suffer from information bottlenecks due to a lack of temporal alignment and coarse-grained pointwise detection. To resolve this dilemma, we propose VETime, the first TSAD framework that unifies temporal and visual modalities through fine-grained visual-temporal alignment and dynamic fusion. VETime introduces a Reversible Image Conversion and a Patch-Level Temporal Alignment module to establish a shared visual-temporal timeline, preserving discriminative details while maintaining temporal sensitivity. Furthermore, we design an Anomaly Window Contrastive Learning mechanism and a Task-Adaptive Multi-Modal Fusion to adaptively integrate the complementary perceptual strengths of both modalities. Extensive experiments demonstrate that VETime significantly outperforms state-of-the-art models in zero-shot scenarios, achieving superior localization precision with lower computational overhead than current vision-based approaches.
BibTeX
@inproceedings{yang2026vetime,
  author = {Yingyuan Yang and Tian Lan and Yifei Gao and Yimeng Lu and Xuming An and Wenjun He and Meng Wang and Chenghao Liu and Chen Zhang},
  title = {{VETime: Vision Enhanced Zero-Shot Time Series Anomaly Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=n1oSBaAtl6},
}
Figure