UniSpector: Towards Universal Open-set Defect Recognition via Spectral-Contrastive Visual Prompting
Geonuk Kim, Minhoi Kim, Kangil Lee, Minsu Kim, Hyeonseong Jeon, JEONGHOON HAN, Hyoungjoon Lim, Junho Yim
Abstract
Even though industrial inspection systems should be capable of recognizing unprecedented defects, most existing approaches operate under a closed-set assumption, which prevents them from detecting novel anomalies. While the visual prompting approach provides a scalable alternative, it struggles in industrial settings where subtle inter-class differences and high intra-class variance make prompt-to-region matching ambiguous and cause prompt embeddings to collapse, limiting the effectiveness of existing methods. To address these challenges, we introduce UniSpector— a Universal Inspector for open-set defect detection and segmentation. To empower defect prompt embeddings for robust recognition of novel defects, it comprises two key components: the Spatial–Spectral Prompt Encoder (SSPE) and the Contrastive Prompt Encoder (CPE). SSPE extracts orientation-invariant frequency cues and fuses them with spatial features to distinguish subtle defects. CPE encodes the prompt into an angular space to facilitate semantically meaningful embedding of unseen defect prompts. In addition, to improve adaptability to novel defect types, we introduce Prompt-guided Query Selection (PQS) to generate adaptive object queries aligned with the prompt.To standardize evaluation, we introduce Inspect Anything (InsA), the first benchmark for visual-prompt-based open-set defect localization.Experiments demonstrate that UniSpector significantly surpasses prior baselines by at least 19.7% and 15.8% in AP50b and AP50m, respectively. These results show that our method enables a scalable, retraining-free inspection paradigm for continuously evolving industrial environments.
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.
Builds on17
- DETRs Beat YOLOs on Real-time Object DetectionYian Zhao, Wenyu Lv, Shangliang Xu, Jinman Wei et al.CVPR 2024 · 3,046 citations
- Towards Total Recall in Industrial Anomaly DetectionKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf et al.CVPR 2022 · 1,301 citations
- Few-Shot Object Detection via Feature ReweightingBingyi Kang, Zhuang Liu, Xin Wang, Fisher Yu et al.ICCV 2019 · 835 citations
- Frustratingly Simple Few-Shot Object DetectionXin Wang, Thomas E. Huang, Joseph Gonzalez, Trevor Darrell et al.ICML 2020 · 723 citations
- Meta R-CNN: Towards General Solver for Instance-Level Low-Shot LearningXiaopeng Yan, Ziliang Chen, Anni Xu, Xiaoxi Wang et al.ICCV 2019 · 590 citations
Related papers
- Unsupervised Continual Anomaly Detection with Contrastively-Learned PromptJiaqi Liu, Kai Wu, Qiang Nie, Ying Chen et al.AAAI 2024 · 54 citations
- Visual in-Context PromptingFeng Li, Qing Jiang, Hao Zhang, Tianhe Ren et al.CVPR 2024
- Exploring Intrinsic Normal Prototypes within a Single Image for Universal Anomaly DetectionWei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang et al.CVPR 2025
- Open-Set Fine-Grained Retrieval via Prompting Vision-Language EvaluatorShijie Wang, Jianlong Chang, Haojie Li, Zhihui Wang et al.CVPR 2023
- DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary LookupZhen Qu, Xian Tao, Xinyi Gong, Shichen Qu et al.ICCV 2025 · 3 citations
