A multi-scale coding based wet etching method and related apparatus

By combining multi-scale coding and dual-model methods, the etching rate and spray nozzle path are automatically determined, solving the problems of process consistency and accuracy in wet etching and achieving high-precision wafer etching.

CN123186142APending Publication Date: 2026-11-27NEXCHIP SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611684071.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing wet etching technologies rely on manual experience or APC systems, which makes it difficult to guarantee process consistency and accuracy. Furthermore, manual intervention is required when the film thickness distribution exceeds the range of the path library, increasing etching costs.

Method used

By employing a multi-scale coding method, the wafer film thickness profile is encoded, and combined with a dual model, the etching rate distribution and jet path are automatically determined, thereby achieving a characteristic etching process.

Benefits of technology

It improves the precision of the wet etching process, avoids deviations caused by human experience, and ensures etching accuracy and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123186142A_ABST
    Figure CN123186142A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of semiconductor manufacturing, and discloses a wet etching method based on multi-scale coding and a related device. First, two models are used to obtain a device execution path: a first model obtains an etching rate distribution according to a wafer film thickness profile and a target film thickness profile, and a second model obtains a liquid spray port path according to the etching rate distribution. This process realizes a reverse derivation process from measured data to physical quantities and then to device execution. Meanwhile, three characteristic codes realize scale coverage of "low pass-band-high pass" from the perspectives of film thickness values, neighborhood change trends and spatial change rates, the feature representation is enriched at the input ends of the two models, the spatial expression is reserved in the data processing link of the double model, and therefore, through a characteristic and automated etching process, the precision of the wet etching process is improved while avoiding the deviation caused by manual experience operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of semiconductor manufacturing technology, and in particular to a wet etching method and related apparatus based on multi-scale coding. Background Technology

[0002] Wet etching is a key step in semiconductor wafer thinning processes. In actual production, wafers often exhibit significant intra-wafer non-uniformity after chemical mechanical polishing (CMP). Subsequent etching steps require customized nozzle movement path parameters and etching time based on the current film thickness distribution of each wafer to ensure that the etched film thickness is as close as possible to the target value.

[0003] In existing technologies, wet etching has two main approaches: first, relying on manual experience, where operators select or fine-tune parameters from a limited set of nozzle movement path candidates based on post-CMP film thickness measurement data; second, using an advanced process control (APC) system to select and adjust existing formulations from a pre-set nozzle movement path library. The former relies on manual experience, leading to issues such as decision-making depending on the operator's tacit knowledge, poor interpretability, and difficulty in quantification. Furthermore, different operators often provide different path parameters for the same wafer film thickness, lacking a consistent standardized process. Even the same operator's subjective judgment at different times may be biased, making it difficult to guarantee process consistency. The latter, based on an APC system, suffers from limited path library data. When the wafer film thickness distribution exceeds the library's coverage, manual intervention is still necessary, which carries unavoidable risks and increases etching costs. Therefore, existing wet etching technologies suffer from low precision. Summary of the Invention

[0004] This invention provides a wet etching method and related apparatus based on multi-scale coding, which can obtain a characteristic and automated etching process by coordinating multi-scale coding of wafer film thickness profile with dual models, thereby improving the accuracy of the wet etching process.

[0005] The first aspect of this invention discloses a wet etching method based on multi-scale coding, the method comprising: Obtain the wafer to be etched and its corresponding wafer film thickness profile; The wafer film thickness profile is encoded to obtain multiple sampling points and a feature encoding group corresponding to each sampling point. The feature encoding group includes a first spatial feature encoding, a second spatial feature encoding, and a third spatial feature encoding. The first spatial feature encoding is used to represent the film thickness value of each sampling point, the second spatial feature encoding is used to represent the neighborhood change trend of each sampling point, and the third spatial feature encoding is used to represent the spatial change rate of each sampling point. Based on the preset first model, the etching rate distribution is obtained according to the feature encoding group, the wafer film thickness profile and the preset target film thickness profile. The etching rate distribution includes the coordinates of each sampling point and the etching rate corresponding to each sampling point. Based on the preset second model, the nozzle path is obtained according to the etching rate distribution; The wafer to be etched is etched according to the spray nozzle path to obtain the etched wafer.

[0006] As an optional implementation, in the first aspect of the present invention, the method further includes: Gated fusion is performed on the feature encoding group to obtain the contour token; The contour token is input into a preset bidirectional Selective-SSM to obtain a spatial state representation sequence. The bidirectional Selective-SSM includes a forward Selective-SSM and a reverse Selective-SSM. And, the step of obtaining the etching rate distribution based on the preset first model, according to the feature encoding group, the wafer film thickness profile, and the preset target film thickness profile, includes: Based on the spatial state characterization sequence, the wafer film thickness profile, and the preset target film thickness profile, a spatial token is obtained; the spatial token is input into a preset first model to obtain the etching rate distribution.

[0007] As an optional implementation, in the first aspect of the present invention, the method further includes: A first variance output head is set for the first model to obtain a first conditional variance, which is the conditional variance corresponding to the etching rate distribution at each sampling point. A second variance output head is set for the second model to obtain a second conditional variance, which is the conditional variance corresponding to the spray nozzle path. And, the gating fusion of the feature encoding group to obtain the contour token includes: According to the preset gating fusion weights, the first spatial feature code, the second spatial feature code, and the third spatial feature code are fused by coordinate weight to obtain the contour token; Furthermore, the method further includes: When it is determined that the second conditional variance is greater than a preset first threshold, the gate fusion weight is corrected according to the first conditional variance and the second conditional variance to obtain the corrected gate fusion weight. The corrected gate fusion weight is used to update the contour token to update the nozzle path to obtain the updated nozzle path. The updated first conditional variance is obtained according to the first variance output head; the updated second conditional variance is obtained according to the second variance output head. When it is determined that the updated second conditional variance is greater than the first threshold, the modified gating fusion weight is modified in multiple rounds based on the updated first conditional variance and the updated second conditional variance, until it is determined that the updated second conditional variance is less than the first threshold. Then, the updated nozzle path in the last round of modification is obtained to etch the wafer to be etched, and the etched wafer is obtained.

[0008] As an optional implementation, in the first aspect of the present invention, the method for obtaining the second conditional variance includes: Based on the second variance output head, the initial conditional variance is obtained; based on the first conditional variance, the adjustment coefficient is obtained, which is used to represent the variance propagation from the first variance output head to the second variance output head; The second conditional variance is obtained based on the initial conditional variance and the adjustment coefficient.

[0009] As an optional implementation, in the first aspect of the present invention, the method for obtaining the second spatial feature code includes: For each sampling point, the set of spatial neighborhood points of that sampling point is obtained; Based on the spatial neighborhood point set, a second spatial feature code corresponding to the sampling point is obtained, wherein the second spatial feature code... It is calculated in the following way:

[0010] in,

[0011]

[0012] In the above formula, N(i) is the spatial neighborhood set of the i-th sampling point. Here, i and j represent the average membrane thickness corresponding to the point set in this spatial domain, and i and j are indices. Let j be the film thickness value corresponding to the j-th sampling point. Let be the coordinates of the j-th sampling point, and r be a preset hyperparameter.

[0013] As an optional implementation, in the first aspect of the present invention, the sampling point is obtained by meshing the wafer film thickness profile, and the third spatial feature encoding corresponding to the i-th sampling point is... It is calculated in the following way:

[0014] in,

[0015]

[0016] In the above formula, x is the index of the i-th sampling point in the horizontal axis direction, and y is the index of the i-th sampling point in the vertical axis direction. The grid spacing is in the horizontal direction. Used to represent the rate of change of film thickness along the horizontal axis. The grid spacing is in the vertical direction. Used to represent the rate of change of film thickness along the vertical axis. Used to represent the film thickness value corresponding to the sampling point with x+1 as the horizontal coordinate index and y as the vertical coordinate index.

[0017] As an optional implementation, in the first aspect of the present invention, the method further includes: Based on the preset third model, the simulated velocity distribution is obtained according to the nozzle path; The average residual is obtained based on the simulated rate distribution and the updated etch rate distribution. The updated etch rate distribution is obtained by updating the contour token in the last round of correction of the gated fusion weight, and then updating the etch rate distribution. When it is determined that the average residual is greater than a preset second threshold, an optimization operation is performed. The optimization operation includes: optimizing the updated etching rate distribution based on the average residual to obtain an optimized etching rate distribution; inputting the optimized etching rate distribution into the second model to obtain an optimized nozzle path; and inputting the optimized nozzle path into the third model to obtain an optimized simulated rate distribution. When it is determined that the average residual corresponding to the optimized simulated rate distribution is greater than the preset second threshold, multiple rounds of optimization operations are performed on the optimized etching rate distribution until it is determined that the average residual corresponding to the last round of optimized simulated rate distribution is less than the preset second threshold. Then, the last round of optimized nozzle path is used to etch the wafer to be etched, and the etched wafer is obtained.

[0018] A second aspect of the present invention discloses a wet etching apparatus based on multi-scale coding, the apparatus comprising: The contour acquisition module is used to acquire the wafer to be etched and its corresponding wafer film thickness contour. The feature encoding module is used to encode the wafer film thickness profile to obtain multiple sampling points and a feature encoding group corresponding to each sampling point. The feature encoding group includes a first spatial feature encoding, a second spatial feature encoding, and a third spatial feature encoding. The first spatial feature encoding is used to represent the film thickness value of each sampling point, the second spatial feature encoding is used to represent the neighborhood change trend of each sampling point, and the third spatial feature encoding is used to represent the spatial change rate of each sampling point. The rate generation module is used to obtain an etching rate distribution based on a preset first model, according to the feature encoding group, the wafer film thickness profile, and the preset target film thickness profile. The etching rate distribution includes the coordinates of each sampling point and the etching rate corresponding to each sampling point. The path generation module is used to obtain the injection nozzle path based on the preset second model and the etching rate distribution; The wafer etching module is used to etch the wafer to be etched according to the liquid spray nozzle path to obtain the etched wafer.

[0019] As an optional implementation, in a second aspect of the invention, the apparatus further includes a gating fusion module, wherein the gating fusion module is used for: Gated fusion is performed on the feature encoding group to obtain the contour token; The contour token is input into a preset bidirectional Selective-SSM to obtain a spatial state representation sequence. The bidirectional Selective-SSM includes a forward Selective-SSM and a reverse Selective-SSM. And, the step of obtaining the etching rate distribution based on the preset first model, according to the feature encoding group, the wafer film thickness profile, and the preset target film thickness profile, includes: Based on the spatial state characterization sequence, the wafer film thickness profile, and the preset target film thickness profile, a spatial token is obtained; the spatial token is input into a preset first model to obtain the etching rate distribution.

[0020] As an optional implementation, in a second aspect of the invention, the apparatus further includes: The variance output module is used to set a first variance output head for the first model to obtain a first conditional variance, wherein the first conditional variance is the conditional variance corresponding to the etching rate distribution at each sampling point; and to set a second variance output head for the second model to obtain a second conditional variance, wherein the second conditional variance is the conditional variance corresponding to the spray nozzle path. Furthermore, the specific operation method of the gated fusion module to perform gated fusion on the feature encoding group to obtain the contour token includes: According to the preset gating fusion weights, the first spatial feature code, the second spatial feature code, and the third spatial feature code are fused by coordinate weight to obtain the contour token; The device also includes: The first update module is used to, when it is determined that the second conditional variance is greater than a preset first threshold, correct the gated fusion weights according to the first conditional variance and the second conditional variance to obtain corrected gated fusion weights. The corrected gated fusion weights are used to update the contour token to update the nozzle path, resulting in an updated nozzle path. The updated first conditional variance is obtained according to the first variance output head, and the updated second conditional variance is obtained according to the second variance output head. When it is determined that the updated second conditional variance is greater than the first threshold, the corrected gated fusion weights are corrected multiple times according to the updated first conditional variance and the updated second conditional variance until it is determined that the updated second conditional variance is less than the first threshold. The updated nozzle path in the last round of correction is then obtained to etch the wafer to be etched, resulting in an etched wafer.

[0021] As an optional implementation, in a second aspect of the present invention, the variance output module obtains a second conditional variance based on the second variance output header, including: Based on the second variance output head, the initial conditional variance is obtained; based on the first conditional variance, the adjustment coefficient is obtained, which is used to represent the variance propagation from the first variance output head to the second variance output head; The second conditional variance is obtained based on the initial conditional variance and the adjustment coefficient.

[0022] A third aspect of the present invention discloses an apparatus comprising a memory and a processor, the apparatus comprising: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute some or all of the steps in the wet etching method based on multi-scale coding according to any of the first aspects of the present invention.

[0023] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked by a processor, are used to execute some or all of the steps in the wet etching method based on multi-scale coding as described in any of the first aspects of the present invention.

[0024] Compared with the prior art, the present invention has the following beneficial effects: This invention first uses two models in combination to obtain the device execution path: the first model obtains the etching rate distribution based on the wafer film thickness profile and the target film thickness profile, and the second model obtains the nozzle path based on the etching rate distribution. This process realizes the reverse derivation process from measured data to physical quantities and then to device execution. At the same time, three feature codes, from the perspectives of film thickness value, neighborhood change trend, and spatial change rate, respectively, achieve scale coverage of "low-pass-band-high-pass", enriching the feature representation at the input of the two models. This allows spatial expression to be preserved in the data processing link of the two models, thereby improving the accuracy of the wet etching process by avoiding the deviation caused by human experience operation through a characteristic and automated etching process. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a schematic flowchart of a wet etching method based on multi-scale coding disclosed in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a wet etching apparatus based on multi-scale coding disclosed in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a device including a memory and a processor disclosed in an embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0029] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0030] Example 1 Please see Figure 1 , Figure 1 This is a schematic flowchart of a wet etching method based on multi-scale coding, disclosed in an embodiment of the present invention. This wet etching method based on multi-scale coding can be applied to a wet etching apparatus based on multi-scale coding. Figure 1 As shown, this wet etching method based on multi-scale coding may include: Step 101: Obtain the wafer to be etched and its corresponding wafer film thickness profile.

[0031] In this embodiment of the invention, the wafer to be etched can be a wafer that has just undergone CMP but whose thickness distribution is still uneven. CMP achieves global planarization of the wafer through mechanical polishing, but due to factors such as polishing pad morphology and pressure distribution, it is difficult to guarantee uniformity within the wafer. The purpose of wet etching is to remove excess material based on the measured thickness distribution map, so that the thickness of the entire wafer tends to be uniform. The etching solution that can be used in the wet etching process includes, but is not limited to, hydrofluoric acid-based mixtures, alkaline solutions (such as potassium hydroxide), and TMAH (tetramethylammonium hydroxide).

[0032] In this embodiment of the invention, film thickness refers to the remaining physical thickness of the material layer to be corrected (etched) on the wafer surface after CMP, typically a dielectric layer such as silicon oxide, or a metal layer such as copper. For example, after shallow trench isolation (STI) CMP, this film thickness refers to the remaining thickness of silicon oxide.

[0033] The film thickness can be obtained using spectral ellipsometry, spectral reflectometry, eddy current sensors, and X-ray fluorescence (XRF). For example, spectral ellipsometry obtains curves of polarization state changes Ψ and Δ as a function of wavelength, spectral reflectometry obtains curves of reflectivity R as a function of wavelength, eddy current sensors obtain voltage or frequency signals, and XRF obtains the characteristic X-ray counts of elements.

[0034] The wafer film thickness profile can be a surface profile (or radial profile curve) obtained by converting the aforementioned raw data through device software (optical model fitting or calibration curve). This surface profile can map the film thickness values ​​at measurement points according to physical coordinates, forming a film thickness distribution. The measurement points are sampling points, and each sampling point corresponds to a film thickness value. That is, the wafer film thickness profile can include the spatial coordinates of multiple wafers to be etched and the film thickness value corresponding to each spatial coordinate. It should be noted that the etching rate distribution appearing in subsequent embodiments includes the spatial coordinates of multiple wafers to be etched and the etching rate corresponding to each spatial coordinate.

[0035] In addition, the number of sampling points can be set according to the data source and equipment conditions, and can be 49 points, 81 points, 88 points, 101 points, 121 points or other sampling points. Sampling points can discretize the wafer film thickness curve in the original data, which is convenient for model input. At the same time, sufficient spatial resolution is retained to describe the center, edge and local fluctuations.

[0036] Step 102: Encode the wafer film thickness profile to obtain multiple sampling points and the feature encoding group corresponding to each sampling point.

[0037] In this embodiment of the invention, the feature encoding group includes a first spatial feature encoding, a second spatial feature encoding, and a third spatial feature encoding. The first spatial feature encoding represents the film thickness value at each sampling point, and this film thickness value represents a point-level feature, reflecting the absolute thickness. Furthermore, the first spatial feature encoding can also use the difference between the film thickness value corresponding to each sampling point and the average film thickness to reflect the absolute deviation between thicknesses.

[0038] The second spatial feature encoding can be used to represent the neighborhood change trend of each sampling point. Specifically, the neighborhood can be a spatial neighborhood (neighborhood space), which further determines other sampling points within the radius or tangible surface range using a preset radius or a preset tangible surface, and defines them as spatial neighborhood points. All spatial neighborhood points constitute the spatial neighborhood point set in subsequent embodiments. The tangible surface can include shapes such as rings, sectors, and rectangles. The tangible surface can use the sampling point (target sampling point) as the center to identify spatial neighborhood points. Alternatively, k-nearest neighbors can be used, selecting the k nearest sampling points.

[0039] In an optional embodiment, the method for obtaining the second spatial feature code may include: For each sampling point, the set of spatial neighborhood points of that sampling point is obtained; Based on the spatial neighborhood point set, the second spatial feature code corresponding to the sampling point is obtained, where the second spatial feature code... It is calculated in the following way:

[0040] in,

[0041]

[0042] In the above formula, N(i) is the spatial neighborhood set of the i-th sampling point. Here, i and j represent the average membrane thickness corresponding to the point set in this spatial domain, and i and j are indices. Let j be the film thickness value corresponding to the j-th sampling point. Let be the coordinates of the j-th sampling point, and r be a preset hyperparameter, which can be adjusted according to the actual task requirements.

[0043] The third spatial feature encoding can be used to represent the spatial rate of change of each sampling point. This spatial rate of change can be a common gradient, obtained by the gradient of the membrane thickness change relative to the coordinate change. Alternatively, it can be the local plane fitting slope calculated by weighted least squares over the neighborhood, or the second spatial derivative of the target sampling point can be constructed using the Laplacian operator, or a Hessian matrix can be used, etc.

[0044] In an optional embodiment, the sampling points can be obtained by meshing the wafer film thickness profile, and the third spatial feature encoding corresponding to the i-th sampling point is... It can be calculated in the following way:

[0045] in,

[0046]

[0047] In the above formula, x is the index of the i-th sampling point in the horizontal axis direction, and y is the index of the i-th sampling point in the vertical axis direction. The grid spacing is in the horizontal direction. Used to represent the rate of change of film thickness along the horizontal axis. The grid spacing is in the vertical direction. Used to represent the rate of change of film thickness along the vertical axis. Used to represent the film thickness value corresponding to the sampling point with x+1 as the horizontal coordinate index and y as the vertical coordinate index.

[0048] It should be noted that if only the wafer film thickness profile and the target film thickness profile are input into the first model, the model can only learn a point-to-point mapping of "film thickness → etching rate". However, the etching rate does not only depend on the film thickness value, but also on the local consumption of reactants and accumulation of products (how much material is around the target sampling point), fluid flow and temperature and stress gradients (spatial variations at the location of the target sampling point), as well as the inherent asymmetry of spin coating and CMP. Therefore, it is necessary to input the encoded spatial context information into the first model, so that the first model can be upgraded from point-by-point lookup table to spatial field modeling.

[0049] Step 103: Based on the preset first model, obtain the etching rate distribution according to the feature coding group, the wafer film thickness profile and the preset target film thickness profile.

[0050] It should be noted that, in addition to obtaining the etching rate distribution based on the feature coding group, the wafer film thickness profile, and the preset target film thickness profile, the first model also obtains the process time of the etching rate distribution.

[0051] It should be noted that the obtained process time can be used to verify the total duration of the nozzle path. The total duration of the nozzle path can be determined based on the segment length between each control point in the path and the nozzle movement speed. When the deviation between the total duration of the nozzle path and the process time exceeds the preset time deviation threshold, the nozzle path can be adjusted so that the total time of etching according to the nozzle path matches the process time, thereby ensuring that the total removal amount is close to the target removal amount.

[0052] The process time can be a total time or a time distribution consisting of the local dwell times corresponding to each sampling point. This initial process time can be used for: 1. Make an initial estimate of the overall process execution time; Second, verify the rationality of the target etching rate and whether the total time is within the production capacity window.

[0053] It should be noted that the target removal amount distribution is obtained by subtracting the wafer film thickness profile from the target film thickness profile at each sampling point coordinate. The goal of the first model design is to find a set of achievable rate distributions and initial process times (global time) such that the total removal amount at each coordinate (x, y) on the wafer is close to the target removal amount.

[0054] In the above formula, R(x,y) is the total amount removed, and T is the global time. It is the etching rate distribution. It is the target removal amount.

[0055] Here, the etching rate distribution is the required film thickness removal rate at each location on the wafer, while time is how long this removal process needs to last. The combined constraint of the two enables the first model to find a set of E and T in the rate space achievable by the device during data processing, so as to minimize the error of the total removal amount.

[0056] The first model can be a statistical model, which uses polynomial fitting to establish the relationship between process parameters (power, pressure, gas flow rate, etc.) and etching rate. A design of experiments (DOE) is used to establish the functional relationship between process parameters and etching rate, and then models are created at different locations on the wafer surface to achieve real-time rate prediction. Alternatively, the model can be a physical mechanism model, such as a Monte Carlo particle transport model, which tracks the transport of ions and neutral particles at characteristic scales, calculates the net flux at each point on the wafer surface, and thus obtains the target etching rate. Finally, the model can be a neural network surrogate model, for example, using MLP, RNN, or Transformer to learn the mapping from film thickness removal to etching rate, obtaining simulation results for the etching rate.

[0057] Preferably, the conditional generation model can adopt the Transformer Encoder architecture: First, the input features are reconstructed, and each spatial sampling point is processed. The input features of the first model can be written as:

[0058] in, For normalized coordinates, The standardized Post CMP film thickness (initial film thickness distribution parameters). The standardized target film thickness profile (target film thickness distribution). The standardized film thickness removal amount satisfies the following conditions: At this point, the input to the conditional generation model is a four-channel sequence consisting of coordinates, initial film thickness distribution parameters, target film thickness distribution parameters, and target removal amount distribution.

[0059] To further demonstrate the training process of the conditional generation model, the first model can be trained using the following three loss functions, where the first loss function is... The calculation method is as follows:

[0060] In the above formula, L represents the total number of coordinates on the sample wafer. To sum element-wise from coordinate index 1 to L, coordinates The predicted etch rate on The etching rate distribution of this sample is shown on the coordinate system. The sample etching rate on; Among them, the second loss function The formula is:

[0061] In the above formula, To predict process time, For sample processing time; Among them, the third loss function The formula is:

[0062] In the above formula, The sample film thickness distribution and the target sample film thickness distribution are shown on the coordinate system. The difference (the distribution of the target removal amount corresponding to the sample wafer); The first loss function is used to calculate the prediction error of the etching rate distribution, the second loss function is used to calculate the time prediction error, and the third loss function is used to calculate the physical consistency error.

[0063] In this embodiment of the invention, based on a preset first model, the etching rate distribution is obtained according to the feature encoding group, the wafer film thickness profile, and the preset target film thickness profile. Specifically, the spatial state representation sequence (feature encoding group), the wafer film thickness profile, and the preset target film thickness profile can be fused into a coordinate spatial token. The form of this spatial token is as follows:

[0064] in, As coordinates, This refers to the wafer film thickness profile (film thickness distribution parameters). For the target film thickness profile, For the target removal amount, It encodes three features.

[0065] Based on this, the first model can also be configured with a contrastive loss, such as:

[0066] In the above formula, As a positive sample, This is a negative sample.

[0067] Step 104: Based on the preset second model, obtain the spray nozzle path according to the etching rate distribution.

[0068] In this embodiment of the invention, the nozzle path may include multiple control point coordinates and the nozzle's moving speed. The control points are speed control points. The moving speed, or linear velocity, is a vector quantity used to represent how fast the nozzle moves on the wafer surface. Controlling the speed allows for control of the local etching time. Specifically, the lower the speed, the longer the nozzle / jet nozzle stays in that area, typically resulting in a greater local etching effect; conversely, the higher the speed, the shorter the dwell time, and the relatively weaker the local etching effect.

[0069] The nozzle path can be a two-dimensional path or a one-dimensional radial path corresponding to a single-wafer rotary etching machine. Furthermore, the coordinates of the control points corresponding to the nozzle path can differ from the coordinates of the sampling points corresponding to the film thickness distribution and etching rate distribution.

[0070] In this embodiment of the invention, the second model is also an inverse model. The forward process derives the wafer surface etching rate distribution through the nozzle path, linear velocity, and process parameters, while the inverse process requires deriving the path in reverse. This inverse derivation model can be a dwell time planning model. Due to the relationship between linear velocity and dwell time / etching amount, the required dwell time for each region can be obtained through the target etching rate distribution, and then converted into nozzle path and velocity. This inverse derivation model can also employ an optimal control or trajectory optimization model, parameterizing the path as NURBS splines and solving it through Bayesian optimization or reinforcement learning methods.

[0071] Preferably, the second model can also adopt a Transformer Encoder + Query Decoder architecture: The etching rate distribution is converted into a sequence of etching rates and their corresponding coordinates; the global feature memory of the ER (etching rate) spatial distribution is obtained through TransformerEncoder; K learnable nozzle path queries (which are trainable parameter vectors learned by the model during training and used as queries for the attention mechanism) are set, each query corresponding to a control point coordinate; information is read from the memory through TransformerDecoder; finally, the coordinates and velocity of each control point are output.

[0072] It can be represented as:

[0073]

[0074]

[0075] In the above formula, For the coordinates of the control points, This represents the moving speed of the spray nozzle.

[0076] To further demonstrate the training process of the conditional generation model, the second model can be trained using the following three loss functions, where the formula for the fourth loss function is:

[0077] In the above formula, K is the total number of control points, and k is the index of the control points. It is the L2 norm. To predict the spray path, The spray path for the first sample; The fourth loss function is used to calculate the nozzle path prediction loss. Additionally, a fifth and a sixth loss function may be included. The fifth loss function is used to constrain the smoothing of the nozzle velocity curve. This curve smoothing loss can be second-order difference smoothing as described in the above embodiments. For example, this loss function can be:

[0078] In the above formula, K is the total number of control points, and k is the index of the control points. This is the predicted value of the nozzle velocity corresponding to the k-th control point.

[0079] The sixth loss function constrains the output nozzle path to not exceed the device range. This device range can be either the effective scanning range of the device or the effective wafer radius range, where the effective wafer radius range corresponds to the actual etching requirements of the wafer. Furthermore, during the post-training inference phase, the output can be pruned to meet this range, and an upper limit can be set on the speed.

[0080] As can be seen, this invention first uses two models in combination to obtain the device execution path: the first model obtains the etching rate distribution based on the wafer film thickness profile and the target film thickness profile, and the second model obtains the nozzle path based on the etching rate distribution. This process realizes the reverse derivation process from measured data to physical quantities and then to device execution. At the same time, three feature codes achieve scale coverage of "low-pass-band-high-pass" from the perspectives of film thickness value, neighborhood change trend, and spatial change rate, respectively, enriching the feature representation at the input of the two models. This allows spatial expression to be preserved in the data processing link of the dual models, thereby improving the accuracy of the wet etching process by avoiding the deviation caused by human experience operation through a characteristic and automated etching process.

[0081] In an optional embodiment, the multi-scale coding-based wet etching method may further include: Gated fusion of feature encoding groups yields contour tokens; Input the contour token into the preset bidirectional Selective-SSM to obtain the spatial state representation sequence. The bidirectional Selective-SSM includes forward Selective-SSM and reverse Selective-SSM. Furthermore, based on a preset first model, and according to the feature encoding group, wafer film thickness profile, and preset target film thickness profile, the etching rate distribution is obtained, including: Based on the spatial state characterization sequence, wafer film thickness profile, and preset target film thickness profile, a spatial token is obtained; the spatial token is input into a preset first model to obtain the etching rate distribution.

[0082] It's important to note that a State Space Model (SSM) can be a probabilistic graphical model used to describe the evolution of the internal states of a sequence over time and how these internal states determine the observed data. It uses state transition equations to describe how the hidden states of the sequence evolve from the previous time step to the current time step, and observation equations to describe how the hidden states at the current time step generate the observed output. Selective-SSM is a selective state space model. While the core parameter matrix of a traditional SSM remains unchanged during sequence processing, Selective-SSM dynamically generates the key parameters of the SSM based on the input data at the current time step through a selective mechanism.

[0083] In this optional embodiment, bidirectional Selective-SSM aggregates and selects contextual information for each coordinate along the sequence direction of the contour tokens, from both forward and backward directions, transforming multi-scale spatial features into context-aware feature representations, thereby making the output more symmetrical and stable. The contour tokens can be sorted using Hilbert curves, Z-order, or KNN paths to arrange the coordinates into a sequence.

[0084] In this optional embodiment, gated fusion is based on a gated network, which can learn to assign corresponding weights to features through training. Specifically, the gated network can be trained jointly, with the gradients of the first and second models fed back to the gated network to adjust the gated fusion weights. The gated fusion weights can describe the proportion of each feature when fusing three features into a single feature parameter. These gated fusion weights determine the tendency of the current input at different feature scales. During the forward propagation phase, the training process of the gated network involves inputting multi-scale features into the first model and then into the second model's output nozzle path, calculating the loss. Starting from this loss, the gradients are backpropagated, updating the gated network parameters according to the gradients, thus enabling the gated network to learn to assign different weights to different scales. If the weight assigned to a certain feature scale is too large, it will lead to a large prediction error and significant loss in the fused sequence after processing by the first and second models. In this case, during backpropagation, the gated network gradients are updated to reduce the weight corresponding to that scale for the next similar input. The contour token appears as a sequence and may include the coordinates of sampling points and the fused feature parameters corresponding to each coordinate.

[0085] In another alternative embodiment, the multi-scale coding-based wet etching method may further include: Set the first variance output head for the first model to obtain the first conditional variance. The first conditional variance is the conditional variance corresponding to the etching rate distribution at each sampling point. Set a second variance output head for the second model to obtain the second conditional variance, which is the conditional variance corresponding to the nozzle path. Furthermore, gating fusion is performed on the feature encoding group to obtain the contour token, including: Based on the preset gating fusion weights, the first spatial feature code, the second spatial feature code, and the third spatial feature code are fused by coordinate weight to obtain the contour token; The method may also include: When it is determined that the second conditional variance is greater than the preset first threshold, the gating fusion weight is corrected according to the first conditional variance and the second conditional variance to obtain the corrected gating fusion weight. The corrected gating fusion weight is used to update the contour token to update the nozzle path to obtain the updated nozzle path. The updated first conditional variance is obtained according to the first variance output head; the updated second conditional variance is obtained according to the second variance output head. When it is determined that the updated second conditional variance is greater than the first threshold, the corrected gating fusion weight is corrected in multiple rounds based on the updated first conditional variance and the updated second conditional variance, until it is determined that the updated second conditional variance is less than the first threshold. Then, the updated nozzle path in the last round of correction is obtained, and the wafer to be etched is etched to obtain the etched wafer.

[0086] In this optional embodiment, a variance output head is provided at the output ends of the first and second models to output the corresponding variance while outputting the etching rate distribution and the nozzle path. This optional embodiment employs a loop update with a stopping condition for the gated fusion weights. The process of correcting the gated fusion weights based on the first and second conditional variances is as follows: For example, if the second conditional variance is too large, it indicates that the nozzle path is unreliable, meaning the rate distribution has lost too much original information. The first spatial feature encoding is absolute thickness and does not contain much noise, while the second and third spatial feature encodings, based on the neighborhood and gradient (spatial rate of change) respectively, contain supplementary information including noise. A large second conditional variance may indicate that the rate distribution has lost too much local detail and needs to rely more on point-by-point thickness. Therefore, the process of correcting the gated fusion weights may include: increasing the weight corresponding to the first spatial feature encoding and decreasing the weights of the second and third spatial feature encodings.

[0087] It should be noted that during the above correction process, whether the first conditional variance is too large can be determined by comparing it with a preset third threshold. For example, when the second conditional variance is greater than the first threshold and the first conditional variance is less than or equal to the preset third threshold, the decision rate distribution loses local details, and a correction is performed to increase the weights corresponding to the first spatial feature encoding and decrease the weights corresponding to the second and third spatial feature encodings. When the second conditional variance is greater than the first threshold and the first conditional variance is greater than the preset third threshold, the decision rate prediction requires more spatial context information, and a correction is performed to decrease the weights corresponding to the first spatial feature encoding and increase the weights corresponding to the second and third spatial feature encodings. The magnitude of the weight increase or decrease during the correction process can be a preset hyperparameter, or it can be dynamically determined based on the proportion by which the second conditional variance exceeds the first threshold. For example, it can be proportional to the ratio of the difference between the second conditional variance and the first threshold to the first threshold, and the sum of all weights remains unchanged after the correction. In addition, the multi-round correction can be set with a preset maximum number of iteration rounds. If the updated second conditional variance is still not less than the first threshold after reaching the maximum number of iteration rounds, the gated fusion weight and nozzle path corresponding to the round with the smallest updated second conditional variance in the multi-round correction process can be taken as the correction result to avoid the correction process being unable to terminate.

[0088] Conversely, for cases where the variance of the first condition is too large, since the etching rate is more dependent on the morphology, the weights of the second and third spatial feature codes can be increased, thereby reducing the weight of the first spatial feature code. The above-mentioned variance-based correction process aims to improve the accuracy of the final output nozzle path.

[0089] In yet another optional embodiment, the second conditional variance is obtained in the following ways: Based on the second variance output head, the initial conditional variance is obtained; based on the first conditional variance, the adjustment coefficient is obtained, which is used to represent the variance propagation from the first variance output head to the second variance output head. The second conditional variance is obtained based on the initial conditional variance and the adjustment coefficient.

[0090] It should be noted that variance propagation refers to the additional variance in the final output, resulting from the uncertainty in the output of the first model, after being mapped by the second model. Because the etching rate distribution output by the first model is a fluctuating value satisfying the conditions of mean and variance, this can cause output jitter in the second model, for example: Assume the relationship between the nozzle path P and the etching rate is as follows: P=f(R) R is a random variable:

[0091] Using a first-order Taylor expansion, we obtain:

[0092] then,

[0093] Right now:

[0094]

[0095] In the above formula, The first conditional variance, The initial conditional variance, The second conditional variance, This represents the partial derivative of the output with respect to the input in the second model.

[0096] Therefore, the variance output by the second variance head is the etch rate propagation plus the variance of the second model (path model) itself. According to this formula, the variance of the second model itself is obtained by subtracting the variance propagation from the total variance.

[0097] It should be noted that the variance of the second model itself can be used to monitor the prediction degradation of the second model. For example, when the variance of the second model exceeds a preset variance monitoring threshold, retraining of the second model can be triggered to restore the prediction reliability of the second model.

[0098] In yet another optional embodiment, the wet etching method based on multi-scale coding may further include: Based on the preset third model, the simulated velocity distribution is obtained according to the nozzle path; The average residual is obtained based on the simulated rate distribution and the updated etch rate distribution. The updated etch rate distribution is obtained by updating the contour token in the last round of correction of the gated fusion weight, and then updating the etch rate distribution. When it is determined that the average residual is greater than the preset second threshold, an optimization operation is performed. The optimization operation includes: optimizing the updated etching rate distribution based on the average residual to obtain the optimized etching rate distribution; inputting the optimized etching rate distribution into the second model to obtain the optimized nozzle path; and inputting the optimized nozzle path into the third model to obtain the optimized simulated rate distribution. When it is determined that the average residual corresponding to the optimized simulated rate distribution is greater than the preset second threshold, multiple rounds of optimization operations are performed on the optimized etching rate distribution until it is determined that the average residual corresponding to the last round of optimized simulated rate distribution is less than the preset second threshold. Then, the last round of optimized nozzle path is used to etch the wafer to be etched, and the etched wafer is obtained.

[0099] It should be noted that during the optimization of the updated etching rate distribution based on the average residual, the optimization operation can adopt a point-by-point correction method. For example, for each sampling point, the updated etching rate at that sampling point is corrected based on the difference between the simulated rate and the updated etching rate, resulting in the optimized etching rate at that sampling point. The optimized etching rates at each sampling point constitute the optimized etching rate distribution. The magnitude of the point-by-point correction can be proportional to the difference between the simulated rate and the updated etching rate at that sampling point, with the proportionality coefficient being a preset step size coefficient. This allows the optimized etching rate distribution to gradually approach the simulated rate distribution when the average residual is greater than the second threshold. Furthermore, a preset maximum number of iterations can be set for multi-round optimization. If the average residual is still not less than the second threshold after reaching the maximum number of iterations, the nozzle path corresponding to the round with the smallest average residual during the multi-round optimization process can be taken as the final result. Furthermore, before determining whether the optimized spray nozzle path is used to etch the wafer to be etched, the updated second conditional variance corresponding to the optimized etching rate distribution can be rechecked according to the second variance output head to ensure that the optimization process does not violate the variance constraint. If the recheck passes, the etching is then performed to ensure that the optimization process does not violate the variance constraint.

[0100] Example 2 Please see Figure 2 , Figure 2 This is a schematic diagram of a wet etching apparatus based on multi-scale coding disclosed in an embodiment of the present invention. Figure 2 As shown, the wet etching apparatus based on multi-scale coding may include: The contour acquisition module 201 is used to acquire the wafer to be etched and its corresponding wafer film thickness contour. The feature encoding module 202 is used to encode the wafer film thickness profile to obtain multiple sampling points and a feature encoding group corresponding to each sampling point. The feature encoding group includes a first spatial feature encoding, a second spatial feature encoding, and a third spatial feature encoding. The first spatial feature encoding is used to represent the film thickness value of each sampling point, the second spatial feature encoding is used to represent the neighborhood change trend of each sampling point, and the third spatial feature encoding is used to represent the spatial change rate of each sampling point. The rate generation module 203 is used to obtain an etching rate distribution based on a preset first model, according to the feature coding group, the wafer film thickness profile and the preset target film thickness profile. The etching rate distribution includes the coordinates of each sampling point and the etching rate corresponding to each sampling point. The path generation module 204 is used to obtain the spray nozzle path based on the etching rate distribution according to the preset second model. The wafer etching module 205 is used to etch the wafer to be etched according to the liquid spray nozzle path to obtain the etched wafer.

[0101] In an optional embodiment, the device may further include a gating fusion module, wherein the gating fusion module can be used for: Gated fusion of feature encoding groups yields contour tokens; Input the contour token into the preset bidirectional Selective-SSM to obtain the spatial state representation sequence. The bidirectional Selective-SSM includes forward Selective-SSM and reverse Selective-SSM. Furthermore, based on a preset first model, and according to the feature encoding group, wafer film thickness profile, and preset target film thickness profile, the etching rate distribution is obtained, which may include: Based on the spatial state characterization sequence, wafer film thickness profile, and preset target film thickness profile, a spatial token is obtained; the spatial token is input into a preset first model to obtain the etching rate distribution.

[0102] In another alternative embodiment, the device may further include: The variance output module is used to set the first variance output head for the first model to obtain the first conditional variance, which is the conditional variance corresponding to the etching rate distribution at each sampling point; and to set the second variance output head for the second model to obtain the second conditional variance, which is the conditional variance corresponding to the nozzle path. Furthermore, the specific operation method of the gated fusion module to perform gated fusion on the feature encoding group to obtain the contour token includes: Based on the preset gating fusion weights, the first spatial feature code, the second spatial feature code, and the third spatial feature code are fused by coordinate weight to obtain the contour token; The device may also include: The first update module is used to correct the gating fusion weights based on the first and second conditional variances when the second conditional variance is determined to be greater than a preset first threshold. The corrected gating fusion weights are then used to update the contour tokens to update the nozzle path, resulting in an updated nozzle path. The updated first conditional variance is obtained based on the first variance output head, and the updated second conditional variance is obtained based on the second variance output head. When the updated second conditional variance is determined to be greater than the first threshold, the corrected gating fusion weights are corrected multiple times based on the updated first and second conditional variances until the updated second conditional variance is determined to be less than the first threshold. The updated nozzle path in the final correction process is then obtained for etching the wafer to be etched, resulting in an etched wafer.

[0103] In yet another optional embodiment, the variance output module obtains the second conditional variance based on the second variance output header, which may include: Based on the second variance output head, the initial conditional variance is obtained; based on the first conditional variance, the adjustment coefficient is obtained, which is used to represent the variance propagation from the first variance output head to the second variance output head. The second conditional variance is obtained based on the initial conditional variance and the adjustment coefficient.

[0104] Example 3 Please see Figure 3 , Figure 3 This is a schematic diagram of a device including a memory and a processor, as disclosed in an embodiment of the present invention. Figure 3 As shown, the device including memory and processor may include: Memory 301 storing executable program code; Processor 302 coupled to memory 301; The processor 302 calls the executable program code stored in the memory 301 to execute some or all of the steps in any of the wet etching methods based on multi-scale coding in Embodiment 1 of the present invention.

[0105] Example 4 This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute some or all of the steps in any of the wet etching methods based on multi-scale coding disclosed in Embodiment 1 of this invention.

[0106] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0107] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0108] Finally, it should be noted that the above embodiments are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A wet etching method based on multi-scale coding, characterized in that, The method includes: Obtain the wafer to be etched and its corresponding wafer film thickness profile; The wafer film thickness profile is encoded to obtain multiple sampling points and a feature encoding group corresponding to each sampling point. The feature encoding group includes a first spatial feature encoding, a second spatial feature encoding, and a third spatial feature encoding. The first spatial feature encoding is used to represent the film thickness value of each sampling point, the second spatial feature encoding is used to represent the neighborhood change trend of each sampling point, and the third spatial feature encoding is used to represent the spatial change rate of each sampling point. Based on the preset first model, the etching rate distribution is obtained according to the feature encoding group, the wafer film thickness profile and the preset target film thickness profile. The etching rate distribution includes the coordinates of each sampling point and the etching rate corresponding to each sampling point. Based on the preset second model, the nozzle path is obtained according to the etching rate distribution; The wafer to be etched is etched according to the spray nozzle path to obtain the etched wafer.

2. The wet etching method based on multi-scale coding according to claim 1, characterized in that, The method further includes: Gated fusion is performed on the feature encoding group to obtain the contour token; The contour token is input into a preset bidirectional Selective-SSM to obtain a spatial state representation sequence. The bidirectional Selective-SSM includes a forward Selective-SSM and a reverse Selective-SSM. And, the step of obtaining the etching rate distribution based on the preset first model, according to the feature encoding group, the wafer film thickness profile, and the preset target film thickness profile, includes: Based on the spatial state characterization sequence, the wafer film thickness profile, and the preset target film thickness profile, a spatial token is obtained; the spatial token is input into a preset first model to obtain the etching rate distribution.

3. The wet etching method based on multi-scale coding according to claim 2, characterized in that, The method further includes: A first variance output head is set for the first model to obtain a first conditional variance, which is the conditional variance corresponding to the etching rate distribution at each sampling point. A second variance output head is set for the second model to obtain a second conditional variance, which is the conditional variance corresponding to the spray nozzle path. And, the gating fusion of the feature encoding group to obtain the contour token includes: According to the preset gating fusion weights, the first spatial feature code, the second spatial feature code, and the third spatial feature code are fused by coordinate weight to obtain the contour token; Furthermore, the method further includes: When it is determined that the second conditional variance is greater than a preset first threshold, the gate fusion weight is corrected according to the first conditional variance and the second conditional variance to obtain the corrected gate fusion weight. The corrected gate fusion weight is used to update the contour token to update the nozzle path to obtain the updated nozzle path. The updated first conditional variance is obtained according to the first variance output head; the updated second conditional variance is obtained according to the second variance output head. When it is determined that the updated second conditional variance is greater than the first threshold, the modified gating fusion weight is modified in multiple rounds based on the updated first conditional variance and the updated second conditional variance, until it is determined that the updated second conditional variance is less than the first threshold. Then, the updated nozzle path in the last round of modification is obtained to etch the wafer to be etched, and the etched wafer is obtained.

4. The wet etching method based on multi-scale coding according to claim 3, characterized in that, The second conditional variance is obtained through the following methods: Based on the second variance output head, the initial conditional variance is obtained; based on the first conditional variance, the adjustment coefficient is obtained, which is used to represent the variance propagation from the first variance output head to the second variance output head; The second conditional variance is obtained based on the initial conditional variance and the adjustment coefficient.

5. The wet etching method based on multi-scale coding according to claim 3, characterized in that, The second spatial feature encoding acquisition method includes: For each sampling point, the set of spatial neighborhood points of that sampling point is obtained; Based on the spatial neighborhood point set, a second spatial feature code corresponding to the sampling point is obtained, wherein the second spatial feature code... It is calculated in the following way: in, In the above formula, N(i) is the spatial neighborhood set of the i-th sampling point. Here, i and j represent the average membrane thickness corresponding to the point set in this spatial domain, and i and j are indices. Let j be the film thickness value corresponding to the j-th sampling point. Let be the coordinates of the j-th sampling point, and r be a preset hyperparameter.

6. The wet etching method based on multi-scale coding according to claim 5, characterized in that, The sampling points are obtained by dividing the wafer film thickness profile into a mesh, and the third spatial feature encoding corresponds to the i-th sampling point. It is calculated in the following way: in, In the above formula, x is the index of the i-th sampling point in the horizontal axis direction, and y is the index of the i-th sampling point in the vertical axis direction. The grid spacing is in the horizontal direction. Used to represent the rate of change of film thickness along the horizontal axis. The grid spacing is in the vertical direction. Used to represent the rate of change of film thickness along the vertical axis. Used to represent the film thickness value corresponding to the sampling point with x+1 as the horizontal coordinate index and y as the vertical coordinate index.

7. The wet etching method based on multi-scale coding according to claim 6, characterized in that, The method further includes: Based on the preset third model, the simulated velocity distribution is obtained according to the nozzle path; The average residual is obtained based on the simulated rate distribution and the updated etch rate distribution. The updated etch rate distribution is obtained by updating the contour token in the last round of correction of the gated fusion weight, and then updating the etch rate distribution. When it is determined that the average residual is greater than a preset second threshold, an optimization operation is performed. The optimization operation includes: optimizing the updated etching rate distribution based on the average residual to obtain an optimized etching rate distribution; inputting the optimized etching rate distribution into the second model to obtain an optimized nozzle path; and inputting the optimized nozzle path into the third model to obtain an optimized simulated rate distribution. When it is determined that the average residual corresponding to the optimized simulated rate distribution is greater than the preset second threshold, multiple rounds of optimization operations are performed on the optimized etching rate distribution until it is determined that the average residual corresponding to the last round of optimized simulated rate distribution is less than the preset second threshold. Then, the last round of optimized nozzle path is used to etch the wafer to be etched, and the etched wafer is obtained.

8. A wet etching apparatus based on multi-scale coding, characterized in that, The device includes: The contour acquisition module is used to acquire the wafer to be etched and its corresponding wafer film thickness contour. The feature encoding module is used to encode the wafer film thickness profile to obtain multiple sampling points and a feature encoding group corresponding to each sampling point. The feature encoding group includes a first spatial feature encoding, a second spatial feature encoding, and a third spatial feature encoding. The first spatial feature encoding is used to represent the film thickness value of each sampling point, the second spatial feature encoding is used to represent the neighborhood change trend of each sampling point, and the third spatial feature encoding is used to represent the spatial change rate of each sampling point. The rate generation module is used to obtain an etching rate distribution based on a preset first model, according to the feature encoding group, the wafer film thickness profile, and the preset target film thickness profile. The etching rate distribution includes the coordinates of each sampling point and the etching rate corresponding to each sampling point. The path generation module is used to obtain the injection nozzle path based on the preset second model and the etching rate distribution; The wafer etching module is used to etch the wafer to be etched according to the liquid spray nozzle path to obtain the etched wafer.

9. An apparatus comprising a memory and a processor, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the wet etching method based on multi-scale coding as described in any one of claims 1-7.

10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked by a processor, are used to execute the wet etching method based on multi-scale coding as described in any one of claims 1-7.