English

PatchAD: A Lightweight Patch-based MLP-Mixer for Time Series Anomaly Detection

Machine Learning 2025-08-05 v6

Abstract

Time series anomaly detection is a pivotal task in data analysis, yet it poses the challenge of discerning normal and abnormal patterns in label-deficient scenarios. While prior studies have largely employed reconstruction-based approaches, which limit the models' representational capacities. Moreover, existing deep learning-based methods are not sufficiently lightweight. Addressing these issues, we present PatchAD, our novel, highly efficient multiscale patch-based MLP-Mixer architecture that utilizes contrastive learning for representation extraction and anomaly detection. With its four distinct MLP Mixers and innovative dual project constraint module, PatchAD mitigates potential model degradation and offers a lightweight solution, requiring only 0.403M0.403M parameters. Its efficacy is demonstrated by state-of-the-art results across 88 datasets sourced from different application scenarios, outperforming over 3030 comparative algorithms. PatchAD significantly improves the classical F1 score by 6.84%, the Aff-F1 score by 4.27%, and the V-ROC by 2.49%. Simultaneously, an in-depth analysis of the mechanisms underlying PatchAD has been conducted from both theoretical and experimental perspectives, validating the design motivations of the model. The code is publicly available at https://github.com/EmorZz1G/PatchAD.

Keywords

Cite

@article{arxiv.2401.09793,
  title  = {PatchAD: A Lightweight Patch-based MLP-Mixer for Time Series Anomaly Detection},
  author = {Zhijie Zhong and Zhiwen Yu and Yiyuan Yang and Weizheng Wang and Kaixiang Yang},
  journal= {arXiv preprint arXiv:2401.09793},
  year   = {2025}
}

Comments

24 pages, 16 figures, 13 tables, TBD 2025

R2 v1 2026-06-28T14:20:07.536Z