Quality and speed frontier measurement
Compare complete serving configurations using paired inputs, scoped quality metrics, uncertainty, and measured latency rather than step-count slogans.
On this page
The question for today
What you’ll understand
- Identify dominated configurations under a declared quality and latency metric.
- Use paired prompt/seed comparisons without treating correlated observations as independent.
- Distinguish per-example scores from nonlinear dataset metrics and their uncertainty.
A sampler decision is a choice among complete configurations: model, grid, guidance, precision, caching, resolution, decoder, and serving load. There is rarely one universally fastest acceptable point. Quality and latency form an empirical frontier whose meaning depends on prompts, metrics, hardware, and uncertainty. A credible comparison preserves those conditions instead of converting fewer function evaluations into an unsupported universal quality claim.
Define the measured objectives and scope
Choose quality dimensions relevant to the application, such as prompt adherence, artifact rate, diversity, composition, and human preference. A scalar metric can summarize one dimension while hiding another. For latency, name the boundary: denoiser service time, full request service, queued end-to-end response, or tail completion under load. Include text encoding, scheduler work, decode, output processing, and cold-start behavior where they belong. A reported step count alone says little about those costs when methods use different branches, internal evaluations, or model sizes.
A configuration is empirically dominated if another is no slower and no worse on the declared quality objective, with a strict improvement in at least one dimension. That conclusion is scoped to measurements and uncertainty. A point dominated on mean latency can still differ in tail latency or memory, and a single quality score may omit an application constraint. Report these additional dimensions rather than presenting a two-axis plot as proof of universal superiority. Preserve rejected or failed runs under an explicit counting policy instead of quietly dropping expensive artifacts.
Pair conditions and quantify uncertainty correctly
Use a fixed prompt population and paired initial noise or seeds where meaningful so nuisance variation does not obscure a configuration difference. Keep model and evaluation revisions, resizing, preprocessing, precision, and output filtering fixed or record their intended changes. Repeated seeds for one prompt are not independent prompt samples. If the target population is prompts, estimate uncertainty at the appropriate prompt or cluster level. Pairing does not guarantee identical noise consumption across different stochastic samplers, so record actual initialization and random-stream policies.
For an approximately independent set of paired scalar score differences, standard error can be estimated from their sample standard deviation and pair count. This does not make a nonlinear dataset metric a per-image score. FID depends on feature-distribution estimates and has finite-sample bias that can vary by generator, as the cited primary analysis explains. Keep feature extractor, preprocessing, reference population, and sample count explicit, and use a suitable uncertainty or bias-analysis procedure. A narrow interval on an unrelated scalar proxy does not certify FID or human preference.
Release evidence for the chosen operating region
Sweep a justified set of complete configurations under realistic batch sizes and cancellation mix. Record actual neural evaluations, branch batch shapes, peak memory, throughput, latency distributions, and quality stratified by prompt class or resolution. Compare candidate changes with paired baselines and preserve the generation manifest so others can replay the measurement. A favorable point on one device or dataset is useful evidence at that operating region, not a guarantee for a new model, strong guidance regime, or different output size.
The sampling instrument illustrates how iid Bernoulli uncertainty shrinks with more observations. Reset, set both p=0.6 and n=20, predict standard deviation of the sample mean about 0.10954, then Play or Step. Separately Reset, set both p=0.6 and n=80, predict about 0.05477, then Play or Step. The exact binomial masses describe a stipulated binary preference probability, not actual collected ratings. The normal comparison has its documented limits, and the lab contains no image generator, FID estimator, latency experiment, or prompt-cluster model.
Work it through
Interpret a paired scalar quality estimate
A hypothetical evaluation has one hundred independent representative paired scalar score differences, mean 0.04 and sample standard deviation 0.2. Assume a large-sample normal approximation is appropriate for this exercise.
The estimated standard error is 0.2/√100=0.02 score units. Pairing is part of the design; it does not justify treating correlated prompt repetitions as independent.
Using the stated normal approximation, a nominal 95 percent interval is 0.04±1.96×0.02, approximately [0.0008,0.0792]. This interval concerns the population mean of this scalar score under the sampling assumptions.
The estimate does not prove improvement on every prompt or determine a nonlinear FID difference. Combine its scoped quality evidence with measured latency, failures, and other application criteria before selecting a serving configuration.
Report the objective, population, pairing, uncertainty method, and operating conditions. A measured improvement is narrower than a universal sampler-quality guarantee.
The living notebook
Explore the model
Interactive lab · sampling
More independent observations reduce a defined uncertainty
Reset, set both p=0.6 and n=20, predict sample-mean standard deviation √(0.24/20)≈0.10954, then Play or Step. Separately Reset, set both p=0.6 and n=80, predict √(0.24/80)≈0.05477, then Play or Step. These exact iid Bernoulli distributions are not generated-image ratings, FID, latency data, or a clustered-prompt analysis.
- Mean sample proportion
- 0.5
- Sample-mean variance
- 0.0125
- Uniform CDF error bound
- ≤ 0.1062
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 forTie uncertainty to the actual metric, sampling unit, and independence assumptions.
Pause & reason
Check your understanding
Your turn
Try it yourself
Under the same independent paired-score assumptions, sample standard deviation is 0.2 and n=400. Compute the estimated standard error. Does quadrupling n from one hundred quadruple precision?
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Standard error scales with the inverse square root of pair count.
Compare with the solution
The estimated standard error is 0.2/20=0.01, half the earlier 0.02. Four times the independent sample count halves this standard error under fixed variance; it does not divide it by four or remove metric bias, clustered dependence, and unmeasured quality dimensions.
Keep the idea
Take it with you
- Compare complete configurations on explicitly scoped quality and latency axes.
- Use paired designs and uncertainty appropriate to the true sampling unit.
- Keep nonlinear metric bias and full serving cost separate from evaluation counts.
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.