Manuscript Offprint

arXiv:2611.02654

VerdictAD: Few-Shot Anomaly Detection via Decision-Guided Refinement

Shangquan Sun, Wenjun Luo, Yuanzhi Wang, Ruiqi Li, Ruoyu Chen, Jiachen Liu, Shijian Lu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Detecting defects in real-world industrial inspection often requires learning from only a few normal images per category. Recent few-shot anomaly detection methods have achieved strong performance by measuring feature differences between query images and normal references. However, visual differences do not always indicate genuine defects, as normal appearance variations can also produce high anomaly scores. Conversely, structural or logical anomalies may not produce strong local feature differences, making them difficult to detect. To address this limitation, we introduce VerdictAD, a training-free framework that refines existing anomaly detectors through visual decisions. Rather than replacing existing detectors, VerdictAD adopts a typed decision model to assess the query image and its local regions against a few normal references. By directly producing structured decision probabilities without text generation, the model provides complementary evidence for refining anomaly responses at different spatial scales. Building on this capability, we introduce two modules: Global Verdict Refinement (GVR) uses image-level decisions to refine the overall anomaly score, while Local Verdict Refinement (LVR) aggregates regional decisions to refine the anomaly map. Combined with a simple DINov2-based detector, VerdictAD achieves competitive performance in one-shot and few-shot anomaly detection. More importantly, as a plug-and-play framework, it consistently improves existing anomaly detectors across MVTec AD, VisA, and MVTec LOCO AD, achieving strong results across one-shot and few-shot settings. Our code and experimental logs are publicly available at https://github.com/sgstq0811/VerdictAD-Jev-AD.

1. Introduction

Visual anomaly detection (AD) has long been a challenging task in computer vision, particularly in industrial inspection. In real-world industry, even minor defects, such as scratches, contamination, or missing components, can affect product quality and cause failures in subsequent manu-

Figure

(a) Few-shot performance

Figure

(b) Improvements across detectors

Figure 1. Performance improvements with VerdictAD. (a) Anomaly detection and localization performance under the 1-, 2-, and 4-shot settings on MVTec AD and VisA. (b) Image-level and pixel-level AUROC before and after applying VerdictAD to different anomaly detectors.

facturing processes. Therefore, automated systems capable of accurately detecting such defects are essential for reliable and cost-effective industrial production.

A major challenge in industrial anomaly detection is the limited availability of training data. Full-shot methods typically require hundreds of defect-free images per category to model normal appearances, which can be difficult to obtain in practice. In contrast, zero-shot methods leverage vision-language models (VLMs) and textual prompts to detect anomalies without normal training samples. However, they often struggle with subtle, non-semantic defects, such as tiny cracks, that are difficult to describe through language alone. In this work, we focus on the more practical yet challenging few-shot setting. Under this setting, only a handful of normal images are available for each target category to characterize its normal appearance.

Existing few-shot industrial anomaly detection methods mainly include reconstruction-based, memory-bank-based, and vision-language model (VLM)-based approaches. Despite their different designs, these methods typically produce image-level anomaly scores and pixel-level anomaly maps to identify and localize defects. However, visual differences do not always indicate genuine defects, as normal appearance variations can also produce high anomaly scores. As shown in Fig. 2, a normal juice bottle may be flagged as anomalous because its liquid color differs from the references, while variations in screw orientation and background textures can also trigger false responses. Conversely, logical anomalies may produce misleading anomaly responses. In the breakfast box example, missing dried fruits cause a logical anomaly, but the baseline incorrectly highlights the entire tray rather than the actual defective region. These examples show that anomaly responses based on visual differences do not always accurately reflect genuine defects.

This motivates us to verify anomaly responses rather than solely improving visual representations. Recent typed decision models [11, 60] provide probabilities over predefined answers without generating free-form text. Such decisions offer complementary information to the visual differences measured by existing anomaly detectors. We therefore explore their use in refining image-level anomaly scores and pixel-level anomaly maps. To this end, we propose VerdictAD, a training-free framework for decision-guided anomaly refinement. We first build a simple anomaly detector using frozen DINOv2-L features [48] to obtain image-level anomaly scores and pixel-level anomaly maps. We then introduce two complementary refinement modules. Global Verdict Refinement (GVR) combines reference-free and reference-conditioned decisions to refine image-level anomaly scores. Local Verdict Refinement (LVR) evaluates image regions through cropped views and boxed full-image views, producing a verification map to reweight the original anomaly map. By suppressing misleading responses more strongly than defect-related ones, LVR improves the relative prominence of genuine defects without generating new anomaly evidence. Together, these modules achieve state-of-the-art performance across multiple few-shot anomaly detection benchmarks. Moreover, the underlying detector can be replaced with existing anomaly detection methods, allowing VerdictAD to refine their predictions without modifying their architectures or requiring additional training. Our main contributions are threefold:

  1. We propose VerdictAD, a training-free framework that leverages typed visual decisions to refine anomaly detection and localization.

  2. We introduce GVR and LVR to refine image-level anomaly scores and pixel-level anomaly maps through

Figure

Figure 2. Examples of visual differences that produce misleading anomaly responses. (a) Juice bottle: Different liquid colors lead to false anomaly responses on the bottle logo. (b) Screw: Variations in screw orientation cause widespread false responses. (c) Cashew: Textured backgrounds are incorrectly identified as anomalous regions. (d) Breakfast box: Missing dried fruits cause a logical anomaly, but the baseline incorrectly highlights the entire tray. VerdictAD uses visual decisions to suppress misleading responses while preserving useful anomaly evidence.

global and local visual decisions.

  1. Extensive experiments on MVTec AD, VisA, and MVTec LOCO AD demonstrate state-of-the-art performance across multiple few-shot settings.

  2. We demonstrate the generality of VerdictAD by consistently improving existing anomaly detectors without additional training.

References (68)