OpenVINO CPU f16: outputs depend on earlier inferences
Reproduction for an OpenVINO CPU plugin bug. With INFERENCE_PRECISION_HINT=f16, the output of a compiled model depends on the inferences run before it. The first call is correct; from the second call on, outputs drift from what a freshly compiled model returns for the same input. f32 and bf16 are exact.
f16 is the default precision on ARM CPUs (e.g. Apple Silicon), so there it happens without any configuration. On x86 it happens when f16 is requested explicitly.
Files
| File | Content |
|---|---|
act.xml, act.bin |
OpenVINO IR of an ACT (Action Chunking Transformer) robot policy: ResNet18 backbone + transformer encoder/decoder. Inputs state [1,6], images.gripper and images.overview [1,3,384,384]; output action [1,100,6]. |
inputs.npz |
10 real, preprocessed observations (one per key, stacked on axis 0). |
repro.py |
Standalone script, needs only openvino and numpy. |
The model was trained with Physical AI Studio on simulated data. It is shared only to reproduce this bug.
Run
pip install openvino numpy
hf download iMaxxgx/openvino-cpu-f16-drift-act --local-dir act-repro
python act-repro/repro.py f16 bf16 f32
For each precision, one compiled model runs the 10 inputs in order, and each output is compared with a freshly compiled model that sees only that input. Output mean |value| is about 32.
Results
Apple M4 Max, OpenVINO 2026.4.0 (f16 is the default here):
f16 (<Type: 'float16'>) max|streamed - fresh| per call: [ 0. 2.219 1.656 33.908 106.781 99.59 107.305 65.25 70.438
67.734]
f32 (<Type: 'float32'>) max|streamed - fresh| per call: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
Intel Core Ultra X7 358H, Ubuntu, OpenVINO 2026.3.0:
f16 (<Type: 'float16'>) max|streamed - fresh| per call: [ 0. 1.781 1.5 33.084 106.75 97.695 106.773 62.953 83.23
67.297]
bf16 (<Type: 'bfloat16'>) max|streamed - fresh| per call: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
f32 (<Type: 'float32'>) max|streamed - fresh| per call: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
Also observed:
- A new infer request per call,
share_inputs=False, or contiguous input copies do not change the result. - The same architecture (ResNet18 +
torch.nn.Transformer) with random weights does not drift, so the trigger is specific to this graph. - Random inputs trigger the drift as well; real inputs are included for realism.