Training method, device, equipment and storage medium for photolithography mask generation model

By using a pre-trained neural network model to generate predicted wafer patterns and determine the training loss during the training process of the photolithography mask generation model, the problem of complexity and slow speed of generating wafer patterns from the photolithography physical model is solved and improved Training efficiency of photolithography mask generation models.

CN117313640BActive Publication Date: 2024-09-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210673948.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2024-09-20
Estimated Expiration
2042-06-14

AI Technical Summary

Technical Problem

During the training process of the photolithography mask generation model, the process of generating wafer patterns from the photolithography physical model is complex and slow, which affects the training efficiency.

Method used

A pre-trained machine learning model based on a neural network is used to generate a predicted wafer pattern, and a training loss is determined based on the generated predicted wafer pattern to update the parameters of the photolithography mask generation model.

Benefits of technology

The neural network model is used to generate predicted wafer patterns. Compared with the photolithography physical model, the calculation amount is less and the calculation efficiency is higher. It saves the time to generate the predicted wafer pattern and improves the training efficiency of the photolithography mask generation model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117313640B
    Figure CN117313640B
Patent Text Reader

Abstract

The embodiments of the present application provide a training method, device, equipment and storage medium for a photolithography mask generation model, which relates to the field of chip and machine learning technology. The method includes: generating a predicted mask image corresponding to a chip layout through a photolithography mask generation model; generating a predicted wafer pattern corresponding to the predicted mask image through a pre-trained wafer pattern generation model, wherein the wafer pattern generation model is a machine learning model constructed based on a neural network; determining the training loss based on the predicted mask image and the predicted wafer pattern; and adjusting the parameters of the photolithography mask generation model based on the training loss. The technical solution provided by the embodiments of the present application improves the training efficiency of the photolithography mask generation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of chip and machine learning technology, and in particular to a training method, device, equipment and storage medium for a photolithography mask generation model. Background Art

[0002] During the chip production process, it is necessary to obtain the mask images corresponding to each chip layout for exposure in the photolithography process.

[0003] In the related art, a photolithography mask generation model generates a predicted mask image during training, and a lithography physics model (Lithography Simulation, LS) is required to generate a wafer pattern corresponding to the predicted mask image during training of the photolithography mask generation model in order to update the photolithography mask generation model.

[0004] In the above-mentioned related technologies, since the processing of generating wafer patterns by using the lithography physical model is relatively complicated and the generation speed is slow, the training efficiency of the lithography mask generation model is affected. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment and storage medium for training a photolithography mask generation model, which can improve the training efficiency of the photolithography mask generation model. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for training a photolithography mask generation model is provided, the method comprising:

[0007] Generate a predicted mask image corresponding to the chip layout through a photolithography mask generation model;

[0008] Generate a predicted wafer pattern corresponding to the predicted mask image through a pre-trained wafer pattern generation model, wherein the wafer pattern generation model is a machine learning model constructed based on a neural network;

[0009] Determining a training loss according to the predicted mask image and the predicted wafer pattern;

[0010] Parameters of the lithography mask generation model are adjusted according to the training loss.

[0011] According to one aspect of an embodiment of the present application, a training device for a photolithography mask generation model is provided, the device comprising:

[0012] The mask generation module is used to generate a predicted mask image corresponding to the chip layout through a photolithography mask generation model;

[0013] A pattern generation module, used to generate a predicted wafer pattern corresponding to the predicted mask image through a pre-trained wafer pattern generation model, wherein the wafer pattern generation model is a machine learning model constructed based on a neural network;

[0014] A loss determination module, configured to determine a training loss based on the predicted mask image and the predicted wafer pattern;

[0015] A parameter adjustment module is used to adjust the parameters of the lithography mask generation model according to the training loss.

[0016] According to one aspect of an embodiment of the present application, a computer device is provided, which includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned training method of the lithography mask generation model.

[0017] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned training method of the lithography mask generation model.

[0018] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned training method for generating a photolithography mask model.

[0019] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0020] In the process of training the photolithography mask generation model, a pre-trained machine learning model based on a neural network is used to generate a predicted wafer pattern, and the training loss is determined based on the generated predicted wafer pattern to update the parameters of the photolithography mask generation model. Compared with using a photolithography physical model to generate a predicted wafer pattern, the use of a neural network model to generate a predicted wafer pattern requires less calculation and higher calculation efficiency, thus saving the time required to generate a predicted wafer pattern, thereby improving the training efficiency of the photolithography mask generation model.

[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of a method for training a photolithography mask generation model provided by an embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0024] Figure 3 is a flow chart of a method for training a photolithography mask generation model provided by another embodiment of the present application;

[0025] Figure 4 is a flow chart of a method for training a photolithography mask generation model provided by another embodiment of the present application;

[0026] Figure 5 is a flow chart of a method for training a photolithography mask generation model provided by another embodiment of the present application;

[0027] Figure 6 is a flow chart of a method for training a photolithography mask generation model provided by another embodiment of the present application;

[0028] Figure 7 It is a block diagram of a training device for a photolithography mask generation model provided by an embodiment of the present application;

[0029] Figure 8 It is a block diagram of a training device for a photolithography mask generation model provided by an embodiment of the present application;

[0030] Fig. 9 It is a block diagram of a computer device provided by one embodiment of the present application. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of methods consistent with some aspects of the present application as detailed in the appended claims.

[0032] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0033] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0034] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.

[0035] The embodiment of the present application uses machine learning technology to train the photolithography mask generation model, so that the photolithography mask generation model can generate a predicted mask image with higher accuracy, providing a mask version for the subsequent chip lithography process.

[0036] The method provided in the embodiment of the present application can also be expanded and applied to other aspects of integrated circuit design, such as chip logic circuit simulation, chip thermal transport simulation, chip performance detection, chip bad point detection, light source-mask collaborative optimization and other EDA (Electronic design automation) fields.

[0037] This application Figure 1 A training method for a photolithography mask generation model is provided. Figure 1As shown, the method may include the following steps: pre-training a wafer pattern generation model 11 to obtain a pre-trained wafer pattern generation model 11; using a photolithography mask generation model 12 to perform mask prediction on a chip layout to generate a predicted mask image, and calculating a model accuracy evaluation index based on the difference between the predicted mask image and a standard mask image corresponding to the chip layout; using the pre-trained wafer pattern generation model 11 to generate a predicted wafer pattern corresponding to the predicted mask image, and calculating a mask quality evaluation index based on the difference between the predicted wafer pattern and the chip layout; using a photolithography physical model to generate multiple wafer patterns corresponding to the predicted mask image based on a variety of different process parameters; determining a complexity evaluation index corresponding to the predicted mask image based on the difference between the multiple wafer patterns; and training the photolithography mask generation model 12 based on the model accuracy evaluation index, the mask quality evaluation index, and the complexity evaluation index.

[0038] Please refer to Figure 2 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment can be implemented as a training system for a photolithography mask generation model. The system 20 may include a model training device 13 and a model use device 14.

[0039] The model training device 13 may be an electronic device such as a computer, a server, an intelligent robot, or other electronic devices with strong computing capabilities. The model training device 13 is used to train the photolithography mask generation model 15. In the embodiment of the present application, the photolithography mask generation model 15 is a neural network model for generating a predicted mask image, and the model training device 13 may train the photolithography mask generation model 15 in a machine learning manner so that it has better performance.

[0040] The trained photolithography mask generation model 15 can be deployed in the model using device 14 to provide image processing results (i.e., automatic counting results). The model using device 14 can be a terminal device such as a PC (Personal Computer), a tablet computer, a smart phone, a wearable device, an intelligent robot, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, a medical device, etc., or a server, which is not limited in this application.

[0041] In some embodiments, Figure 2As shown, the photolithography mask generation model 15 may include: an encoding network 16 and a decoding network 17. In some embodiments, the encoding network 16 is an encoding network composed of a convolutional neural network. Taking the number of convolutional layers as 8 as an example, after the chip layout is input, it passes through a multi-layer two-dimensional convolutional neural network. These 8 convolutional layers are respectively composed of 8, 16, 32, 64, 128, 256, 512, and 1024 3×3 filters. A batch normalization layer is established after each convolutional layer, and a rectified linear unit (ReLU) is used as an activation function. The final output of the above 8 layers of convolution (dimension is (1,1,1024)) is used as the input of the decoding network 17, which is composed of a multi-layer deconvolutional neural network. Taking the number of deconvolution layers as 8 as an example, the first 7 convolution layers are composed of 1024, 512, 256, 128, 64, 32, and 16 3×3 filters respectively. A batch normalization layer is established after each deconvolution layer, and the Leaky-ReLU is used as the activation function. Finally, the deconvolution layer composed of a 3×3 filter and a sigmoid activation function gives a mask with a dimension of (256, 256, 1) and a value of 0 to 1, and then the mask is binarized to obtain the final predicted mask.

[0042] The embodiments of the present application can be applied to various scenarios, including but not limited to chip design, cloud technology, artificial intelligence, chip manufacturing, smart transportation, assisted driving, etc.

[0043] The technical solution of the present application will be introduced and explained below through several embodiments.

[0044] Please refer to Figure 3 , which shows a flow chart of a method for training a photolithography mask generation model provided by an embodiment of the present application. In this embodiment, the method is applied to the model training device introduced above as an example. The method may include the following steps (301-304):

[0045] Step 301, generating a predicted mask image corresponding to the chip layout through a photolithography mask generation model.

[0046] The photolithography mask generation model is a model that needs to be trained in the embodiments of the present application. In some embodiments, the chip layout is input into the photolithography mask generation model, and the photolithography mask generation model generates a predicted mask image corresponding to the chip layout. Among them, the chip layout can be a labeled chip layout, and the labeled chip layout refers to a chip layout for which a corresponding standard mask image has been generated.

[0047] The chip layout can also be called the integrated circuit layout, which is a planar geometric shape description of the physical situation of the real integrated circuit. The integrated circuit layout is the result of the physical design of the lowest level step in the integrated circuit design. The physical design converts the results of logic synthesis into a layout file through layout and wiring technology. The file contains the shape, area and position information of each hardware unit on the chip. In some embodiments, the type of chip layout can be divided according to the chip level corresponding to the chip layout, such as the connectivity layer, metal wire layer, etc. In some embodiments, the type of chip layout can also be divided according to the application field, such as quantum chips, home appliance chips, mobile phone chips, computer chips, chips for wearable devices, industrial robot chips, etc.

[0048] The standard mask image refers to the mask image obtained by the chip layout through OPC (optical proximity correction). The standard mask image is the annotation of the chip layout with annotations. Optical proximity correction refers to: using a calculation method to correct the pattern on the mask so that the pattern projected on the photoresist meets the design requirements as much as possible. It is a photolithography resolution enhancement technology. In the photolithography process, the pattern on the mask is projected on the photoresist through the exposure system. Due to the imperfection of the optical system and the diffraction effect, the pattern on the photoresist and the pattern on the mask are not completely consistent. If these distortions are not corrected, the electrical performance of the produced circuit may be greatly changed. Optical proximity correction is a technology that adjusts the topological structure of the light-transmitting area pattern on the photolithography mask, or adds a small sub-resolution auxiliary pattern on the mask, so that the imaging result in the photoresist is as close as possible to the mask pattern. OPC technology is also a technology that compensates for the decline in the imaging quality of the photolithography system by changing the amplitude of the light transmitted by the mask. OPC is mainly used in the production process of semiconductor devices.

[0049] Step 302, generating a predicted wafer pattern corresponding to the predicted mask image through a pre-trained wafer pattern generation model, wherein the wafer pattern generation model is a machine learning model constructed based on a neural network.

[0050] In some embodiments, for a pre-trained wafer pattern generation model, a corresponding predicted wafer pattern can be generated based on a mask image. That is, the predicted mask image is input into the pre-trained wafer pattern generation model, and the pre-trained wafer pattern generation model can output a predicted wafer pattern corresponding to the predicted mask image.

[0051] Since the neural network model can be easily accelerated by a processor (such as a CPU (Central Processing Unit)), its calculation time is shorter.

[0052] In some embodiments, a first data set is obtained, the first data set including at least one mask image sample and a standard wafer pattern corresponding to the mask image sample; a wafer pattern generation model is trained using the first data set to obtain a pre-trained wafer pattern generation model.

[0053] In some embodiments, the chip layout sample is subjected to OPC processing to obtain a mask image sample corresponding to the chip layout sample; a standard wafer pattern corresponding to the mask image sample is obtained through a second lithography physical model, and the second lithography physical model is a mathematical physics simulation model based on optical principles; a first data set is constructed based on the mask image sample and the standard wafer pattern having a corresponding relationship. The mask image sample refers to a mask image for which a corresponding standard wafer pattern has been generated.

[0054] In some embodiments, the following loss function may be used to train the wafer pattern generation model:

[0055] L=|Wafer-Wafer pred | 2

[0056] Among them, Wafer represents the wafer pattern obtained by the lithography physical model. pred Represents the wafer pattern predicted by the wafer pattern generation model.

[0057] In some embodiments, the lithography physical model (such as the second lithography physical model) is a mathematical physical simulation model based on optical principles. Optionally, the selected process parameters (such as standard process parameters) and the mask image are first input into the lithography physical model, and the lithography physical model generates a light intensity distribution corresponding to the process parameters and the mask image; and then the light intensity distribution is converted into a wafer pattern corresponding to the process parameters and the mask image through a sigmoid function.

[0058] In some embodiments, the lithography physical model is a partially coherent imaging system Hopkins diffraction lithography physical model. The light intensity distribution I obtained by the lithography physical model for imaging on the wafer is obtained by convolving the mask image with the lithography system kernel function h. The kernel function is obtained by performing singular value decomposition on the cross transfer coefficient of the lithography system (such as a 193-nanometer ring light source). In some embodiments, the lithography physical model is defined as follows:

[0059]

[0060] Among them, h k and ω k They are the kth kernel function and the corresponding weight coefficient after singular value decomposition. Optionally, the first 24 kernel functions and the corresponding weight coefficients after singular value decomposition can be used, that is, K=24.

[0061] In some embodiments, the wafer pattern is obtained by applying the following distribution function to the light intensity distribution imaged on the wafer:

[0062] Z(x,y)=1,I(x,y)≥I th

[0063] Z(x,y)=0,I(x,y) th

[0064] In some embodiments, I th is 0.225. Optionally, I th Other values ​​in the interval [0, 1] may also be taken, and this embodiment of the present application does not specifically limit this.

[0065] Step 303 , determining the training loss according to the predicted mask image and the predicted wafer pattern.

[0066] In some embodiments, for a chip layout, the mask prediction capability of a lithography mask generation model may be measured based on a predicted mask image and a predicted wafer pattern, and a training loss may be determined.

[0067] Step 304, adjusting parameters of the photolithography mask generation model according to the training loss.

[0068] In some embodiments, the parameters of the lithography mask generation model are adjusted based on the training loss, so as to train the lithography mask generation model. The training can be stopped until the training loss meets the condition for stopping training, and a trained lithography mask generation model is obtained. In some embodiments, the condition for stopping training includes at least one of the following: the number of model iterations reaches a set number, the gradient of the training loss is less than a threshold, the model accuracy evaluation index meets the accuracy threshold, the mask quality evaluation index meets the mask quality threshold, and the complexity evaluation index meets the complexity threshold.

[0069] In some embodiments, the embodiments of the present application use a public photolithography mask data set. There are 10,271 chip layouts and corresponding mask images in these two data sets, and the chip layouts meet the 32 nanometer process node and certain design rules. Optionally, the mask images in the above data sets are obtained by a reverse photolithography mask optimization algorithm.

[0070] ​To summarize, the technical solution provided by the embodiment of the present application uses a pre-trained machine learning model based on a neural network to generate a predicted wafer pattern in the process of training the photolithography mask generation model, and determines the training loss based on the generated predicted wafer pattern to update the parameters of the photolithography mask generation model. Since the predicted wafer pattern is generated by the neural network model, compared with the use of a photolithography physical model to generate the predicted wafer pattern, less calculation amount is required and the calculation efficiency is higher. Therefore, the embodiment of the present application saves the time required to generate the predicted wafer pattern, thereby improving the training efficiency of the photolithography mask generation model.

[0071] It should be noted that, on the one hand, since the machine learning model based on neural network used to predict wafer patterns is pre-trained, the training process of the photolithography mask generation model does not include the training process of the wafer pattern generation model. This saves the time required to generate the predicted wafer pattern, and then saves the time required to train the photolithography mask generation model, thereby improving the training efficiency of the photolithography mask generation model. On the other hand, to train the wafer pattern generation model, it is only necessary to use the lithography physical model to generate standard wafer patterns corresponding to a small number of mask image samples. After that, the pre-trained wafer pattern generation model is used to participate in the process of the lithography mask generation model, and there is no need for the participation of the lithography physical model. If the lithography physical model is used to generate the predicted wafer pattern, since the predicted mask images generated by the lithography mask generation model in each round are different, the lithography physical model needs to generate corresponding wafer patterns for the predicted mask images generated by the lithography physical model in each round. In this case, the number of wafer patterns that need to be generated based on the lithography physical model will be significantly increased, thereby increasing the time required to train the lithography mask generation model and reducing the training efficiency of the lithography mask generation model.

[0072] For example, taking the case where the labeled data set used to train the photolithography mask generation model includes 10,000 labeled chip layouts and the training rounds of the photolithography mask generation model are 100 (i.e., 100 iterations), if the photolithography physical model is used to generate the predicted wafer pattern, for each chip layout, a predicted mask image will be generated based on the photolithography mask generation model in each round, and each predicted mask image needs to generate a wafer pattern based on the photolithography physical model. Therefore, the photolithography physical model needs to be used to generate 10,000×100 wafer patterns; if The wafer pattern generation model is first pre-trained, and then the pre-trained wafer pattern generation model is used to generate the predicted wafer pattern corresponding to the predicted mask image. In the training process of the wafer pattern generation model, the corresponding annotation data set also includes 10,000 annotated data, that is, the annotation data set used for training the wafer pattern generation model includes 10,000 annotated mask images, that is, at most, only the lithography physical model is needed to generate the wafer patterns corresponding to these 10,000 mask images, and the pre-trained wafer pattern generation model can be obtained. Obviously, the number of wafer patterns that need to be generated by the lithography physical generation model in the method of using the pre-trained wafer pattern generation model to generate the predicted wafer pattern corresponding to the predicted mask image and training the lithography mask generation model based on this is much smaller than the number of wafer patterns that need to be generated by the lithography physical model in the method of using the lithography physical model to generate the predicted wafer pattern (that is, 10,000 is much smaller than 10,000×100), which saves the time required to generate the predicted wafer pattern, thereby improving the training efficiency of the lithography mask generation model.

[0073] In some possible implementations, such as Figure 4 As shown, the above step 303 also includes the following steps (3031-3033):

[0074] Step 3031, calculating a model accuracy evaluation index based on the difference between the predicted mask image and the standard mask image corresponding to the chip layout, where the model accuracy evaluation index is used to characterize the mask prediction accuracy of the lithography mask generation model.

[0075] In some embodiments, for a chip layout input into a photolithography mask generation model, the mask prediction accuracy of the photolithography mask generation model can be measured by calculating the difference between the predicted mask image and a high-quality standard mask image, that is, the mask prediction capability of the photolithography mask generation model can be measured. The smaller the difference between the predicted mask image and the standard mask image, the higher the mask prediction accuracy of the photolithography mask generation model; conversely, the larger the difference between the predicted mask image and the standard mask image, the lower the mask prediction accuracy of the photolithography mask generation model.

[0076] Step 3032, calculating a mask quality evaluation index based on the difference between the predicted wafer pattern and the chip layout, where the mask quality evaluation index is used to characterize the quality of the predicted mask image.

[0077] In some embodiments, the smaller the difference between the predicted wafer pattern and the corresponding chip layout, the higher the quality of the corresponding predicted mask image; conversely, the larger the difference between the predicted wafer pattern and the corresponding chip layout, the lower the quality of the corresponding predicted mask image.

[0078] Step 3033: Determine the training loss based on the model accuracy evaluation index and the mask quality evaluation index.

[0079] In some embodiments, the numerical values ​​corresponding to the model accuracy evaluation index and the mask quality evaluation index are summed (such as weighted summation) to obtain the training loss.

[0080] In some embodiments, Figure 5 As shown, the method further includes the following steps (3034-3035):

[0081] Step 3034, obtaining a complexity evaluation index corresponding to the predicted mask image, where the complexity evaluation index is used to characterize the complexity of the predicted mask image.

[0082] By adding a complexity evaluation index to the training loss, the lithography mask generation model can tend to generate a predicted mask image with low complexity, thereby reducing the complexity of the predicted mask image generated by the lithography mask generation model and improving the manufacturability of the predicted mask image.

[0083] In some embodiments, if there are many tiny structures (such as holes, protrusions, serrations, etc.) that are easily exposed to the wafer in the predicted mask image, the complexity of the predicted mask image is higher; if there are no or fewer tiny structures (such as holes, protrusions, serrations, etc.) that are easily exposed to the wafer in the predicted mask image, the complexity of the predicted mask image is lower.

[0084] In some embodiments, the method further comprises the following steps (1-2):

[0085] 1. A first lithography physical model is used to generate a plurality of wafer patterns corresponding to a predicted mask image based on a plurality of different process parameters. The first lithography physical model is a mathematical and physical simulation model based on optical principles.

[0086] In some embodiments, a predicted mask image is generated corresponding to a wafer pattern of a plurality of different process parameters, and the types of process parameters are two or more. Among them, the process parameters include exposure, defocus, etc. Optionally, the types of process parameters and the specific values ​​of the process parameters can be set by relevant technicians according to actual conditions, and the embodiments of the present application do not specifically limit this.

[0087] In some embodiments, a first photolithography physical model is used to generate a first wafer pattern corresponding to a predicted mask image based on a first process parameter; and a second wafer pattern corresponding to the predicted mask image is generated based on a second process parameter using the first photolithography physical model; wherein the exposure amount of the first process parameter is less than the exposure amount of the second process parameter, and the defocus of the first process parameter is less than the defocus of the second process parameter.

[0088] 2. Determine the complexity evaluation index corresponding to the predicted mask image based on the differences between multiple wafer patterns.

[0089] The simpler the predicted mask image (i.e., the lower the complexity), the smaller the difference between the wafer patterns obtained under different process parameter conditions; the more complex the predicted mask image, the greater the difference between the wafer patterns obtained under different process parameter conditions. Therefore, the smaller the difference between multiple wafer patterns, the lower the complexity of the corresponding predicted mask image (i.e., the simpler); the greater the difference between multiple wafer patterns, the more complex the corresponding predicted mask image. Therefore, the complexity of the predicted mask image can be conveniently and intuitively measured by the difference between the wafer patterns obtained under different process parameter conditions. For each predicted mask image, a wafer pattern corresponding to the predicted mask image needs to be generated based on each set of process parameters. The process parameters can have 2 groups (i.e., each predicted mask image corresponds to 2 wafer patterns), 3 groups (i.e., each predicted mask image corresponds to 3 wafer patterns), 4 groups (i.e., each predicted mask image corresponds to 4 wafer patterns), 5 groups (i.e., each predicted mask image corresponds to 5 wafer patterns), etc., and the embodiments of the present application do not specifically limit this.

[0090] In some embodiments, the complexity evaluation index corresponding to the predicted mask image is calculated based on the difference between the first wafer pattern and the second wafer pattern. That is, for each predicted mask image, only two wafer patterns corresponding to different process parameters are needed to calculate its complexity evaluation index. Compared with using 3, 4, 5 or more wafer patterns to calculate the complexity evaluation index, the amount of calculation and time required to calculate the complexity evaluation index are reduced, thereby improving the training efficiency of the lithography mask generation model.

[0091] In some embodiments, Figure 6 As shown, the complexity evaluation index corresponding to the predicted mask image is generated through the pre-trained complexity evaluation model 18; wherein the complexity evaluation model 18 is a machine learning model constructed based on a neural network. That is, after the mask image is input into the complexity evaluation model, the complexity evaluation model can output the complexity evaluation index corresponding to the mask image.

[0092] In some embodiments, a complexity evaluation index corresponding to the predicted mask image is directly outputted by the complexity evaluation model. The specific method includes: obtaining a second data set, the second data set including at least one mask image sample and a standard complexity evaluation index corresponding to the mask image sample; and training the complexity evaluation model using the second data set to obtain a pre-trained complexity evaluation model.

[0093] Similar to using a pre-trained wafer pattern generation model to generate a predicted wafer pattern, on the one hand, the complexity evaluation index corresponding to the predicted mask image is directly output through the complexity evaluation model. In this way, during the training process of the lithography physical model, there is no need to generate a mask image based on the lithography physical model, thereby saving computing resources and computing time, and further improving the training efficiency of the lithography mask generation model. On the other hand, if a lithography physical model is used to generate a predicted wafer pattern corresponding to a predicted mask image, and a complexity evaluation index of the predicted mask image is determined based on the predicted wafer pattern, since the predicted mask image generated by the lithography mask generation model in each round is different, the lithography physical model needs to generate a corresponding wafer pattern for the predicted mask image generated by the lithography physical model in each round. In this case, the number of wafer patterns that need to be generated based on the lithography physical model will be significantly increased, thereby increasing the time required for training the lithography mask generation model and reducing the training efficiency of the lithography mask generation model. To train a complexity evaluation model, it is only necessary to use the lithography physical model to generate standard wafer patterns corresponding to a small number of mask image samples. After that, the pre-trained complexity evaluation model is used to participate in the process of the lithography mask generation model. There is no need for the participation of the lithography physical model, which saves the time required to generate wafer patterns and improves the training efficiency of the lithography mask generation model.

[0094] In some embodiments, a plurality of wafer patterns (such as a first wafer pattern and a second wafer pattern) corresponding to the predicted mask image under different process parameter conditions are generated by a wafer pattern generation model, and then a complexity evaluation index corresponding to the predicted mask image is determined based on the differences between the plurality of wafer patterns. In this way, compared to using a lithography physical model to generate a plurality of wafer patterns corresponding to the predicted mask image and determining the complexity evaluation index of the predicted mask image based on the plurality of wafer patterns, the time required to generate the wafer pattern can also be saved, thereby improving the training efficiency of the lithography mask generation model; however, compared to using an end-to-end complexity index generation model, the corresponding complexity evaluation index can be directly output after inputting the predicted mask image. Since the wafer pattern still needs to be generated, the time required to determine the complexity evaluation index corresponding to the predicted mask image will be increased.

[0095] In some embodiments, the wafer pattern generation model and the complexity evaluation model are both machine learning models based on neural networks. The wafer pattern generation model and the complexity evaluation model share the same feature extraction network. The wafer pattern generation model includes a feature extraction network and a wafer pattern prediction network. The complexity evaluation model includes a feature extraction network and a complexity evaluation network. In some embodiments, the feature information corresponding to the predicted mask image obtained by the feature extraction network is processed through the complexity evaluation network to obtain a complexity evaluation index corresponding to the predicted mask image.

[0096] In some embodiments, the wafer pattern generation model and the complexity evaluation model may share a coding network, or share a portion of the coding network, and the shared portion of the coding network is the same feature extraction network as described above. For the predicted mask image generated by the lithography mask generation model, the wafer pattern generation model and the complexity evaluation model may first be used to extract features using the same feature extraction network to obtain common features, and then the common features are respectively input into the wafer pattern prediction network and the complexity evaluation network, and the wafer pattern prediction network outputs a predicted wafer pattern of the predicted mask image, and the complexity evaluation network outputs a complexity evaluation index corresponding to the predicted mask image.

[0097] In this way, the wafer pattern generation model and the complexity evaluation model reduce the storage space occupied by the two models by sharing the feature extraction network, and save the total processing resources and time required for the operation of the two models, thereby further improving the training efficiency of the lithography mask generation model.

[0098] Step 3035, determining the training loss according to the model accuracy evaluation index, the mask quality evaluation index and the complexity evaluation index.

[0099] In some embodiments, the model accuracy evaluation index, the mask quality evaluation index, and the complexity evaluation index are summed (such as weighted summation) to obtain the training loss.

[0100] In some embodiments, the matrices corresponding to the first wafer pattern and the second wafer pattern are subtracted to obtain a first difference matrix; the determinant corresponding to the first difference matrix is ​​squared to obtain a complexity evaluation index corresponding to the predicted mask image.

[0101] In some embodiments, the calculation of training loss can refer to the following formula:

[0102] L=L fit +α*L target-wafer +β*L complex

[0103] =|Mask pred -Mask| 2 +α*|Wafer pred-Target| 2 +β

[0104] *|Lith(Mask pred ,P min )-Lith(Mask pred ,P max )| 2

[0105] Among them, L represents the training loss, L fit Represents the model accuracy evaluation index, L target-wafer Represents the mask quality evaluation index, L complex represents the complexity evaluation index corresponding to the predicted mask image, α and β are adjustable parameters; Mask represents the standard mask image, Mask pred Represents the predicted mask image; Wafer pred It represents the predicted wafer pattern and Target represents the chip layout.

[0106] Among them, Lith (Mask pred ,P min ) represents a wafer pattern (such as the first wafer pattern) obtained under low exposure and low defocus process conditions. In some embodiments, low exposure refers to 98% of normal exposure, and low defocus refers to 25nm defocus. Lith(Mask pred ,P max ) represents a wafer pattern (such as a second wafer pattern) obtained under high exposure and no defocus process conditions. In some embodiments, high exposure refers to 102% of normal exposure. Under low exposure and low defocus process conditions, many tiny structures of the mask image (such as holes, protrusions, sawtooth, etc.) will not be exposed on the wafer, that is, the tiny structures in the mask image will not or rarely appear on the first wafer pattern. Under high exposure and no defocus process conditions, if there are many tiny structures in the mask image, these tiny structures will be exposed on the wafer, that is, most or all of the tiny structures in the mask image will appear on the second wafer pattern. Therefore, Lith (Mask pred ,P min ) and Lith(Mask pred ,P max ), it means that many tiny structures of the predicted mask image will not be generated, that is, the complexity of the predicted mask image is also lower.

[0107] In some implementations, the specific values ​​corresponding to the low exposure, low defocus, and high exposure are not limited to the above examples, and can be set by relevant technical personnel according to actual conditions. The embodiments of the present application do not make specific limitations on this.

[0108] In some embodiments, the training loss is minimized by a gradient descent algorithm, and the gradient of the training loss is defined as follows:

[0109]

[0110]

[0111]

[0112]

[0113]

[0114] Among them, w represents the neuron weight in the photolithography mask generation model, θ Z The value can be 50, I th The value can be 0.225, and ω k denote the kernel function of the kth defocus lithography system and the corresponding weight coefficient respectively. K can be 24. defocus * is the kernel function H of the defocus lithography system defocus The complex conjugate of Yes H defocus Flip 180° to get represents the matrix convolution operation, ⊙ represents the multiplication of the corresponding elements of the matrix,

[0115] where θ M It can be 4.

[0116] In the above implementation, the training loss is determined by the model accuracy evaluation index and the mask quality evaluation index, and the lithography mask generation model is trained based on the training loss, which can improve the model accuracy of the lithography mask generation model and the quality of the generated predicted mask image.

[0117] In addition, by adding a complexity evaluation index to the training loss, the lithography mask generation model can tend to generate a predicted mask image with low complexity, thereby reducing the complexity of the predicted mask image generated by the lithography mask generation model and improving the manufacturability of the predicted mask image.

[0118] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0119] Please refer to Figure 7, which shows a block diagram of a training device for a photolithography mask generation model provided by an embodiment of the present application. The device has the function of implementing the above-mentioned training method example of the photolithography mask generation model, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the model training device introduced above, and can also be set on the model training device. The device 700 may include: a mask generation module 710, a pattern generation module 720, a loss determination module 730 and a parameter adjustment module 740.

[0120] The mask generation module 710 is used to generate a predicted mask image corresponding to the chip layout through a photolithography mask generation model.

[0121] The pattern generation module 720 is used to generate a predicted wafer pattern corresponding to the predicted mask image through a pre-trained wafer pattern generation model, and the wafer pattern generation model is a machine learning model constructed based on a neural network.

[0122] The loss determination module 730 is used to determine the training loss according to the predicted mask image and the predicted wafer pattern.

[0123] The parameter adjustment module 740 is used to adjust the parameters of the photolithography mask generation model according to the training loss.

[0124] In some embodiments, Figure 8 As shown, the loss determination module 730 includes: an indicator calculation submodule 731 and a loss determination submodule 732.

[0125] The index calculation submodule 731 is used to calculate a model accuracy evaluation index according to the difference between the predicted mask image and the standard mask image corresponding to the chip layout, and the model accuracy evaluation index is used to characterize the mask prediction accuracy of the lithography mask generation model.

[0126] The index calculation submodule 731 is further used to calculate a mask quality evaluation index according to the difference between the predicted wafer pattern and the chip layout, and the mask quality evaluation index is used to characterize the quality of the predicted mask image.

[0127] The loss determination submodule 732 is used to determine the training loss according to the model accuracy evaluation index and the mask quality evaluation index.

[0128] In some embodiments, Figure 8 As shown, the device 700 also includes: an indicator acquisition module 750.

[0129] The index acquisition module 750 is used to acquire a complexity evaluation index corresponding to the predicted mask image, where the complexity evaluation index is used to characterize the complexity of the predicted mask image.

[0130] The loss determination submodule 732 is used to determine the training loss according to the model accuracy evaluation index, the mask quality evaluation index and the complexity evaluation index.

[0131] In some embodiments, Figure 8 As shown, the indicator acquisition module 750 includes: a pattern generation submodule 751.

[0132] The pattern generation submodule 751 is used to generate multiple wafer patterns corresponding to the predicted mask image based on a plurality of different process parameters using a first photolithography physical model; wherein the first photolithography physical model is a mathematical physics simulation model based on optical principles.

[0133] The index calculation submodule 731 is used to determine the complexity evaluation index corresponding to the predicted mask image according to the differences between the multiple wafer patterns.

[0134] In some embodiments, Figure 8 As shown, the pattern generating submodule 751 is used to:

[0135] Generate a first wafer pattern corresponding to the predicted mask image based on the first process parameter using the first lithography physical model;

[0136] The first lithography physical model is used to generate a second wafer pattern corresponding to the predicted mask image based on the second process parameter; wherein the exposure amount of the first process parameter is less than the exposure amount of the second process parameter, and the defocus of the first process parameter is less than the defocus of the second process parameter.

[0137] The index calculation submodule 731 is further used to calculate the complexity evaluation index corresponding to the predicted mask image according to the difference between the first wafer pattern and the second wafer pattern.

[0138] In some embodiments, Figure 8 As shown, the indicator calculation submodule 731 is used to:

[0139] Subtracting the matrices corresponding to the first wafer pattern and the second wafer pattern respectively to obtain a first difference matrix;

[0140] The determinant corresponding to the first difference matrix is ​​squared to obtain a complexity evaluation index corresponding to the predicted mask image.

[0141] In some embodiments, Figure 8As shown, the indicator acquisition module 750 is used to generate a complexity evaluation indicator corresponding to the predicted mask image through a pre-trained complexity evaluation model; wherein the complexity evaluation model is a machine learning model constructed based on a neural network.

[0142] In some embodiments, Figure 8 As shown, the device 700 also includes: a data set acquisition module 760 and a model training module 770.

[0143] The data set acquisition module 760 is used to acquire a second data set, where the second data set includes at least one mask image sample and a standard complexity evaluation index corresponding to the mask image sample.

[0144] The model training module 770 is used to train the complexity evaluation model using the second data set to obtain the pre-trained complexity evaluation model.

[0145] In some embodiments, the wafer pattern generation model and the complexity evaluation model share the same feature extraction network, the wafer pattern generation model includes the feature extraction network and the wafer pattern prediction network, and the complexity evaluation model includes the feature extraction network and the complexity evaluation network; Figure 8 As shown, the index acquisition module 750 is used to process the feature information corresponding to the predicted mask image obtained by the feature extraction network through the complexity evaluation network to obtain the complexity evaluation index corresponding to the predicted mask image.

[0146] In some embodiments, Figure 8 As shown, the data set acquisition module 760 is further used to acquire a first data set, where the first data set includes at least one mask image sample and a standard wafer pattern corresponding to the mask image sample.

[0147] The model training module 770 is further used to train the wafer pattern generation model using the first data set to obtain the pre-trained wafer pattern generation model.

[0148] In some embodiments, Figure 8 As shown, the data set acquisition module 760 is used to:

[0149] Subjecting the chip layout sample to optical proximity correction (OPC) processing to obtain a mask image sample corresponding to the chip layout sample;

[0150] Obtaining a standard wafer pattern corresponding to the mask image sample through a second photolithography physical model, wherein the second photolithography physical model is a mathematical physics simulation model based on optical principles;

[0151] The first data set is constructed according to the mask image sample and the standard wafer pattern having a corresponding relationship.

[0152] To summarize, the technical solution provided by the embodiment of the present application uses a pre-trained machine learning model based on a neural network to generate a predicted wafer pattern in the process of training the photolithography mask generation model, and determines the training loss based on the generated predicted wafer pattern to update the parameters of the photolithography mask generation model. Since the predicted wafer pattern is generated by the neural network model, compared with the use of a photolithography physical model to generate the predicted wafer pattern, less calculation amount is required and the calculation efficiency is higher. Therefore, the embodiment of the present application saves the time required to generate the predicted wafer pattern, thereby improving the training efficiency of the photolithography mask generation model.

[0153] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0154] Please refer to Fig. 9 , which shows a block diagram of a computer device provided in one embodiment of the present application. The computer device is used to implement the training method of the photolithography mask generation model provided in the above embodiment. Specifically:

[0155] The computer device 900 includes a CPU 901, a system memory 904 including a RAM (Random Access Memory) 902 and a ROM (Read-Only Memory) 903, and a system bus 905 connecting the system memory 904 and the central processing unit 901. The computer device 900 also includes a basic I / O (Input / Output) system 906 that helps transmit information between various components in the computer, and a large-capacity storage device 907 for storing an operating system 913, application programs 914, and other program modules 915.

[0156] The basic input / output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse and a keyboard for user inputting information. The display 908 and the input device 909 are connected to the central processing unit 901 through an input / output controller 910 connected to the system bus 905. The basic input / output system 906 may also include an input / output controller 910 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 910 also provides output to a display screen, a printer, or other types of output devices.

[0157] The mass storage device 907 is connected to the central processing unit 901 via a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer readable medium provide non-volatile storage for the computer device 900. That is, the mass storage device 907 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.

[0158] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state memory, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 904 and mass storage device 907 can be collectively referred to as memory.

[0159] According to various embodiments of the present application, the computer device 900 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 900 can be connected to the network 912 through the network interface unit 911 connected to the system bus 905, or the network interface unit 911 can be used to connect to other types of networks or remote computer systems (not shown).

[0160] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein at least one program is stored in the storage medium, and when the at least one program is executed by a processor, the training method of the above-mentioned lithography mask generation model is implemented.

[0161] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0162] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned training method for the photolithography mask generation model.

[0163] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0164] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for training a photolithography mask generation model, characterized in that: The method comprises: Generate a predicted mask image corresponding to the chip layout through a photolithography mask generation model; Generate a predicted wafer pattern corresponding to the predicted mask image through a pre-trained wafer pattern generation model, wherein the wafer pattern generation model is a machine learning model constructed based on a neural network; wherein the wafer pattern generation model is trained using a first data set, wherein the first data set includes at least one mask image sample and a standard wafer pattern corresponding to the mask image sample; the first data set is obtained by: subjecting a chip layout sample to optical proximity correction (OPC) processing to obtain a mask image sample corresponding to the chip layout sample; obtain a standard wafer pattern corresponding to the mask image sample through a second lithography physical model, wherein the second lithography physical model is a mathematical physics simulation model based on optical principles; construct the first data set based on the mask image sample and the standard wafer pattern having a corresponding relationship; Calculating a model accuracy evaluation index according to a difference between the predicted mask image and a standard mask image corresponding to the chip layout, wherein the model accuracy evaluation index is used to characterize the mask prediction accuracy of the photolithography mask generation model; Calculating a mask quality evaluation index according to a difference between the predicted wafer pattern and the chip layout, wherein the mask quality evaluation index is used to characterize the quality of the predicted mask image; Determining a training loss according to the model accuracy evaluation index and the mask quality evaluation index; Parameters of the lithography mask generation model are adjusted according to the training loss.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining a complexity evaluation index corresponding to the predicted mask image, where the complexity evaluation index is used to characterize the complexity of the predicted mask image; The determining the training loss according to the model accuracy evaluation index and the mask quality evaluation index includes: The training loss is determined according to the model accuracy evaluation index, the mask quality evaluation index and the complexity evaluation index.

3. The method according to claim 2, characterized in that The obtaining of the complexity evaluation index corresponding to the predicted mask image includes: A first photolithography physical model is used to generate a plurality of wafer patterns corresponding to the predicted mask image based on a plurality of different process parameters; wherein the first photolithography physical model is a mathematical physics simulation model based on optical principles; According to the differences between the multiple wafer patterns, a complexity evaluation index corresponding to the predicted mask image is determined.

4. The method according to claim 3, characterized in that The method of using the first lithography physical model to generate a plurality of wafer patterns corresponding to the predicted mask image based on a plurality of different process parameters includes: Generate a first wafer pattern corresponding to the predicted mask image based on the first process parameter using the first lithography physical model; The first lithography physical model is used to generate a second wafer pattern corresponding to the predicted mask image based on a second process parameter; wherein an exposure amount of the first process parameter is less than an exposure amount of the second process parameter, and a defocus of the first process parameter is less than a defocus of the second process parameter; The step of determining the complexity evaluation index corresponding to the predicted mask image according to the differences between the plurality of wafer patterns comprises: Subtracting the matrices corresponding to the first wafer pattern and the second wafer pattern respectively to obtain a first difference matrix; The determinant corresponding to the first difference matrix is ​​squared to obtain a complexity evaluation index corresponding to the predicted mask image.

5. The method according to claim 2, characterized in that: The obtaining of the complexity evaluation index corresponding to the predicted mask image includes: A complexity evaluation index corresponding to the predicted mask image is generated through a pre-trained complexity evaluation model; wherein the complexity evaluation model is a machine learning model constructed based on a neural network.

6. The method according to claim 5, characterized in that The method further comprises: Acquire a second data set, where the second data set includes at least one mask image sample and a standard complexity evaluation index corresponding to the mask image sample; The complexity evaluation model is trained using the second data set to obtain the pre-trained complexity evaluation model.

7. The method according to claim 5, characterized in that The wafer pattern generation model and the complexity evaluation model share the same feature extraction network, the wafer pattern generation model includes the feature extraction network and the wafer pattern prediction network, and the complexity evaluation model includes the feature extraction network and the complexity evaluation network; The complexity evaluation model completed through pre-training generates a complexity evaluation index corresponding to the predicted mask image, including: The feature information corresponding to the predicted mask image obtained by the feature extraction network is processed through the complexity evaluation network to obtain a complexity evaluation index corresponding to the predicted mask image.

8. A training device for a photolithography mask generation model, characterized in that: The device comprises: The mask generation module is used to generate a predicted mask image corresponding to the chip layout through a photolithography mask generation model; A pattern generation module, used to generate a predicted wafer pattern corresponding to the predicted mask image through a pre-trained wafer pattern generation model, wherein the wafer pattern generation model is a machine learning model constructed based on a neural network; wherein the wafer pattern generation model is trained using a first data set, wherein the first data set includes at least one mask image sample and a standard wafer pattern corresponding to the mask image sample; wherein the first data set is obtained by: subjecting a chip layout sample to optical proximity correction (OPC) processing to obtain a mask image sample corresponding to the chip layout sample; wherein the standard wafer pattern corresponding to the mask image sample is obtained through a second lithography physical model, wherein the second lithography physical model is a mathematical physics simulation model based on optical principles; wherein the first data set is constructed based on the mask image sample and the standard wafer pattern having a corresponding relationship; Loss determination module, indicator calculation submodule and loss determination submodule; The index calculation submodule is used to calculate a model accuracy evaluation index according to the difference between the predicted mask image and the standard mask image corresponding to the chip layout, and the model accuracy evaluation index is used to characterize the mask prediction accuracy of the photolithography mask generation model; The index calculation submodule is used to calculate a mask quality evaluation index according to the difference between the predicted wafer pattern and the chip layout, and the mask quality evaluation index is used to characterize the quality of the predicted mask image; The loss determination submodule is used to determine the training loss according to the model accuracy evaluation index and the mask quality evaluation index; A parameter adjustment module is used to adjust the parameters of the lithography mask generation model according to the training loss.

9. The device according to claim 8, characterized in that The device also includes: An index acquisition module, used for acquiring a complexity evaluation index corresponding to the predicted mask image, wherein the complexity evaluation index is used for characterizing the complexity of the predicted mask image; The loss determination submodule is used to determine the training loss according to the model accuracy evaluation index, the mask quality evaluation index and the complexity evaluation index.

10. The device according to claim 9, characterized in that The indicator acquisition module includes a pattern generation submodule; The pattern generation submodule is used to generate a plurality of wafer patterns corresponding to the predicted mask image based on a plurality of different process parameters using a first photolithography physical model; wherein the first photolithography physical model is a mathematical physics simulation model based on optical principles; The index calculation submodule is used to determine the complexity evaluation index corresponding to the predicted mask image according to the differences between the multiple wafer patterns.

11. The device according to claim 10, characterized in that The pattern generation submodule is used to generate a first wafer pattern corresponding to the predicted mask image based on the first process parameter by using the first lithography physical model; The first lithography physical model is used to generate a second wafer pattern corresponding to the predicted mask image based on a second process parameter; wherein an exposure amount of the first process parameter is less than an exposure amount of the second process parameter, and a defocus of the first process parameter is less than a defocus of the second process parameter; The index calculation submodule is also used to subtract the matrices corresponding to the first wafer pattern and the second wafer pattern respectively to obtain a first difference matrix; square the determinant corresponding to the first difference matrix to obtain a complexity evaluation index corresponding to the predicted mask image.

12. The device according to claim 9, characterized in that The indicator acquisition module is used to: A complexity evaluation index corresponding to the predicted mask image is generated through a pre-trained complexity evaluation model; wherein the complexity evaluation model is a machine learning model constructed based on a neural network.

13. The device according to claim 12, characterized in that The device also includes: a data set acquisition module and a model training module; The data set acquisition module is used to acquire a second data set, wherein the second data set includes at least one mask image sample and a standard complexity evaluation index corresponding to the mask image sample; The model training module is used to train the complexity evaluation model using the second data set to obtain the pre-trained complexity evaluation model.

14. The device according to claim 12, characterized in that The wafer pattern generation model and the complexity evaluation model share the same feature extraction network, the wafer pattern generation model includes the feature extraction network and the wafer pattern prediction network, and the complexity evaluation model includes the feature extraction network and the complexity evaluation network; The index acquisition module is used to process the feature information corresponding to the predicted mask image obtained by the feature extraction network through the complexity evaluation network to obtain the complexity evaluation index corresponding to the predicted mask image.

15. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the training method for a photolithography mask generation model as described in any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the method for training a photolithography mask generation model as described in any one of claims 1 to 7.

17. A computer program product, characterized in that The computer program product comprises a computer program, the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the training method for a lithography mask generation model as claimed in any one of claims 1 to 7.