Chip Foundry Services Request Assessment

Process Optimization

Process Optimization: Mathematical Modeling

1. Context

A process recipe is a vector of controllable parameters:

$$\mathbf{x} = \begin{bmatrix} T & P & Q_1 & Q_2 & \cdots & t & P_{\mathrm{RF}} \end{bmatrix}^{T} \in \mathbb{R}^n$$

where:

  • $T$ is temperature (°C or K)
  • $P$ is chamber pressure (mTorr or Pa)
  • $Q_i$ are gas flow rates (sccm)
  • $t$ is process time (s)
  • $P_{\mathrm{RF}}$ is RF power (W)

Goal: find the recipe $\mathbf{x}$ whose outputs $\mathbf{y}$ (thickness, critical dimension, uniformity, defectivity, and so on) meet specification with margin, while accounting for variability.

2. Mathematical Modeling Approaches

2.1 Physics-Based (First-Principles) Models

Chemical vapor deposition (CVD) example. Species transport in the reactor follows the convection-diffusion-reaction equation:

$$\dfrac{\partial C}{\partial t} + \nabla\cdot(\mathbf{u}C) = D\nabla^2 C + R(C, T)$$

where:

  • $C$ is the species concentration
  • $\mathbf{u}$ is the gas velocity field
  • $D$ is the diffusion coefficient
  • $R(C, T)$ is the volumetric reaction rate

Surface reaction kinetics follow the Arrhenius form:

$$k_s = A\exp\left(-\dfrac{E_a}{RT}\right)$$

where:

  • $A$ is the pre-exponential factor
  • $E_a$ is the activation energy (per mole)
  • $R$ is the gas constant
  • $T$ is the absolute temperature

In the Grove model, the deposition flux combines gas-phase mass transfer and surface reaction in series:

$$J = \dfrac{k_s h_g}{k_s + h_g}\, C_g = \dfrac{k_s C_g}{1 + k_s/h_g}$$

where:

  • $C_g$ is the reactant concentration in the bulk gas
  • $h_g$ is the gas-phase mass-transfer coefficient

When $k_s \ll h_g$ the process is reaction-limited ($J \approx k_s C_g$, strongly temperature dependent). When $k_s \gg h_g$ it is transport-limited ($J \approx h_g C_g$, weakly temperature dependent and sensitive to flow and geometry). The growth rate is $J$ divided by the number density of the deposited film.

Characteristics:

  • Advantages: extrapolates beyond the training data and is physically interpretable
  • Disadvantages: computationally expensive and requires detailed knowledge of the mechanism

2.2 Empirical and Statistical Models (Response Surface Methodology)

The second-order polynomial model is

$$y = \beta_0 + \sum_{i=1}^{n}\beta_i x_i + \sum_{i=1}^{n}\beta_{ii} x_i^2 + \sum_{i<j}\beta_{ij} x_i x_j + \varepsilon$$

where:

  • $\beta_0$ is the intercept
  • $\beta_i$ are the linear coefficients
  • $\beta_{ii}$ are the quadratic coefficients
  • $\beta_{ij}$ are the interaction coefficients
  • $\varepsilon \sim \mathcal{N}(0, \sigma^2)$ is the random error

In matrix form,

$$\mathbf{y} = X\boldsymbol{\beta} + \boldsymbol{\varepsilon},$$

and the least-squares estimator is

$$\hat{\boldsymbol{\beta}} = (X^{T}X)^{-1}X^{T}\mathbf{y}.$$

Design of experiments (DOE) options:

  • Central composite design (CCD)
  • Box-Behnken design
  • D-optimal designs
  • Fractional factorial designs (for screening)

2.3 Gaussian Process (Kriging) Models

The Gaussian process (GP) prior is

$$y(\mathbf{x}) \sim \mathcal{GP}\left(m(\mathbf{x}),\, k(\mathbf{x}, \mathbf{x}')\right).$$

The squared-exponential (RBF) kernel with automatic relevance determination is

$$k(\mathbf{x}, \mathbf{x}') = \sigma_f^2 \exp\left(-\dfrac{1}{2}\sum_{d=1}^{n}\dfrac{(x_d - x'_d)^2}{\ell_d^2}\right)$$

where:

  • $\sigma_f^2$ is the signal variance
  • $\ell_d$ is the length scale for dimension $d$

The Matérn 5/2 kernel is a common, less smooth alternative:

$$k(\mathbf{x}, \mathbf{x}') = \sigma_f^2\left(1 + \sqrt{5}\,r + \dfrac{5r^2}{3}\right)\exp\left(-\sqrt{5}\,r\right),\qquad r = \sqrt{\sum_d \dfrac{(x_d - x'_d)^2}{\ell_d^2}}.$$

For a zero prior mean, the predictive mean at a new point $\mathbf{x}_*$ is

$$\mu(\mathbf{x}_*) = \mathbf{k}_*^{T}(K + \sigma_n^2 I)^{-1}\mathbf{y}$$

and the predictive variance is

$$\sigma^2(\mathbf{x}_*) = k(\mathbf{x}_*, \mathbf{x}_*) - \mathbf{k}_*^{T}(K + \sigma_n^2 I)^{-1}\mathbf{k}_*$$

where:

  • $\mathbf{k}_* = \left[k(\mathbf{x}_*, \mathbf{x}_1), \ldots, k(\mathbf{x}_*, \mathbf{x}_N)\right]^{T}$ over the $N$ training points
  • $K$ is the Gram matrix with $K_{ij} = k(\mathbf{x}_i, \mathbf{x}_j)$
  • $\sigma_n^2$ is the measurement-noise variance

Key advantage: built-in uncertainty quantification, which matters when each experiment costs wafers and tool time.

2.4 Neural Network Models

A feedforward neural network with $L$ layers is

$$\mathbf{y} = f_{\theta}(\mathbf{x}) = \sigma_L\left(W_L\,\sigma_{L-1}\left(\cdots\,\sigma_1(W_1\mathbf{x} + \mathbf{b}_1)\cdots\right) + \mathbf{b}_L\right)$$

where:

  • $W_l$ is the weight matrix of layer $l$
  • $\mathbf{b}_l$ is the bias vector of layer $l$
  • $\sigma_l$ is the activation function (ReLU, tanh, and so on)

Physics-informed neural networks (PINNs) add a penalty on the residual of the governing equations:

$$\mathcal{L} = \mathcal{L}_{\text{data}} + \lambda\,\mathcal{L}_{\text{physics}}$$
$$\mathcal{L}_{\text{data}} = \dfrac{1}{N}\sum_{i=1}^{N}\left\|\mathbf{y}_i - f_\theta(\mathbf{x}_i)\right\|^2,\qquad \mathcal{L}_{\text{physics}} = \dfrac{1}{M}\sum_{j=1}^{M}\left\|\mathcal{F}[f_\theta](\mathbf{x}_j)\right\|^2$$

where $\mathcal{F}$ is the differential operator of the governing equations, evaluated at $M$ collocation points.

3. Optimization Formulations

3.1 Standard Constrained Optimization

The general form is

$$\min_{\mathbf{x}}\ f(\mathbf{x}) = \left\|\mathbf{y}(\mathbf{x}) - \mathbf{y}_{\text{target}}\right\|_2^2$$

subject to

$$\begin{aligned} \mathbf{y}_L &\le \mathbf{y}(\mathbf{x}) \le \mathbf{y}_U && \text{(specification limits)} \\ \mathbf{x}_L &\le \mathbf{x} \le \mathbf{x}_U && \text{(equipment limits)} \\ \mathbf{g}(\mathbf{x}) &\le \mathbf{0} && \text{(process constraints)} \end{aligned}$$

A weighted multi-output objective normalizes each output by its tolerance $\Delta_j$:

$$f(\mathbf{x}) = \sum_{j=1}^{m} w_j\left(\dfrac{y_j(\mathbf{x}) - y_{j,\text{target}}}{\Delta_j}\right)^2$$

3.2 Multi-Objective Optimization

The vector optimization problem is

$$\min_{\mathbf{x}}\ \mathbf{F}(\mathbf{x}) = \begin{bmatrix} f_1(\mathbf{x}) & f_2(\mathbf{x}) & \cdots & f_k(\mathbf{x}) \end{bmatrix}^{T}$$

Example objectives:

  • $f_1$: deviation from target thickness, $|t - t_{\text{target}}|$
  • $f_2$: within-wafer non-uniformity, $\mathrm{WIWNU} = (\sigma/\mu)\times 100\%$
  • $f_3$: cycle time, $T_{\text{process}}$
  • $f_4$: defect density, $D_0$

Pareto dominance: $\mathbf{x}^{(1)}$ dominates $\mathbf{x}^{(2)}$ if

$$f_i(\mathbf{x}^{(1)}) \le f_i(\mathbf{x}^{(2)})\ \ \forall i \quad\text{and}\quad \exists\, j:\ f_j(\mathbf{x}^{(1)}) < f_j(\mathbf{x}^{(2)}).$$

Solution methods:

  • Weighted sum: $\min \sum_{i=1}^{k} w_i f_i(\mathbf{x})$; finds only the convex part of the Pareto front
  • ε-constraint: $\min f_1(\mathbf{x})$ subject to $f_i(\mathbf{x}) \le \varepsilon_i$ for $i \ge 2$
  • Evolutionary algorithms: NSGA-II, MOEA/D

3.3 Robust Optimization

Sources of uncertainty $\boldsymbol{\xi}$:

  • Control noise (recipe execution variability)
  • Equipment drift
  • Incoming material variation
  • Measurement noise

The mean-variance formulation is

$$\min_{\mathbf{x}}\ \mathbb{E}[f(\mathbf{x}, \boldsymbol{\xi})] + \kappa\sqrt{\operatorname{Var}[f(\mathbf{x}, \boldsymbol{\xi})]}$$

where $\kappa$ is the risk-aversion parameter.

First-order (Taylor) uncertainty propagation gives

$$\mathbb{E}[y] \approx y(\bar{\mathbf{x}}),\qquad \operatorname{Var}[y] \approx \sum_{i=1}^{n}\left(\dfrac{\partial y}{\partial x_i}\right)^2\sigma_{x_i}^2 + 2\sum_{i<j}\dfrac{\partial y}{\partial x_i}\dfrac{\partial y}{\partial x_j}\operatorname{Cov}(x_i, x_j).$$

The sensitivity coefficient of input $i$ is

$$S_i = \left|\dfrac{\partial y}{\partial x_i}\right|\dfrac{\sigma_{x_i}}{\sigma_y}.$$

Chance-constrained optimization requires the output to be in specification with high probability:

$$\Pr\left(\mathrm{LSL} \le y(\mathbf{x}, \boldsymbol{\xi}) \le \mathrm{USL}\right) \ge 1 - \alpha.$$

For a Gaussian output, a sufficient condition is

$$\mu - z_{1-\alpha/2}\,\sigma \ge \mathrm{LSL} \quad\text{and}\quad \mu + z_{1-\alpha/2}\,\sigma \le \mathrm{USL},$$

where $z_{1-\alpha/2}$ is the standard normal quantile.

The process capability index is

$$C_{pk} = \min\left(\dfrac{\mathrm{USL} - \mu}{3\sigma},\, \dfrac{\mu - \mathrm{LSL}}{3\sigma}\right),$$

and $C_{pk} \ge 1.33$ is a common production target.

3.4 Bayesian Optimization

Algorithm for expensive-to-evaluate processes (written for minimization):

1. Fit a GP surrogate $y(\mathbf{x}) \sim \mathcal{GP}(m, k)$ to the data $\mathcal{D}$.
2. Maximize an acquisition function: $\mathbf{x}_{\text{next}} = \arg\max_{\mathbf{x}} a(\mathbf{x})$.
3. Run the experiment: $y_{\text{next}} = f(\mathbf{x}_{\text{next}}) + \varepsilon$.
4. Update the dataset: $\mathcal{D} \leftarrow \mathcal{D} \cup \{(\mathbf{x}_{\text{next}}, y_{\text{next}})\}$.
5. Repeat until the experimental budget is used.

Acquisition functions (with $y^{*}$ the best value observed so far):

Expected improvement (EI):

$$\mathrm{EI}(\mathbf{x}) = \mathbb{E}\left[\max\left(y^{*} - y(\mathbf{x}),\, 0\right)\right]$$

which has a closed form for a GP:

$$\mathrm{EI}(\mathbf{x}) = \left(y^{*} - \mu(\mathbf{x})\right)\Phi(z) + \sigma(\mathbf{x})\,\phi(z),\qquad z = \dfrac{y^{*} - \mu(\mathbf{x})}{\sigma(\mathbf{x})}$$

where $\Phi$ and $\phi$ are the standard normal CDF and PDF.

Lower confidence bound (LCB), the minimization form of UCB:

$$\mathrm{LCB}(\mathbf{x}) = \mu(\mathbf{x}) - \kappa\,\sigma(\mathbf{x})$$

which is minimized; $\kappa$ balances exploration against exploitation. For maximization problems the same rule is the upper confidence bound $\mu + \kappa\sigma$.

Probability of improvement (PI):

$$\mathrm{PI}(\mathbf{x}) = \Phi\left(\dfrac{y^{*} - \mu(\mathbf{x})}{\sigma(\mathbf{x})}\right)$$

4. Run-to-Run (R2R) Control

4.1 EWMA Controller

The standard single-input EWMA controller assumes a linear process $y_k = a_k + b\,u_k$, where $u_k$ is the recipe input, $b$ is the process gain estimated offline, and $a_k$ is a slowly drifting offset. After each run, the offset estimate is updated by an exponentially weighted moving average:

$$\hat{a}_{k} = \lambda\,(y_k - b\,u_k) + (1 - \lambda)\,\hat{a}_{k-1},\qquad 0 < \lambda \le 1,$$

and the next recipe is chosen to put the predicted output on target:

$$u_{k+1} = \dfrac{y_{\text{target}} - \hat{a}_k}{b}.$$

For several inputs and outputs, $b$ becomes the gain matrix $G = \partial\mathbf{y}/\partial\mathbf{u}$, and the recipe update uses its (pseudo-)inverse or a constrained least-squares solve. Small $\lambda$ filters metrology noise; large $\lambda$ tracks drift faster.

4.2 Model Predictive Control (MPC)

At each step $k$, MPC solves

$$\min_{u_k, \ldots, u_{k+N-1}}\ \sum_{j=0}^{N-1}\left[\left\|y_{k+j} - y_{\text{target}}\right\|_Q^2 + \left\|\Delta u_{k+j}\right\|_R^2\right]$$

subject to

$$\begin{aligned} s_{k+j+1} &= A\,s_{k+j} + B\,u_{k+j} && \text{(state dynamics)} \\ y_{k+j} &= C\,s_{k+j} && \text{(output equation)} \\ u_{\min} &\le u_{k+j} \le u_{\max} && \text{(input constraints)} \end{aligned}$$

and applies only the first input $u_k$ before re-solving at the next step. Here $s$ is the tool or process state (distinct from the recipe vector $\mathbf{x}$), and:

  • $Q$ is the output weighting matrix
  • $R$ is the control-move weighting matrix
  • $N$ is the prediction horizon

5. Mathematical Challenges

ChallengeMathematical approach
High dimensionality ($n > 50$ parameters)PCA, PLS, sparse regression (LASSO), feature selection
Small datasets (limited wafer runs)Bayesian methods, transfer learning, multi-fidelity modeling
NonlinearityGPs, neural networks, tree ensembles (RF, XGBoost)
Tool-to-tool variationMixed-effects models, hierarchical Bayesian models
Drift over timeAdaptive/recursive estimation, change-point detection, Kalman filtering
Multiple correlated responsesMulti-task learning, co-kriging, multivariate GP
Missing dataEM algorithm, multiple imputation, probabilistic PCA

6. Dimensionality Reduction

6.1 Principal Component Analysis (PCA)

PCA finds the directions of maximum variance:

$$\max_{\mathbf{w}}\ \mathbf{w}^{T}S\,\mathbf{w}\quad \text{s.t.}\quad \|\mathbf{w}\|_2 = 1$$

where $S$ is the sample covariance matrix. The solutions are the eigenvectors of $S$:

$$S = W\Lambda W^{T}.$$

The reduced representation is

$$\mathbf{z} = W_k^{T}(\mathbf{x} - \bar{\mathbf{x}})$$

where $W_k$ contains the $k$ eigenvectors with the largest eigenvalues.

6.2 Partial Least Squares (PLS)

PLS finds input and output directions with maximum covariance:

$$\max_{\mathbf{w}, \mathbf{c}}\ \operatorname{Cov}(X\mathbf{w},\, Y\mathbf{c})\quad \text{s.t.}\quad \|\mathbf{w}\| = \|\mathbf{c}\| = 1$$

7. Multi-Fidelity Optimization

Multi-fidelity methods combine cheap simulations with expensive experiments. The auto-regressive model of Kennedy and O'Hagan is

$$y_{\mathrm{HF}}(\mathbf{x}) = \rho\, y_{\mathrm{LF}}(\mathbf{x}) + \delta(\mathbf{x})$$

where:

  • $y_{\mathrm{HF}}$ is the high-fidelity (experimental) response
  • $y_{\mathrm{LF}}$ is the low-fidelity (simulation) response, $y_{\mathrm{LF}} \sim \mathcal{GP}(0, k_{\mathrm{LF}})$
  • $\rho$ is a scaling factor
  • $\delta(\mathbf{x}) \sim \mathcal{GP}(0, k_\delta)$ is an independent discrepancy function

With low-fidelity inputs $X_L$ and high-fidelity inputs $X_H$, the joint prior is

$$\begin{bmatrix} \mathbf{y}_{\mathrm{LF}} \\ \mathbf{y}_{\mathrm{HF}} \end{bmatrix} \sim \mathcal{N}\left(\mathbf{0},\ \begin{bmatrix} K_{\mathrm{LF}}(X_L, X_L) & \rho\,K_{\mathrm{LF}}(X_L, X_H) \\ \rho\,K_{\mathrm{LF}}(X_H, X_L) & \rho^2 K_{\mathrm{LF}}(X_H, X_H) + K_{\delta}(X_H, X_H) \end{bmatrix}\right)$$

8. Transfer Learning

Domain adaptation for tool-to-tool transfer models the target tool as the source tool plus a correction:

$$y_{\text{target}}(\mathbf{x}) = y_{\text{source}}(\mathbf{x}) + \Delta(\mathbf{x})$$

Common forms of the correction:

  • Constant offset: $\Delta(\mathbf{x}) = c_0$
  • Linear adaptation: $\Delta(\mathbf{x}) = \mathbf{c}^{T}\mathbf{x} + c_0$
  • GP adaptation: $\Delta(\mathbf{x}) \sim \mathcal{GP}(0, k_{\Delta})$

9. Complete Optimization Framework

Semiconductor Process Optimization & Recipe Tuning Design of Experiments (DoE), Response Surface Methodology, and Bayesian Optimization 1. Design of Experiments Full/Fractional Factorial Input Recipe Factors: • Gas Flow (Etch/CVD) • RF Power & Bias • Chamber Pressure • Wafer Temperature Taguchi Method Design 2. Response Surface (RSM) Optimal Peak Polynomial Regression Fit Y = β₀ + ∑βᵢXᵢ + ∑βᵢⱼXᵢXⱼ Key Responses Tracked: • Etch Selectivity • CD Uniformity (3σ) • Defect Density (D0) Central Composite Design 3. AI Bayesian Optimization Gaussian Process Surrogate Acquisition Function (EI/UCB) Exploration vs Exploitation Automated Run-to-Run (R2R) Fast Convergence (<20 Wafers) Closed-Loop Fab Control Closed-Loop Autonomous Recipe Tuning in Plasma Etch, Chemical Mechanical Planarization (CMP) & ALD

10. Equation Summary

Process Modeling

Model typeEquation
Linear regression$\mathbf{y} = X\boldsymbol{\beta} + \boldsymbol{\varepsilon}$
Quadratic RSM$y = \beta_0 + \sum_i \beta_i x_i + \sum_i \beta_{ii} x_i^2 + \sum_{i<j}\beta_{ij} x_i x_j$
Gaussian process$y(\mathbf{x}) \sim \mathcal{GP}\left(m(\mathbf{x}), k(\mathbf{x}, \mathbf{x}')\right)$
Neural network$\mathbf{y} = \sigma_L\left(W_L \cdots \sigma_1(W_1\mathbf{x} + \mathbf{b}_1) \cdots + \mathbf{b}_L\right)$

Optimization

FormulationEquation
Least squares$\min_{\mathbf{x}} \lVert\mathbf{y}(\mathbf{x}) - \mathbf{y}_{\text{target}}\rVert_2^2$
Robust$\min_{\mathbf{x}} \mathbb{E}[f] + \kappa\sqrt{\operatorname{Var}[f]}$
Chance-constrained$\Pr(y \in [\mathrm{LSL}, \mathrm{USL}]) \ge 1 - \alpha$
Expected improvement$\mathrm{EI}(\mathbf{x}) = (y^{*} - \mu)\Phi(z) + \sigma\phi(z)$

Run-to-Run Control

ControllerEquation
EWMA offset estimate$\hat{a}_k = \lambda(y_k - b\,u_k) + (1 - \lambda)\hat{a}_{k-1}$
Recipe update$u_{k+1} = (y_{\text{target}} - \hat{a}_k)/b$

Notation

SymbolDescription
$\mathbf{x}$Recipe parameter vector
$\mathbf{y}$Process output vector
$n$Number of input parameters
$m$Number of outputs
$\boldsymbol{\beta}$Regression coefficients
GPGaussian process
$k(\cdot, \cdot)$Kernel (covariance) function
$\mu(\mathbf{x})$Predictive mean
$\sigma^2(\mathbf{x})$Predictive variance
$\mathbb{E}[\cdot]$Expectation operator
$\operatorname{Var}[\cdot]$Variance operator
$\Phi(\cdot)$Standard normal CDF
$\phi(\cdot)$Standard normal PDF
$\boldsymbol{\xi}$Random disturbance (uncertainty)
$G$Process gain matrix
LSL, USLLower and upper specification limits
$C_{pk}$Process capability index