SelectIAD: An Expert-Inspired Agent for Task-Adaptive Model Selection in Industrial Anomaly Detection
Abstract: The most effective detectors for industrial anomaly detection (IAD) often vary heavily based on the specific task. Unlike models that rely on known results to recommend algorithms, large language models (LLMs) offer new opportunities for generating and evaluating detection strategies. However, current LLM-based IAD agents are not yet able to efficiently and adaptively identify the optimal candidate algorithms for these tasks. To better use existing detectors, we propose SelectIAD, an agent-based framework designed for task-adaptive detector selection. This framework is expert-inspired and leverages a domain-specific algorithm knowledge base to compile a pool of detectors with complementary capabilities, while excluding methods that do not align with task requirements. It uses historical performance and conditional selection experience to prioritize candidates without testing every detector on the target task. SelectIAD then runs the selected detector and independently evaluates its predictions. Experiments show that SelectIAD outperforms competing model-selection strategies, achieving a mean relative gain of 32.4% in detection performance over the best-performing agent baseline. Finally, we believe that the proposed method has great potential for industrial automation. The code will be released upon acceptance.