Visual Anomaly Detection under Complex View-Illumination Interplay: A Large-Scale Benchmark

Yunkang Cao, Yuqi Cheng, Xiaohao Xu, Yiheng Zhang, Yihan Sun, Yuxiang Tan, Yuxin Zhang, Xiaonan Huang, Weiming ShenarXiv 2025 · DOI

Visual Anomaly Detection (VAD) is often considered a solved problem in controlled laboratory settings, with state-of-the-art models achieving near-perfect scores on standard benchmarks. However, real-world industrial environments present significant challenges—specifically the "view-illumination interplay"—where the detectability of a defect depends on the physical interaction between the object's geometry, the camera's viewpoint, and the lighting conditions. This paper introduces $M^2AD$, a large-scale benchmark designed to bridge the gap between lab performance and industrial reliability.

The Challenge of View-Illumination Interplay

In practical inspection, a subtle scratch or dent might be glaringly obvious under specific side-lighting but completely invisible under direct overhead illumination. Most existing benchmarks assume near-ideal, static imaging conditions, failing to test a model's robustness to these physical variations. The $M^2AD$ dataset addresses this by systematically varying both viewpoint and illumination, providing a dense grid of 120 configurations (12 views × 10 lights) for every specimen.

Figure 1: The view-illumination interplay in action. Defects on the "Bird" and "Holder" specimens transition between detectable and undetectable states depending on the specific combination of viewpoint and lighting.

The $M^2AD$ Dataset and Methodology

The $M^2AD$ dataset comprises 119,880 ultra-high-resolution images ($3648 \times 5472$ pixels) across 10 diverse categories, including materials like clay, plastic, wood, and metal. To capture this data, the researchers built a custom hardware prototype featuring a high-precision motorized turntable and a programmable photometric illumination module.

A critical component of the benchmark is the "Detectability Assessment" framework. To ensure the dataset only tests visual recognition rather than physical impossibility, the authors employed a consensus of three Mask R-CNN models followed by human verification to categorize images as "detectable" or "undetectable." This rigorous process enables two evaluation protocols:

  1. $M^2AD$-Synergy: Tests the ability to fuse information from all 120 configurations to reach a single object-level verdict.
  2. $M^2AD$-Invariant: Measures single-image robustness on frames where the defect is confirmed to be physically visible.
Figure 3: Overview of the $M^2AD$ construction pipeline, from object preparation and hardware imaging to the multi-stage detectability assessment framework.

Key Insights and Experimental Results

The introduction of $M^2AD$ reveals that current "top-tier" models are less robust than previously thought. For instance, Dinomaly, which achieves 99.6% AUROC on MVTec AD, scores only 81.3% on the $M^2AD$-Invariant setup.

Several key insights emerged from the study:

  • The Fusion Paradox: Simply averaging scores across multiple views (naive fusion) can actually degrade performance. "Bad" views, where defects are obscured, introduce more noise than signal, highlighting the need for intelligent attention-based fusion architectures.
  • Resolution is Critical: Many industrial defects occupy as little as 0.05% of the image area. The researchers found that doubling input resolution (from 256 to 512) led to significant accuracy gains, suggesting that standard downsampling is a major bottleneck.
  • Geometric Sensitivity: Models performed well on simple shapes like "Teapots" but struggled with complex geometries and reflective materials found in the "Bird" and "Car" categories.

Conclusion

By releasing the $M^2AD$ dataset and hardware designs, the authors provide a necessary "reality check" for visual anomaly detection. The benchmark shifts the focus toward developing models that can intelligently attend to informative views and lighting conditions, a prerequisite for reliable deployment in the wild.

Summary updated

BibTeX
@misc{cao2025visual,
  author = {Yunkang Cao and Yuqi Cheng and Xiaohao Xu and Yiheng Zhang and Yihan Sun and Yuxiang Tan and Yuxin Zhang and Xiaonan Huang and Weiming Shen},
  title = {{Visual Anomaly Detection under Complex View-Illumination Interplay: A Large-Scale Benchmark}},
  year = {2025},
  eprint = {2505.10996},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.10996},
}
Figure