Method and system for detecting lithography hotspots based on geometry context coding
Patent Information
- Application Number
- CN202611644811.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
Existing photolithography hotspot detection methods fail to adequately distinguish spatial location, orientation, and range differences in geometric feature representation, leading to confusion of similar layout structures, resulting in missed detections and false alarms, and affecting the effectiveness and efficiency of photolithography manufacturability verification.
A geometric context encoding-based method is adopted. By generating binary layout graphic masks, vertical boundary maps, and horizontal boundary maps, and combining the local graphic area ratios at different scales, a five-channel geometric context tensor is constructed. Finally, a score is generated using a basic scoring network or relation enhancement judgment implementation method to determine lithographic hotspots.
It can effectively distinguish layout structures that are similar in overall shape but different in local geometric relationships, reduce missed detections and false alarms, improve the accuracy and efficiency of lithography hotspot detection, and reduce the workload of verification.
Smart Images

Figure CN123136982A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of layout pattern detection, and in particular to a method and system for detecting lithographic hotspots in layouts based on geometric context encoding. Background Technology
[0002] Photolithography is a crucial step in transferring integrated circuit layout patterns onto a wafer. As feature sizes continue to shrink, the shape of the central pattern within the layout, the spacing between adjacent patterns, corner combinations, and variations in pattern density in the near and far fields can all potentially cause defects such as bridging, broken lines, or pattern distortion during imaging. Identifying these photolithography hotspots in advance during the layout design phase can provide a basis for photolithography manufacturability verification and subsequent layout correction, helping to reduce the risk of yield loss caused by related imaging defects. Current photolithography hotspot detection methods mainly fall into three categories: methods based on photolithography simulation, methods based on pattern matching, and methods based on machine learning. Methods based on photolithography simulation offer high accuracy but are time-consuming, especially for global simulation on large-scale layouts. Methods based on pattern matching are fast but rely on existing hotspot pattern libraries and struggle to identify previously unseen hotspot patterns. Machine learning-based methods can learn hotspot-related features from training data, thus possessing the ability to identify patterns not present in the training data and are suitable for large-scale candidate window screening; however, their input range, geometric representation, and model decision-making mechanism remain important factors affecting the detection results.
[0003] In actual layout design and verification, a large number of test locations need to be screened for lithographic hotspots. The graphic morphology and surrounding layout vary at different locations, including graphic combinations that differ significantly from existing training hotspots, as well as hotspots and non-hotspots that are similar in overall appearance but differ in local spacing, boundary arrangement, and surrounding graphic distribution. Therefore, the detection method needs to have the ability to generalize and recognize unseen layout patterns, as well as the ability to accurately distinguish similar geometric variants, in order to promptly detect potential imaging risks and reduce the verification work required after false positives at normal locations.
[0004] In machine learning-based lithographic hotspot detection, geometric feature representation is a crucial link between layout graphics and classification. In this stage, some methods aggregate geometric quantities such as the number of corners, graphic spacing, or local density into statistical features, weakening the correspondence between these information and specific spatial locations. Other methods, relying primarily on automatic feature extraction by the network, also need to distinguish boundaries in different directions and graphic distributions of varying ranges during feature learning. When the geometric representation fails to adequately reflect these differences, the model can easily confuse layout structures with similar overall shapes but different imaging risks. This can lead to missed detections, preventing potential defect locations from timely verification and correction, while false positives increase ineffective verification work, impacting the effectiveness and efficiency of layout lithographic manufacturability verification. Summary of the Invention
[0005] To address the technical problem in existing lithographic hotspot detection technologies where geometric feature representation fails to distinguish spatial location, orientation, and extent differences, leading to confusion between similar layout structures and resulting in missed detections and false alarms, this invention provides a layout lithographic hotspot detection method based on geometric context encoding. The invention provides the following technical solution: The method includes the following steps: Obtain the layout context window and perform deterministic raster preprocessing to generate a binary layout graphic mask; for the current pixel in the target grid, detect its category relationship with the effective adjacent pixels on the left, right and top and bottom sides to obtain the vertical boundary map and the horizontal boundary map.
[0006] Pre-set two different window sizes. and ( Using the current position in the target grid as the anchor point, two local windows of different scales are determined. The number of pixels in the graphic region within each local window is counted, and the corresponding graphic area ratio is calculated.
[0007] The binary layout graphic mask, vertical boundary map, horizontal boundary map, and the graphic area ratios of the two window scales are aligned pixel-by-pixel on the same target grid, and channels are stacked in a fixed order to form a five-channel geometric context tensor. This tensor is then input into the basic scoring network to output a scalar basic score. .
[0008] Before model training, based on data resolution and application requirements, one of the following implementation methods is selected: GCE-Direct (basic direct decision implementation) and GCE-ACBR (relation enhancement decision implementation). The corresponding model is then trained and its parameters are fixed. During detection, when GCE-Direct is pre-selected, the basic score is... As the final score When GCE-ACBR is pre-selected, a six-channel relation tensor is constructed based on the binary layout graphic mask. Relation embeddings are generated through relation encoding, multi-scale pooling, and embedding mapping. The relation embeddings are then concatenated with the normalized base score. A bounded correction is obtained through a correction module, tanh limiting, and scale scaling, and then compared with the original base score. Add them together to get the final score. .
[0009] According to the final score Calculate hotspot probability ,when If the value is greater than or equal to a preset threshold, it is determined to be a hotspot; otherwise, it is determined to be a non-hotspot.
[0010] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context encoding described in this invention, the step of acquiring the layout context window and performing deterministic grid preprocessing to generate a binary layout graphic mask includes: Centered on the location to be tested, a window of a preset size is cropped from the layout to obtain the layout context window. Then, the layout graphics within the window are rasterized to generate the target grayscale raster, specifically: Set source map grayscale raster and determine its width. and height Simultaneously determine the scaled target grayscale raster. width and height ; Let the column coordinates and row coordinates in the target grid be denoted as follows: and , , The corresponding column and row coordinates in the source grid are denoted as follows: and , , ; For target grid coordinates and Calculate the corresponding source grid coordinates according to the nearest neighbor rule, and restrict the calculated source pixel coordinates to the effective boundary of the source layout raster. Based on the source pixel coordinates, from the source layout grayscale raster The grayscale value of the corresponding pixel is read from the grid and written to the corresponding position of the target grid to form the target grayscale grid. A fixed threshold of 127 is used to binarize the target grayscale raster: for any pixel in the target grayscale raster, if its grayscale value is greater than the fixed threshold of 127, the pixel is determined as a pixel of the layout graphic area; if its grayscale value is less than or equal to the fixed threshold of 127, the pixel is determined as a background pixel. A binary layout graphic mask is formed based on the binarization result. .
[0011] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context encoding described in this invention, the step of detecting the category relationship between the current pixel in the target grid and its effective adjacent pixels on the left, right, and top and bottom sides to obtain the vertical boundary map and the horizontal boundary map includes: When the current pixel in the target grid and its valid neighboring pixels to the left or right belong to the layout graphic area and the background area respectively, the current pixel is marked as a vertical boundary pixel, thereby obtaining the vertical boundary map. When the current pixel in the target grid belongs to a different category from its effective neighboring pixels above or below it, the current pixel is marked as a horizontal boundary pixel, thereby obtaining a horizontal boundary map.
[0012] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context coding described in this invention, the method for calculating the graphic area ratio of the local window is designed as follows: ; In the above formula, Indicates the target grid number line, number The column position is the anchor point, using The area ratio of the graphic calculated by the local window, subscript Representing row coordinates and column coordinates respectively. This indicates that the binary mask after zero expansion is at the 1st... line, number The possible values for the column positions, where These are the row offset and column offset relative to the window anchor point, respectively. and Used to represent two different window sizes.
[0013] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context coding described in this invention, the basic scoring network is a multi-stage coding network, which includes: The input stage consists of two cascaded convolutional modules, each followed by batch normalization and ReLU activation. A multi-stage encoding stage is used to downsample the convolutional encoding result of the input stage, and input the downsampled features into multiple residual encoding stages. Let the total number of encoding stages participating in pooling be... , No. The stage output feature map is represented as follows: , , , and They represent the first The number of channels, height, and width of the stage feature map; Multi-scale pooling stages are used to target the output feature maps at each encoding stage. Global average pooling (GAP) and global max pooling (GMP) are performed separately, and the average pooling vectors and max pooling vectors obtained from each encoding stage are concatenated according to the predetermined stage order and pooling type order to form multi-scale features. h ; The scoring output level is used to convert the multi-scale features. Convert to scalar-based rating.
[0014] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context encoding described in this invention, the step of constructing a six-channel relation tensor based on the binary layout graphic mask, and generating relation embeddings through relation encoding and multi-scale pooling includes: Construct a signed distance field in the core region ; ; In the formula, Represents the signed distance field of the core region In position The value at that location, and These represent binary layout graphic masks. At pixel position and The value at this location is 1 for the graphic area and 0 for the background area. This represents the current calculated location within the core area. The pixel positions traversed during summation. This represents the distance cutoff value in this formula. Traverse the core region ,therefore This indicates the number of pixels in the core area of the graphic; Constructing the core corner field : ; in, Represents element-wise product, core corner field Used to characterize the geometric location in the core region that simultaneously exhibits boundary responses in both vertical and horizontal directions. These represent the vertical and horizontal boundary response maps calculated within the core block, respectively. (Subscripts are used to indicate the subscripts.) Indicates the core cutout block, superscript These represent the vertical boundary and the horizontal boundary, respectively. This indicates that an expansion operation is performed using a 3×3 neighborhood, where the subscript 3×3 indicates the neighborhood size. Construct the horizontal nearest-space field closest distance field in the vertical direction : ; in, Represents the nearest distance field in the horizontal direction In position The value at that location, and These represent the number of background pixels between the core graphic area and its nearest outer graphic areas to its left and right, respectively. Represents the closest distance field in the vertical direction In position The value at that location, and These represent the number of background pixels between the core graphic area and its nearest outer graphic areas above and below it, respectively. Constructing the area ratio difference field of the region graphic and : ; ; ; in, Indicates a region mask In position The value at: when Located within the valid target grid and belonging to The value is 1 if it corresponds to the region, otherwise it is 0. Indicated by position Centered on, with a relation radius of In the effective intersection of the square neighborhood and the corresponding region, the proportion of the number of graphic pixels to the total number of pixels in the intersection is indicated by the subscript. These correspond to the core region, near-field region, and far-field region on the target mesh, respectively. and This represents two radii of different sizes that represent a relationship. The , , , , and Stack them along the channel dimension in a fixed order to form a six-channel relation tensor. , will the Input relation encoder, output result based on relation encoder Output adaptive global average pooling with a spatial size of 1×1. ; Adaptive global max pooling with an output space size of 1×1 ; Adaptive spatial average pooling with an output space size of 2×2 ; Adaptive space max pooling with an output space size of 2×2 ; Based on the pooling results, relational embeddings are formed through linear mapping and GELU activation.
[0015] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context coding described in this invention, the calculation process of the bounded correction amount is designed as follows: ; In the formula, Indicates a bounded correction quantity. This represents a vector-to-scalar mapping implemented by a trained calibration module, with its input being a relation embedding. The concatenated vector with the normalized baseline score; To output the hyperbolic tangent function between -1 and 1, This means concatenating the inputs into a vector in a given order. Represents the correction factor; where, , , As the base score for normalization, As a scoring metric, Represents the basic score set, , , These represent the pre-calculated median, first quartile, and third quartile on the basic score set, respectively. It is a preset positive number.
[0016] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context coding described in this invention, the hotspot probability p is calculated as follows: .in, The final score obtained for the selected implementation method, This represents the Sigmoid function. This represents the natural exponential function.
[0017] As a preferred embodiment of the layout lithography hotspot detection method based on geometric context encoding described in this invention, in the basic direct determination implementation GCE-Direct, the method further includes: constructing... Each base scoring network is trained independently, and the corresponding hotspot probability is obtained during inference based on each base scoring network. The polymerization process is performed to obtain Arithmetic mean of the probabilities of hot spots ; Set a predetermined aggregation threshold. ,when: At that time, output the aggregated classification result: Set the value to 1 to indicate a hotspot; otherwise: Setting it to 0 indicates that it is not a hotspot.
[0018] The present invention also includes a layout lithography hotspot detection system based on geometric context encoding, applied to the above-mentioned layout lithography hotspot detection method based on geometric context encoding, the system comprising: The data preprocessing module is used to obtain the layout context window and perform deterministic raster preprocessing to generate a binary layout graphic mask; The boundary map construction module is used to detect the class relationship between the current pixel in the target grid and its effective neighboring pixels on the left, right and top and bottom sides, and obtain the vertical boundary map and the horizontal boundary map. The graphic area ratio calculation module is used to pre-set two window scales of different sizes. and ( Using the current position in the target grid as the anchor point, two local windows of different scales are determined respectively. The number of pixels in the graphic region of the layout within each local window is counted, and the corresponding graphic area ratio is calculated. The basic scoring output module is used to align the binary map mask, vertical boundary map, horizontal boundary map, and the area ratio of the two window scales pixel by pixel on the same target grid, and stack the channels in a fixed order to form a five-channel geometric context tensor. This tensor is then input into the basic scoring network to output a scalar basic score. ; The final score output module is used to determine the final score according to a pre-selected implementation method. When using GCE-Direct, the base score will be... The result is directly used as the final score. When using GCE-ACBR, a six-channel relation tensor is constructed based on the binary layout graphic mask. Relational embeddings are generated through relation encoding, multi-scale pooling, and embedding mapping. The relation embeddings are concatenated with the normalized base score. A bounded correction is obtained through a correction module, tanh limiting, and scale scaling, and then compared with the original base score. Add them together to get the final score; The detection module is used to determine the final score. Calculate hotspot probability ,when If the value is greater than or equal to a preset threshold, it is determined to be a hotspot; otherwise, it is determined to be a non-hotspot.
[0019] The beneficial effects of this invention are: 1. This invention constructs a binary map image mask, a vertical boundary map, a horizontal boundary map, and two scale local image area ratio channels on the same target coordinate grid. These channels are then aligned pixel-by-pixel and stacked in a fixed order, allowing image distribution, boundary direction, and density information at different spatial locations to jointly participate in hotspot determination. This provides a clear criterion for distinguishing map structures with similar overall shapes but different local geometric relationships, helping to reduce hotspot omissions and false positives caused by geometric information confusion, and alleviating the burden of subsequent verification of suspected hotspots.
[0020] 2. This invention converts a selected source layout window with a large physical area into a target mesh of a fixed size according to a preset coordinate mapping rule, so that the input scale of subsequent networks is determined by the target mesh size. While covering the selected context range, it controls the network computational overhead of a single window, enabling the peripheral graphic information of a large area to be used for batch detection of a large number of candidate positions, balancing context utilization and processing efficiency, and meeting the requirements of detection time and computing resources in layout design verification.
[0021] 3. This invention constructs six relationship fields based on the geometric relationships between the core region, near-field region, and far-field region, supplementing the basic score with discriminative information such as core morphology, directional spacing, and differences in regional graphic distribution. Simultaneously, it limits the correction amplitude based on the statistical scale of the basic score during the training phase and the hyperbolic tangent function, ensuring that relationship information participates in the final score within a controlled range. Therefore, while utilizing peripheral relationships to supplement hotspot identification, it suppresses excessive interference from additional information in the basic judgment, reducing the risk of normal locations having excessively elevated risk scores or potential hotspots having excessively lowered scores, and improving the stability of hotspot determination under complex context conditions. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein: Figure 1 This is a schematic diagram of the overall process structure of the layout lithography hotspot detection method based on geometric context encoding proposed in this invention; Figure 2 This is a schematic diagram illustrating the overall principle of the method for determining the relationship enhancement implementation of the present invention; Figure 3 This is a schematic diagram of the method for constructing the six-channel relation tensor proposed in this invention; Figure 4 This is a schematic diagram of the process method for relationship embedding proposed in this invention; Figure 5This is a schematic diagram of the process for generating bounded relation residuals and correcting basic scores proposed in this invention. Detailed Implementation
[0023] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0024] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0025] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0026] Example 1
[0027] Reference Figure 1 As an embodiment of the present invention, a layout lithography hotspot detection method based on geometric context encoding is provided, which includes the following steps: The layout lithography hotspot detection method in this embodiment includes the following processing steps: layout context window acquisition, deterministic grid preprocessing, five-channel geometric context encoding, multi-stage basic scoring, and final judgment.
[0028] Based on the data resolution and specific application requirements, one implementation method is pre-selected from the basic direct decision implementation method GCE-Direct and the relation enhancement decision implementation method GCE-ACBR, and model training and parameter fixing are completed for the selected implementation method.
[0029] In the GCE-Direct implementation, a basic direct decision-making method, the selected model is a basic scoring network. This network is based on the ResNet-34 residual network disclosed by He et al. in "Deep Residual Learning for Image Recognition" (Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016, pp. 770-778). Combined with the five-channel geometric input of this embodiment, adjustments are made to the input processing, the aggregation of features at different levels, and the scoring output structure. Specifically, in this method, the network takes map-related features as input, including graphic distribution, boundary information in different directions, and multi-scale graphic density. The network progressively extracts features at different levels, aggregating information reflecting the overall situation and prominent local features. During inference, this basic score is used as the final score. Hotspot probabilities are obtained through probability mapping, and then determined as hotspots or non-hotspots according to a preset threshold. Here, the basic scoring network is the model ontology; probability mapping and threshold determination belong to post-inference processing and decision rules. At this point, the model training process is as follows: Map windows with hotspot or non-hotspot labels are selected as training samples. Following the same preprocessing and geometric encoding methods as the subsequent detection stage, a five-channel geometric context tensor is generated. For GCE-Direct, the five-channel geometric context tensor is input into the base scoring network. The classification loss is calculated based on the network output and sample labels, and the network parameters are iteratively updated through backpropagation.
[0030] In the GCE-ACBR relation enhancement judgment implementation, the selected model is an enhanced scoring model formed by adding a relation information extraction module and a bounded correction module to the basic scoring network. The basic scoring network outputs a basic score. The relation information extraction module takes a six-channel relation tensor as input, providing supplementary judgment criteria, focusing on the graphic shape of the core region, as well as the spacing and density differences between the core graphic and the surrounding graphics. This information is processed by the relation encoding branch and summarized into a feature vector, hereinafter referred to as "relation embedding". The bounded correction module concatenates the relation embedding with the normalized basic score, outputting an adjustment amount that can be positive or negative with a limited amplitude, and adds it to the original basic score to obtain the final score. The training method of this model is as follows: first, the basic scoring branch of this implementation is trained and fixed, and the statistics required for normalization are determined based on the basic scores of the training data. Subsequently, the six-channel relation tensor is sequentially input into the relation encoder, the pooling and feature concatenation process, and the relation embedding mapping layer to obtain the relation embedding. After the relation embedding, an auxiliary classification layer is set for training, which outputs a scalar classification score through linear mapping. In the example with a 64-dimensional relation embedding, the auxiliary classification layer is a linear layer that reduces the dimensionality from 64 to 1. A binary cross-entropy loss is calculated based on the probability obtained from the sigmoid transformation of the score and the sample label. The parameters of the relation encoder, relation embedding mapping layer, and auxiliary classification layer are jointly updated via backpropagation. After this training phase, the parameters of the relation encoder and relation embedding mapping layer are fixed. The obtained relation embedding is concatenated with the normalized base score and input into the correction module. A bounded correction value is generated through tanh limiting and scaling, and then added to the original base score. The correction module is trained based on the classification loss between the final score and the sample label. The auxiliary classification layer is only used in the above training phase for relation branches; subsequent hotspot detection uses the relation embedding for bounded correction. After training, the decision threshold is determined using the reserved validation samples in the training data, and the network parameters, score statistics, and decision threshold are fixed for subsequent hotspot detection.
[0031] Regardless of the implementation method chosen, after model training is complete, when performing hotspot detection on the test layout data, the model parameters are not reselected based on the true labels of the test layout data. Both implementation methods share the layout context window definition, deterministic raster preprocessing, five-channel geometric context encoding, and final probability determination rules. The specific hotspot detection method steps are as follows: I. Obtaining the Context Window Centered on the location to be tested, a window of a preset size is cropped from the layout image. The layout image within the window is then rasterized to generate the target grayscale raster. If the input is a pre-generated window image, it is read directly.
[0032] The physical dimensions of the window are predetermined based on the detection task. This window covers the location to be detected and its surrounding map structure, providing geometric context information for subsequent hotspot detection.
[0033] Based on the raster resolution, the implementation method, and application requirements, the target mesh size is determined before model training and maintained consistently throughout the training and detection of the same model. Subsequently, deterministic raster preprocessing is used to scale the window grayscale image to this target mesh.
[0034] II. Deterministic Raster Preprocessing
[0035] In layout lithography hotspot detection, the imaging risk of the target location is influenced by both its own shape and the distribution of surrounding shapes. When the cropping range is small, the extension, spacing, and density changes of the surrounding shapes may not be fully included in the detection window, resulting in a lack of contextual basis for hotspot determination. Directly expanding the cropping range while maintaining the original raster resolution increases the input size of a single window, storage requirements, and network computation. When batch screening a large number of candidate locations, these overheads accumulate into longer detection times and higher computational resource requirements, affecting design verification efficiency. Therefore, it is necessary to control the model input size while covering the selected physical context range. To this end, this invention adopts the following processing method: Set source map grayscale raster and determine its width. and height Simultaneously determine the scaled target grayscale raster. width and height .in, , , and All are positive integers. The column and row coordinates in the target grid are denoted as... and The corresponding column and row coordinates in the source grid are denoted as follows: and For each pixel in the target grid, the coordinates of the source pixel are determined based on the correspondence between the center position of the target pixel and the source grid.
[0036] Specifically, for the target grid coordinates , The source grid coordinates are calculated according to the nearest neighbor rule, and the calculated source pixel coordinates are restricted to the valid boundary of the source layout raster. ; in, , , This indicates rounding down. The clip function is used to restrict the corresponding coordinates to the corresponding closed interval to prevent the target grid coordinates from being mapped outside the source plot grid.
[0037] Based on the source pixel coordinates determined above, from the source map grayscale raster The grayscale value of the corresponding pixel is read from the grid and written to the corresponding position in the target grid, thereby forming the target grayscale raster. ,Right now: .in, Indicates the source map grayscale raster, superscript Identify source grid; This represents the scaled target grayscale raster. Indicates the source raster number line, number The grayscale value of the column position. Indicates the target grid number line, number The grayscale value of the column position.
[0038] The scaling process in this embodiment employs a deterministic nearest neighbor rule, avoiding bilinear interpolation or other interpolation methods that might produce intermediate grayscale values. This process converts a large physical area of the layout context window into a fixed-size target mesh while preventing interpolation from generating new grayscale values, thus ensuring the deterministic generation of the subsequent binary layout graphic mask.
[0039] Form target grayscale raster Then, a fixed threshold of 127 is used to binarize the target grayscale raster. For any pixel in the target grayscale raster, if its grayscale value is greater than the fixed threshold of 127, the pixel is determined as a pixel in the layout graphic area; if its grayscale value is less than or equal to the fixed threshold of 127, the pixel is determined as a background pixel. A binary layout graphic mask is formed based on the binarization result. B , is represented as: .
[0040] in: This is an indicator function; it takes the value 1 if the condition inside the parentheses is true, and 0 otherwise. , Represents a binary layout graphic mask B In the target grid line, number The column position value is 1, indicating that the position belongs to the graphic area, and 0, indicating that the position belongs to the background area. The subsequent vertical boundary map, horizontal boundary map, and local graphic area ratio are all based on the binary layout graphic mask. B calculate.
[0041] In summary, this step converts the layout window covering the selected context range into a target mesh of a fixed size, so that the input size of subsequent networks is determined by the target mesh size, which facilitates control over the network computational overhead of batch hotspot detection.
[0042] III. Constructing a five-channel geometric context tensor
[0043] Mask the binary layout graphic B This channel serves as the first channel of the five-channel geometric context tensor. It represents the basic graphic / background category at each location within the target mesh.
[0044] For the current pixel in the target grid, detect its class relationship with its left or right effective neighboring pixels. When the current pixel and its left or right effective neighboring pixels belong to the layout graphic area and the background area respectively, i.e., there is a difference in graphic category between them, the current pixel is marked as a vertical boundary pixel, thereby obtaining the vertical boundary map. Accordingly, the class difference between the current pixel and its upper or lower effective neighboring pixels is detected. When the current pixel and its upper or lower effective neighboring pixels belong to different classes, the current pixel is marked as a horizontal boundary pixel, thereby obtaining a horizontal boundary map. The above judgment is performed only on valid adjacent pixels within the target grid. , : ; in, and These represent the row coordinates of the target grid. Column coordinates Corresponding position Vertical and horizontal boundary markers are defined at the location. In this step, the row and column coordinates of the target mesh are abbreviated as... . This represents the mask value at the current position. , , and These represent the mask values for the left, right, top, and bottom adjacent positions, respectively, and are only used in the judgment when the adjacent positions are within the target grid. , superscript Identify the vertical and horizontal boundaries respectively. , and These represent logical AND, logical OR, and two binary pixels belonging to different categories, respectively.
[0045] The aforementioned vertical and horizontal boundary maps respectively express the geometric response of the layout graphic boundary in different directions, thereby enabling the boundary direction information to be used as an independent channel input in subsequent networks.
[0046] Preset two window sizes and ,in Using the current position in the target grid as the anchor point, the number of image pixels and the area ratio of the image are counted within local windows at two different scales to obtain the results. and , representing the area distribution of the graphic within smaller and larger spatial ranges, respectively. The calculation methods for both are uniformly expressed as: ; In the above formula, Indicates the target grid number line, number The column position is the anchor point, using The area ratio of the graphic calculated using a local window. (Superscript) Indicates window size, not power; subscript These represent the row coordinates and column coordinates, respectively. This indicates that the binary mask after zero expansion is at the 1st... line, number The possible values for the column positions, where These are the row offset and column offset relative to the window anchor point, respectively. To define the anchor point for even-scale windows, define... Zero-extension form Within the target grid Outside the target grid .symbol This indicates summing the corresponding items according to the given index ranges below and above it, or according to the specified set of positions below it. For positive integer window sizes... Using the current location as the anchor point, and All from Take to .
[0047] Mask the binary layout graphic Vertical boundary diagram Horizontal boundary map The area ratio of local graphics at the first window scale and the area ratio of local graphics at the second window scale Pixel-wise alignment is performed on the same target coordinate grid, and channels are stacked in a fixed order to form a five-channel geometric context tensor: .
[0048] in: , This means that the channels are stacked in the order listed along the newly added channel dimension, without summing the values of each channel. The five channels maintain the same channel meaning and arrangement order during model training and detection.
[0049] In summary, this step correlates graphic distribution, boundary direction, and density information of different ranges in the same spatial location, providing a basis for distinguishing map structures with similar shapes but different local geometric relationships, and helping to reduce missed detections and false alarms caused by geometric information confusion.
[0050] IV. Determining the Base Score Based on a Multi-Stage Coding Network
[0051] Reference Figure 2 The basic scoring branch on the left will use the five-channel geometric context tensor. The input-based scoring network, also known as a multi-stage encoding network, includes an input stage, a multi-stage encoding stage, a multi-scale pooling stage, and a scoring output stage.
[0052] The input stage of the basic scoring network consists of two cascaded convolutional modules, each using a 3×3 convolutional kernel with a stride of 1. Each convolutional module is followed by batch normalization and ReLU activation. Specifically: That is, negative inputs are set to 0, and non-negative inputs remain unchanged. Among these, This represents the scalar input to the activation function, as shown in the GELU formula below. They have the same meaning.
[0053] Batch normalization is used to normalize the corresponding channels based on the feature statistics in the training batch, and is transformed by learnable scaling and translation parameters; the running statistics determined in the training phase are used in the inference phase.
[0054] After the input-level convolutional encoding is completed, the code enters a multi-stage encoding stage. The encoding result is downsampled and further input into multiple residual encoding stages. Let the total number of encoding stages participating in pooling be... , No. The stage output feature map is represented as follows: .
[0055] in, , , and They represent the first The number of channels, height, and width of the stage feature map.
[0056] Multi-scale pooling levels are used for the output feature maps of each encoding stage. Perform Global Average Pooling (GAP) and Global Max Pooling (GMP) respectively.
[0057] Global average pooling is used to aggregate the overall responses of the corresponding feature maps, while global max pooling is used to preserve the local salient responses in the corresponding feature maps. The average pooling vectors and max pooling vectors obtained from each encoding stage are concatenated according to a predetermined stage order and pooling type order to form multi-scale features. .
[0058] The pooling results from each stage are concatenated in the order described above to obtain multi-scale features. Represented as: ; The scoring output layer consists of a first linear layer, a layer normalization layer, a GELU activation layer, a dropout layer, and a second linear layer, used to process multi-scale features. Convert to scalar-based rating.
[0059] set up The dimension is The output dimension of the first linear layer is Then the weight matrix and bias of the first linear layer are respectively: , First, the first linear layer... generate Intermediate features are then processed sequentially using layer normalization (LN), GELU activation, and discarding. Specifically: , This represents the cumulative distribution function of the standard normal distribution. In this implementation, the dropout probability of the dropout layer is 0.5, i.e., Drop0.5. This dropout layer is enabled during the model training phase and uses an identity mapping during the inference phase.
[0060] The features processed as described above are further input into the second linear layer. Let the weight matrix and biases of the second linear layer be: , Finally, the weights are used to determine the weights. and bias The second linear layer outputs a scalar base score. .in, For scalar-based scores that have not yet been converted into probabilities.
[0061] Figure 2 The "basic score calculation" includes the aforementioned linear mapping, layer normalization, GELU activation, dropout processing, and linear output, converting multi-scale features into basic scores. .
[0062] This completes the mapping from the five-channel geometric context tensor to the base score. The multi-stage coding network described above uses features from different coding stages and corresponding global statistics to form multi-scale features, and uses these multi-scale features to determine the base score.
[0063] V. Determine the final score according to the pre-selected implementation method.
[0064] When the basic direct determination implementation method GCE-Direct is selected in advance, the basic score will be used. Directly used as the final score ,Right now: This implementation is suitable for hotspot detection scenarios where a larger geometric context is desired, while reducing the computational overhead of relation information extraction and correction.
[0065] When the pre-selected relationship enhancement determination implementation method GCE-ACBR is executed, Figure 2 The detection process is shown below. The basic scoring branch calculates the basic score, the relation encoding branch generates the relation embedding, and then combines the basic score to generate the bounded correction value. The basic score and the bounded correction value are added together to obtain the final score. The specific processing is as follows.
[0066] 1. Divide the target area into core region, near-field region, and far-field region: Using a fixed high-resolution target mesh... Define the core region Near-field area and far field region Core area Near-field area and far field region They do not overlap, and the union of the three covers the entire target grid.
[0067] The near-field region is obtained by subtracting the core region from the larger square region containing the core region, while the far-field region is the remaining region in the target mesh excluding the core region and the near-field region.
[0068] For example, refer to Figure 3 As shown, when the target mesh size is 480×480, the core region can be a 120×120 square region formed by row and column coordinates 180 to 299; the near-field region can be obtained by subtracting the core region from the larger square region formed by row and column coordinates 120 to 359; the remaining region is the far-field region. The above dimensions are example parameters of the embodiment given in this invention, and the specific region dimensions can be determined according to actual application requirements.
[0069] Figure 3 Using binary layout graphic mask As input, generate a six-channel relation tensor. The "core morphological relationship" in the diagram includes the signed distance field of the core region. and the core corner field "Directional spacing relationship" includes the nearest horizontal spacing field. and the closest distance field in the vertical direction Among them, "periphery" refers to the near-field area. and far field region .
[0070] and This represents the difference in area ratios of the regions. In the diagram, "near field-core" and "far field-core" represent the difference between the area ratios of the near field and far field regions and the area ratio of the core region, respectively.
[0071] 2. Construct a signed distance field in the core region For any location in the core region , Calculate the non-negative Euclidean distance from this location to the nearest pixel of the opposite class. For pixels in the graphic region, calculate their distance to the nearest background pixel; for pixels in the background region, calculate their distance to the nearest pixel in the graphic region.
[0072] Set distance cutoff value The signed distance is truncated and normalized to obtain... : ; In the formula, These represent the height and width of the core area cutout, respectively, both in pixels, with subscripts... Indicates the core area; Represents the signed distance field of the core region In position The value at that location. and These represent binary layout graphic masks. At pixel position and The value at this location is 1 for the graphic area and 0 for the background area. This represents the current calculated location within the core area. Let be the pixel positions traversed during summation. In this formula, Traverse the core region ,therefore This indicates the number of pixels in the core area of the graphic. Used to determine the sign of the signed distance; the distance to the graphic region is positive, and the distance to the background region is negative. When there are no graphic region pixels within the core region, [the value is not specified]. Set to -1 uniformly. The core region has a signed distance field. Calculate on the core cutout, and pad the background outside the cutout with the width of the distance to the cutout value.
[0073] 3. Construct the core corner field First, calculate the vertical boundary response within the core block. and horizontal boundary response When calculating the boundary response at the outer edge of the core cutout, edge copying is used for padding. Then, 3×3 neighborhood dilation is performed on the vertical and horizontal boundary responses respectively, and pixel-by-pixel intersection is performed on the two dilation results to obtain the core corner field. .
[0074] The 3×3 dilation operation represents taking the maximum value within the corresponding 3×3 neighborhood. The portion of the dilated neighborhood extending beyond the core block is padded with zeros. Since both the vertical and horizontal boundary responses are binary responses, the element-wise product of the two dilation results is equivalent to a pixel-wise logical AND. The final result is... : ; in, This represents element-wise product, and the core corner field. Used to characterize the geometric location in the core region that simultaneously exhibits boundary responses in both the vertical and horizontal directions. These represent the vertical and horizontal boundary response maps calculated within the core block, respectively. (Subscripts are used to indicate the subscripts.) Indicates the core cutout block, superscript These represent the vertical boundary and the horizontal boundary, respectively. This indicates that an expansion operation is performed using a 3×3 neighborhood, with the subscript... Indicates the neighborhood size.
[0075] 4. Construct the horizontal nearest-distance field For the first in the core area Okay, determine the number of background pixels between the core graphic region and its nearest outermost graphic regions on its left and right, and record them as follows: and .from and Choose the smaller value and use the distance cutoff value. The data is truncated and normalized. The normalized result is then broadcast along the corresponding rows to the core region, forming the horizontally closest spacing field. .
[0076] ; When there are no pixels in the outer graphic area on the corresponding side, or no pixels in the graphic area in the corresponding row of the core area, set the corresponding spacing to... .
[0077] 5. Construct the vertical closest spacing field For the first in the core area The columns determine the number of background pixels between the core graphic region and its nearest outermost graphic regions above and below, respectively, denoted as . and .from and Select the smaller value, truncate and normalize it in the same way as above, and broadcast it to the core region along the corresponding column to form the vertical closest spacing field. .
[0078] ; When there are no pixels in the outer graphic area on the corresponding side, or no pixels in the graphic area in the corresponding column of the core area, set the corresponding spacing to... .
[0079] 6. Construct a field for the difference in area ratio of the region graphic and : Regarding the location in the core area The area ratio of local regions is calculated for the core region, near-field region, and far-field region respectively.
[0080] set up , representing the core region, near-field region, and far-field region respectively, with the corresponding region masks denoted as . From current location Set a square neighborhood window at the center ,in, The radius of the relationship is [value], and the offset range in both the row and column directions is -[value]. to For portions of the window that extend beyond the target grid, they are not included in the statistics. The area ratio of the region is calculated at the intersection of the effective map area and the corresponding region mask. : ; in, Indicates a region mask In position The value at: when Located within the valid target grid and belonging to The value is 1 if it corresponds to the specified region, otherwise it is 0. (Index) These correspond to the core region, near-field region, and far-field region, respectively. Indicated by position Centered on, with a relation radius of The proportion of the number of graphic pixels to the total number of pixels in the effective intersection of the square neighborhood and the corresponding region. This represents the locations within the neighborhood that are included in the statistics; locations outside the target grid are not included in the statistics. When the denominator is 0, this proportion is set to 0.
[0081] Furthermore, set a smaller relationship radius. and larger relation radius ,in: In a smaller relationship radius The difference between the area ratio of the near-field region and the area ratio of the core region is calculated to form... ; within a larger relationship radius The difference between the area ratio of the far-field region and the area ratio of the core region is calculated to form... By limiting the above difference to the range of -1 to 1, we obtain... , : ; In the 480×480 grid example above, the distance cutoff value Take 64 pixels, relation radius and The values are 120 pixels and 240 pixels respectively. These values are a set of example parameters for this embodiment.
[0082] 7. Generate a six-channel relation tensor and perform relation encoding: , , , , and Stacked along the channel dimension in a fixed order to form a relation tensor: relation tensor As input to the relation encoder. to The subscripts 1 to 6 are used to distinguish the six types of relation fields; the expression for each relation field with positional parameters represents its position in the core region. The value at that location.
[0083] Figure 3 The word "stacked" in the text means to stack to They are stacked sequentially along the channel dimension. Each of the six relation fields uses the core region as its output grid. In the example above, each relation field is 120×120 in size, and the stacked fields form a 6×120×120 relation tensor. The three dimensions represent the number of channels, height, and width, respectively.
[0084] Reference Figure 4 , relation tensor The input relation encoder consists of three convolutional coding units connected in sequence. Each unit performs a 3×3 convolution, group normalization, and GELU activation in sequence, with a convolution stride of 2.
[0085] Let the final output feature of the relation encoder be: .
[0086] Wherein, the subscript rel indicates the relational encoding branch, , and These represent the number of channels, height, and width of the relational feature, respectively.
[0087] Group normalization is performed by grouping samples according to the predetermined channels within the current sample, without relying on the statistics of other samples in the same batch.
[0088] exist Figure 4 In the example shown, the input relation tensor has a size of 6×120×120, and the output channels of the three convolutional coding units are 16, 32, and 64 respectively. The padding width of each convolution is 1 pixel. The output sizes of the three units are 16×60×60, 32×30×30, and 64×15×15 respectively. The relation feature output by the last unit is denoted as... .
[0089] 8. Obtain relation embeddings : Targeting the characteristics of the last-level relationship Execute the following respectively: Adaptive global average pooling with an output space size of 1×1 ; Adaptive global max pooling with an output space size of 1×1 ; Adaptive spatial average pooling with an output space size of 2×2 ; Adaptive space max pooling with an output space size of 2×2 .
[0090] Figure 4 The "pooling and feature concatenation" process includes the four-way adaptive pooling described above, result expansion, and concatenation along the feature dimension in the above order to output a statistical vector. The 1×1 and 2×2 dimensions in the diagram represent the spatial size of the pooling output. Let the dimension of the concatenated statistical vector be... The dimension of the relation embedding is Relational embeddings are formed through linear mapping and GELU activation. : ; in, This represents the GELU activation function. and Let be the weight matrix and bias vector of the relational embedding linear mapping, respectively. , and .
[0091] exist Figure 4 In the example shown, the two 1×1 pooling results are each 64-dimensional after expansion, and the two 2×2 pooling results are each 256-dimensional after expansion. Concatenating these results yields a 640-dimensional statistical vector. After a linear mapping from 640 dimensions to 64 dimensions and GELU activation, a 64-dimensional relational embedding is obtained. ,Right now The number of channels and vector dimension mentioned above are a set of example parameters for this embodiment.
[0092] Figure 2 The "Relation Encoding and Relation Embedding Generation" section includes relation encoding, average pooling and max pooling of different spatial sizes, feature concatenation, linear mapping, and GELU activation, ultimately outputting relation embeddings. .
[0093] 9. Obtain normalized baseline scores: During the training phase, obtain the set of baseline scores output by the trained baseline score branch for the training data. The superscript "train" indicates that the set comes only from the training data.
[0094] Pre-calculate the median on the base score set. First quartile and the third and fourth quartiles Further calculate the interquartile range and ensure it is not less than a preset positive number. Interquartile range as a scoring metric ,Right now: .
[0095] in, A preset positive number is used to ensure the scoring criteria. It is a positive value.
[0096] Using the training phase and Current base score Normalization is performed to obtain the normalized baseline score: The above statistics remain unchanged during the data processing period.
[0097] 10. Forming bounded correction quantities And determine the final score: embedding relationships The scores are concatenated with the normalized baseline scores in chronological order, and the concatenation result is input into the calibration module. Calibration module This is a feedforward neural network that outputs a scalar corrected response before hyperbolic tangent clipping and scaling. In the example with a 64-dimensional relation embedding, the concatenated vector is 65-dimensional. The correction module obtains this scalar response through a linear mapping from 65 to 16 dimensions, GELU activation, and a linear mapping from 16 to 1 dimension. The parameters of the correction module are determined during the training phase and remain unchanged during the processing of the layout under test. Predetermined correction coefficients are set. ,in: .
[0098] Reference Figure 5 , will the calibration module The output is obtained through the hyperbolic tangent function. Limit the frame size, then scale it down, i.e., multiply by . The bounded correction quantity is obtained. .in, The same scoring scale was used as in the aforementioned scoring normalization.
[0099] .
[0100] In the formula, To output the hyperbolic tangent function between -1 and 1, This means concatenating the inputs into a vector in a given order. Therefore: This limits the extent to which relationship-enhancing branches adjust the base score.
[0101] Figure 5 The "Direct Connection to Basic Score" option retains the original basic score. The score is then compared with the bounded correction factor. Add them together to get the final score. : .
[0102] in, This indicates the final score. This represents the bounded correction amount generated by the relationship enhancement branch.
[0103] The calculation of the above basic score normalization and bounded correction corresponds to Figure 2 "Bounded correction quantity generation" in the context.
[0104] In summary, this step supplements the base score with information on core morphology, directional spacing, and regional density differences through six relation fields, and limits the correction range, reducing the risk of excessively increasing or decreasing the base score due to additional correction, thereby improving the stability of hotspot determination.
[0105] VI. Final Probability and Hotspot Classification
[0106] The final score obtained for the first or second implementation method The final score is converted into hotspot probability using the Sigmoid function. : .in, This represents the Sigmoid function. This represents the natural exponential function. .
[0107] Obtain the pre-determined and fixed classification threshold from the training side. ,in: , to increase the probability of hot spots With classification threshold Compare them.
[0108] when Time output , indicates a hotspot; otherwise, output This indicates a non-hotspot. Threshold It is determined solely by the training data and remains unchanged during the processing of the test data. This completes the detection of lithographic hotspots in the layout.
[0109] VII. Optional Multi-Model Aggregation
[0110] In some implementations, to further obtain model aggregation detection results, model aggregation can be performed based on the above-mentioned single-model detection results. Specifically, this includes: 1. Determine whether to enable model aggregation: After obtaining the detection results corresponding to multiple independently trained models, determine whether to perform model aggregation based on the pre-determined model aggregation configuration.
[0111] If model aggregation is not performed, the single-model classification result is directly used as the layout lithography hotspot detection result.
[0112] If model aggregation is performed, the corresponding aggregation process will be entered according to the implementation method adopted.
[0113] 2. Probability averaging aggregation in the first implementation: In the GCE-Direct implementation, multiple independently trained models output hotspot probabilities for the same test layout window. .
[0114] Let the number of models participating in the aggregation be... . The model numbers that participate in the aggregation. ; Indicates the first The models output hotspot probabilities for the same test layout window. This means The arithmetic mean of the probabilities of each hotspot. The average probability... As an aggregate score.
[0115] Set a predetermined aggregation threshold. ,when: At that time, output the aggregated classification result: Set the value to 1 to indicate a hotspot; otherwise: Setting it to 0 indicates that the data is not a hotspot. The number of models, aggregation threshold, and aggregation rules are all determined and remain unchanged before the data to be tested is processed. This represents the threshold for determining model aggregation. Indicates the predicted category after model aggregation; subscript The model aggregation is identified by the cap number, which indicates the predicted value.
[0116] 3. Odd majority aggregation in the second implementation: In the GCE-ACBR implementation, multiple independently trained models output binary detection results according to their respective pre-fixed thresholds.
[0117] Set the number of models It is a positive odd number. When The number of models identified as hotspots among the total number of models is no less than: At that time, the aggregated detection results are identified as hotspots: aggregated classification results Select 1 otherwise select 0; because Since it is a positive odd number, the number of hot and non-hot models will not be equal.
[0118] Obtaining Aggregated Detection Results: Aggregated detection results are obtained according to any of the above implementation methods, and these results are used as the final hotspot detection results for the corresponding map window. When model detection performance statistics are required, TP, FN, FP, and TN can be further calculated based on single-model classification results or aggregated classification results, representing correctly detected hotspots, missed hotspots, non-hotspots falsely reported as hotspots, and correctly identified non-hotspots, respectively. The above model aggregation is an optional process and does not change the core processing flow of the two basic detection implementation methods.
[0119] In summary, this method controls the network input size through a fixed-size target mesh and utilizes pixel-aligned five-channel geometric information to provide a basis for distinguishing layout structures with similar shapes but different local geometric relationships. In the relationship enhancement determination implementation, the basic score is further supplemented by the core shape and the geometric relationship between the core region and the peripheral region, and the correction range is limited. The above processing takes into account the utilization of layout context, hotspot identification, and computational overhead, providing hotspot screening support for the photolithographic manufacturability verification of large-scale layouts, and providing a basis for subsequent review and layout correction, which helps to reduce the risk of yield loss caused by potential photolithographic defects.
[0120] This embodiment also discloses a layout lithography hotspot detection system based on geometric context encoding. The system includes: a data preprocessing module, a boundary map construction module, a graphic area ratio calculation module, a basic score output module, a final score output module, and a detection module.
[0121] The data preprocessing module is used to obtain the layout context window and perform deterministic raster preprocessing to generate a binary layout graphic mask; the boundary map construction module is used to detect the category relationship between the current pixel in the target grid and its effective adjacent pixels on the left, right and top and bottom sides to obtain the vertical boundary map and the horizontal boundary map.
[0122] The graphic area ratio calculation module is used to pre-set two window scales of different sizes. and ,in This module defines two local windows at different scales, using the current position in the target mesh as the anchor point. It then counts the pixels of the graphic region within each local window and calculates the corresponding graphic area ratio. The basic score output module aligns the binary graphic mask, vertical boundary map, horizontal boundary map, and the graphic area ratios at the two window scales pixel-by-pixel on the same target mesh. These are then stacked in a fixed order to form a five-channel geometric context tensor, which is input into the basic score network to output a scalar basic score. .
[0123] The final score output module is used to determine the final score according to a pre-selected implementation method. When using GCE-Direct, the base score will be... The result is directly used as the final score. When using GCE-ACBR, a six-channel relation tensor is constructed based on a binary layout graphic mask. Relational embeddings are generated through relation encoding, multi-scale pooling, and embedding mapping. The relation embeddings are concatenated with the normalized base score. After correction, tanh limiting, and scaling, a bounded correction is obtained and then compared with the original base score. The scores are added together to obtain the final score. The detection module is used to determine the final score. Calculate hotspot probability ,when If the value is greater than or equal to a preset threshold, it is determined to be a hotspot; otherwise, it is determined to be a non-hotspot.
[0124] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.
[0125] The information interaction and execution process between the above modules are based on the same concept as the method embodiments of this application. It is a system corresponding to the above-mentioned layout lithography hotspot detection method based on geometric context encoding. All implementation methods in the above method embodiments are applicable to the embodiments of this system. For details on its specific functions and the resulting technical effects, please refer to the method embodiment section, which will not be repeated here.
[0126] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A layout lithography hotspot detection method based on geometric context encoding, characterized in that, Includes the following steps: Obtain the layout context window and perform deterministic raster preprocessing to generate a binary layout graphic mask; For the current pixel in the target grid, detect its category relationship with its effective neighboring pixels on the left, right and top and bottom sides to obtain the vertical boundary map and the horizontal boundary map; Set at least two different window scales. For the target position in the target map, determine a local window with the current position in the target grid as the anchor point for each window scale. Count the pixels of the map graphic area in each local window and calculate the graphic area ratio of the local window. The binary layout graphic mask, vertical boundary map, horizontal boundary map, and local window area ratios are aligned pixel-by-pixel on the same target grid, and channels are stacked in a fixed order to form a five-channel geometric context tensor. This tensor is then input into the basic scoring network to output a scalar basic score. ; A six-channel relation tensor is constructed based on the binary map mask. Relation embeddings are generated through relation encoding and multi-scale pooling. The scalar base score is normalized and concatenated with the relation embeddings. After correction, tanh limiting, and scaling to obtain a bounded correction value, this value is added to the base score to obtain the final score. ; Choose according to different application scenarios or Calculate the probability p of a hotspot. A hotspot is defined as a hotspot if p is greater than or equal to a preset threshold, otherwise it is a non-hotspot.
2. The layout lithography hotspot detection method based on geometric context encoding according to claim 1, characterized in that: The process of obtaining the layout context window and performing deterministic raster preprocessing to generate a binary layout graphic mask includes: Centered on the location to be tested, a window of a preset size is cropped from the layout to obtain the layout context window. Then, the layout graphics within the window are rasterized to generate the target grayscale raster, specifically: Set source map grayscale raster and determine its width. and height Simultaneously determine the scaled target grayscale raster. width and height ; Let the column coordinates and row coordinates in the target grid be denoted as follows: and , , The corresponding column and row coordinates in the source grid are denoted as follows: and , , ; For target grid coordinates and Calculate the corresponding source grid coordinates according to the nearest neighbor rule, and restrict the calculated source pixel coordinates to the effective boundary of the source layout raster. Based on the source pixel coordinates, from the source layout grayscale raster The grayscale value of the corresponding pixel is read from the grid and written to the corresponding position of the target grid to form the target grayscale grid. A fixed threshold of 127 is used to binarize the target grayscale raster: for any pixel in the target grayscale raster, if its grayscale value is greater than the fixed threshold of 127, the pixel is determined as a pixel of the layout graphic area; if its grayscale value is less than or equal to the fixed threshold of 127, the pixel is determined as a background pixel. A binary layout graphic mask is formed based on the binarization result. .
3. The layout lithography hotspot detection method based on geometric context encoding according to claim 1, characterized in that: For the current pixel in the target grid, detecting its category relationship with its effective adjacent pixels on the left, right, and top and bottom sides to obtain the vertical boundary map and the horizontal boundary map includes: When the current pixel in the target grid and its valid neighboring pixels to the left or right belong to the layout graphic area and the background area respectively, the current pixel is marked as a vertical boundary pixel, thereby obtaining the vertical boundary map. When the current pixel in the target grid belongs to a different category from its effective neighboring pixels above or below it, the current pixel is marked as a horizontal boundary pixel, thereby obtaining a horizontal boundary map.
4. The layout lithography hotspot detection method based on geometric context encoding according to claim 1, characterized in that: The method for calculating the graphic area ratio of the local window is designed as follows: ; In the above formula, Indicates the target grid number line, number The column position is the anchor point, using The area ratio of the graphic calculated by the local window, subscript Representing row coordinates and column coordinates respectively. This indicates that the binary mask after zero expansion is at the 1st... line, number The possible values for the column positions, where These are the row offset and column offset relative to the window anchor point, respectively. and Used to represent two different window sizes.
5. The layout lithography hotspot detection method based on geometric context coding according to claim 1, characterized in that: The basic scoring network is a multi-stage coding network, which includes: The input stage consists of two cascaded convolutional modules, each followed by batch normalization and ReLU activation. A multi-stage encoding stage is used to downsample the convolutional encoding result of the input stage, and input the downsampled features into multiple residual encoding stages. Let the total number of encoding stages participating in pooling be... , No. The stage output feature map is represented as follows: , , , and They represent the first The number of channels, height, and width of the stage feature map; Multi-scale pooling stages are used to target the output feature maps at each encoding stage. Global average pooling (GAP) and global max pooling (GMP) are performed separately, and the average pooling vectors and max pooling vectors obtained from each encoding stage are concatenated according to the predetermined stage order and pooling type order to form multi-scale features. h ; The scoring output level is used to convert the multi-scale features. Convert to scalar-based rating.
6. The layout lithography hotspot detection method based on geometric context coding according to claim 1, characterized in that: The step of constructing a six-channel relation tensor based on the binary layout graphic mask, and generating relation embeddings through relation encoding and multi-scale pooling includes: Construct a signed distance field in the core region ; ; In the formula, Represents the signed distance field of the core region In position The value at that location, and These represent binary layout graphic masks. At pixel position and The value at this location is 1 for the graphic area and 0 for the background area. This represents the current calculated location within the core area. The pixel positions traversed during summation. This represents the distance cutoff value in this formula. Traverse the core region ,therefore This indicates the number of pixels in the core area of the graphic; Constructing the core corner field : ; in, The core corner field represents element-wise product. Used to characterize the geometric location in the core region that simultaneously exhibits boundary responses in both vertical and horizontal directions. These represent the vertical and horizontal boundary response maps calculated within the core block, respectively. (Subscripts are used to indicate the subscripts.) Indicates the core cutout block, superscript These represent the vertical boundary and the horizontal boundary, respectively. This indicates that an expansion operation is performed using a 3×3 neighborhood, where the subscript 3×3 indicates the neighborhood size. Construct the horizontal nearest-space field closest distance field in the vertical direction : ; in, Represents the closest distance field in the horizontal direction In position The value at that location, and These represent the number of background pixels between the core graphic area and its nearest outer graphic areas to its left and right, respectively. Represents the closest distance field in the vertical direction In position The value at that location, and These represent the number of background pixels between the core graphic area and its nearest outer graphic areas above and below it, respectively. Constructing the area ratio difference field of the region graphic and : ; ; ; in, Indicates a region mask In position The value at: when Located within the valid target grid and belonging to The value is 1 if it corresponds to the region, otherwise it is 0. Indicated by position Centered on, with a relation radius of In the effective intersection of the square neighborhood and the corresponding region, the proportion of the number of graphic pixels to the total number of pixels in the effective intersection is indicated by the subscript. These correspond to the core region, near-field region, and far-field region on the target mesh, respectively. and This represents two radii of different sizes that represent a relationship. The , , , , and Stack them along the channel dimension in a fixed order to form a six-channel relation tensor. , will the Input relation encoder, output result based on relation encoder Output adaptive global average pooling with a spatial size of 1×1. ; Adaptive global max pooling with an output space size of 1×1 ; Adaptive spatial average pooling with an output space size of 2×2 ; Adaptive space max pooling with an output space size of 2×2 ; Based on the pooling results, relational embeddings are formed through linear mapping and GELU activation.
7. The layout lithography hotspot detection method based on geometric context encoding according to claim 1, characterized in that: The calculation process for the bounded correction is designed as follows: ; In the formula, Indicates a bounded correction quantity. This represents a vector-to-scalar mapping implemented by a trained feedforward neural network, with relation embeddings as input. The concatenated vector with the normalized baseline score; To output the hyperbolic tangent function between -1 and 1, This means concatenating the inputs into a vector in a given order. Represents the correction factor; where, , , For the normalized base score, As a scoring metric, Represents the basic score set, , , These represent the pre-calculated median, first quartile, and third quartile on the basic score set, respectively. It is a preset positive number.
8. The layout lithography hotspot detection method based on geometric context coding according to claim 1, characterized in that: The method for calculating the hotspot probability p is designed as follows: ;in, The final selection score for hotspot probability: or , This represents the Sigmoid function. This represents the natural exponential function.
9. The layout lithography hotspot detection method based on geometric context coding according to claim 1, characterized in that: The method also includes: building Each base scoring network is trained independently, and the corresponding hotspot probability is obtained during inference based on each base scoring network. The polymerization process is performed to obtain Arithmetic mean of the probabilities of hot spots ; Set a predetermined aggregation threshold. ,when: At that time, output the aggregated classification result: Set the value to 1 to indicate a hotspot; otherwise: Setting it to 0 indicates that it is not a hotspot.
10. A layout lithography hotspot detection system based on geometric context encoding, applied to the layout lithography hotspot detection method based on geometric context encoding as described in any one of claims 1-9, characterized in that: The system includes: The data preprocessing module is used to obtain the layout context window and perform deterministic raster preprocessing to generate a binary layout graphic mask; The boundary map construction module is used to detect the class relationship between the current pixel in the target grid and its effective neighboring pixels on the left, right and top and bottom sides, and obtain the vertical boundary map and the horizontal boundary map. A graphic area ratio calculation module is used to set at least two different window scales, and for the target position in the target map, to determine a local window with the current position in the target grid as the anchor point for each window scale; to count the pixels of the graphic area in each local window, and to calculate the graphic area ratio of the local window. The basic scoring output module is used to align the area ratios of the binary map mask, vertical boundary map, horizontal boundary map, and local window on the same target grid pixel by pixel, and stack the channels in a fixed order to form a five-channel geometric context tensor. This tensor is then input into the basic scoring network to output a scalar basic score. ; The final score output module is used to construct a six-channel relation tensor based on the binary map graphic mask, generate a relation embedding through relation encoding and multi-scale pooling, normalize the scalar base score and concatenate it with the relation embedding, and then add the bounded correction amount obtained after correction, tanh limiting and scaling to the base score to obtain the final score. ; The detection module is used to select based on different application scenarios. or Calculate the probability p of a hotspot. A hotspot is defined as a hotspot if p is greater than or equal to a preset threshold, otherwise it is a non-hotspot.
