AD-AGENT: A Multi-agent Framework for End-to-end Anomaly Detection
Tiankai Yang, Junjun Liu, Wingchun Siu, Jiahang Wang, Zhuangzhuang Qian, Chanjuan Song, Cheng Cheng, Xiyang Hu, Yue Zhao
TL;DR
Non-experts face barriers to building anomaly-detection pipelines due to modality diversity and library fragmentation. AD-Agent introduces an LLM-driven multi-agent framework that converts natural-language intents into executable pipelines across PyOD, PyGOD, and TSLib, guided by short-term and long-term memory. The approach provides unified automation across modalities, a modular design, and open-source availability, with experiments showing high pipeline-generation reliability, AUROC-based selection effectiveness, and substantial gains from memory caching. This work lowers the barrier to deploying robust anomaly detection in practice and paves the way for broader, community-driven AD tooling.
Abstract
Anomaly detection (AD) is essential in areas such as fraud detection, network monitoring, and scientific research. However, the diversity of data modalities and the increasing number of specialized AD libraries pose challenges for non-expert users who lack in-depth library-specific knowledge and advanced programming skills. To tackle this, we present AD-AGENT, an LLM-driven multi-agent framework that turns natural-language instructions into fully executable AD pipelines. AD-AGENT coordinates specialized agents for intent parsing, data preparation, library and model selection, documentation mining, and iterative code generation and debugging. Using a shared short-term workspace and a long-term cache, the agents integrate popular AD libraries like PyOD, PyGOD, and TSLib into a unified workflow. Experiments demonstrate that AD-AGENT produces reliable scripts and recommends competitive models across libraries. The system is open-sourced to support further research and practical applications in AD.
