High-Dimensional Process Recipe Optimization: Mathematical Modeling
1. Context
A process recipe is a vector of controllable parameters. Multi-step recipes often have dozens to hundreds of them, which is what makes recipe optimization a high-dimensional problem:
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) | Screening designs, Sobol' indices, active subspaces, sparse GPs, trust-region BO (Section 7) |
| 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. High-Dimensional Optimization
7.1 Why Dimension Matters
Production recipes are multi-step. Each step carries its own temperature, pressure, flows, powers, and time, so a ten-step etch or deposition recipe easily has 60–100 adjustable parameters. Classical methods scale badly with that dimension $n$:
- A full grid with $m$ levels per factor needs $m^n$ runs.
- A full quadratic response surface has $(n+1)(n+2)/2$ coefficients, which is 1,326 for $n = 50$, far more than an affordable number of wafers.
- For a GP with a stationary kernel, pairwise distances between random points concentrate as $n$ grows, so the number of samples needed for uniform accuracy grows exponentially.
High-dimensional recipe optimization is practical only because real process responses have exploitable structure: few influential factors (sparsity), a few dominant directions (low effective dimension), additive effects, or a good starting recipe (locality).
7.2 Screening and Global Sensitivity
Screening removes inactive factors before modeling. Definitive screening designs estimate all main effects for $n$ factors in $2n + 1$ runs, without aliasing them with two-factor interactions or quadratic effects (Jones and Nachtsheim, 2011).
Variance-based Sobol' indices quantify each factor's share of output variance:
where $S_i$ is the first-order (main-effect) index and $S_{T,i}$ the total-effect index, which includes all interactions involving $x_i$. Factors with small $S_{T,i}$ can be fixed at nominal values. Sobol' indices are usually computed on a fitted surrogate rather than on wafers.
7.3 Active Subspaces
When the response depends mainly on a few linear combinations of the inputs, an active subspace finds them from the gradient covariance matrix:
If the first $r$ eigenvalues dominate, then $f(\mathbf{x}) \approx g(W_1^{T}\mathbf{x})$ with $r \ll n$ (Constantine, 2015). Gradients come from an adjoint model, finite differences of a simulator, or a fitted surrogate. Unlike PCA, which describes the spread of the inputs, the active subspace describes the directions along which the output changes.
7.4 Sparse and Additive Surrogates
With ARD length scales $\ell_d$ in the GP kernel, irrelevant inputs learn large $\ell_d$. In very high dimension, maximum-likelihood ARD overfits, so a sparsity prior helps. The SAAS prior places half-Cauchy priors on the inverse squared length scales,
which shrinks most $\rho_d$ toward zero and keeps a few large (Eriksson and Jankowiak, 2021). Additive kernels assume the response decomposes over groups of inputs,
so each group is learned and optimized at low dimension (Kandasamy et al., 2015).
7.5 Random Embeddings and Trust Regions
Random embeddings (REMBO) optimize over a low-dimensional $\mathbf{z} \in \mathbb{R}^{d}$ and map it into the recipe space through a random matrix $A \in \mathbb{R}^{n \times d}$:
If the response has effective dimension $d_e \le d$, the embedding contains an optimum with probability one for an unconstrained domain (Wang et al., 2016). Box constraints require projecting $A\mathbf{z}$ back into the feasible region.
Trust-region Bayesian optimization (TuRBO) fits local GPs inside a hyper-rectangle centered on the best recipe found so far. The side length doubles after several consecutive improvements and halves after several failures, and the region restarts when it becomes too small (Eriksson et al., 2019). Local modeling avoids the over-exploration that global acquisition functions suffer in high dimension, and it matches the engineering habit of improving a known-good baseline recipe.
7.6 Practical Workflow
1. Fix knobs known to be irrelevant, and bound the rest by equipment, safety, and integration limits.
2. Run a screening design and keep the 5–15 factors with the largest effects or total Sobol' indices.
3. Fit a GP with ARD or SAAS priors on the retained factors, and check its held-out prediction error.
4. Run trust-region Bayesian optimization in batches that match chamber availability, using batch acquisition (for example q-EI).
5. Confirm the optimum with replicate wafers and a capability check, then hand off to run-to-run control on one to three key knobs.
8. 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
9. 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})$
10. Complete Optimization Framework
11. 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$ |
12. References and Further Reading
Textbooks
- Montgomery, D. C. (2017). Design and Analysis of Experiments, 9th ed. Wiley.
- Rasmussen, C. E., & Williams, C. K. I. (2006). Gaussian Processes for Machine Learning. MIT Press.
- Boyd, S., & Vandenberghe, L. (2004). Convex Optimization. Cambridge University Press.
- Constantine, P. G. (2015). Active Subspaces: Emerging Ideas for Dimension Reduction in Parameter Studies. SIAM.
Semiconductor-specific
- May, G. S., & Spanos, C. J. (2006). Fundamentals of Semiconductor Manufacturing and Process Control. Wiley.
- Edgar, T. F., Butler, S. W., et al. (2000). "Automatic Control in Microelectronics Manufacturing: Practices, Challenges, and Possibilities." Automatica, 36(11).
High-dimensional and Bayesian optimization
- Jones, B., & Nachtsheim, C. J. (2011). "A Class of Three-Level Designs for Definitive Screening in the Presence of Second-Order Effects." Journal of Quality Technology, 43(1).
- Kandasamy, K., Schneider, J., & Póczos, B. (2015). "High Dimensional Bayesian Optimisation and Bandits via Additive Models." ICML.
- Wang, Z., Hutter, F., Zoghi, M., Matheson, D., & de Freitas, N. (2016). "Bayesian Optimization in a Billion Dimensions via Random Embeddings." Journal of Artificial Intelligence Research, 55.
- Shahriari, B., et al. (2016). "Taking the Human Out of the Loop: A Review of Bayesian Optimization." Proceedings of the IEEE, 104(1).
- Frazier, P. I. (2018). "A Tutorial on Bayesian Optimization." arXiv:1807.02811.
- Eriksson, D., Pearce, M., Gardner, J., Turner, R. D., & Poloczek, M. (2019). "Scalable Global Optimization via Local Bayesian Optimization." NeurIPS.
- Eriksson, D., & Jankowiak, M. (2021). "High-Dimensional Bayesian Optimization with Sparse Axis-Aligned Subspaces." UAI.
13. 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 |