arXiv:2610.28560cs.AIOct 2026

Manuscript Offprint

arXiv:2610.28560

Agentic Ensemble with Vision-Language Models for Visual Anomaly Detection

Shangquan Sun, Wenjun Luo, Xu He, Yoonsoo Lee, Shijian Lu

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

Shangquan Sun, Wenjun Luo, Xu He, Yoonsoo Lee, and Shijian Lu

Abstract—Visual anomaly detection aims to detect abnormal objects, while anomaly samples are often scarce during model training. Assembling multiple pretrained detectors can help by leveraging their transferable image scores and anomaly maps. However, most existing ensemble methods apply fixed fusion rules over saved predictions which struggle when pretrained detectors clearly disagree due to different training objectives, priors, and visual representations. To this end, we design AnomalyAgent, a post-training fusion framework for accurate visual anomaly detection. AnomalyAgent aligns heterogeneous scores and maps, summarizes score- and region-level disagreement, and treats fusion as a finite action-selection problem. It implements two types of actions: 1) score actions that determine how to fuse image-level detector confidence via consensus, robust aggregation, detector weighting, or score-map consistency; 2) map actions that fuse dense anomaly responses via consensus, detector weighting, geometric aggregation, or disagreement correction. A constrained vision-language model (VLM) is introduced to inspect high-conflict samples and select valid score action and map action to produce the final prediction. We evaluate AnomalyAgent on MVTec AD and VisA as primary benchmarks, together with seven additional public anomaly benchmarks and Real-IAD for large-scale score-level evaluation. Across these benchmarks, AnomalyAgent consistently improves over equal-weight fusion and achieves the best mean image AUROC and pixel AP among the compared fusion methods on MVTec AD and VisA, while demonstrating robust transfer across additional anomaly domains.

Index Terms—Visual anomaly detection, post-training ensemble, vision-language model, anomaly localization.

I. INTRODUCTION

Visual anomaly detection (VAD) aims to detect anomalous samples and localize abnormal regions under limited anomaly supervision, where anomalies are often rare, diverse, and difficult to characterize exhaustively. The prevalent approach mitigates the lack of anomaly supervision by leveraging pretrained anomaly detectors that provide transferable image-level anomaly scores and pixel-level localization maps. It substantially improves VAD performance by exploiting vision-language representations [1]-[3], feature reconstruction [4], memory modeling [5], [6], state-space architectures [7], [8], foundation-model priors [9], etc. However, different detectors, pretrained under different objectives and priors, often exhibit different failure modes: some may be sensitive to harmless texture variations, some may miss small structural anomalies, and some may produce diffused localization [10], [11]. Their very diverse predictions suggest that pretrained detectors learn complementary evidence and that properly assembling them could outperform any individual detector.

Different ensemble approaches have been explored, including classical strategies such as score averaging [12], weighted voting [13]–[15], and stacking [16]. These methods can improve the detection robustness when validation labels or task-specific fitting are available. However, they struggle while handling label-free post-training visual inspection, where anomaly labels are unavailable, base detectors are fixed, and the fusion module must handle both image-level scores and dense anomaly maps without retraining. Under such a scenario, the most accessible post-training baseline is equal-weight averaging that normalizes and averages the scores and anomaly maps of all assembled detectors. Despite being simple and deterministic, this strategy assumes that every detector is equally reliable for every image and every spatial region. As a result, an isolated false response from one detector will be aggregated into the fused anomaly map and distort it, and a subtle but valid anomaly detected by only one expert can be diluted by the others' predictions. The key challenge thus becomes evidence arbitration: an ensemble method should understand which detector to trust, which response to reject, and how to resolve inter-detector prediction conflicts.

To address this problem, we propose AnomalyAgent, a structured post-training fusion framework for visual anomaly detection. Rather than modifying the pretrained detectors or training an additional meta-detector, AnomalyAgent handles VAD after the pretrained detectors have produced their prediction scores and dense anomaly maps. It normalizes heterogeneous outputs, builds a disagreement-aware evidence state, and invokes a constrained vision-language model (VLM) when the conflict score exceeds a predefined threshold. Here the VLM acts as a single-step policy selector over finite fusion actions, instead of a free-form mask generator or a multi-turn tool-using agent—every valid decision remains grounded in the outputs of the pretrained detectors. For image-level prediction, the available score actions include consensus, robust aggregation, detector weighting, and score-map consistency, allowing the VLM to determine how detector confidence should be combined. For pixel-level localization, the map actions include consensus, detector weighting, geometric aggregation, and disagreement correction, enabling the VLM to suppress unreliable responses or preserve complementary spatial evidence. The selected score and map actions are then applied to the fixed detector outputs to produce the final anomaly score and localization map.

Our main contributions are summarized as follows:

• We formulate label-free transductive post-training anomaly-detector fusion as conflict-conditioned selection

Shangquan Sun, Wenjun Luo, Xu He, and Shijian Lu are with the College of Computing and Data Science, Nanyang Technological University, Singapore. Shijian Lu is the corresponding author (e-mail: Shijian.Lu@ntu.edu.sg).

Yoonsoo Lee is with Manufacturing Engineering, Hyundai Motor Company.

over deterministic score- and map-level operators, without updating the base detectors.

  • We introduce a constrained VLM policy that makes each intervention traceable and prevents free-form anomaly generation through selection over valid detector-grounded fusion actions.

• Across all six MVTec AD and VisA benchmark–pool configurations, AnomalyAgent consistently improves over equal-weight fusion and achieves the best mean image AUROC and pixel AP among the compared fusion methods on both primary benchmarks, together with robust transfer across seven additional public benchmarks and effective large-scale evaluation on Real-IAD.

References (69)