Bootstrap Evaluation

Bootstrap evaluation estimates uncertainty in a metric by repeatedly resampling the evaluation set with replacement.

Given a test set and metric , sample bootstrap datasets:

Then compute:

The empirical distribution of gives confidence intervals or uncertainty estimates.

Percentile Interval

A common interval uses bootstrap quantiles:

where is the empirical -quantile. This interval describes variability under the resampling design, not every possible deployment condition.

Paired Bootstrap

For comparing two models and on the same examples, resample examples once and compute the paired difference:

This estimates uncertainty in the improvement directly.

Resampling Unit

Data StructureResample
IID examplesexamples
classification with duplicate entitiesentity groups or deduplicated examples
molecular property predictionscaffold groups, molecule groups, or assay-source groups
protein modelingprotein families, targets, or complexes
retrievalqueries, not candidate rows
generationprompts/conditions and all samples generated for each condition
repeated seedsseed/run units when estimating run variation

If the resampling unit is too small, the interval looks narrower than the evidence supports.

Failure Modes

FailureConsequence
bootstrap after test-set selectioninterval ignores model-selection bias
resample candidates instead of queriesretrieval metrics become overconfident
resample ligand rows despite scaffold dependencemolecular benchmark appears stronger than it is
ignore failed/invalid outputsgeneration methods look cleaner than attempted-sample reality
use bootstrap for tiny rare subgroupinterval may be unstable; report numerator/denominator too

Checks

  • Are models compared on the same examples?
  • Is the metric stable under resampling?
  • Does the resampling unit match the data dependence: example, molecule, target, assay, or cluster?
  • Are confidence intervals reported for the metric difference, not only each metric?
  • Is the test set large and diverse enough for bootstrap to be meaningful?
  • Is the number of bootstrap replicates and random seed recorded?
  • Are all preprocessing, filtering, invalid outputs, and missing predictions inside the metric computation?
  • Is the bootstrap used for final evidence, not for repeatedly choosing the best model?