arXiv:2610.09993cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09993

Efficient Patch-Based Anomaly Detection Fused with Diffusion Driven Generative Modeling for Semiconductor Wafer Bin Map Open Set Anomaly Detection

Limon Bin Hossain, Md Sadib Rahman Ananta

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

Abstract

Spatial defect signatures on wafer bin maps (WBMs) trace yield loss to specific process faults, yet supervised classifiers recognize only the defect types seen during training, and one-class detectors built on a single mechanism tend to capture either local structural deviations or global distributional violations, but rarely both. This work proposes a hybrid one-class framework that couples a patch-based student–teacher detector (EfficientAD) with a denoising diffusion probabilistic model (DDPM) used for partial-diffusion reconstruction, and fuses their percentile-calibrated scores through a fixed convex combination. Trained on only 700 normal wafers from the WM-38K mixed-type dataset and evaluated on 18,658 held-out wafers, the fused detector reached an AUROC of 0.9985 and reduced misclassifications from 852 (DDPM) and 1,412 (EfficientAD) to 618, with all pairwise differences significant at p < 0.001. Beyond aggregate accuracy, the analysis shows that the gain arises from weakly overlapping errors between the two modules, yet fixed-weight fusion recovers only 40–70% of the correction available to an oracle selector. Under the benchmark's inverted class balance, average precision and F1 saturate, while the Matthews correlation coefficient and negative predictive value expose unreliable normal predictions. Pixel-level maps further show that strong image-level separability does not imply spatial localization, and the diffusion module succeeds as a local density prior rather than through global geometric reasoning. These findings motivate sample-adaptive fusion and imbalance-aware evaluation of hybrid wafer anomaly detectors.

Keywords: wafer bin map; anomaly detection; diffusion model; knowledge distillation; semiconductor manufacturing; score fusion

1 Introduction

In semiconductor fabrication, each die on a wafer is tested, and results are recorded on a wafer bin map (WBM). The spatial patterns from these tests provide diagnostic insights, revealing issues like scratches and defects that can be traced to specific equipment or process steps 1^{1}. Unclassified signatures can lead to yield loss and production delays, underscoring the importance of not only detecting them but also quickly resolving them. Traditionally, defect recognition has been approached as a supervised multi-label classification problem, where convolutional networks excel under closed-set conditions 2^{2}. However, these classifiers can only identify trained defect types and may fail on significantly different patterns. An alternative approach is to frame wafer defect detection as a one-class anomaly detection problem. This method primarily trains models on defect-free wafers 3^{3}, thereby flagging any significant deviation as anomalous. Two main families of one-class methods exist: one that compares a test wafer to a reference feature representation and another that models a learned data distribution. The structural approach uses a pretrained teacher network and a student network trained on defect-free images to identify anomalies by comparing patch-level features 4^{4}. This has been further developed for patch-level feature distribution modeling 5^{5}, one-class bottleneck reconstruction 6^{6}, and rapid inference in the EfficientAD architecture 7^{7}. While structural detectors effectively identify small anomalies, their patch-level focus may hinder the detection of patterns that emerge only across the entire image.

The second family of one-class methods addresses the limitation of patch-based modeling by analyzing the image as a whole. Generative models learn the distribution of normal images and use reconstruction quality to identify deviations. Denoising diffusion probabilistic models (DDPMs) are one such approach 8^{8}, enhanced by learned variance schedules 9^{9} and deterministic implicit sampling 10^{10}. They adapt to reconstruction tasks by partially diffusing a test image and measuring the discrepancy between the input and its denoised version 11^{11}. This approach captures the overall structure of an image, allowing it to detect distributional anomalies that patch-level methods may miss. However, global reconstruction methods are less sensitive to small, localized texture defects, and diffusion models using standard Gaussian noise can lose fine-grained local information during the diffusion process 11^{11}.

The complementary limitations of structural and generative detectors motivate their combination in a hybrid framework by calibrating anomaly scores and applying fixed weights. However, ensemble methods do not always enhance performance through simple score averaging, especially if weaker detector errors correlate with stronger ones or contribute uninformative variation, which can dilute the reliable detector's contribution 12^{12}. An effective hybrid model requires a strategy that accounts for both the reliability and the correlation of its detectors. This study investigates the impact of detector combinations on anomaly detection performance, treating the fusion mechanism as a core aspect of the detection framework to systematically evaluate each detector's contributions and interactions.

These considerations raise three research questions that this study is designed to answer.

RQ1: Does fixed-weight score fusion of a patch-based structural anomaly detector and a diffusion-based generative anomaly detector improve wafer defect detection performance compared to the individual detectors, and when does fusion lead to performance degradation 12^{12}?

To answer it, we train both detectors, fuse their calibrated scores with a fixed convex combination, and compare all three detectors under bootstrap-validated and McNemar-tested conditions.

RQ2: How does the fused score relate geometrically to each detector's calibrated score across evaluation metrics, and is this relationship monotonic?

To answer it, we examine the fusion mechanism using score distributions, receiver operating characteristic (ROC) curves, precision-recall curves, and calibration reliability diagrams for the structural, generative, and fused detectors.

RQ3: What structural properties and diffusion-based scoring explain the resulting detector ranking, and what does this imply for the fusion and evaluation of hybrid anomaly detectors?

To answer it, we inspect per-sample anomaly localization maps, the DDPM's generative sampling behavior, and its detection performance.