ResNet-50 · INT8 (percentile calibration, 99.99%)

Official label (made by Brokkr from its own runs)

Summary

Hover over a dotted word for a plain explanation; all of them are listed under "What the words mean" below.

What was tested

Builds

RoleRecipeFile sizeStatus
referenceFP32 (full precision)102.34 MBusable
labelledINT8 (percentile calibration, 99.99%)26.19 MBusable

Clean images

BuildTop-1CoverageShrinking cost
FP3281.18% (80.40% to 81.94%)89.93% (89.32% to 90.52%), set size 1.47reference
INT880.04% (79.27% to 80.79%)89.73% (89.11% to 90.31%), set size 1.57-1.14 (-1.54 to -0.78)

Under damage

Damage drop and shrinking cost in points (positive = better). The suggested next steps are general suggestions; they were not tested for this model.

ConditionFP32 top-1FP32 damage dropFP32 envelopeINT8 top-1INT8 damage dropINT8 coverageINT8 envelopeShrinking costSuggested next step
fog (Brokkr) s378.99%-2.19 (-2.69 to -1.77)not harmful in our tests77.50%-2.54 (-3.05 to -2.04)88.44% (87.80% to 89.06%), set size 1.60not harmful in our tests-1.49 (-1.90 to -1.08)—
darkness (Brokkr) s580.31%-0.87 (-1.30 to -0.48)not harmful in our tests78.77%-1.27 (-1.79 to -0.80)89.59% (88.98% to 90.19%), set size 1.63not harmful in our tests-1.54 (-2.02 to -1.08)—
defocus blur (Brokkr) s364.10%-17.08 (-17.90 to -16.23)harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)62.79%-17.25 (-18.13 to -16.42)74.69% (73.77% to 75.57%), set size 1.69harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)-1.31 (-1.77 to -0.87)consider a stronger model; re-calibrate on your own images
noise (Brokkr) s362.59%-18.59 (-19.45 to -17.79)harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)60.86%-19.18 (-20.07 to -18.32)74.34% (73.45% to 75.15%), set size 1.83harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)-1.73 (-2.16 to -1.32)consider a stronger model; re-calibrate on your own images
fog (ImageNet-C) s375.40%-5.78 (-6.45 to -5.19)not harmful in our tests73.74%-6.30 (-6.95 to -5.68)85.32% (84.60% to 86.04%), set size 1.67not harmful in our tests-1.66 (-2.13 to -1.19)—
fog (ImageNet-C) s559.49%-21.69 (-22.59 to -20.82)harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)56.68%-23.36 (-24.27 to -22.46)68.30% (67.39% to 69.22%), set size 1.73harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)-2.81 (-3.32 to -2.37)consider a stronger model; re-calibrate on your own images
contrast (ImageNet-C) s378.31%-2.87 (-3.35 to -2.36)not harmful in our tests76.46%-3.58 (-4.12 to -3.05)88.05% (87.43% to 88.70%), set size 1.64not harmful in our tests-1.85 (-2.28 to -1.44)—
contrast (ImageNet-C) s571.39%-9.79 (-10.52 to -9.08)borderline60.51%-19.53 (-20.40 to -18.57)73.70% (72.85% to 74.61%), set size 1.78harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)-10.88 (-11.66 to -10.16) [large shrinking cost]try another recipe or a stronger model; re-calibrate on your own images
defocus blur (ImageNet-C) s345.92%-35.26 (-36.22 to -34.25)harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)43.86%-36.18 (-37.14 to -35.18)53.40% (52.46% to 54.31%), set size 1.54harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)-2.06 (-2.53 to -1.59)consider a stronger model; re-calibrate on your own images
defocus blur (ImageNet-C) s521.43%-59.75 (-60.79 to -58.65)harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)19.76%-60.28 (-61.30 to -59.22)23.49% (22.66% to 24.38%), set size 1.10harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)-1.67 (-2.21 to -1.12)consider a stronger model; re-calibrate on your own images
gaussian noise (ImageNet-C) s346.60%-34.58 (-35.56 to -33.54)harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)44.31%-35.73 (-36.78 to -34.69)57.06% (56.18% to 58.03%), set size 1.85harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)-2.29 (-2.72 to -1.89)consider a stronger model; re-calibrate on your own images
gaussian noise (ImageNet-C) s58.52%-72.66 (-73.56 to -71.77)harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)9.21%-70.83 (-71.73 to -69.92)12.05% (11.41% to 12.70%), set size 1.01harmful: accuracy dropped and uncertainty signal unreliable (coverage below 80%)+0.69 (+0.37 to +1.03) [not informative]consider a stronger model; re-calibrate on your own images

Speed

BuildHardwareThreadsLatencySpreadTime vs FP32
FP32laptop1p50 79.32 ms, p95 93.74 ms, p99 99.47 ms6.1%reference
FP32laptop4p50 58.17 ms, p95 71.44 ms, p99 86.23 ms4.1%reference
INT8laptop1p50 24.17 ms, p95 27.24 ms, p99 28.73 msunstable: speed varied a lot between repeat runs (spread 19.8%); treat as roughINT8 takes 0.30× the time of FP32; one or both timings unstable, treat as rough
INT8laptop4p50 18.66 ms, p95 20.71 ms, p99 29.23 ms2.5%INT8 takes 0.32× the time of FP32
FP32raspberry-pi-5—not measured: no Raspberry Pi 5 yet (Platform plan step 6)——
INT8raspberry-pi-5—not measured: no Raspberry Pi 5 yet (Platform plan step 6)——

Details

What the words mean

Official label
made by Brokkr from its own runs. A user-submitted label is always marked unverified.
FP32
the original model, not shrunk: every number in it is stored at full precision.
INT8
the shrunk model: most of its numbers are stored as small whole numbers, so the file is smaller.
Shrinking
turning the FP32 model into an INT8 one (also called quantization).
Recipe
how the INT8 build was made. Percentile calibration sets each layer's range of values from sample images and ignores the rarest extreme values; the percentage is the share of values kept inside.
Reference and labelled build
the label describes the labelled (shrunk) build; the reference (FP32) build is shown beside it for comparison.
Top-1
the share of images where the model's first answer is the right one.
Top-5
the share of images where the right answer is among the model's five best guesses.
Damage
simulated fog, darkness, blur, noise or low contrast, added to the test images.
Brokkr and ImageNet-C
the two sets of damage: Brokkr's own, and ImageNet-C, a widely used public benchmark. Its damage types were made here with the imagecorruptions package (an extension of the ImageNet-C code), not taken from the released ImageNet-C files; see the limits.
Severity (s3, s5)
how strong the damage is; a higher number is stronger.
Points
percentage points: the plain difference between two percentages. Negative means worse.
Damage drop
top-1 under the damage minus top-1 on clean images, for the same build and the same images. Negative means the damage hurt.
Shrinking cost
INT8 top-1 minus FP32 top-1 on the same images. Negative means shrinking lost accuracy.
Large shrinking cost
the whole interval of the shrinking cost is below the line given under "What was tested".
Not informative
FP32 itself gets almost every image wrong here, so the shrinking cost says little.
Prediction set
the classes the model says could be right. A small set means it is sure; a big set is its way of saying "I'm not sure".
Coverage
the share of images whose prediction set contains the right answer. The sets are tuned on clean images to reach a target; under damage there is no promise, so the label shows what was measured.
Set size
the average number of classes in a prediction set.
Conformal threshold
the cut-off that decides which classes go into a prediction set, set once on clean calibration images.
Calibration images
clean images used only to set things up (INT8's ranges of values, the conformal threshold), never for testing.
Test images
the images every accuracy and coverage number here is measured on; none of them is used for calibration.
Tuning images
images kept apart from the test images, used for checks while building.
Envelope
the verdict for each build in each condition, from its coverage and damage drop and the lines under "What was tested".
Not harmful in our tests
both whole intervals clear their lines in this condition. It is not a guarantee: other damage or other images may give other results.
Harmful
a whole interval is below its line: coverage is too low, or accuracy fell too far.
Borderline
an interval crosses a line, so the result could go either way.
Not tested
this damage type or severity was not run.
INT8 build failed
the INT8 build did not pass its build check, so it was not tested.
Top-1 agreement with FP32
the share of images where INT8's first answer is the same as FP32's.
Too hard for this model
FP32 fails here too: the model struggles even before shrinking. The shrinking-cost column shows whether shrinking made it worse.
Hurt by shrinking
FP32 copes here but INT8 does not: the shrinking caused the failure.
Cause unclear
INT8 is harmful here, but FP32 is borderline, so it is not clear whether the model or the shrinking is to blame.
Accuracy dropped
the whole damage-drop interval is below its line: top-1 fell too far under this damage.
Uncertainty signal unreliable
the whole coverage interval is below its line: the prediction sets miss the right answer too often, so the model's "I'm not sure" can no longer be trusted here.
Harsh conditions
conditions where the FP32 original is itself harmful: the damage is too much for this model even at full size.
Uncertainty signal
the model's way of saying "I'm not sure": its prediction sets. It can be trusted only where coverage stays above its line.
Re-calibrate
set the conformal threshold again, on images like the ones the model will really see instead of clean ones.
Suggested next step
a general suggestion for a harmful condition. It was not tested for this model.
Interval (in brackets)
the range the true value most likely lies in, found by resampling the test images many times (bootstrap); its level is given under "What was tested".
Paired
both sides of a difference are computed on the same resampled images, so how hard each image is cancels out.
ECE
expected calibration error: how far the model's confidence is from how often it is right. Lower is better.
E-AURC
how far the model is from ordering its answers perfectly by confidence, so that its wrong answers come last. Lower is better.
Latency
the time the model takes for one image.
p50, p95, p99
latency percentiles: p50 is the typical time; p95 and p99 are slow runs, with only a small share of runs slower still.
Spread
how much the typical time (p50) changed between the repeat sessions: the range of the middle half of the sessions' p50s, as a share of their median.
Unstable
the spread is above the line given under "Speed": the timing varied a lot between repeat runs, so treat those times as rough. The label does not say why.
Time vs FP32
the INT8 build's typical time (p50) divided by the FP32 build's, on the same machine and thread count. Below one means INT8 took less time; above one means it was slower. It compares the two builds on this machine only.
Threads
how many CPU workers the model may use at once.
Pinned
the timing was set to run only on the named cores; this was not read back to confirm.
Hardware threads
one physical CPU core can run two streams of work at once; each stream is a hardware thread, and the operating system counts it as a CPU of its own.
FP32 sanity check
our FP32 top-1 on clean images compared with the figure torchvision publishes, to catch a broken setup.
onnxruntime, CPUExecutionProvider
the program that runs the model (ONNX Runtime), here on the CPU.
SHA-256
a fingerprint of a file; it changes if even one byte of the file changes.
Commit
the exact version of Brokkr's code that made this label.
Label schema version
the version of the label format this label follows (docs/label_schema.md).
CC BY 4.0
the licence of this label's data: anyone may reuse it, with credit.

Limits

Licences

Sources