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

PengYu Chen, Shang Wan, Xiaohou Shi, Yuan Chang, Yan Sun +1 more
3/27/2026
cs.LGcs.AIcs.CV

Official code: PenyChen/VAN-AD (3 stars, Apache-2.0, last commit 2026-03-27).

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.

View on arXivView PDF

Code Implementations(1)

PenyChen/VAN-ADOfficial100%
Apache-2.0

Official PyTorch implementation of the paper: VAN-AD: Visual Masked Autoencoder with Normalizing Flow For Time Series Anomaly Detection

30Shell, PythonMar 27, 20266 months agoApache-2.0

Similar Papers

Cite this paper

@article{chen2026vanad,
  title  = {VAN-AD: Visual Masked Autoencoder with Normalizing Flow For Time Series Anomaly Detection},
  author = {PengYu Chen and Shang Wan and Xiaohou Shi and Yuan Chang and Yan Sun and Sajal K. Das},
  year   = {2026},
  eprint = {2603.26842},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.26842v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.26842.svg)](https://codeofpaper.com/paper/2603.26842)

Discussion