Abstract
Automated identification and localization of wafer defects are critical for maintaining yield in semiconductor manufacturing. This paper presents WaferSegClassNet (WSCN), a lightweight multi-task deep learning architecture designed to simultaneously classify and segment complex mixed-type wafer defects. By utilizing separable convolutions and a two-stage training strategy involving contrastive pre-training, WSCN achieves a classification accuracy of 98.2% on the MixedWM38 dataset. With a model size of only 0.51 MB—roughly 200 times smaller than ResNet50—WSCN offers a highly scalable and efficient solution for real-time industrial applications.
Introduction
In semiconductor fabrication, "yield" is a primary metric of success. Engineers rely on Wafer Maps (WMs), which are grids indicating the locations of defective dies, to diagnose process failures. Modern manufacturing faces an increasing prevalence of "mixed-type" defects, where multiple failure patterns, such as rings and scratches, overlap. Existing AI solutions often struggle with scalability, typically performing either classification or segmentation but rarely both, and frequently requiring significant computational resources. WaferSegClassNet (WSCN) addresses these challenges through an efficient, unified architecture.
Methods
WSCN employs an encoder-decoder architecture optimized for multi-task learning.
The Shared Encoder utilizes separable convolutions to minimize memory bandwidth and computational load, extracting features relevant to both tasks. The network then bifurcates into a Dual-Branch Decoder:
- Segmentation Branch: Uses transpose convolutions and skip connections (SC) to generate a binary mask of the defect.
- Classification Branch: Employs Global Average Pooling (GAP) and dense layers to categorize defects into one of 38 classes.
Training proceeds in two stages. First, the encoder undergoes pre-training using N-pair contrastive loss to learn robust latent representations where similar patterns cluster together. Second, the full network is fine-tuned using a combined BCE-Dice loss for segmentation and Categorical Cross-Entropy for classification.
Datasets
The model was evaluated on the MixedWM38 dataset, comprising 38,015 wafer map images. This dataset includes one "normal" pattern, 8 single-defect types, and 29 mixed-defect types. WSCN is the first model to provide segmentation results on this dataset, which originally only contained classification labels.
Results
WSCN demonstrates state-of-the-art performance while maintaining an exceptionally small footprint.
Key performance metrics include:
- Classification Accuracy: 98.2%, surpassing models like DCNet (93.2%) and ResNet50 (97.19%).
- Segmentation Precision: Achieved near-perfect localization with a Dice coefficient and IoU of 0.9999.
- Efficiency: The model size is just 0.51 MB (FP32), which is 200x smaller than ResNet50. It operates at 25.11 FPS on a Tesla P100 GPU with only 0.2M FLOPS.
- Convergence: The two-stage training approach allows convergence in 150 epochs, significantly faster than the 4,000 epochs required by previous models like DCNet.
Conclusion
WaferSegClassNet provides a highly efficient solution for the dual task of defect classification and segmentation in semiconductor manufacturing. While the model is currently limited to a fixed set of 38 patterns and can be sensitive to label noise in the dataset, its lightweight design and high accuracy make it a strong candidate for factory-floor deployment. Future work will explore unsupervised learning techniques to detect novel, unseen defect types.
Summary updated