Temporal-Frequency Masked Autoencoders for Time Series Anomaly Detection
Yuchen Fang, Jiandong Xie, Yan Zhao, Lu Chen, Yunjun Gao, Kai Zheng
Abstract
In the era of observability, massive amounts of time series data have been collected to monitor the running status of the target system, where anomaly detection serves to identify observations that differ significantly from the remaining ones and is of utmost importance to enable value extraction from such data. While existing reconstruction-based methods have demonstrated favorable detection capabilities in the absence of labeled data, they still encounter issues of training bias on abnormal times and distribution shifts within time series. To address these issues, we propose a simple yet effective Temporal-Frequency Masked AutoEncoder (TFMAE) to detect anomalies in time series through a contrastive criterion. Specifically, TFMAE uses two Transformer-based autoencoders that respectively incorporate a window-based temporal masking strategy and an amplitude-based frequency masking strategy to learn knowledge without abnormal bias and reconstruct anomalies by the extracted normal information. Moreover, the dual autoencoder undergoes training through a contrastive objective function, which minimizes the discrepancy of representations from temporal-frequency masked autoencoders to highlight anomalies, as it helps alleviate the negative impact of distribution shifts. Finally, to prevent over-fitting, TFMAE adopts adversarial training during the training phase. Extensive experiments conducted on seven datasets provide evidence that our model is able to surpass the state-of-the-art in terms of anomaly detection accuracy.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 90d3b2ef-5406-4667-a9a4-8db090825c55Cited by top-tier papers10
- Towards Foundation Models for Zero-Shot Time Series Anomaly Detection: Leveraging Synthetic Data and Relative Context DiscrepancyTian Lan, Hao Le, Jinbo Li, Wenjun He et al.ICML 2026 · 6 citations
- DIFFODE: Neural ODE with Differentiable Hidden State for Irregular Time Series AnalysisYudong Zhang, Xu Wang, Xuan Yu, Zhengyang Zhou et al.ICDE 2025 · 3 citations
- Efficient High-Dimensional Time Series Forecasting with Transformers: A Channel Reordering PerspectiveYuchen Fang, Shiyu Wang, Yuxuan Liang, Zhou Ye et al.WWW 2026 · 1 citation
- Unsupervised Time Series Anomaly Prediction with Importance-based Generative Contrastive LearningKai Zhao, Zhihao Zhuang, Chenjuan Guo, Hao Miao et al.KDD 2025 · 1 citation
- KITE: Knowledge-Guided Probabilistic Modeling for Time Series Forecasting with Exogenous VariablesHanyin Cheng, Jingrong Zhou, Yang Shu, Chenjuan GuoICML 2026
Builds on26
- Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- One Fits All: Power General Time Series Analysis by Pretrained LMTian Zhou, Peisong Niu, Xue Wang, Liang Sun et al.NeurIPS 2023 · 1,178 citations
- Reversible Instance Normalization for Accurate Time-Series Forecasting against Distribution ShiftTaesung Kim, Jinhee Kim, Yunwon Tae, Cheonbok Park et al.ICLR 2022 · 1,020 citations
- Anomaly Transformer: Time Series Anomaly Detection with Association DiscrepancyJiehui Xu, Haixu Wu, Jianmin Wang, Mingsheng LongICLR 2022 · 960 citations
Related papers
- Revisiting VAE for Unsupervised Time Series Anomaly Detection: A Frequency PerspectiveZexin Wang, Changhua Pei, Minghua Ma, Xin Wang et al.WWW 2024 · 90 citations
- An Encode-then-Decompose Approach to Unsupervised Time Series Anomaly Detection on Contaminated Training DataBuang Zhang, Tung Kieu, Xiangfei Qiu, Chenjuan Guo et al.ICDE 2026 · 3 citations
- Bridging Classification and Reconstruction: Cooperative Time Series Anomaly DetectionQideng Tang, Chaofan Dai, Wubin Ma, Yahui Wu et al.KDD 2026
- MLP-Mixer based Masked Autoencoders Are Effective, Explainable and Robust for Time Series Anomaly DetectionQideng Tang, Chaofan Dai, Yahui Wu, Haohao ZhouVLDB 2025 · 5 citations
- Complexity- and Statistics-Guided Anomaly Detection in Time Series Foundation ModelsJongwon Kim, Samuel Yoon, Young Myoung Ko, Yerin Kim et al.ICLR 2026
