VAN-AD: Visual Masked Autoencoder with Normalizing Flow For Time Series Anomaly Detection

TL;DR

VAN-AD combines visual MAE with normalizing flow for enhanced time series anomaly detection.

cs.LG 🔴 Advanced 2026-03-27 6 views
PengYu Chen Shang Wan Xiaohou Shi Yuan Chang Yan Sun Sajal K. Das
time series anomaly detection vision models autoencoder normalizing flow

Key Findings

Methodology

VAN-AD uses visual MAE and normalizing flow for time series anomaly detection. The visual MAE extracts features from ImageNet pre-trained models, while the normalizing flow module estimates the probability density of the current window. The ADMM module calibrates reconstruction results to enhance anomaly pattern discrepancies.

Key Results

  • VAN-AD excels on nine real-world datasets, achieving an average improvement of 21.1% in VUS-ROC and 25.1% in VUS-PR, significantly outperforming baselines like DADA.
  • On the PSM dataset, VAN-AD effectively addresses overgeneralization, improving anomaly detection accuracy.
  • Ablation studies confirm the independent contributions of ADMM and NFM modules.

Significance

This research offers a new approach to time series anomaly detection, particularly in data-scarce scenarios, leveraging structural characteristics of vision models to overcome traditional methods' generalization limitations.

Technical Contribution

VAN-AD applies visual MAE to time series, combining normalizing flow for global distribution modeling, providing new theoretical guarantees and engineering possibilities.

Novelty

First to combine visual MAE with normalizing flow for time series anomaly detection, distinct from traditional text or time series pre-training methods.

Limitations

  • On certain datasets, VAN-AD's computational complexity is high, potentially affecting real-time applications.
  • The model is sensitive to window size, requiring adjustment based on specific scenarios.

Future Work

Future work could explore more efficient global distribution modeling methods and application extensions across different domains.

AI Executive Summary

Time series anomaly detection is crucial in IoT systems, but existing methods have limited generalization capabilities. VAN-AD addresses overgeneralization and local perception issues through visual MAE and normalizing flow modules. Experimental results show VAN-AD significantly outperforms existing methods across multiple datasets, especially in data-scarce scenarios. This study provides a new perspective for time series analysis, leveraging structural characteristics of vision models to overcome traditional limitations. Future work will focus on optimizing computational efficiency and expanding application scenarios.

Deep Analysis

Background

Time series anomaly detection is vital in IoT, with traditional methods relying on dataset-specific training, limiting generalization. Recently, foundation models have become a research focus, but existing methods face challenges in cross-modal gaps and in-domain heterogeneity.

Core Problem

Existing time series anomaly detection methods struggle to generalize in data-scarce scenarios, with cross-modal differences and in-domain heterogeneity limiting performance.

Innovation

VAN-AD addresses overgeneralization and local perception issues through visual MAE and normalizing flow modules. The visual MAE extracts features from ImageNet pre-trained models, while the normalizing flow module estimates the probability density of the current window.

Methodology

  • �� Use visual MAE for time series reconstruction
  • �� ADMM module calibrates reconstruction results
  • �� Normalizing flow module models global distribution
  • �� Combine local and global information for anomaly detection

Experiments

Experiments conducted on nine real-world datasets using VUS-ROC and VUS-PR as evaluation metrics. Compared against baselines like DADA, with ablation studies verifying module contributions.

Results

VAN-AD excels on multiple datasets, achieving an average improvement of 21.1% in VUS-ROC and 25.1% in VUS-PR. Ablation studies show independent contributions of ADMM and NFM modules.

Applications

Applicable for IoT device fault detection and sensor anomaly monitoring, especially in data-scarce scenarios.

Limitations & Outlook

Computational complexity is high, potentially affecting real-time applications. The model is sensitive to window size, requiring adjustment based on specific scenarios.

Plain Language Accessible to non-experts

Imagine a factory where machines run smoothly when everything is normal. But when a machine breaks down, the production line might get stuck. VAN-AD acts like a smart factory manager, observing the overall flow to spot and fix faulty machines. The visual MAE is like the manager's eyes, watching every detail of the production line, while the normalizing flow module is like the manager's brain, analyzing overall production efficiency.

ELI14 Explained like you're 14

Imagine you're playing a game and suddenly a monster appears to wreck your base. VAN-AD is like a superhero who can quickly spot the monster and eliminate it. The visual MAE is like the hero's eyes, seeing every move of the monster, while the normalizing flow module is like the hero's brain, analyzing the monster's weaknesses.

Glossary

Visual MAE

A pre-trained model used to extract features from images.

Used for feature extraction in time series anomaly detection.

Normalizing Flow

A technique for probability density estimation.

Used to model the global distribution of time series.

Time Series

A sequence of data points over time.

Generated by IoT devices.

Anomaly Detection

Identifying abnormal patterns in data.

Used for system security maintenance.

ADMM

A module for calibrating reconstruction results.

Enhances anomaly pattern discrepancies.

Open Questions Unanswered questions from this research

  • 1 How to reduce computational complexity for real-time applications?
  • 2 How to improve model adaptability to different window sizes?

Applications

Immediate Applications

IoT Device Monitoring

Enhance device fault recognition rate through anomaly detection, reducing maintenance costs.

Sensor Data Analysis

Real-time monitoring of sensor data to identify abnormal changes and ensure data accuracy.

Long-term Vision

Smart City Management

Optimize city resource allocation through anomaly detection, improving operational efficiency.

Abstract

Time series anomaly detection (TSAD) is essential for maintaining the reliability and security of IoT-enabled service systems. Existing methods require training one specific model for each dataset, which exhibits limited generalization capability across different target datasets, hindering anomaly detection performance in various scenarios with scarce training data. To address this limitation, foundation models have emerged as a promising direction. However, existing approaches either repurpose large language models (LLMs) or construct largescale time series datasets to develop general anomaly detection foundation models, and still face challenges caused by severe cross-modal gaps or in-domain heterogeneity. In this paper, we investigate the applicability of large-scale vision models to TSAD. Specifically, we adapt a visual Masked Autoencoder (MAE) pretrained on ImageNet to the TSAD task. However, directly transferring MAE to TSAD introduces two key challenges: overgeneralization and limited local perception. To address these challenges, we propose VAN-AD, a novel MAE-based framework for TSAD. To alleviate the over-generalization issue, we design an Adaptive Distribution Mapping Module (ADMM), which maps the reconstruction results before and after MAE into a unified statistical space to amplify discrepancies caused by abnormal patterns. To overcome the limitation of local perception, we further develop a Normalizing Flow Module (NFM), which combines MAE with normalizing flow to estimate the probability density of the current window under the global distribution. Extensive experiments on nine real-world datasets demonstrate that VAN-AD consistently outperforms existing state-of-the-art methods across multiple evaluation metrics.We make our code and datasets available at https://github.com/PenyChen/VAN-AD.

cs.LG cs.AI cs.CV