TL;DR
SePArate is a weakly supervised machine learning framework designed to segment complex, overlapping defect patterns on semiconductor wafers using only image-level classification labels. By eliminating the need for expensive, manual pixel-level annotations, it enables automated, detailed root-cause analysis in wafer manufacturing at a fraction of the data-preparation cost.
What Problem Does This Paper Address?
Modern semiconductor manufacturing lines generate terabytes of inspection data daily. While identifying if a wafer is defective is relatively straightforward, diagnosing why it failed requires analyzing the geometric attributes (shape, area, orientation) of the defect patterns.
Current AI solutions mostly rely on image classification, which merely flags the presence of a defect type but discards its spatial structure. True pixel-level segmentation would solve this, but creating pixel-annotated datasets requires massive expert effort and faces strict intellectual property and confidentiality barriers.
Furthermore, wafer defect data poses unique computer vision challenges:
- Binary-valued pixels: The data consists of simple 0s (normal) and 1s (defective), completely lacking the rich color, texture, or shading cues standard segmentation models rely on.
- Sparsity and overlap: Defect patterns are often highly sparse or overlap with one another, creating complex "mixed-type" defects that are incredibly difficult to disentangle.
Methods
The authors introduce SePArate, a framework that achieves precise pixel-level segmentation without ever seeing a manually drawn pixel mask during training. It operates via a three-phase pipeline:
- Phase 1: Encoder Pretraining: A U-Net encoder is paired with a multi-label classification head and trained on image-level labels to learn basic feature representations for single-type defect patterns.
- Phase 2: Spatial Knowledge Transfer: To teach the model where defects are without pixel labels, the authors generate Soft Supervision Maps. These maps combine Class Activation Maps (CAMs) from the Phase 1 classifier with local density maps (produced via a simple mean filter) to isolate likely defect zones. The full U-Net is trained on these maps using a novel Pattern-Weighted Dice Loss (PWDL), which dynamically balances weights so the model doesn't ignore rare or highly sparse defect types.
- Phase 3: Synthetic Defect Training: Because single-defect images are binary, their raw pixels naturally function as perfect ground-truth masks. SePArate exploits this by programmatically blending single-type defect images to create realistic, synthetic mixed-type defect images with flawless pixel-level labels. The model undergoes final fine-tuning on this synthetic data using PWDL alongside an Absence Penalty (AP) Loss to suppress false positives.
Datasets
The framework was validated on two distinct granularities of wafer data:
- MATDefects: A private, real-world dataset captured from an active DRAM production line. It contains mat-level binary defect maps representing individual memory cells, featuring single and mixed-type patterns (rows, columns, and groups).
- MixedWM38: A widely used public, wafer-level defect dataset containing 38 distinct single- and mixed-type defect patterns across full wafers.
Key Insights and Ideas
- Structural Cues Over Visual Semantics: Standard weakly supervised semantic segmentation (WSSS) fails on binary data because it hunts for textures and colors. SePArate succeeds by pivoting entirely to structural and distributional statistics (spatial density and geometric shape).
- Leveraging Binary Properties for "Free" Labels: The realization that a binary single-defect image inherently contains its own perfect segmentation mask is a major efficiency win. It allows the programmatic generation of complex training data (Phase 3) without human intervention.
- Countering Absence Bias: In sparse datasets, models often default to predicting "no defect" to artificially lower their loss. The Pattern-Weighted Dice Loss explicitly counteracts this bias, stabilizing training for rare and low-density anomalies.
Key Results
SePArate significantly outperformed state-of-the-art baselines—including zero-shot models like CLIPSeg and established WSSS frameworks like ReCAM and MCT—frequently succeeding where baselines completely failed to resolve sparse patterns.
- MATDefects Dataset: SePArate achieved a mean Intersection-over-Union (mIoU) of 67.42%, vastly outperforming the top-performing baseline (SSB-Rec at 50.43%).
- MixedWM38 Dataset: It achieved an mIoU of 69.04%, more than doubling the performance of the next best baseline (ReCAM at 30.46%).
Qualitative visualizations demonstrated that the model successfully disentangled overlapping line and group defects, preserving the clean morphological boundaries required for accurate engineering feedback.
Limitations and Future Work
Not discussed in the paper.
Summary updated