Chip Foundry Services Request Assessment

Sensitivity Analysis

Sensitivity analysis measures how much each input of a model contributes to the variation in its output. It tells you which process settings, material properties or assumptions deserve attention, and which can be left alone. In a fab this is the step that turns a long list of "possible causes" into a ranked list of knobs worth controlling.

The choice of method depends on the question:

Model with uncertain inputs
yield, cost or quality as a function of x1 ... xd
Choose the questionlocal answers differ from global ones
Local: slope at one setting
derivatives, one-at-a-time sweeps
Screening: many inputs, few runs
Morris elementary effects
Global: share of output variance
Sobol first-order and total indices
Rank the inputs
fix or tighten the influential ones; ignore the rest

Local sensitivity. The simplest check changes one input at a time from a baseline and records the output change. The derivative $\partial y/\partial x_i$ at that baseline gives the same information for small changes. It is cheap and easy to explain, but it only describes the model at one point and cannot see interactions: if the effect of $x_i$ depends on another input, a sweep from a single baseline can miss it completely.

Global, variance-based sensitivity. The Sobol indices treat inputs as random and ask what fraction of the output variance each one explains. For independent inputs $X_1,\dots,X_d$ and output $Y$, the first-order and total indices are:

$$S_i=\frac{\operatorname{Var}\!\left(E[Y\mid X_i]\right)}{\operatorname{Var}(Y)},\qquad T_i=\frac{E\!\left[\operatorname{Var}\!\left(Y\mid X_{\sim i}\right)\right]}{\operatorname{Var}(Y)}=1-\frac{\operatorname{Var}\!\left(E[Y\mid X_{\sim i}]\right)}{\operatorname{Var}(Y)}$$

Here $X_{\sim i}$ means every input except $X_i$. $S_i$ is the variance share explained by $X_i$ on its own, and $T_i$ includes every interaction in which $X_i$ takes part. Always $T_i\ge S_i$; a large gap signals interaction. If the model is purely additive, $\sum S_i=1$.

Worked example. Take the model $y=3x_1+x_2+2x_1x_3$ with each input uniform on $[-1,1]$, so each has variance $1/3$. Because the three terms are uncorrelated, the variances add: $\operatorname{Var}(3x_1)=9/3=3$, $\operatorname{Var}(x_2)=1/3$, and $\operatorname{Var}(2x_1x_3)=4\cdot\tfrac13\cdot\tfrac13=4/9$, for a total of $V=3.778$.

  • One-at-a-time at the centre: moving each input from $-1$ to $+1$ with the others at $0$ swings $y$ by $6,\,2$ and $0$. So $x_1$ looks like $75\%$ of the story, $x_2$ like $25\%$, and $x_3$ appears to do nothing.
  • First-order indices: $S_1=3/V=0.794$, $S_2=0.088$, $S_3=0$. They sum to $0.882$, and the missing $0.118$ is the interaction.
  • Total indices: $T_1=(3+4/9)/V=0.912$, $T_2=0.088$, $T_3=0.118$. Input $x_3$ is not irrelevant: it matters through its product with $x_1$, and its total share of $11.8\%$ is even larger than that of $x_2$ ($8.8\%$).

A Monte Carlo estimate with $131{,}072$ base samples (fixed seed) reproduces all six indices to within $0.02$ of the analytic values.

Three ways to ask which input matters model y = 3 x1 + x2 + 2 x1 x3, inputs uniform on -1 to 1; bars show each input's share 0% 25% 50% 75% 100% 75% 79.4% 91.2% x1 25% 8.8% 8.8% x2 0% 0% 11.8% x3 One-at-a-time swing at the centre First-order variance share (Sobol S) Total variance share (Sobol T) x3 looks irrelevant to the first two methods, yet it carries 11.8% of the variance through its interaction with x1

How the indices are estimated. With two independent sample matrices $A$ and $B$, and $AB_i$ equal to $A$ with column $i$ taken from $B$, the standard estimators are:

$$\hat{S}_i=\frac{\tfrac1N\sum_k f(B)_k\left(f(AB_i)_k-f(A)_k\right)}{\widehat{V}},\qquad \hat{T}_i=\frac{\tfrac1{2N}\sum_k\left(f(A)_k-f(AB_i)_k\right)^2}{\widehat{V}}$$

This costs $N(d+2)$ model runs; for $d=3$ and $N=2^{17}$ that is $655{,}360$ evaluations, which is trivial for a formula and expensive for a fab simulation. For expensive models, screen first with the Morris method, which needs only a few dozen runs per input, or fit a fast surrogate model and compute the indices on that.

Reading and using the results.

  • Rank, then act: tighten control of inputs with a large $T_i$; inputs with small $T_i$ can be fixed at nominal values, which simplifies the model.
  • Gap = interaction: a big difference between $T_i$ and $S_i$ means one-factor tuning will not work; optimise those inputs together.
  • Distributions matter: the indices depend on how widely each input varies. A sensitive input that is already tightly controlled can rank low. Use realistic input ranges.
  • Independence: the formulas above assume independent inputs. Correlated inputs need different methods, and shares of variance can no longer be assigned cleanly.
  • Variance is not everything: if you care about the failure tail rather than the spread, use a measure of the tail, such as the effect on the probability of exceeding a spec.
  • Model error: sensitivity analysis describes the model. A wrong model gives a confident but wrong ranking, so validate it against data first.

Read sensitivity analysis as asking which dials actually move the answer, once everything varies at once: a one-at-a-time test can miss an input that matters only in combination, and a variance share cannot.