Process Optimization: Mathematical Modeling
1. Context
A process recipe is a vector of controllable parameters:
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:
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:
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:
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
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,
and the least-squares estimator is
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
The squared-exponential (RBF) kernel with automatic relevance determination is
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:
For a zero prior mean, the predictive mean at a new point $\mathbf{x}_*$ is
and the predictive variance is
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
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:
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
subject to
A weighted multi-output objective normalizes each output by its tolerance $\Delta_j$:
3.2 Multi-Objective Optimization
The vector optimization problem is
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
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
where $\kappa$ is the risk-aversion parameter.
First-order (Taylor) uncertainty propagation gives
The sensitivity coefficient of input $i$ is
Chance-constrained optimization requires the output to be in specification with high probability:
For a Gaussian output, a sufficient condition is
where $z_{1-\alpha/2}$ is the standard normal quantile.
The process capability index is
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):
which has a closed form for a GP:
where $\Phi$ and $\phi$ are the standard normal CDF and PDF.
Lower confidence bound (LCB), the minimization form of UCB:
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):
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:
and the next recipe is chosen to put the predicted output on target:
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
subject to
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
| Challenge | Mathematical 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 |
| Nonlinearity | GPs, neural networks, tree ensembles (RF, XGBoost) |
| Tool-to-tool variation | Mixed-effects models, hierarchical Bayesian models |
| Drift over time | Adaptive/recursive estimation, change-point detection, Kalman filtering |
| Multiple correlated responses | Multi-task learning, co-kriging, multivariate GP |
| Missing data | EM algorithm, multiple imputation, probabilistic PCA |
6. Dimensionality Reduction
6.1 Principal Component Analysis (PCA)
PCA finds the directions of maximum variance:
where $S$ is the sample covariance matrix. The solutions are the eigenvectors of $S$:
The reduced representation is
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:
7. Multi-Fidelity Optimization
Multi-fidelity methods combine cheap simulations with expensive experiments. The auto-regressive model of Kennedy and O'Hagan is
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
8. Transfer Learning
Domain adaptation for tool-to-tool transfer models the target tool as the source tool plus a correction:
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
10. Equation Summary
Process Modeling
| Model type | Equation |
|---|---|
| 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
| Formulation | Equation |
|---|---|
| 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
| Controller | Equation |
|---|---|
| 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
| Symbol | Description |
|---|---|
| $\mathbf{x}$ | Recipe parameter vector |
| $\mathbf{y}$ | Process output vector |
| $n$ | Number of input parameters |
| $m$ | Number of outputs |
| $\boldsymbol{\beta}$ | Regression coefficients |
| GP | Gaussian 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, USL | Lower and upper specification limits |
| $C_{pk}$ | Process capability index |