advanced27 min studyLesson 970 in Engineering

Edge fleet quality and performance validation

Validate model quality, latency, energy and failure behavior across representative device and workload strata without hiding regressions in a fleet average.

On this page

What you’ll understand

  • Compute deployment-weighted quality, mean latency and energy from defined strata.
  • Distinguish weighted means from latency quantiles and uncertainty guarantees.
  • Create a reproducible fleet release matrix covering runtime paths, sustained conditions and failures.

A model can pass on one flagship phone and fail on a lower-memory revision, an older driver, or a sensor pipeline used by a large part of the fleet. A release needs representative device-and-workload strata, not just more repetitions on the easiest device. Evaluate the shipped artifact and preprocessing together, and preserve the conditions behind each measurement. Fleet averages are useful summaries only when their weights and important local failures remain visible.

Choose the population before choosing the benchmark

Define the deployment mix across device revisions, operating systems, accelerators, runtime versions, input shapes, languages or sensor conditions, and workload duty cycles. Sample independent sessions or users where records are correlated. Oversampling a rare but costly device is useful for diagnosis, but its raw test-set frequency need not equal its deployment weight. Record those weights and their uncertainty instead of treating a convenient balanced lab matrix as a random fleet sample.

Use versioned quality labels and the actual captured input pipeline. Conversion, integer kernels, resizing, streaming resets and local fallbacks can produce different errors on different devices. Compare with the reference and prior release on matched cases where possible, while guarding against repeated tuning to a visible final test set. Report slice support and unresolved label ambiguity. A weighted average improvement does not authorize hiding a severe regression in a small but important group.

q‾=∑gwgqg,t‾=∑gwg E[T∣g],∑gwg=1\overline q=\sum_g w_g q_g,\qquad \overline t=\sum_g w_g\,\mathbb E[T\mid g],\qquad \sum_g w_g=1
Groups form a disjoint partition of the declared deployment population, with nonnegative weights w_g. q_g is a group quality rate and T is response time in a common unit. These are weighted population means or corresponding estimates. A weighted average of group p95 values is not generally the fleet p95.↔ Scroll wide equations horizontally.

Measure end-to-end latency and a named energy boundary

Include cold initialization, warm isolated inference and sustained load, with deadlines and arrival models appropriate to the product. Inspect which backend actually ran and whether fallback, transfer, thermal management or memory pressure changed the path. Keep latency percentiles and missed-deadline fractions separate from throughput. Do not pool measurements across different input distributions and then attribute a changed tail exclusively to the model. Repeated trials should preserve operating conditions or record the differences needed to interpret them.

State whether energy includes the whole device, a power rail, or only an accelerator estimate. Integrate measured power over the specified interval, with synchronization and idle baseline handling documented. If an incremental energy result subtracts an idle trace, record that baseline and its measurement uncertainty rather than silently labeling the result total energy. The original MLPerf Tiny and Mobile papers provide concrete joint quality-and-performance benchmark designs; their workloads do not replace the product’s own sensor, connectivity and safety-relevant tests.

Einterval=∫t0t1Pmeasured(t) dt,E‾=EintervalNcompletedE_{\mathrm{interval}}=\int_{t_0}^{t_1}P_{\mathrm{measured}}(t)\,dt,\qquad \overline E=\frac{E_{\mathrm{interval}}}{N_{\mathrm{completed}}}
Power uses watts, time seconds and energy joules. N_completed is a positive count of completed inferences in the named interval. This gives energy per completed inference for the chosen measurement boundary; background work, unfinished requests and idle energy must be disclosed. It is not automatically incremental model-only energy.↔ Scroll wide equations horizontally.

Release with slice gates and reproducible failure evidence

Create gates for quality, supported shapes, memory peaks, sustained deadline misses, and update/recovery behavior on the relevant strata. Exercise offline operation, corrupted artifacts, unsupported operators, queue overflow and interrupted promotion. Archive model and preprocessor hashes, runtime and compiler versions, backend assignment, test inputs, power traces and device settings. Roll out in cohorts with a policy for stopping and recovering within the security floor. Field monitoring should reveal errors without violating the data policy established for the product.

The sampling instrument illustrates uncertainty in a supplied independent correctness rate. Reset, set p to 0.9 and n to 20, predict sample-mean variance 0.0045, then Step. Compare a fresh Reset with both p at 0.9 and n at 100 before Step: variance 0.0009. These are exact Bernoulli sampling distributions, not device tests or random draws. They contain no fleet weighting, correlated sessions, latency quantiles, power traces, or evidence that a real classifier achieves the supplied rate.

A balanced lab sample differs from the deployment mix

Three device/workload strata have deployment weights 0.6, 0.3 and 0.1. In 100 labeled tests per stratum, correct counts are 95, 90 and 80. Measured mean response times are 10, 20 and 40 ms; mean interval-defined energy per inference is 20, 40 and 100 mJ. Treat these values as point estimates.

  1. Group quality estimates are 0.95, 0.90 and 0.80. The balanced test sample’s raw quality is 265/300 ≈ 0.8833, while deployment-weighted quality is 0.6 × 0.95 + 0.3 × 0.90 + 0.1 × 0.80 = 0.92.

  2. Deployment-weighted mean response time is 0.6 × 10 + 0.3 × 20 + 0.1 × 40 = 16 ms. This does not compute a fleet latency percentile.

  3. Weighted mean energy is 0.6 × 20 + 0.3 × 40 + 0.1 × 100 = 34 mJ. The weakest group remains visible at 80% observed quality; weighting does not remove its low observed quality or finite-sample uncertainty.

The result

Use explicit deployment weights for mean summaries, and retain each group’s quality, support and performance evidence.

Explore the model

Interactive lab

Interactive lab · sampling

More independent labels narrow one assumed-rate distribution

Reset, set p = 0.9 and n = 20, predict sample-mean variance 0.0045, then Step. Compare a fresh Reset with both p = 0.9 and n = 100 before Step: variance 0.0009. This exact independent-Bernoulli instrument assumes its rate; it does not sample devices, estimate fleet weights, measure power or validate a release.

More independent labels narrow one assumed-rate distributionExact binomial masses for the mean of n independent Bernoulli trials, compared with normal mass between adjacent half-count boundaries; normal tails outside the finite support remain outside the bars. Playback highlights outcomes, not random samples. The Berry–Esseen bound applies to standardized CDFs, not individual bars or continuity-corrected errors. At p = 0 or 1, normal comparison and that bound are disabled. Normal-CDF evaluation uses a numerical approximation with absolute error below 7.5×10⁻⁸ (at most 1.5×10⁻⁷ per interval, before rounding). Current readings: Mean sample proportion: 0.5; Sample-mean variance: 0.0125; Uniform CDF error bound: ≤ 0.1062. All parameters are adjustable with the labeled controls below.Exact distribution of the mean of 20 independent Bernoulli variables with success probability 0.5; playback highlights outcome 0.00.250.50.75100.0580.1150.1730.23Sample mean · k / nProbability massNormal bin masses are an approximationk = 0 · exact probability = 9.54e-7
Exact binomial massNormal interval massHighlighted outcome / mean
Mean sample proportion
0.5
Sample-mean variance
0.0125
Uniform CDF error bound
≤ 0.1062
t = 0 s

Exact binomial masses for the mean of n independent Bernoulli trials, compared with normal mass between adjacent half-count boundaries; normal tails outside the finite support remain outside the bars. Playback highlights outcomes, not random samples. The Berry–Esseen bound applies to standardized CDFs, not individual bars or continuity-corrected errors. At p = 0 or 1, normal comparison and that bound are disabled. Normal-CDF evaluation uses a numerical approximation with absolute error below 7.5×10⁻⁸ (at most 1.5×10⁻⁷ per interval, before rounding). 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 forRepresentative sampling and adequate support are separate from a favorable fleet average.

Check your understanding

A fleet report averages each device stratum’s p95 latency using deployment weights. What has it generally computed?

Try it yourself

Two strata have weights one half each, quality estimates 0.94 and 0.86, mean times 12 and 28 ms, and mean energies 10 and 30 mJ. Compute weighted means. Then recompute quality if the second stratum becomes 80% of deployment, keeping its conditional quality unchanged.

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

Give me a hint

Average within the original equal-weight mixture, then use weights 0.2 and 0.8 for the changed quality mixture.

Compare with the solution

Equal-weight quality is 0.90, mean time is 20 ms and mean energy is 20 mJ. With the second stratum at 80%, quality becomes 0.2 × 0.94 + 0.8 × 0.86 = 0.876, or 87.6%, even without a within-stratum model change. These are point summaries, not confidence bounds or latency percentiles. A release report should preserve stratum support and operating conditions to distinguish population shifts from implementation regressions.

Take it with you

  • Define deployment strata and weights before interpreting fleet averages.
  • Measure complete latency and a stated energy boundary under representative conditions.
  • Keep slice regressions, uncertainty, failure tests and reproducible artifacts visible.

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.