Proceedings

Sub-Adjacent Transformer: Improving Time Series Anomaly Detection with Reconstruction Error from Sub-Adjacent Neighborhoods

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 2524-2532.

https://doi.org/10.24963/ijcai.2024/279

Abstract

In this paper, we present the Sub-Adjacent Transformer with a novel attention mechanism for unsupervised time series anomaly detection. Unlike previous approaches that rely on all the points within some neighborhood for time point reconstruction, our method restricts the attention to regions not immediately adjacent to the target points, termed sub-adjacent neighborhoods. Our key observation is that owing to the rarity of anomalies, they typically exhibit more pronounced differences from their sub-adjacent neighborhoods than from their immediate vicinities. By focusing the attention on the sub-adjacent areas, we make the reconstruction of anomalies more challenging, thereby enhancing their detectability. Technically, our approach concentrates attention on the non-diagonal areas of the attention matrix by enlarging the corresponding elements in the training stage. To facilitate the implementation of the desired attention matrix pattern, we adopt linear attention because of its flexibility and adaptability. Moreover, a learnable mapping function is proposed to improve the performance of linear attention. Empirically, the Sub-Adjacent Transformer achieves state-of-the-art performance across six real-world anomaly detection benchmarks, covering diverse fields such as server monitoring, space exploration, and water treatment.

  1. [Abdulaal et al., 2021] Ahmed Abdulaal, Zhuanghua Liu, and Tomer Lancewicki. Practical approach to asyn- chronous multivariate time series anomaly detection and localization. In SIGKDD, pages 2485-2494, 2021.
  2. [Ahmed et al., 2017] Chuadhry Mujeeb Ahmed, Venkata Reddy Palleti, and Aditya P. Mathur. Wadi: a water distribution testbed for research in the design of secure cyber physical systems. In Proceedings of the 3rd international workshop on cyber-physical systems for smart water networks, pages 25-28, 2017.
  3. [Audibert et al., 2020] Julien Audibert, Pietro Michiardi, Frédéric Guyard, Sébastien Marti, and Maria A. Zuluaga. Usad: Unsupervised anomaly detection on multivariate time series. In SIGKDD, pages 3395-3404, 2020.
  4. [Blázquez-García et al., 2021] Ane Blázquez-García, Angel Conde, Usue Mori, and Jose A Lozano. A review on out- lier/anomaly detection in time series data. ACM Comput- ing Surveys, 54(3):1-33, April 2021.
  5. [Bolya et al., 2022] Daniel Bolya, Cheng-Yang Fu, Xiao- liang Dai, Peizhao Zhang, and Judy Hoffman. Hydra at- tention: Efficient attention with many heads. In ECCV, pages 35-49. Springer, 2022.
  6. [Boniol and Palpanas, 2022] Paul Boniol and Themis Palpanas. Series2graph: Graph-based subsequence anomaly detection for time series. arXiv preprint arXiv:2207.12208, 2022.
  7. [Breunig et al., 2000] Markus M Breunig, Hans-Peter Kriegel, Raymond T. Ng, and Jörg Sander. Lof: iden- tifying density-based local outliers. In SIGMOD, pages 93-104, 2000.
  8. [Brown et al., 2020] Tom Brown, Benjamin Mann, Nick Ry- der, Melanie Subbiah, Jared D Kaplan, Prafulla Dhari- wal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. NIPS, 33:1877-1901, 2020.
  9. [Cai et al., 2023] Han Cai, Chuang Gan, and Song Han. Efficientvit: Lightweight multi-scale attention for high- resolution dense prediction. In ICCV, pages 17302-17313, 2023.
  10. [Chen et al., 2021] Zekai Chen, Dingshuo Chen, Xiao Zhang, Zixuan Yuan, and Xiuzhen Cheng. Learning graph structures with transformer for multivariate time-series anomaly detection in iot. IEEE Internet of Things Jour- nal, 9(12):9179-9189, 2021.
  11. [Chen, 2018] Tiankai Chen. Anomaly detection in semicon- ductor manufacturing through time series forecasting us- ing neural networks. PhD thesis, Massachusetts Institute of Technology, 2018.
  12. [Cheng et al., 2008] Haibin Cheng, Pang-Ning Tan, Christo- pher Potter, and Steven Klooster. A robust graph-based al- gorithm for detection and characterization of anomalies in noisy multivariate time series. In ICDM workshops, pages 349-358. IEEE, 2008.
  13. [Deng and Hooi, 2021] Ailin Deng and Bryan Hooi. Graph neural network-based anomaly detection in multivariate time series. In AAAI, volume 35, pages 4027-4035, 2021.
  14. [Ding et al., 2019] Nan Ding, HaoXuan Ma, Huanbo Gao, YanHua Ma, and GuoZhen Tan. Real-time anomaly de- tection based on long short-term memory and gaussian mixture model. Computers & Electrical Engineering, 79:106458, 2019.
  15. [Fox, 1972] Anthony J Fox. Outliers in time series. Jour- nal of the Royal Statistical Society Series B: Statistical Methodology, 34(3):350-363, 1972.
  16. [Garg et al., 2022] Astha Garg, Wenyu Zhang, Jules Sama- ran, Ramasamy Savitha, and Chuan-Sheng Foo. An eval- uation of anomaly detection and diagnosis in multivariate time series. IEEE Transactions on Neural Networks and Learning Systems, 33(6):2508-2517, 2022.
  17. [Gupta et al., 2013] Manish Gupta, Jing Gao, Charu C. Ag- garwal, and Jiawei Han. Outlier detection for temporal data: A survey. IEEE Transactions on Knowledge and data Engineering, 26(9):2250-2267, 2013.
  18. [Han et al., 2023] Dongchen Han, Xuran Pan, Yizeng Han, Shiji Song, and Gao Huang. Flatten transformer: Vision transformer using focused linear attention. In ICCV, pages 5961-5971, 2023.
  19. [Ho et al., 2020] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. NIPS, 33:6840- 6851, 2020.
  20. [Hundman et al., 2018a] Kyle Hundman, Valentino Con- stantinou, Christopher Laporte, Ian Colwell, and Tom Soderstrom. Detecting spacecraft anomalies using lstms and nonparametric dynamic thresholding. In SIGKDD, pages 387-395, 2018.
  21. [Hundman et al., 2018b] Kyle Hundman, Valentino Con- stantinou, Christopher Laporte, Ian Colwell, and Tom Soderstrom. Detecting spacecraft anomalies using lstms and nonparametric dynamic thresholding. In SIGKDD, pages 387-395, 2018.
  22. [Katharopoulos et al., 2020] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and Franc ¸ois Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In ICML, pages 5156-5165. PMLR, 2020.
  23. [Kieu et al., 2019] Tung Kieu, Bin Yang, Chenjuan Guo, and Christian S. Jensen. Outlier detection for time series with recurrent autoencoder ensembles. In IJCAI, pages 2725- 2732, 2019. IJCAI
  24. [Kingma and Ba, 2015] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
  25. [Lai et al., 2021] Kwei-Herng Lai, Daochen Zha, Junjie Xu, Yue Zhao, Guanchu Wang, and Xia Hu. Revisiting time series outlier detection: Definitions and benchmarks. In NeurIPS Dataset and Benchmark Track, 2021.
  26. [Lai et al., 2023] Chih-Yu Lai, Fan-Keng Sun, Zhengqi Gao, Jeffrey H Lang, and Duane S Boning. Nom- inality score conditioned time series anomaly detec- tion by point/sequential reconstruction. arXiv preprint arXiv:2310.15416, 2023.
  27. [Li et al., 2019] Dan Li, Dacheng Chen, Baihong Jin, Lei Shi, Jonathan Goh, and See-Kiong Ng. Mad-gan: Multi- variate anomaly detection for time series data with gener- ative adversarial networks. In International conference on artificial neural networks, pages 703-716. Springer, 2019.
  28. [Li et al., 2021] Zhihan Li, Youjian Zhao, Jiaqi Han, Ya Su, Rui Jiao, Xidao Wen, and Dan Pei. Multivariate time se- ries anomaly detection and interpretation using hierarchi- cal inter-metric and temporal embedding. In SIGKDD, pages 3220-3230, 2021.
  29. [Liu et al., 2013] Bo Liu, Yanshan Xiao, Longbing Cao, Zhifeng Hao, and Feiqi Deng. Svdd-based outlier detec- tion on uncertain data. Knowledge and information sys- tems, 34:597-618, 2013.
  30. [Liu et al., 2021] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Ching-Feng Lin, and Baining Guo. Swin transformer: Hierarchical vision trans- former using shifted windows. In ICCV, pages 10012- 10022, 2021.
  31. [Mathur and Tippenhauer, 2016] Aditya P. Mathur and Nils Ole Tippenhauer. Swat: a water treatment testbed for research and training on ics security. In CySWATER, pages 31-36. IEEE, 2016.
  32. [Park et al., 2018] Daehyung Park, Yuuna Hoshi, and Charles C Kemp. A multimodal anomaly detector for robot-assisted feeding using an lstm-based variational autoencoder. IEEE Robotics and Automation Letters, 3(3):1544-1551, 2018.
  33. [Pereira and Silveira, 2019] João Pereira and Margarida Sil- veira. Learning representations from healthcare time series data for unsupervised anomaly detection. In 2019 IEEE international conference on big data and smart computing (BigComp), pages 1-7. IEEE, 2019.
  34. [Pintilie et al., 2023] Ioana Pintilie, Andrei Manolache, and Florin Brad. Time series anomaly detection using diffusion-based models. arXiv preprint arXiv:2311.01452, 2023.
  35. [Schmidl et al., 2022] Sebastian Schmidl, Phillip Wenig, and Thorsten Papenbrock. Anomaly detection in time series: a comprehensive evaluation. Proceedings of the VLDB Endowment, 15(9):1779-1797, 2022.
  36. [Schölkopf et al., 2001] Bernhard Schölkopf, John C. Platt, J. Shawe-Taylor, Alex Smola, and R. C. Williamson. Es- timating the support of a high-dimensional distribution. Neural computation, 13(7):1443-1471, 2001.
  37. [Shen et al., 2020] Lifeng Shen, Zhuocong Li, and James T. Kwok. Timeseries anomaly detection using temporal hier- archical one-class network. NIPS, 33:13016-13026, 2020.
  38. [Shen et al., 2021] Zhuoran Shen, Mingyuan Zhang, Haiyu Zhao, Shuai Yi, , and Hongsheng Li. Efficient attention: Attention with linear complexities. In WACV, pages 3531- 3539, 2021.
  39. [Su et al., 2019] Ya Su, Youjian Zhao, Chenhao Niu, Rong Liu, Wei Sun, and Dan Pei. Robust anomaly detection for multivariate time series through stochastic recurrent neural network. In SIGKDD, pages 2828-2837, 2019.
  40. [Sun et al., 2021] Fan-Keng Sun, Chris Lang, and Duane Boning. Adjusting for autocorrelated errors in neural net- works for time series. NIPS, 34:29806-29819, 2021.
  41. [Tax and Duin, 2004] David M.J. Tax and Robert P.W. Duin. Support vector data description. Machine learning, 54:45- 66, 2004.
  42. [Tuli et al., 2022] Shreshth Tuli, Giuliano Casale, and Nicholas R Jennings. Tranad: Deep transformer net- works for anomaly detection in multivariate time series data. arXiv preprint arXiv:2201.07284, 2022.
  43. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. NIPS, 30, 2017.
  44. [Wu et al., 2023] Haixu Wu, Tengge Hu, Yong Liu, Hang Zhou, Jianmin Wang, and Mingsheng Long. Timesnet: Temporal 2d-variation modeling for general time series analysis. ICLR, 2023.
  45. [Xu et al., 2022] Jiehui Xu, Haixu Wu, Jianmin Wang, and Mingsheng Long. Anomaly transformer: Time series anomaly detection with association discrepancy. In ICLR, 2022.
  46. [Zhang et al., 2019] Chuxu Zhang, Dongjin Song, Yuncong Chen, Xinyang Feng, Cristian Lumezanu, Wei Cheng, Jingchao Ni, Bo Zong, Haifeng Chen, and Nitesh V Chawla. A deep neural network for unsupervised anomaly detection and diagnosis in multivariate time series data. In AAAI, volume 33, pages 1409-1416, 2019.
  47. [Zhao et al., 2020] Hang Zhao, Yujing Wang, Juanyong Duan, Congrui Huang, Defu Cao, Yunhai Tong, Bixiong Xu, Jing Bai, Jie Tong, and Qi Zhang. Multivariate time- series anomaly detection via graph attention network. In ICDM, pages 841-850. IEEE, 2020.
  48. [Zhao et al., 2022] Yan Zhao, Liwei Deng, Xuanhao Chen, Chenjuan Guo, Bin Yang, Tung Kieu, Feiteng Huang, Tor- ben Bach Pedersen, Kai Zheng, and Christian S Jensen. A comparative study on unsupervised anomaly detection for time series: Experiments and analysis. arXiv preprint arXiv:2209.04635, 2022.
  49. [Zhou et al., 2019] Bin Zhou, Shenghua Liu, Bryan Hooi, Xueqi Cheng, and Jing Ye. Beatgan: Anomalous rhythm detection using adversarially generated time series. In IJ- CAI, volume 2019, pages 4433-4439, 2019. IJCAI
  50. [Zong et al., 2018] Bo Zong, Qi Song, Martin Renqiang Min, Wei Cheng, et al. Deep autoencoding gaussian mix- ture model for unsupervised anomaly detection. In ICLR, 2018.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards