One Checkpoint, Four Converters: Per Input Disagreement After On Device Conversion and a Probe Set That Catches It
Organizations: Independent Researcher.
Abstract
A model converted for on device or accelerated inference ships once its top 1 accuracy matches the source model. Accuracy can match while individual decisions change, and the converter, its INT8 recipe and its calibration draw each move them. We convert 5 public checkpoints (four ImageNet classifiers and a sentiment model) with the documented FP32 and INT8 recipes of ExecuTorch, LiteRT, ONNX Runtime and TensorRT and compare every top 1 decision with the PyTorch source on 7,854 images and 1,938 sentences. All 34 strict FP32 conversions reproduce every decision, yet each of the 4 vision INT8 recipes that keeps accuracy equivalent flips more than 1% of decisions: ONNX Runtime static INT8 flips 4.07% (95% CI [3.65, 4.53]) of ResNet 50 decisions while accuracy moves by -0.15 points, and two builds of that recipe from different calibration draws disagree on 3.44% [3.06, 3.88]. Where accuracy is kept, the flipped inputs are the ones the source model barely decides (AUROC of the source margin 0.90 to 0.97 on ResNet 50, every 95% CI inside [0.89, 0.98]), but our preregistered claim that this holds for every recipe fails on the two mobile networks, where INT8 breaks accuracy outright. A probe set of the 200 training inputs with the smallest source margin, chosen before any conversion, flags all 40 vision stacks (recall 95% CI [0.91, 1.00]) and all 6 text stacks that flip at least 0.5% of decisions and none of the exact FP32 conversions, so conversion checks should compare decisions on such a probe set, not accuracy.
Figures & tables
| Stack | MNv3 | EffB0 | R50 | DeiT | DBERT |
|---|---|---|---|---|---|
| Controls (K1, K2) | |||||
| PyTorch rerun (K1) | 0 | 0 | 0 | 0 | 0 |
| PyTorch batch 32 | 0 | 0 | 0 | 0 | 0 |
| PyTorch 1 thread | 0 | 0 | 0 | 0 | 0 |
| PyTorch 2.14 | 0 | 0 | 0 | 0 | 0 |
| PyTorch CUDA FP32 | 0 | 0 | 0 | 0 | 0 |
| Model | INT8 recipe | Flip rate (%) | Accuracy change (pp) | EQ | Calibration redraw (%) | |||
| [95% CI] | [95% CI] | [95% CI] | ||||||
| MobileNetV3 Large | ORT static QDQ | 26.48 | [25.54, 27.46] | 13.81 | [ 14.77, 12.92] | no | 29.25 | [28.25, 30.25] |
| TRT explicit INT8 | 73.07 | [72.10, 74.05] | 55.35 | [ 56.46, 54.20] | no | 76.17 | [75.20, 77.09] | |
| ET XNNPACK PT2E | 10.19 | [9.50, 10.90] | 2.57 | [ 3.12, 2.02] | no | 9.33 | [8.70, 10.00] | |
| LiteRT PT2E static | 10.68 | [9.99, 11.40] | 2.76 | [ 3.34, 2.16] | no | 9.63 | [8.95, 10.29] | |
| EfficientNet B0 | ORT static QDQ | 72.93 | [72.00, 73.95] | 59.69 | [ 60.85, 58.65] | no | 67.90 | [66.86, 68.89] |
| Converter | Defect | Surfaces | |
|---|---|---|---|
| B1 | ExecuTorch 1.2.0, XNNPACKQuantizer | integer scalars lifted to float tensors, index op fails; fixed on main; patched at run time | loud, calibration |
| B2 | litert_torch main, dynamic PT2E | int8 embedding with nonzero zero point; runtime rejects it; no LiteRT dynamic row for DistilBERT | silent at export, loud at load |
| B3 | coremltools 9.0 | new_ones , where not converted; no Core ML DistilBERT; DeiT only via TorchScript | loud, conversion |
| B4 | ExecuTorch 1.2.0, XNNPACK INT8 | ViT patch embedding lowers, XNNPACK refuses a transpose; no ExecuTorch INT8 row for DeiT | silent at export, loud at load |
| B5 | TensorRT 10.16 ONNX parser | per tensor DequantizeLinear on a 0-d scale rejected (axis check); no TensorRT INT8 for DeiT, DistilBERT | loud, parse |
On-Device Inference
On-device inference runs machine-learning models locally on phones, wearables, microcontrollers, and edge hardware to reduce latency, energy use, and data sharing.
See all 209 papers