DiffWaferNet: a lightweight differential attention-based network for wafermap defect classification

In the semiconductor manufacturing process, wafermap defect classification is crucial for ensuring product quality and reliability. Despite recent advances, underrepresented defect types in wafer datasets continue to suffer from poor performance due to severe class imbalance, and models with large parameter counts present high computational costs. To address these challenges, DiffWaferNet, a lightweight differential attention-based network, is proposed to improve the performance of minority defect classes while preserving the accuracy of majority classes. In this study, a Conditional Variational Autoencoder (CVAE) is employed to generate class-consistent synthetic data for underrepresented defect types, effectively balancing the dataset and enhancing model robustness. In the classification phase, DiffWaferNet utilizes a convolutional neural network (CNN) for robust feature extraction and applies a differential attention mechanism to enhance focus on critical regions of wafer maps. This mechanism empowers the model to dynamically learn attention weights that highlight the most relevant features for defect classification. Experimental results demonstrate that DiffWaferNet significantly improves classification performance, particularly for minor defect types, achieving consistent performance across all defect classes. Compared to baseline models, the proposed method ensures both robustness and high overall accuracy in wafer map defect classification. Furthermore, extensive benchmarking on the MixedWM-38K dataset validates the generalization capability of DiffWaferNet, achieving an accuracy of 97.88% and an F1-score of 97.76%. With only 121K parameters and 21.8M FLOPs (Floating-point Operations), the model maintains high computational efficiency, making it well-suited for real-time industrial applications. This research highlights a strong potential for advancing defect classification and establishes a foundation for future studies.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2026-08-27
DOI
https://doi.org/10.7717/peerj-cs.3947
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DiffWaferNet: a lightweight differential attention-based network for wafermap defect classification

Fahmid Al Farid, Md Saiful Islam, Sarina Binti Mansor, Jia Uddin et al.
PeerJ Computer Science
Industrial Vision Systems and Defect Detection
article

DiffWaferNet: a lightweight differential attention-based network for wafermap defect classification

Fahmid Al Farid, Md Saiful Islam, Sarina Binti Mansor, Jia Uddin, Md Ryhan Uddin
article en

Abstract

In the semiconductor manufacturing process, wafermap defect classification is crucial for ensuring product quality and reliability. Despite recent advances, underrepresented defect types in wafer datasets continue to suffer from poor performance due to severe class imbalance, and models with large parameter counts present high computational costs. To address these challenges, DiffWaferNet, a lightweight differential attention-based network, is proposed to improve the performance of minority defect classes while preserving the accuracy of majority classes. In this study, a Conditional Variational Autoencoder (CVAE) is employed to generate class-consistent synthetic data for underrepresented defect types, effectively balancing the dataset and enhancing model robustness. In the classification phase, DiffWaferNet utilizes a convolutional neural network (CNN) for robust feature extraction and applies a differential attention mechanism to enhance focus on critical regions of wafer maps. This mechanism empowers the model to dynamically learn attention weights that highlight the most relevant features for defect classification. Experimental results demonstrate that DiffWaferNet significantly improves classification performance, particularly for minor defect types, achieving consistent performance across all defect classes. Compared to baseline models, the proposed method ensures both robustness and high overall accuracy in wafer map defect classification. Furthermore, extensive benchmarking on the MixedWM-38K dataset validates the generalization capability of DiffWaferNet, achieving an accuracy of 97.88% and an F1-score of 97.76%. With only 121K parameters and 21.8M FLOPs (Floating-point Operations), the model maintains high computational efficiency, making it well-suited for real-time industrial applications. This research highlights a strong potential for advancing defect classification and establishes a foundation for future studies.

PeerJ Computer ScienceVol. 12
Chittagong University of Engineering & Technology (BD), Multimedia University (MY), Woosong University (KR)
Openalex Percentile: Top 10%
Industrial Vision Systems and Defect Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.