Wafer defect pattern recognition method of Swinin-Transform based on transfer learning
By applying the Swin-Transformer model of transfer learning in wafer defect identification, combined with the SW-MSA multi-head attention mechanism, the problem of low accuracy of traditional detection methods is solved, more efficient wafer map defect identification is achieved, and semiconductor manufacturing is improved. production efficiency and product quality.
Patent Information
- Application Number
- CN202410788499.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-17
AI Technical Summary
Traditional wafer defect detection relies on artificial visual recognition, which has the problems of high cost, time-consuming and low accuracy. Deep learning methods focus too much on defect pattern recognition and cannot effectively learn features from complex images.
The Swin-Transformer model based on transfer learning is used to migrate the model parameters pre-trained on the ImageNet-1K data set to the wafer defect identification task. Combined with the SW-MSA multi-head attention mechanism, iterative training is performed to improve the recognition accuracy. .
It improves the identification accuracy of defect patterns in wafer diagrams, improves production efficiency and product quality in the semiconductor manufacturing process, and reduces labor costs and identification time.
Smart Images

Figure CN118658041A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wafer defect detection in an actual semiconductor manufacturing process, and in particular to research on wafer image fault recognition and classification based on transfer learning. Background Art
[0002] Semiconductors play an extremely important role in modern science and technology. The discovery and development of semiconductor materials are the foundation of the electronic technology revolution. With the rapid development of semiconductors, the pursuit of small and concentrated ways to demonstrate technology, the complexity of the manufacturing process has also increased year by year, leading to the high frequency of failures. Wafer manufacturing is an important link in the manufacture of semiconductor chips. Its manufacturing process will produce wafer defects due to the instability of the manufacturing process, affecting the wafer production yield. Wafer testing is an important link in wafer manufacturing. During the testing of integrated circuits, circuit probes will evaluate the quality of each chip on the wafer. By marking the grains that have passed the functional test, the defective grains, and the positions without grains with different colors, a pattern of a specific shape pattern can be formed, namely the wafer map. The wafer map reflects the potential abnormal problems in the wafer manufacturing process. By identifying the defect pattern of the wafer map, the source of the fault in the semiconductor manufacturing process can be located, helping engineers to detect abnormal operations in time and make adjustments, thereby improving the production efficiency and production quality of the wafer and avoiding losses caused by a large number of defects.
[0003] The traditional way of detecting wafer defects mainly relies on visual recognition by experienced semiconductor engineers. They analyze the size, shape, and location of wafer image defects to identify defect patterns and further analyze the actual causes of defects. However, this method has problems such as high cost, time-consuming and labor-intensive, and low accuracy. With the popularization of hardware and artificial intelligence algorithms, applying deep learning methods in machine learning to wafer image defect recognition can effectively reduce labor costs, recognition time, and low accuracy. However, due to excessive focus on the construction of defect pattern recognizers, it is impossible to learn effective features from complex and diverse images. Swin-Transfomer, a transfer learning method in deep learning, has shown advantages in wafer image defect recognition. It can learn deep features of the original image and use a multi-head attention mechanism to accurately identify and classify features. Summary of the invention
[0004] The purpose of the present invention is to provide a wafer defect pattern recognition method of Swin-Transformer based on transfer learning, combine the Swin-Transformer model pre-trained on the ImageNet-1K data set, obtain the model parameter transfer learning to the target task Swin-Transformer model for the recognition advantage of different wafer defect patterns, and improve the accuracy of wafer image defect pattern recognition.
[0005] In order to achieve the above object, the present invention provides a wafer image defect pattern recognition method, comprising:
[0006] Step 1. Preprocess the wafer image dataset images and divide them into training set and test set;
[0007] Step 2. Use the Swin-Transformer model pre-trained on a large-scale dataset to obtain the model parameters and transfer the learning to the currently built Swin-Transformer model;
[0008] Step 3. Build the backbone network Swin-Transformer, set pre-training parameters, and iteratively train the Swin-Transformer network model.
[0009] Step 4. Input the wafer image to be inspected into the trained Swin-Transformer network model and output the recognition result.
[0010] In step 1, wafer images of different sizes are uniformly adjusted to (224, 224, 3) with a channel number of 3; the data set is divided into a training set and a test set in a ratio of 8:2.
[0011] In step 2, the Swin-Transformer model pre-trained on the ImageNet-1K dataset is used to obtain the model parameters and loaded into the current Swin-Transformer model for fast iterative training.
[0012] In step 3, the parameters in transfer learning and the preprocessed wafer images are loaded to start training. The main structure of Swin-Transformer is the SW-MSA multi-head attention mechanism in Swin-Transformer, which reduces the amount of calculation while increasing the global feature field of view, making the classification task of the entire model faster and more accurate. Multiple downsampling enables Swin-Transformer to have the ability to extract global features similar to CNN, further improving the performance of the model.
[0013] In step 4, the model of the present invention finally connects an average pooling layer and a fully connected layer to obtain an accurate classification result of the wafer image. The present invention can accurately identify the wafer image obtained during the wafer production process, thereby improving the yield rate of semiconductors shipped out of the factory, accurately detecting problems in the equipment during manufacturing, and improving production efficiency and product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1It is a flow chart of the wafer defect pattern recognition method based on Swin-Transformer of transfer learning proposed in the present invention;
[0015] Figure 2 It is a schematic diagram of a method for loading parameters of transfer learning into a model proposed in the present invention;
[0016] Figure 3 It is a schematic diagram of the Patch-Embedding layer processing an image in the method model proposed in the present invention;
[0017] Figure 4 It is a schematic diagram of the model structure of the Swin-Transformer wafer defect pattern recognition method based on transfer learning proposed in the present invention;
[0018] Figure 5 This is a schematic diagram of the multi-head attention mechanism processing of the mobile window in the Swin-Transformer Block in the model proposed in the present invention. DETAILED DESCRIPTION
[0019] The following describes the embodiments of the present invention by means of specific examples.
[0020] See also Figure 1 , a flow chart of the wafer defect pattern recognition method based on Swin-Transformer of transfer learning proposed in the present invention.
[0021] like Figure 2 As shown, the parameters of the Swin-Transformer model trained on the large-scale dataset ImageNet-1K are imported into the target model of the present invention to participate in training, which is called transfer learning.
[0022] like Figure 3 As shown, specifically, the preprocessing in the process of the wafer defect pattern recognition method of Swin-Transformer based on transfer learning includes:
[0023] The wafer images of different sizes are uniformly adjusted to (224, 224, 3), and the number of channels is 3. The data set is divided into training set and test set in a ratio of 8:2, and the image is divided into 16 parts and adjusted to (56, 56, 3×16), which is equivalent to dividing the input feature map into blocks of 4×4 adjacent pixels, and then arranging them vertically according to the number of channels to obtain the corresponding feature map.
[0024] like Figure 4 As shown, the Swin-Transformer model based on transfer learning is built, and the Patch Partition operation of the first layer is as mentioned above Figure 3 Description, there are 12 Swin-Transformer Block modules in the model. Except for the first stage of Swin-Transformer Block, which changes the feature dimension through a linear mapping, each pair of Swin-Transformer Block modules contains a normalization layer (LN) and a linear transformation layer for downsampling. The first input feature in each pair of Swin-Transformer Block modules is a normalization layer, and then enters a W-MSA module, called a window self-attention module, to calculate the features and fuse them with the features of the first layer, and then enters the second normalization layer to obtain features and fuse them with the features obtained by the subsequent fully connected layer, enters the third normalization layer, obtains features, and fuses them with the features obtained by the SW-MSA module, called the sliding window self-attention module, and then fuses them with the features obtained by entering the fourth normalization layer and the fully connected layer to obtain the final result. In this way, the features obtained after 6 W-MSA and SW-MSA self-attention modules are used as the input of the next module.
[0025] like Figure 4 As shown in the figure, during the downsampling process, it is assumed that the initial input feature is (16, 16, 1), the output feature is (8, 8, 2), the length and width are halved, and the number of channels is doubled. The numbers in brackets only represent the feature dimension ratio. After 6 self-attention modules including W-MSA and SW-MSA, a global average pooling layer and a fully connected layer are connected to obtain the features. The fully connected layer is used to achieve classification. The normalization formula of the normalization layer is:
[0026]
[0027] Where x is the value in the dimension, min(x) and max(x) are the minimum and maximum values in the dimension, and x′ is the normalized value after processing.
[0028] like Figure 4 As shown in the figure, the SW-MSA in the Swin-Transformer Block in the proposed model is called the multi-head attention mechanism of the moving window, in which the important steps include:
[0029] Step 1. Perform linear transformation of Q, K, V on each window;
[0030] Step 2. Use the Softmax function to scale the attention score of each window;
[0031] Step 3. Perform weighted summation of the attention scores to obtain the output result for each window.
[0032] In the above steps, Q, K, and V represent query, key, and matching value, respectively. The similarity is obtained by calculating the dot product of Q and K, and V is weighted and summed according to the similarity to obtain the output result of each window. The calculation formula of multi-head attention result is:
[0033] Multihead(Q,K,V)=Concat(head1…head n )W 0
[0034]
[0035] Q i =XW i Q ,K i =XW i K ,V i =XW i V ,i=1,…,h
[0036] In the formula, X is the input feature. For example, the dimension entering the Swin-Transformer Block in the first stage is (56, 56, 96), and the head i W represents the i-th head in the multi-head attention. There are n heads in the formula, which means that the input features are divided into n subspaces, each of which has its own internal attention weight matrix. i Q ,W i K ,W i V is the attention weight matrix of the i-th head, which is used to map the input feature map to the matrix Q i ,K i ,V i In. W 0 Is the output matrix. The above matrices can be used as parameter matrices for learning in the iterative process. k Represents the output dimension of each head. The Concat function represents the concatenation operation, which concatenates the attention scores calculated by all heads. The concatenated features use the mask mechanism to calculate the weight of the matrix, and then use the SoftMax function to scale it, and then use the subsequent fully connected layer to achieve classification.
[0037] like Figure 5 As shown, for the above Figure 4The feature details in the SW-MSA module are explained, the window is divided into blocks through the displacement multi-head attention part, and the blocking line is moved to the upper left to displace and re-divide and splice the 16 windows in the original feature image into 9 new sub-windows to increase the information exchange between windows.
Claims
1. A wafer defect pattern recognition method based on Swin-Transformer of transfer learning, characterized in that: The steps include: Step 1. Preprocess each collected wafer image and divide it into training set and test set; Step 2. Transfer the parameters of the Swin-Transformer model pre-trained on the ImageNet-1K dataset to the model of the current method; Step 3. Build the backbone network Swin-Transformer, set pre-training parameters, and iteratively train the Swin-Transformer network model. Step 4. Input the wafer image to be inspected into the trained Swin-Transformer network model and output the recognition result.
2. The wafer defect pattern recognition method based on Swin-Transformer of transfer learning according to claim 1, characterized in that: The input images are preprocessed and divided into training and test sets. Wafer images of different sizes are adjusted to 224×224 images with 3 pixel channels. The wafer image dataset images are randomly divided into training and test sets with a division ratio of 8:
2.
3. The wafer defect pattern recognition method based on Swin-Transformer of transfer learning according to claim 1 is characterized in that: The Swin-Transformer model pre-trained on the ImageNet-1K dataset is used to obtain the model parameters and load them into the current Swin-Transformer model.
4. The wafer defect pattern recognition method based on Swin-Transformer of transfer learning according to claim 1, characterized in that: The Swin-transformer model loaded with transfer learning parameters is trained for wafer image defect pattern recognition. The steps include: 4-1. The preprocessed image is passed through the Patch Embedding layer to split it into 16 windows of equal size. The different windows are then translated and spliced to form four new related windows. The data within the windows is then flattened, and position information is added to each window through the Position Embedding layer for subsequent multi-head self-attention calculations. 4-2. The processed image is passed through the windowed multi-head self-attention of the Swin-Transformer Block module in the Swin-Transfromer module, using moving window multi-head self-attention SW-MSA; the window is moved to achieve information exchange between windows and learn to capture global and local features. 4-3. The fully connected Softmax classification network is a supervised classification network. The extracted features are input into the fully connected Softmax classification network of the model, first passing through an LN layer, then connecting to a global average pooling layer, and finally passing through a fully connected layer with Softmax to output the classification results of the wafer image.
5. The wafer image defect pattern recognition method according to claim 4, characterized in that: The dimensions of the wafer image are [3, 224, 224], where 3 represents the number of channels, usually red, green, and blue channels, and 224 represents the width and height of the image, respectively.
6. The wafer image defect pattern recognition method according to claim 4, characterized in that: Wafer image defect categories include: Center, Donut, Edge-loc, Edge-ring, Local, Near-full, Random, Scrach, and None, which indicates no defects.
