advanced25 min studyLesson 860 in Engineering

Decide with uncertainty and retain a compatible rollback state

Combine effect bounds, guardrails, data-quality checks, and immutable serving manifests without overstating evidence.

On this page

What you’ll understand

  • Apply a declared benefit and guardrail decision rule.
  • Distinguish inconclusive evidence from demonstrated safety or harm.
  • Bind rollout and rollback to traceable compatible model artifacts.

An experiment ends with an operational decision, but a decision is not the same thing as a p-value. The team needs an effect estimate, uncertainty, practical thresholds, trustworthy data, and evidence that the candidate can run within required constraints. A small positive primary metric can coexist with unacceptable latency or errors. A non-significant result can remain compatible with both useful benefit and meaningful harm. State the decision rule before reviewing lift, preserve the exact candidate that was tested, and ensure rollback restores a compatible serving system rather than only an old weight file.

Benefits and guardrails answer separate questions

Define a primary outcome with a minimum worthwhile improvement and guardrails with explicit allowed degradation. Use bounds calibrated for the chosen monitoring, candidate-selection, and multiple-metric procedure. One possible conservative rule requires the primary lower bound to exceed the benefit threshold and every guardrail upper bound to stay below its degradation limit. This is an example decision policy, not the only rational way to trade uncertainty, cost, and user impact.

Failing such a rule is not automatically evidence of harm. A guardrail interval crossing the limit may be inconclusive, while an interval entirely above it supplies stronger evidence of excessive degradation under the analysis assumptions. Likewise, a primary interval containing zero does not prove equivalence. If equivalence or noninferiority is the goal, define the margin and method deliberately. Keep absolute percentage-point changes distinct from relative percentage lift when communicating the practical size.

promote⁡=1{LΔ>b}∏j=1J1{UGj≤gj}\operatorname{promote}=\mathbf1\{L_{\Delta}>b\}\prod_{j=1}^{J}\mathbf1\{U_{G_j}\le g_j\}
This illustrative predeclared rule uses a benefit lower bound LΔ and guardrail-degradation upper bounds UGj, with practical thresholds b and gj in their respective metric units. Bounds must be valid for the design, monitoring, and multiplicity scheme; the formula itself does not calibrate them.↔ Scroll wide equations horizontally.

Data quality and scope qualify the decision

Review assignment, exposure, SRM, outcome maturity, missingness, and model-version lineage before interpreting the scorecard. An adjusted estimator or sequential procedure cannot repair a different causal population caused by broken logging. Report the analyzed cohort, horizon, and important subgroup uncertainty. An average benefit can conceal a poorly measured or harmed population, but searching many unplanned slices and reporting only the most favorable ones creates another selection problem.

Translate the estimate into the context of the rollout. A result from low saturation may not extrapolate through network effects or shared infrastructure at full adoption. A gradual deployment can test operational limits while maintaining the original inferential boundaries, but new phases and changing allocation should be recorded. Preserve emergency stop criteria, and keep a model-quality conclusion separate from a capacity failure or missing-data incident so a rollback does not erase the reason for the decision.

Pr⁡ ⁣(Δ∈CΔ and ⋂j=1J{Gj∈CGj})≥1−α\Pr\!\left(\Delta\in C_{\Delta}\ \text{and}\ \bigcap_{j=1}^{J}\{G_j\in C_{G_j}\}\right)\ge1-\alpha
This is a desired joint frequentist coverage contract for the fixed target effects, under the actual analysis and monitoring design. It is not implied by separately printing J+1 ordinary 95% intervals. Metrics can have different units; α is dimensionless and multiplicity calibration must be supplied.↔ Scroll wide equations horizontally.

Rollback selects a complete known serving state

Give each tested candidate an immutable manifest binding weights, preprocessing, feature definitions, tokenization where relevant, output mappings, thresholds, serving code, and dependent index or configuration versions. Log that manifest identity with assignment and intervention events. A mutable name such as latest is insufficient to reconstruct what produced the observed outcomes. Validate compatibility of the previous manifest before relying on it as a rollback target, including feature schema and input/output behavior.

A rollback changes future serving; it does not undo messages already sent, user learning, cache effects, or delayed outcomes from prior exposure. Preserve those units’ original attribution and follow-up records. Record the selected manifest, traffic/configuration epoch, stop reason, and analysis state, then verify that actual served versions and operational metrics match the intended recovery. Retaining tested bytes and a reproducible decision record makes the next investigation about evidence rather than memory of which model was supposedly running.

A primary gain does not overrule a guardrail limit

Use a declared rule requiring benefit lower bound above 0 and latency-degradation upper bound at most 2 ms. Assume all bounds are already jointly calibrated for the two candidate comparisons and monitoring plan. Both candidates have primary effect estimate +0.02 with interval [0.005,0.035]. Candidate A latency interval is [1,5] ms; candidate B’s is [0.5,1.5] ms.

  1. Both primary lower bounds are 0.005>0, so each clears the declared benefit criterion. The estimate +0.02 is a two-percentage-point change for a probability outcome; it is not automatically a two-percent relative increase.

  2. Candidate A’s latency upper bound is 5 ms, exceeding the 2 ms limit, so it fails the promotion rule. Its interval also includes latency changes below 2 ms, meaning this failure alone does not prove the degradation exceeds the limit.

  3. Candidate B’s upper bound is 1.5 ms≤2 ms and its benefit bound also passes, so it satisfies this rule, subject to the separate data-quality and serving checks. The decision must identify B’s exact immutable manifest and compatible recovery target.

The result

Under the stated joint-bound and decision contract, B clears both criteria while A does not. Practical thresholds and uncertainty qualify the decision alongside the primary estimate.

Explore the model

Interactive lab

Interactive lab · queue

Operational capacity can constrain a model rollout

Reset, set Arrival rate λ to 2 and Service rate μ to 3. Predict backlog 3.5 after one Step from the initial 4. Reset, set λ to 4 and μ to 3, predict backlog 4.5 after Step. The fluid model uses constant rates and clips backlog at zero; it is not a causal experiment, a stochastic production service, or a rollback controller.

Operational capacity can constrain a model rolloutFluid backlog starts at 4 and follows max(0, 4 + (λ − μ)t). The separate M/M/1 residence-time formula assumes Poisson arrivals, exponential service and λ < μ. Current readings: Fluid backlog: 4; Net rate · λ − μ: −1 /s; M/M/1 mean residence: 1 s. All parameters are adjustable with the labeled controls below.02.557.51001.534.56Elapsed time · sFluid backlogλ < μ
Fluid backlogCurrent time
Fluid backlog
4
Net rate · λ − μ
−1 /s
M/M/1 mean residence
1 s
t = 0 s

Fluid backlog starts at 4 and follows max(0, 4 + (λ − μ)t). The separate M/M/1 residence-time formula assumes Poisson arrivals, exponential service and λ < μ. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA model can improve an outcome while exceeding the serving system’s capacity; both must be evaluated under their own evidence contracts.

Check your understanding

A benefit interval contains zero and meaningful positive values. What can be concluded?

Try it yourself

Under the same rule, a candidate has benefit interval [−0.01,0.04] and latency-degradation interval [−1,1] ms, with benefit threshold 0 and latency limit 2 ms. Does it satisfy the rule, and what remains uncertain?

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Check the lower benefit bound and upper guardrail bound separately.

Compare with the solution

Latency passes because 1≤2 ms, but benefit fails because −0.01 is not above zero. The candidate therefore does not satisfy this promotion rule. The benefit data remain compatible with a one-percentage-point decrease through a four-point increase for a probability metric; this is not proof of zero benefit or harm. A documented further experiment or another predeclared decision policy would be needed to resolve or act on that uncertainty.

Take it with you

  • Decide using practical thresholds, valid uncertainty, and guardrails.
  • Inconclusive evidence is distinct from equivalence, safety, or demonstrated harm.
  • Immutable compatible manifests and preserved attribution make rollback auditable.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.