TransNAS-TSAD: Harnessing Transformers for Multi-Objective Neural Architecture Search in Time Series Anomaly Detection
Ijaz Ul Haq, Byung Suk Lee, Donna M. Rizzo
TL;DR
TransNAS-TSAD tackles time series anomaly detection by uniting transformer architectures with neural architecture search (NAS) optimized via NSGA-II to balance detection accuracy and computational efficiency. The framework introduces a multi-objective NAS process, an offline optimization phase, and a three-phase adversarial enhancement to improve robustness across diverse univariate and multivariate datasets. It defines and employs the Efficiency-Accuracy-Complexity Score (EACS) to evaluate models in terms of F1 performance, training time, and parameter count, and demonstrates strong results across benchmarks such as NAB, UCR, MBA, SMAP, SWaT, WADI, and SMD. The work provides a practical, adaptable solution for real-time TSAD and offers a pathway for future enhancements in dynamic thresholding, online learning, and human-in-the-loop design, with explicit Pareto-front guidance for deployment under varying resource constraints.
Abstract
The surge in real-time data collection across various industries has underscored the need for advanced anomaly detection in both univariate and multivariate time series data. This paper introduces TransNAS-TSAD, a framework that synergizes the transformer architecture with neural architecture search (NAS), enhanced through NSGA-II algorithm optimization. This approach effectively tackles the complexities of time series data, balancing computational efficiency with detection accuracy. Our evaluation reveals that TransNAS-TSAD surpasses conventional anomaly detection models due to its tailored architectural adaptability and the efficient exploration of complex search spaces, leading to marked improvements in diverse data scenarios. We also introduce the Efficiency-Accuracy-Complexity Score (EACS) as a new metric for assessing model performance, emphasizing the balance between accuracy and computational resources. TransNAS-TSAD sets a new benchmark in time series anomaly detection, offering a versatile, efficient solution for complex real-world applications. This research highlights the TransNAS-TSAD potential across a wide range of industry applications and paves the way for future developments in the field.
