Sample inspection method and system

The computerized system compares the inspection image of the semiconductor device with the reference image, removes noise, and generates modified tiles, which solves the problem of insufficient defect detection sensitivity in the existing technology and achieves higher detection accuracy and stability. sex.

CN111443094BActive Publication Date: 2024-10-11APPL MATERIALS ISRAEL LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911402710.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-01-17
Filing Date
2019-12-30
Publication Date
2024-10-11
Estimated Expiration
2039-12-30

AI Technical Summary

Technical Problem

The existing technology has insufficient sensitivity in defect detection of semiconductor devices and is difficult to effectively suppress noise interference, resulting in unstable detection results.

Method used

Using a computerized system, inspection tools capture inspection images of samples and compare them with reference images, generate defect candidate distribution maps, extract image tiles, estimate and remove noise from intensity changes and spatial anomalies, and generate modified inspection image tiles , for further defect detection.

Benefits of technology

The sensitivity of defect detection is improved, noise interference is reduced, and the accuracy and reliability of detection results are significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111443094B_ABST
    Figure CN111443094B_ABST
Patent Text Reader

Abstract

A system and method for performing inspection on a sample are provided, the method comprising: obtaining an inspection image of a tube core and generating a defect map using one or more reference images; selecting multiple defect candidates from the defect map; and for each defect candidate, generating a corresponding modified inspection image block, comprising: extracting image blocks around the defect candidate from the inspection image and each reference image respectively; and modifying the inspection image block, comprising: estimating noise representing intensity changes on the inspection image block, the noise comprising a first type of noise representing a polynomial relationship between the inspection image block and the reference image block, and a second type of noise representing spatial anomalies in the inspection image block; and removing at least one of the first type of noise and the second type of noise from the inspection image block based on the estimated noise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The subject matter of the present disclosure relates generally to the field of specimen inspection, and more particularly, to methods and systems for defect detection on a specimen. Background Art

[0002] The current demand for high density and performance associated with ultra-large scale integration of manufactured devices requires sub-micron features, increased transistor and circuit speeds, and improved reliability. As semiconductor processes develop, pattern sizes (such as line widths) and other types of critical dimensions continue to shrink. This is also known as design rules. This demand requires the formation of device features with high accuracy and uniformity, which in turn necessitates monitoring of the manufacturing process, including frequent and detailed inspections of the device while it is still in the form of a semiconductor wafer (including finished devices and / or unfinished devices).

[0003] The term "sample" as used in this specification should be broadly interpreted to cover any kind of wafers, masks and other structures, combinations and / or portions thereof used to manufacture semiconductor integrated circuits, magnetic heads, flat panel displays and other semiconductor manufactured articles.

[0004] Unless otherwise specifically stated, the term "inspection" used in this specification should be broadly interpreted as covering any kind of detection and / or classification of defects in an object. Inspection is provided by using, for example, a non-destructive inspection tool during or after the manufacture of the object to be inspected. As a non-limiting example, the inspection process may include scanning (in a single scan or multiple scans), sampling, inspection, measurement, classification and / or other operations provided with respect to an object or a portion of an object using one or more inspection tools. Similarly, the inspection may be provided before the manufacture of the object to be inspected and may include, for example, the generation of an inspection plan. It will be noted that, unless otherwise specifically stated, the term "inspection" or derivatives of "inspection" used in this specification are not limited to the size of the inspection area, the speed or resolution of the scan, or the type of inspection tool. As a non-limiting example, a variety of non-destructive inspection tools include optical tools, scanning electron microscopes, atomic force microscopes, and the like.

[0005] The inspection process may include multiple inspection steps. During the manufacturing process, the inspection step may be performed multiple times, such as after manufacturing or processing certain layers, etc. Additionally or alternatively, each inspection step may be repeated multiple times, such as for different wafer positions or for the same wafer position under different inspection settings.

[0006] As a non-limiting example, runtime inspection can employ a two-step process, for example, first inspecting the sample and then checking the sampled defects. During the inspection step, the surface of the sample or a portion of the sample (e.g., an area of ​​interest, a hot spot, etc.) is typically scanned at a relatively high speed and / or low resolution. The captured inspection image is analyzed to detect defects and obtain the location and other inspection properties of the defects. At the inspection step, images of at least some of the defects detected during the inspection phase are typically captured at a relatively low speed and / or high resolution, thereby enabling classification and optionally other analysis of at least some of the defects. In some cases, both stages can be implemented by the same inspection tool, and in some other cases, the two stages are implemented by different inspection tools.

[0007] Inspection generally involves generating some output (e.g., an image, a signal, etc.) for a wafer by directing light or electrons to the wafer and detecting the light or electrons from the wafer. Once the output has been generated, defect detection is typically performed by applying defect detection methods and / or algorithms to the output. Most commonly, the inspection goal is to provide high sensitivity to defects of interest while suppressing detection of hazards and noise on the wafer.

[0008] What is needed in the art is to increase the sensitivity of defect detection. Summary of the invention

[0009] According to certain aspects of the subject matter of the present disclosure, a computerized system for sample inspection is provided, the system comprising: an inspection tool, the inspection tool being configured to capture an inspection image of a die of the sample and to generate a defect map indicating a distribution of defect candidates on the inspection image using one or more reference images; and a processing unit, the processing unit being operably connected to the inspection tool, the processing unit comprising a memory and a processor operably coupled to the memory, the processing unit being configured to: select a plurality of defect candidates from the defect map according to predefined criteria; and for each of the plurality of defect candidates, generate a corresponding modified inspection image tile, thereby producing a plurality of modified inspection image tiles corresponding to the plurality of defect candidates, wherein the generating comprises, for a given defect candidate among the plurality of defect candidates: extracting, from the inspection image and each of the one or more reference images, the defect candidates in the inspection image; The method comprises: estimating, using the set of image patches, a noise representing intensity variation on the inspection image patch, the noise comprising a first type of noise representing a polynomial relationship between pixel values ​​of the inspection image patch and corresponding pixel values ​​in at least some of the reference image patches, and a second type of noise representing the presence of spatial anomalies in the inspection image patch relative to at least some of the reference image patches; and removing at least one of the first type of noise and the second type of noise from the inspection image patch based on the estimated noise; wherein the modified inspection image patch and / or the estimated noise may be used for further inspection of the sample.

[0010] In addition to the above features, the system according to this aspect of the disclosed subject matter may include one or more of the features (i) to (ix) listed below in any desired combination or permutation that is technically possible.

[0011] (i) The processing unit may also be configured to perform defect detection on the sample using the plurality of modified inspection image patches relative to the one or more reference image patches, thereby generating an updated defect map.

[0012] (ii) The processing unit may be further configured to perform defect candidate clustering using a set of attributes characterizing the defect candidates, the set of attributes including at least one or more attributes of the estimated noise.

[0013] (iii) the estimating may include: estimating a spatial size of the spatial anomaly and one or more coefficients of the polynomial relationship relative to each of the one or more reference image tiles, thereby producing one or more estimates of the spatial size and the coefficients corresponding to the one or more reference image tiles; and performing the removing based on at least some of the one or more estimates.

[0014] (iv) the estimating may also include: combining the one or more estimates of the spatial size to generate a composite estimate of the spatial anomaly; comparing the composite estimate with a known defect model to determine whether the composite estimate indicates that the known defect model is present on the inspection image patch, and wherein the removing includes removing the second type of noise from the inspection image patch based on the composite estimate in response to determining that the known defect model is present.

[0015] (v) The estimating may further comprise combining the one or more estimates of the coefficients to generate a composite estimate of the polynomial relationship, and wherein the removing comprises removing the first type of noise from the inspection image patch based on the composite estimate.

[0016] (vi) For a given reference image tile of the one or more reference image tiles, the estimated spatial size may include:

[0017] providing different estimates of the size of the space, each estimate including the length, width and magnitude of the spatial anomaly, and providing different defect estimates of the magnitude of potential defects coexisting with the spatial anomaly;

[0018] calculating a plurality of estimated errors using a plurality of combinations between the different estimates of the spatial size and the different defect estimates, each estimated error indicating a residual difference between an expected modified inspection image patch and the given reference image patch, wherein the expected modified inspection image patch is obtainable by modifying the inspection image patch using the respective combination; and

[0019] A combination is selected among the plurality of combinations that provides a minimum estimated error among the plurality of estimated errors, wherein the selected combination includes a selected estimate of the spatial size.

[0020] (vii) The one or more coefficients may include a gain and an offset of the polynomial relationship.

[0021] (viii) The one or more properties of the estimated noise may include one or more estimates of the spatial size and the coefficients.

[0022] (ix) The inspection tool is an optical inspection tool.

[0023] According to another aspect of the subject matter of the present disclosure, a computerized method for sample inspection is provided, the method comprising: capturing an inspection image of a die of the sample by an inspection tool and generating a defect map indicating the distribution of defect candidates on the inspection image using one or more reference images; selecting a plurality of defect candidates from the defect map according to predefined criteria by a processing unit operably connected to the inspection tool; and generating, by the processing unit, a corresponding modified inspection image block for each of the plurality of defect candidates, thereby generating a plurality of modified inspection image blocks corresponding to the plurality of defect candidates, wherein the generating comprises, for a given defect candidate among the plurality of defect candidates: extracting, respectively from the inspection image and each of the one or more reference images, image blocks around the position of the given defect candidate, thereby generating a modified inspection image block including the image blocks corresponding to the given defect candidate; A method for detecting a defect candidate in an inspection image patch and a set of image patches including an inspection image patch and one or more reference image patches; and modifying the inspection image patch to obtain a modified inspection image patch, comprising: estimating noise representing intensity variation on the inspection image patch using the set of image patches, the noise comprising a first type of noise representing a polynomial relationship between pixel values ​​of the inspection image patch and corresponding pixel values ​​in at least some of the reference image patches, and a second type of noise representing the presence of spatial anomalies in the inspection image patch relative to at least some of the reference image patches; and removing at least one of the first type of noise and the second type of noise from the inspection image patch based on the estimated noise; wherein the modified inspection image patch and / or the estimated noise may be used for further inspection of the sample.

[0024] This aspect of the disclosed subject matter may comprise one or more of the features (i) to (ix) listed above with respect to the system mutatis mutandis, in any desired combination or permutation technically possible.

[0025] According to another aspect of the subject matter of the present disclosure, a non-transitory computer-readable storage medium is provided, the non-transitory computer-readable storage medium tangibly embodying an instruction program that, when executed by a computer, causes the computer to perform a method for sample inspection, the method comprising: capturing an inspection image of a die of the sample by an inspection tool and generating a defect map indicating a distribution of defect candidates on the inspection image using one or more reference images; selecting a plurality of defect candidates from the defect map according to predefined criteria by a processing unit operably connected to the inspection tool; and generating, by the processing unit, a corresponding modified inspection image block for each of the plurality of defect candidates, thereby producing a plurality of modified inspection image blocks corresponding to the plurality of defect candidates, wherein the generating comprises, for a given defect candidate among the plurality of defect candidates: extracting, from the inspection image and each of the one or more reference images, a defect map indicating a distribution of defect candidates on the inspection image; an inspection image patch around a position of a defect candidate, thereby generating a set of image patches including an inspection image patch corresponding to the given defect candidate and one or more reference image patches; and modifying the inspection image patch to obtain a modified inspection image patch, comprising: using the set of image patches to estimate noise representing intensity variations on the inspection image patch, the noise comprising a first type of noise representing a polynomial relationship between pixel values ​​of the inspection image patch and corresponding pixel values ​​in at least some of the reference image patches, and a second type of noise representing the presence of spatial anomalies in the inspection image patch relative to at least some of the reference image patches; and removing at least one of the first type of noise and the second type of noise from the inspection image patch based on the estimated noise; wherein the modified inspection image patch and / or the estimated noise may be used for further inspection of the sample.

[0026] This aspect of the disclosed subject matter may comprise one or more of the features (i) to (ix) listed above with respect to the system mutatis mutandis, in any desired combination or permutation technically possible. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to understand the invention and know how to implement it in practice, embodiments will now be described, by way of non-limiting example only, with reference to the accompanying drawings, in which:

[0028] Figure 1 A block diagram illustrating a system for sample inspection according to certain embodiments of the presently disclosed subject matter;

[0029] Figure 2 shows a generalized flow chart of sample testing according to certain embodiments of the disclosed subject matter;

[0030] Figure 3A schematic diagram illustrating image patch extraction according to certain embodiments of the presently disclosed subject matter;

[0031] Figure 4 shows a schematic diagram explaining a polynomial relationship between pixels of a check image patch and corresponding pixels of a reference image patch according to certain embodiments of the presently disclosed subject matter;

[0032] Figure 5 shows a schematic diagram illustrating the presence of a first type of noise, a second type of noise, and a defect on an inspection image patch compared to a reference image patch according to certain embodiments of the presently disclosed subject matter;

[0033] Figure 6 shows a schematic diagram showing multiple estimates of defects and spatial anomalies corresponding to multiple reference image tiles, according to certain embodiments of the disclosed subject matter;

[0034] Figure 7 An example graph showing a known defect model and pixel distribution of spatial anomalies according to certain embodiments of the disclosed subject matter;

[0035] Figure 8 shows an example of a defect map generated before defect re-inspection and a corresponding updated defect map generated after re-inspection according to certain embodiments of the disclosed subject matter; and

[0036] Fig. 9 Some embodiments of the subject matter of the present disclosure are shown. Figure 8 An exemplary modification of the inspection image tile for the false alarm 808 in FIG. DETAILED DESCRIPTION

[0037] In the following detailed description, many specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be appreciated by those skilled in the art that the subject matter of the present disclosure can be practiced without these specific details. In other cases, well-known methods, processes, components and circuits are not described in detail to avoid obscuring the subject matter of the present disclosure.

[0038] Unless otherwise specifically stated, as will be apparent from the following discussion, it will be understood that throughout this specification discussion, the use of terms such as "inspect", "capture", "generate", "select", "extract", "modify", "estimate", "remove", "execute", "combine", "compare", "determine", "provide", "calculate" refers to the action and / or processing of a computer to manipulate data and / or transform data into other data, the data being represented as physical (such as electronic) quantities and / or the data representing physical objects. The term "computer" should be broadly interpreted to cover any kind of hardware-based electronic device with data processing capabilities, including, as non-limiting examples, the computerized system or portion of a computerized system for sample inspection disclosed in the present application and a processing unit in the computerized system.

[0039] As used herein, the terms "non-transitory memory" and "non-transitory storage medium" should be interpreted broadly to cover any volatile or non-volatile computer memory suitable for the subject matter of the present disclosure.

[0040] The term "defect" as used in this specification should be interpreted broadly to cover any kind of abnormal or undesirable feature or void formed on or within a sample.

[0041] The term "design data" as used in this specification should be interpreted broadly to cover any data indicative of a hierarchical physical design (layout) of a sample. The design data may be provided by a respective designer and / or may be derived from the physical design (e.g., through complex simulations, simple geometry and Boolean operations, etc.). The design data may be provided in different formats, such as, as non-limiting examples, GDSII format, OASIS format, etc. The design data may be presented in a vector format, a grayscale intensity image format, or in other ways.

[0042] It will be appreciated that, unless specifically stated otherwise, certain features of the subject matter of the present disclosure described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, various features of the subject matter of the present disclosure described in the context of a single embodiment may also be provided individually or in any suitable sub-combination. In the following detailed description, many specific details are set forth in order to provide a thorough understanding of the method and apparatus.

[0043] With this in mind, focus on Figure 1 , showing a block diagram of a system for sample inspection according to certain embodiments of the presently disclosed subject matter.

[0044] Figure 1The system 100 shown in can be used for sample (e.g., wafer, die on wafer and / or portion of wafer) inspection. As described above, the term "sample" as used in this specification should be broadly interpreted to cover any kind of wafer, mask, reticle and other structure, combination and / or portion of the above items used to manufacture semiconductor integrated circuits, magnetic heads, flat panel displays and other semiconductor manufactured products. According to some embodiments, the sample used herein can be selected from the group including the following items: wafer, reticle, mask, integrated circuit and flat panel display (or at least a portion of the above items).

[0045] For illustration purposes only, certain embodiments described below are provided with respect to dies and wafers. The embodiments are equally applicable to other types, sizes, and representations of samples.

[0046] According to certain embodiments, the system 100 may include, or be operably connected to, one or more inspection tools 120. The term "inspection tool" as used herein should be broadly interpreted to cover any tool that can be used to inspect related processes, including, by way of non-limiting example, imaging, scanning (in a single scan or multiple scans), sampling, inspection, measurement, classification, and / or other processes provided with respect to a sample or a portion of a sample. The one or more inspection tools 120 may include one or more inspection tools and / or one or more verification tools. In some cases, at least one of the inspection tools 120 may be an inspection tool configured to scan a sample (e.g., an entire wafer, an entire die, or a portion of the above) to capture an inspection image (typically at a relatively high speed and / or low resolution) to detect potential defects. In some cases, at least one of the inspection tools 120 may be a verification tool configured to capture inspection images of at least some of the defects detected by the inspection tool to determine whether the potential defects are indeed defects. Such inspection tools are typically configured to inspect a fragment of a die at a time (typically at a relatively low speed and / or high resolution). The inspection tool and verification tool may be different tools located in the same or different locations, or a single tool operating in two different modes.In some cases, at least one of the inspection tools may have metrology capabilities.

[0047] Without limiting the scope of the present disclosure in any way, it should also be noted that the inspection tool 120 may be implemented as various types of inspection machines, such as optical imaging machines, electron beam inspection machines, and the like.

[0048] According to certain embodiments, the inspection tool 120 may be configured to capture an inspection image of a die of a sample. The inspection tool 120 may also be configured to use one or more reference images to generate a defect map indicating a distribution of defect candidates on the inspection image. The inspection image may be generated from different inspection modalities, and the present disclosure is not limited by the inspection and metrology techniques used to generate the image. In some embodiments, the inspection tool 120 may be an inspection tool configured to scan a sample to capture an image. In some cases, the captured image of the sample may be processed (e.g., by an image processing module whose functionality may be integrated within the inspection tool 120 or within the processing unit 102, or implemented as an image processing module of a standalone computer) to generate a defect map indicating a distribution of defect candidates (i.e., suspected locations on the sample that are likely to be defects of interest (DOIs)), such as those described with respect to FIG. Figure 2 Describe in more detail.

[0049] The term "defect of interest (DOI)" as used herein refers to any real defect that the user is interested in detecting. For example, any "killer" defect that may cause yield loss, as compared to a critical type defect, may be indicated as a DOI, which is also a real defect, but does not affect yield and should therefore be ignored.

[0050] The term "noise" as used herein should be broadly interpreted to include any unwanted or uninteresting defects (also known as non-DOIs or hazards), as well as random noise caused by different variations during inspection (e.g., process variations, color variations, mechanical and electrical variations).

[0051] The system 100 may include a processing unit 102 operatively connected to an I / O interface 126 and an inspection tool 120. The processing unit 102 is a processing circuit configured to provide all processing required to operate the system 100, which is described below with reference to Figure 2 102 includes a processor (not shown separately) and a memory (not shown separately). The processor of the processing unit 102 can be configured to execute several functional modules according to computer-readable instructions implemented on a non-transitory computer-readable memory included in the processing unit. Such functional modules are referred to as being included in the processing unit 102 below.

[0052] The functional modules included in the processing unit 102 may include a block extraction module 104 and a block modification module 106, which are operably connected to each other. The block modification module 106 may include a noise estimation module 108 and a noise removal module 110, which are operably connected to each other. The processing unit 102 may be configured to: select a plurality of defect candidates from the defect map according to a predefined criterion; and for each of the plurality of defect candidates, generate a corresponding modified inspection image block, thereby generating a plurality of modified inspection image blocks corresponding to the plurality of defect candidates.

[0053] Specifically, for a given defect candidate among multiple defect candidates, the tile extraction module 104 can be configured to extract image tiles around the location of the given defect candidate from each of the inspection image and one or more reference images, respectively, thereby generating a set of image tiles including an inspection image tile corresponding to the given defect candidate and one or more reference image tiles. The tile modification module 106 can be configured to modify the inspection image tile to obtain a modified inspection image tile. According to some embodiments, the modification of the inspection tile can be performed as follows: the noise estimation module 108 can be configured to use a set of image tiles to estimate noise representing intensity changes on the inspection image tile, the noise including a first type of noise representing a polynomial relationship between at least some pixels of the inspection image tile and corresponding pixels in at least some of the reference image tiles, and a second type of noise representing the presence of spatial anomalies on the inspection image tile relative to at least some of the reference image tiles, and the noise removal module 110 can be configured to remove at least one of the first type of noise and the second type of noise from the inspection image tile based on the estimated noise.

[0054] According to some embodiments, the modified inspection image tiles and / or the estimated noise may be used for further inspection of the sample. As an example, the modified inspection image tiles may be provided to the inspection tool 120 and / or any other inspection tool and / or the processing unit 102 (in which case the processing unit 102 may also include a defect detection module ( Figure 1 100) for use in performing defect detection on the sample relative to one or more reference image tiles, thereby generating an updated defect map. In some embodiments, the modified inspection image tiles can be sent to a computer-based graphical user interface (GUI) 124 to present the results. As another example, one or more attributes characterizing the estimated noise can be provided to the inspection tool 120 and / or any other inspection tool and / or processing unit 102 for use as part of a set of attributes characterizing defect candidates, wherein the set of attributes can be used to perform defect candidate clustering, as will be described below with reference to Figure 2 Describe in more detail.

[0055] According to some embodiments, the system 100 may include a storage unit 122. The storage unit 122 may be configured to store any data required to operate the system 100, such as data related to the input and output of the system 100, and intermediate processing results generated by the system 100. As an example, the storage unit 122 may be configured to store one or more images and / or derivatives of the images (e.g., defect maps corresponding to the images) generated by the inspection tool 120. Thus, the one or more images and / or defect maps may be retrieved from the storage unit 122 and provided to the processing unit 102 for further processing. Additionally or alternatively, the storage unit 122 may be configured to store a set of image tiles, estimated noise (and properties of the estimated noise), and / or modified inspection image tiles, which may be retrieved from the storage unit and provided to the inspection tool 120 and / or any other inspection tool and / or processing unit 102 for further processing.

[0056] In some cases, system 100 may be operably connected to one or more external data repositories ( Figure 1 ), the external data repository is configured to store data (and / or derivatives of the data) generated by the inspection tool 120 and / or the processing unit 102.

[0057] In some embodiments, the system 100 may optionally include a computer-based graphical user interface (GUI) 124 configured to enable user-specified input related to the system 100. For example, a visual representation of the sample may be presented to the user (e.g., via a display forming part of the GUI 124), such as an inspection image captured for a die of the sample and / or a corresponding defect map. The user may be provided with the option of defining certain operating parameters via the GUI. The user may also view some processing results on the GUI, such as, for example, modified image tiles and / or estimated noise, as well as other operating results.

[0058] It should be noted that although Figure 11 is shown as being implemented as part of the system 100, but in some embodiments, the functionality of the system 100 may be implemented as a standalone computer and may be operably connected to the inspection tool 120 to operate with the inspection tool 120. In this case, the defect map of the sample may be received from the inspection tool 120 directly or via one or more intermediate systems, and the defect map may be provided to the processing unit 102 for further processing. In some embodiments, the corresponding functionality of the system 100 may be at least partially integrated with one or more inspection tools 120, thereby facilitating and enhancing the functionality of the inspection tool 120 in the inspection related process. In this case, the components of the system 100 or at least a portion of the system 100 may form part of the inspection tool 120. As an example, the tile extraction module 104 and / or the tile modification module 106 may be implemented or integrated as part of the inspection tool 120. As another example, the processing unit 102 and the storage unit 122 may form part of the processing unit and storage device of the inspection tool 120 , respectively; and the I / O interface and GUI of the inspection tool 120 may be used as the I / O interface 126 and the GUI 124 .

[0059] Those skilled in the art will readily appreciate that the teachings of the subject matter of the present disclosure are not limited to Figure 1 The system constraints shown in ; equivalent and / or modified functionality may be combined or divided in another manner and may be implemented in any suitable combination of software and firmware and hardware.

[0060] Will note, Figure 1 The system shown in can be implemented in a distributed computing environment where Figure 1 The aforementioned functional modules shown in the figure may be distributed over several local and / or remote devices and may be linked via a communication network. It will also be noted that although the inspection tool 120, storage unit 122 and GUI 124 are Figure 1 100 , but in some other embodiments, at least some of the aforementioned units may be implemented external to the system 100 and may be configured to communicate data with the system 100 via the I / O interface 126 .

[0061] Now refer to Figure 2 , showing a generalized flow chart of sample testing according to certain embodiments of the presently disclosed subject matter.

[0062] An inspection image (202) of a die of a sample may be captured (e.g., by an inspection tool 120), and one or more reference images may be used to generate a defect map indicating a distribution of defect candidates on the inspection image. As described above, the inspection image may be generated from different inspection modalities, and the present disclosure is not limited by the inspection and metrology techniques used to generate the image. In some embodiments, the inspection tool may be an optical inspection tool configured to scan the sample to capture the inspection image.

[0063] The defect map may be generated in various ways (e.g., by a detection module and / or an image processing module, the functionality of which may be integrated within the inspection tool 120 or within the processing unit 102). In some embodiments, the defect map may be generated by applying a detection threshold directly to the pixel values ​​of the captured inspection image. In some other embodiments, the inspection image may also be processed to generate the defect map. Different inspection and detection methods may be applied to process the inspection image and generate the defect map, and the present disclosure is not limited to the specific detection techniques used therein. For illustrative purposes only, several non-limiting examples of defect detection and defect map generation based on inspection images are now described.

[0064] In some embodiments, for each inspection image, one or more reference images may be used for defect detection. Reference images may be obtained in various ways, and the number of reference images used herein and the manner in which such images are obtained should in no way be understood as limiting the present disclosure. In some cases, one or more reference images may be captured from one or more dies of the same sample (e.g., adjacent dies to the inspection die). In some other cases, one or more reference images may include one or more images captured from one or more dies of another sample (e.g., a second sample different from the current sample but sharing the same design data). As an example, in a die history (D2H) inspection method, an inspection image may be captured from the current sample at the current time (e.g., t=t'), and one or more reference images may include one or more previous images captured from one or more dies on the second sample at a baseline time (e.g., a previous time t=0). In some other embodiments, one or more reference images may include at least one simulated image representing a given die in one or more dies. As an example, a simulated image may be generated based on the design data (e.g., CAD data) of the die.

[0065] In some embodiments, at least one difference image may be generated based on the difference between the pixel values ​​of the inspection image and the pixel values ​​derived from one or more reference images. Optionally, at least one grade image may also be generated based on the at least one difference image. In some cases, the grade image may be composed of pixels having values ​​calculated based on corresponding pixel values ​​in the difference image and a predefined difference normalization factor. The predefined difference normalization factor may be determined based on the behavior of a normal population of pixel values, and the predefined difference normalization factor may be used to normalize the pixel values ​​of the difference image. As an example, the grade of a pixel may be calculated as the ratio between the corresponding pixel value of the difference image and the predefined difference normalization factor. A defect map may be generated by determining the location of a suspected defect based on at least one difference image or at least one grade image using a detection threshold.

[0066] In some embodiments, the generated defect map may indicate a defect distribution including one or more defect characteristics of defect candidates revealed on the defect map by the inspection process, such as, for example, location, intensity, and size of the defect candidates.

[0067] A plurality of defect candidates may be selected from the defect map (204) according to predefined criteria (e.g., by processing unit 102). As an example, the predefined criteria may include selecting a predetermined number of highest ranked defect candidates (e.g., according to the ranking of the grades in the grade image). As another example, the predefined criteria may include selecting defect candidates with grades above a selection threshold. As yet another example, the predefined criteria may include selecting defect candidates based on one or more predefined attributes / parameters characterizing at least some of the reference image or corresponding design data (e.g., CAD). For example, the attributes may include a particular pattern of interest to be inspected in the image or CAD. In some cases, the predefined criteria may be a combination of one or more of the above criteria.

[0068] For each of the plurality of defect candidates, a corresponding modified inspection image tile may be generated (e.g., by the processing unit 102) (206), thereby generating a plurality of modified inspection image tiles corresponding to the plurality of defect candidates. Specifically, for a given defect candidate in the plurality of defect candidates, the generation of the corresponding modified inspection image tile may include image tile extraction as will be described below with reference to block 208 and image tile modification as will be described with reference to block 210.

[0069] Specifically, image tiles (208) around the location of a given defect candidate can be extracted from the inspection image and each of the one or more reference images, respectively (e.g., by the tile extraction module 104), thereby generating a set of image tiles including an inspection image tile corresponding to the given defect candidate and one or more reference image tiles.

[0070] Now refer to Figure 3 , showing a schematic diagram of image patch extraction according to certain embodiments of the presently disclosed subject matter.

[0071] The current inspection image 302 is captured by the inspection tool. Defect detection may be performed on the inspection image 302 using one or more reference images 306 (labeled as Reference 1 to Reference N), and a defect map indicating defect candidates on the inspection image 302 may be generated (for simplicity of illustration, Figure 3 306). A plurality of defect candidates may be selected from the defect map according to predefined criteria. For each of the selected candidates, surrounding image patches may be extracted from the inspection image 302 and each of the reference images 306, respectively. As an example, for the defect candidate 305, an inspection image patch 304 having a square shape around the defect candidate may be extracted from the inspection image 302. The inspection image patch 304 together with the corresponding one or more reference patches 307 constitute a set of image patches generated for the defect candidate 305. Therefore, for each selected defect candidate (assuming there are M selected candidates), a set of corresponding image patches 308 ( Figure 3 M groups of image tiles corresponding to the M selected candidates are shown in ). Each group of image tiles will be provided as input to the image tile modification process, as will be described below with reference to block 210.

[0072] continue Figure 2 As described above, the inspection image tile (210) can be modified (e.g., by the tile modification module 106) to obtain a modified inspection image tile. Specifically, a set of image tiles can be used to estimate noise representing intensity variations on the inspection image tile (e.g., by the noise estimation module 108) (212).

[0073] Intensity variation may refer to the difference in pixel intensity between inspection images of a sample, which may be caused by any type of variation, including (but not limited to) process variation and color variation, etc. Process variation may refer to variations caused by variations in the manufacturing process of the sample. As an example, the manufacturing process may cause variations in sample thickness, thereby affecting reflectivity, and thus affecting the grayscale of the resulting inspection image. For example, variations in material thickness between dies may cause different reflectivities between two dies, causing the images of the two dies to have different background grayscales. As another example, the manufacturing process may cause slight shifts / scaling of certain structures / patterns between different inspection images, which causes noise in defect detection. Color variation may be caused by process variations and / or inspection tools used to inspect the sample. As an example, variations in inspection tools, such as different settings of the inspection tools (e.g., optical modes, detectors, etc.), may cause grayscale differences in different inspection images.

[0074] Therefore, due to the change in grayscale value distribution, some defect attributes calculated from the inspection image and the reference image are different, as mentioned above, resulting in inspection instability and inconsistent inspection results. In this case, DOI may be buried in noise, affecting detection sensitivity.

[0075] By effectively estimating the noise representing such intensity variations and removing / eliminating the noise from the inspection image / reference image, the present disclosure can achieve noise reduction and thereby greatly improve defect detection sensitivity.

[0076] For illustration purposes only, certain embodiments of the present disclosure are provided with respect to modification of a check image tile (by noise estimation and removal on the check image tile). The embodiments are equally applicable to modification of a corresponding reference image tile (by applying such noise estimation and removal on the reference image in a similar manner).

[0077] According to certain embodiments of the disclosed subject matter, the noise representing intensity variations can be represented by two types of noise models: a first type of noise representing a polynomial relationship between pixel values ​​of the inspection image patch and corresponding pixel values ​​in at least some of the reference image patches, and a second type of noise representing the presence of spatial anomalies in the inspection image patch relative to at least some of the reference image patches. The first type of noise generally represents a systematic transformation of pixel values ​​from one image patch to another (as represented by a polynomial relationship), as will be described below with reference to Figure 4 and Figure 5 An example of this type of noise may be a background gray level variation between two image tiles. The second type of noise generally represents a spatial shift / scaling (between image tiles) of the pixel values ​​of a group of pixels that typically form a spatial pattern / structure, as will be described below with reference to Figure 5 Explain in more detail.

[0078] Now refer to Figure 4 , showing a schematic diagram explaining a polynomial relationship between pixels of a check image patch and corresponding pixels of a reference image patch according to certain embodiments of the presently disclosed subject matter.

[0079] Figure 4 The X-axis in shows the gray level of at least some of the pixels in the reference image tile, and the Y-axis shows the gray level of the corresponding pixel in the current inspection image tile. The inspection image tile corresponds to the reference image tile. The polynomial relationship can be represented by a polynomial function of degree n (n=1, 2, 3...). The polynomial function can usually be expressed by variables and coefficients, such as where x and y are variables and the coefficients in this paper include a k(also called gain or gain factor) and b (also called offset). Figure 4 An example of a quadratic function 402 (i.e., a quadratic polynomial) between the gray levels of pixels in the check image tile and the reference image tile is shown. It will be appreciated that ideally, if there is no difference / variation between the gray levels of the pixel values ​​of the check image tile and the reference image tile, then the relationship between them should be represented as a linear representation y=x, as shown in 404. The deviation between 402 and 404 represents a polynomial shift in the pixel values, which may be caused by process variations and / or color variations, as described above.

[0080] Will note, Figure 4 The examples shown in are for illustrative purposes only and should not be considered to limit the present disclosure in any way. For the purpose of representing the first type of noise, any other type / degree of polynomial function may be used instead of the above functions.

[0081] Reference Figure 5 , Figure 5 A schematic diagram illustrating the presence of a first type of noise, a second type of noise, and a defect on an inspection image patch compared to a reference image patch is shown in accordance with certain implementations of the presently disclosed subject matter.

[0082] Figure 5 The left figure in shows the pixel values ​​(in a gradient pattern) of a reference image tile (shown by 502) and the corresponding pixel values ​​of a check image tile (shown by 504). There is a line structure in both image tiles (shown as 506 in the reference image tile and as 508 in the check image tile). In addition, in the check image tile, there is a defect 510 on top of the line structure 508. For the purpose of clearly illustrating the relationship between the corresponding pixel values, the right figure shows the pixel values ​​in coordinates, where the X-axis shows the grayscale level of the pixel value in the reference image tile and the Y-axis shows the grayscale level of the corresponding pixel value in the current check image tile, as shown in FIG. Figure 4 503 . As can be seen from the right figure, the pixel values ​​in the inspection image patch are transformed from the reference image patch by the following polynomial function: gain*gradient+offset (as shown in circle 503). In addition, there are spatial anomalies in the inspection image patch, that is, the spatial displacement of the pixels constituting the line structure in the inspection image patch compared to the reference image patch (as shown in square 505, which deviates from the polynomial transformation 503). It can also be clearly seen from the left figure that the pixel values ​​of the line structure 508 in the inspection image patch are relatively higher than the pixel values ​​of the line structure 506 in the reference image patch (in addition to the difference caused by the polynomial transformation). The defect coexisting with the spatial anomaly on the line structure (as shown in triangle 507) indicates that there is an additional deviation on top of the spatial anomaly and the polynomial transformation.

[0083] According to some embodiments, the noise estimation of reference block 212 may include estimating a spatial size of the spatial anomaly and one or more coefficients of a polynomial relationship relative to each of the one or more reference image tiles, thereby producing one or more estimates of the spatial size and coefficients corresponding to the one or more reference image tiles, and the noise removal of reference block 214 may be based on at least some of the one or more estimates.

[0084] As an example, in some cases, the estimation of the spatial size of the spatial anomaly can be performed as follows: for a given reference image tile in one or more reference image tiles, providing different estimates of the spatial size, the estimates including the length, width, and magnitude of the spatial anomaly, and providing different defect estimates of the magnitude of potential defects coexisting with the spatial anomaly; calculating multiple estimated errors using multiple combinations between the different estimates of the spatial size and the different defect estimates, each estimated error indicating a residual between an expected modified inspection image tile and the given reference image tile, wherein the expected modified inspection image tile can be obtained by modifying the inspection image tile using the corresponding combination; and selecting a combination from the multiple combinations that provides a minimum estimated error among the multiple estimated errors, the selected combination including the selected estimate of the spatial size.

[0085] According to some embodiments, it is assumed that both the spatial anomaly and the potential defect are located at the center of the image patch and have corresponding distributions (as described below with reference to Figure 7 ), different combinations of estimates of parameters (e.g., length, width, and amplitude of the spatial anomaly, and amplitude of the potential defect) may be tried and corresponding estimated errors may be calculated. As an example, the error may be estimated by calculating an expected modified inspection image patch based on the estimated first type of noise and second type of noise, for example, by subtracting the estimated spatial anomaly (using the estimated length, width, and amplitude) from the inspection image patch and performing an inverse polynomial transformation, and then subtracting the reference image patch from the expected modified inspection image patch to obtain a residual that may be used as the estimated error. In some cases, the estimated error may be the square of the residual (in this case, also referred to as the squared error). It will be noted that when estimating the error, the order in which the subtraction of the estimated spatial anomaly and the inverse polynomial transformation are performed does not limit the scope of the present disclosure. For example, in some cases, the inverse polynomial transformation may be performed first, and then the subtraction of the estimated spatial anomaly may be performed. From a plurality of estimated errors, the minimum estimated error may be identified, and a corresponding combination of estimates may be selected. The selected combination includes an estimate of the spatial size, which estimate may be selected as the best estimate of the spatial size of the spatial anomaly in the inspection image relative to a given reference image tile.

[0086] In some embodiments, one or more coefficients of the polynomial relationship may be estimated together with an estimate of the spatial size of the spatial anomaly. As an example, when calculating the estimated error as described above, an inverse polynomial transformation is necessary in order to calculate the residual. Therefore, the coefficients of the polynomial relationship (e.g., gain and offset) are required to perform the calculation. Similarly, when performing the calculation, different estimates of the coefficients may be provided, and the estimated coefficient corresponding to the minimum estimated error may be selected.

[0087] According to certain embodiments, once one or more estimates of the spatial size and coefficients corresponding to one or more reference image tiles are obtained (i.e., best estimates), the one or more estimates of the spatial size can be combined to generate a composite estimate of the spatial anomaly. The composite estimate can be compared with a known defect model to determine whether the composite estimate indicates that the known defect model exists on the inspection image tile. In response to determining that the known defect model exists, the second type of noise can be removed from the inspection image tile based on the composite estimate.

[0088] Now refer to Figure 6 , shows a schematic diagram illustrating multiple estimates of defects and spatial anomalies corresponding to multiple reference image patches, according to certain embodiments of the disclosed subject matter.

[0089] The X-axis of the graph refers to the reference image tile number (labeled "reference ID", in this example, the reference ID ranges from 1 to 6). The Y-axis of the graph shows the defect amplitude (labeled "defect height"), the amplitude of the spatial anomaly (labeled "anomaly height"), the length of the spatial anomaly (labeled "anomaly length X"), the width of the spatial anomaly (labeled "anomaly length Y"), and the estimated error (labeled "squared error"), respectively. For each reference image tile 1 to 6, these graphs show the selected best estimate of the spatial size and defect amplitude corresponding to the minimum estimated error based on the above calculations. As an example, for reference image tile 1, the best estimate includes the amplitude of the defect at -4 (for example, a defect with a negative amplitude can indicate that the defect is a dent), the amplitude of the spatial anomaly at -7, the size of the spatial anomaly at 2*2.5, and the minimum estimated error corresponding to the best estimate is 200, which is the minimum estimated error among the six references. As another example, for reference image tile 2, the best estimate includes a defect magnitude at 0.5, a magnitude of the spatial anomaly at 2, a size of the spatial anomaly at 0.9*0.9, and the minimum estimated error corresponding to the best estimate is 700, which is the maximum estimated error among the six references.

[0090] The six best estimates corresponding to the six reference image tiles may be combined to generate a composite estimate. For example, the estimates of the spatial size may be averaged or weighted averaged, where the weight applied to each estimate is related to the estimated error to which the weight corresponds, e.g., the inverse of the estimated error. The composite estimate may be compared to a known defect model to determine whether the composite estimate indicates the presence of the known defect model on the inspection image tile.

[0091] Now refer to Figure 7 , showing example graphs of known defect models and pixel distributions of spatial anomalies according to certain embodiments of the disclosed subject matter.

[0092] As shown, Figure 702 and Figure 704 show two pixel distributions of known defect models. The exemplary defect model has the shape of a point spread function of a fixed size (the shape is a priori) because it can usually be related to the details of the inspection tool (such as the optical device of the inspection tool). For example, Figure 702 shows an exemplary pixel value distribution of a size of 3 pixels × 3 pixels (or 5 pixels × 5 pixels). The gradual change of pixel values ​​from the central pixel to the pixels adjacent to the central pixel is shown. Figure 704 shows similar distributions with different sizes. In contrast, Figures 706 and 708 show two pixel distributions of spatial anomalies. The exemplary spatial anomaly has a Gaussian shape of unknown amplitude and size. As shown, at least in some dimensions, the spatial anomaly is relatively larger than the defect model. As an example, assuming that the composite estimate of the spatial anomaly has an amplitude of 20 and a size of 13*4, and the defect model is set to have an amplitude between 10-100 and a size of 3*3, by comparing the two, it can be determined that there is a spatial anomaly, but the abnormal size indicated by the estimate is not a defect. In this case, the spatial anomaly may be removed from the inspection image tile based on the estimated spatial size of the spatial anomaly.

[0093] According to some embodiments, one or more estimates of the coefficients may be combined to generate a composite estimate of the polynomial relationship. In this case, noise removal may be performed by removing a first type of noise from the inspection image tile based on the composite estimate of the polynomial relationship.

[0094] It will be noted that in some cases, noise removal may include removal of only the first type of noise or the second type of noise, while in some other cases, noise removal may include removal of both types of noise.The present disclosure is not limited by the specific implementation of the present disclosure.

[0095] Once the noise estimation and noise removal are performed on the inspection image tiles corresponding to a given defect candidate, a modified inspection image tile is generated. Thus, for multiple defect candidates, multiple corresponding modified inspection image tiles can be generated. In some embodiments, the multiple modified inspection image tiles and / or the estimated noise obtained during the noise estimation process can be used for further inspection of the sample.

[0096] As an example, defect detection may be performed on a sample using a plurality of modified inspection image tiles relative to one or more reference image tiles, thereby generating an updated defect map. The updated defect detection may also be referred to as defect re-detection, taking into account that a previous defect detection has been performed and a previous defect map has been generated as described above with reference to block 202. As an example, in some cases, an updated inspection image may be formed using a modified inspection image tile together with an unmodified portion of the inspection image. Defect re-detection may be performed on the updated inspection image using one or more reference images. As another example, the defect re-detection process may begin with processing a modified inspection image tile to generate an updated difference image tile and an updated grade image tile. The updated grade image tile may then be used together with an unupdated portion from a previous grade image to form an updated grade image. A detection threshold may be applied to the updated grade image to generate an updated defect map with new defect candidates.

[0097] As described above, since the present disclosure can effectively remove noise representing intensity variations from an inspection image, defect re-inspection performed using the modified inspection image can greatly improve defect detection sensitivity, and more DOIs can be revealed.

[0098] Now refer to Figure 8 , illustrating an example of a defect map generated before defect re-inspection and a corresponding updated defect map generated after re-inspection according to certain embodiments of the disclosed subject matter.

[0099] As shown, a defect map 802 generated based on a grade image before applying noise removal and defect re-detection is shown. Defect candidates are selected and marked with squares, of which 806 is a DOI and the rest are false alarms, including false alarm 808. It can be seen that the false alarm 808 (among others) has a very strong signal strength compared to the DOI 806, and the defect map appears very noisy. Therefore, in some cases, the DOI may be buried in the noise, while on the contrary, some of the false alarms may be detected. After applying noise removal and defect re-detection in the inspection image as described above, an updated defect map 804 is generated, in which some of the false alarms are removed (such as the false alarm 808) and some have weaker signal strengths, while the DOI 806 maintains the same signal strength. The updated defect map 804 is relatively quieter (having a higher signal-to-noise ratio (SNR)) than the defect map 802, thereby making it easier to detect the DOI 806 (i.e., higher detection sensitivity).

[0100] Now refer to Fig. 9 , showing corresponding to certain embodiments of the subject matter of the present disclosure Figure 8 An exemplary modification of the inspection image tile for the false alarm 808 in FIG.

[0101] As shown, an inspection image tile 902 corresponding to a false alarm 808, a reference image tile 904, and a difference image tile 906 generated based on the inspection image tile 902 and the reference image tile 904 are shown. The difference image tile 906 shows a possible false alarm 907 corresponding to a spatial structure (e.g., a line structure in a sample). This may be due to the difference in gray levels in the inspection image tile and the reference image tile, especially the difference in the position of the line structure. By applying noise estimation as described above, it is detected that there is a spatial anomaly 908 at the position of the line structure in the inspection image tile 902. After removing the spatial anomaly from the inspection image tile, a modified inspection image tile 910 is obtained. Each time a defect is re-detected using the modified inspection image tile, an updated difference image tile 912 is generated, from which it can be seen that the false alarm 907 that appeared previously has been removed.

[0102] According to some embodiments, the estimated noise can be used as one or more attributes that can be used together with other attributes that characterize defect candidates to perform defect candidate clustering or aggregation. As an example, the one or more attributes of the estimated noise may include one or more estimates of spatial size and coefficients. Defect clustering as used herein refers to grouping defect candidates (as revealed by the defect map) in the attribute space based on a set of attributes that characterize the defect candidates, so that defect candidates in the same group (cluster) are more similar to each other than those in other clusters. This can be used to detect anomalies / outliers that do not conform to the majority group, which are more likely to be DOIs. In some embodiments, clustering can be achieved using machine learning.

[0103] It will be noted that in some cases, the present disclosure can be used for defect re-detection (e.g., using modified inspection image tiles), or in some other cases, for defect candidate clustering (e.g., using estimated noise). In some other cases, both defect re-detection and defect candidate clustering can be performed to further improve the detection results. As an example, defect re-detection can be performed to obtain an updated defect map with new defect candidates, and defect candidate clustering can be performed on the new candidates, thereby improving the accuracy and sensitivity of detection.

[0104] It will also be noted that although reference is made to the elements of system 100, Figure 2 , but this is by no means binding and operations may be performed by elements other than those described herein.

[0105] It will be understood that the application of the present invention is not limited to the details set forth in the description contained herein or shown in the accompanying drawings. The present invention can have other embodiments and can be practiced or implemented in various ways. Therefore, it will be understood that the words and terms used herein are for descriptive purposes and should not be considered restrictive. Therefore, those skilled in the art will appreciate that the concepts upon which the present disclosure is based can be easily used as the basis for designing other structures, methods and systems for several purposes of implementing the subject matter of the present disclosure.

[0106] It will also be understood that the system according to the present invention can be implemented at least in part on a suitably programmed computer. Likewise, the present invention contemplates a computer program that can be read by a computer to perform the method of the present invention. The present invention also contemplates a non-transitory computer-readable storage medium that tangibly embodies a program of instructions that can be executed by a computer to perform the method of the present invention.

[0107] It will be easily appreciated by those skilled in the art that various modifications and changes may be applied to the embodiments of the present invention as described above without departing from the scope of the present invention as defined in and by the appended claims.

Claims

1. A computerized system for sample testing, the system comprising: an inspection tool configured to capture an inspection image of a die of the sample and generate a defect map indicating a distribution of defect candidates on the inspection image using one or more reference images; as well as a processing unit operably connected to the inspection tool, the processing unit comprising a memory and a processor operably coupled to the memory, the processing unit being configured to: selecting a plurality of defect candidates from the defect map according to predefined criteria; as well as For each of the plurality of defect candidates, a corresponding modified inspection image tile is generated, thereby producing a plurality of modified inspection image tiles corresponding to the plurality of defect candidates, wherein the generating comprises, for a given defect candidate among the plurality of defect candidates: extracting image patches around the location of the given defect candidate from the inspection image and each of the one or more reference images, respectively, thereby generating a group of image patches including the inspection image patches corresponding to the given defect candidate and the one or more reference image patches; as well as Modifying the inspection image patch to obtain a modified inspection image patch, comprising: using the set of image patches to estimate noise representing intensity variations on the inspection image patch caused by process variations and / or color variations in a manufacturing process of the sample, the noise comprising a first type of noise representing a polynomial relationship between pixel values ​​of the inspection image patch and corresponding pixel values ​​in at least some of the reference image patches, and a second type of noise representing the presence of spatial anomalies representing spatial shifts or scaling of pixel values ​​of a set of pixels constituting a spatial pattern in the inspection image patch relative to at least some of the reference image patches; and removing at least one of the first type of noise and the second type of noise from the inspection image patch based on the estimated noise; The modified inspection image block and / or the estimated noise may be used for further inspection of the sample.

2. The computerized system of claim 1 , wherein the processing unit is further configured to perform defect detection on the sample using the plurality of modified inspection image patches relative to the one or more reference image patches, thereby generating an updated defect map. 3 . The computerized system of claim 1 , wherein the processing unit is further configured to perform defect candidate clustering using a set of attributes characterizing the defect candidates, the set of attributes including at least one or more attributes of the estimated noise.

4. The computerized system of claim 1 , wherein the estimating comprises: estimating a spatial size of the spatial anomaly and one or more coefficients of the polynomial relationship relative to each of the one or more reference image patches, thereby producing one or more estimates of the spatial size and the coefficients corresponding to the one or more reference image patches; And performing the removing based on at least some of the one or more estimates.

5. The computerized system of claim 4, wherein the estimating further comprises: combining the one or more estimates of the spatial size to generate a composite estimate of the spatial anomaly; comparing the composite estimate to a known defect model to determine whether the composite estimate indicates that the known defect model is present on the inspection image patch, and wherein the removing comprises removing the second type of noise from the inspection image patch based on the composite estimate in response to determining that the known defect model is present.

6. The computerized system of claim 4, wherein the estimating further comprises combining the one or more estimates of the coefficients to generate a composite estimate of the polynomial relationship, and wherein the removing comprises removing the first type of noise from the inspection image patch based on the composite estimate.

7. A computerized system according to claim 5, wherein the estimating further comprises combining the one or more estimates of the coefficients to generate a composite estimate of the polynomial relationship, and wherein the removing further comprises removing the first type of noise from the inspection image patch based on the composite estimate of the polynomial relationship.

8. The computerized system of claim 4, wherein for a given reference image tile of the one or more reference image tiles, the estimated spatial size comprises: providing different estimates of the size of the space, each estimate including the length, width and magnitude of the spatial anomaly, and providing different defect estimates of the magnitude of potential defects coexisting with the spatial anomaly; calculating a plurality of estimated errors using a plurality of combinations between the different estimates of the spatial size and the different defect estimates, each estimated error indicating a residual difference between an expected modified inspection image patch and the given reference image patch, wherein the expected modified inspection image patch is obtainable by modifying the inspection image patch using the corresponding combination; as well as A combination is selected from a plurality of combinations that provides a minimum estimated error among the plurality of estimated errors, wherein the selected combination includes the selected estimate of the spatial size.

9. The computerized system of claim 4, wherein the one or more coefficients include a gain and an offset of the polynomial relationship.

10. The computerized system of claim 3, wherein the one or more properties of the estimated noise include one or more estimates of a spatial size of the spatial anomalies and coefficients of the polynomial relationship relative to each of the one or more reference image patches.

11. The computerized system of claim 1 , wherein the inspection tool is an optical inspection tool.

12. A computerized method for sample testing, the method comprising: capturing, by an inspection tool, an inspection image of a die of the sample and generating a defect map indicating a distribution of defect candidates on the inspection image using one or more reference images; selecting, by a processing unit operatively connected to the inspection tool, a plurality of defect candidates from the defect map according to predefined criteria; as well as The processing unit generates, for each of the plurality of defect candidates, a corresponding modified inspection image block, thereby generating a plurality of modified inspection image blocks corresponding to the plurality of defect candidates, wherein the generating comprises, for a given defect candidate among the plurality of defect candidates: extracting image patches around the location of the given defect candidate from the inspection image and each of the one or more reference images, respectively, thereby generating a group of image patches including the inspection image patches corresponding to the given defect candidate and the one or more reference image patches; as well as Modifying the inspection image patch to obtain a modified inspection image patch, comprising: using the set of image patches to estimate noise representing intensity variations on the inspection image patch caused by process variations and / or color variations in a manufacturing process of the sample, the noise comprising a first type of noise representing a polynomial relationship between pixel values ​​of the inspection image patch and corresponding pixel values ​​in at least some of the reference image patches, and a second type of noise representing the presence of spatial anomalies representing spatial shifts or scaling of pixel values ​​of a set of pixels constituting a spatial pattern in the inspection image patch relative to at least some of the reference image patches; and removing at least one of the first type of noise and the second type of noise from the inspection image patch based on the estimated noise; The modified inspection image block and / or the estimated noise may be used for further inspection of the sample.

13. The computerized method of claim 12, further comprising performing defect detection on the sample using the plurality of modified inspection image patches relative to the one or more reference image patches, thereby generating an updated defect map.

14. The computerized method of claim 12, further comprising performing defect candidate clustering using a set of attributes characterizing the defect candidates, the set of attributes including at least one or more attributes of the estimated noise.

15. The computerized method of claim 12, wherein the estimating comprises: estimating a spatial size of the spatial anomaly and one or more coefficients of the polynomial relationship relative to each of the one or more reference image patches, thereby producing one or more estimates of the spatial size and the coefficients corresponding to the one or more reference image patches; And performing the removing based on at least some of the one or more estimates.

16. The computerized method of claim 15, wherein said estimating further comprises: combining the one or more estimates of the spatial size to generate a composite estimate of the spatial anomaly; comparing the composite estimate to a known defect model to determine whether the composite estimate indicates that the known defect model is present on the inspection image patch, and wherein the removing comprises removing the second type of noise from the inspection image patch based on the composite estimate in response to determining that the known defect model is present.

17. A computerized method according to claim 15, wherein the estimating further comprises combining the one or more estimates of the coefficients to generate a composite estimate of the polynomial relationship, and wherein the removing comprises removing the first type of noise from the inspection image patch based on the composite estimate.

18. A computerized method according to claim 16, wherein the estimating further comprises combining the one or more estimates of the coefficients to generate a composite estimate of the polynomial relationship, and wherein the removing further comprises removing the first type of noise from the inspection image patch based on the composite estimate of the polynomial relationship.

19. The computerized method of claim 15, wherein for a given reference image tile of the one or more reference image tiles, the estimated spatial size comprises: providing different estimates of the size of the space, each estimate including the length, width and magnitude of the spatial anomaly, and providing different defect estimates of the magnitude of potential defects coexisting with the spatial anomaly; calculating a plurality of estimated errors using a plurality of combinations between the different estimates of the spatial size and the different defect estimates, each estimated error indicating a residual between an expected modified inspection image patch and the given reference image patch, wherein the expected modified inspection image patch is obtainable by modifying the inspection image patch using a corresponding combination; as well as A combination is selected from a plurality of combinations that provides a minimum estimated error among the plurality of estimated errors, wherein the selected combination includes the selected estimate of the spatial size.

20. A non-transitory computer-readable storage medium tangibly embodying a program of instructions that, when executed by a computer, causes the computer to perform a method of sample testing, the method comprising: obtaining an inspection image of a die of the sample and generating a defect map indicating a distribution of defect candidates on the inspection image using one or more reference images; selecting a plurality of defect candidates from the defect map according to predefined criteria; as well as For each of the plurality of defect candidates, a corresponding modified inspection image tile is generated, thereby producing a plurality of modified inspection image tiles corresponding to the plurality of defect candidates, wherein the generating comprises, for a given defect candidate among the plurality of defect candidates: extracting image patches around the location of the given defect candidate from the inspection image and each of the one or more reference images, respectively, thereby generating a group of image patches including the inspection image patches corresponding to the given defect candidate and the one or more reference image patches; as well as Modifying the inspection image patch to obtain a modified inspection image patch, comprising: using the set of image patches to estimate noise representing intensity variations on the inspection image patch caused by process variations and / or color variations in a manufacturing process of the sample, the noise comprising a first type of noise representing a polynomial relationship between pixel values ​​of the inspection image patch and corresponding pixel values ​​in at least some of the reference image patches, and a second type of noise representing the presence of spatial anomalies representing spatial shifts or scaling of pixel values ​​of a set of pixels constituting a spatial pattern in the inspection image patch relative to at least some of the reference image patches; and removing at least one of the first type of noise and the second type of noise from the inspection image patch based on the estimated noise; The modified inspection image block and / or the estimated noise may be used for further inspection of the sample.