﻿# ONNX Runtime Arm FP16 grouped Conv: byte-sized packs and per-group bias need separate indexing

The 1.32 Arm grouped-Conv repair separates byte offsets and bias slices; multi-group execution on the affected path is essential coverage.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-engine-ort-arm-fp16-conv-byte-offset-group-bias/
Language: en

ONNX Runtime 1.32.0 includes an Arm64 FP16 grouped-convolution repair for packed-weight offsets and group bias. The PR identifies a byte count used through a half-element pointer and a repeated first-group bias. These are two address-mapping errors that a single-group convolution or an x64-only test could avoid entirely.

## Pointer arithmetic chooses a unit

Adding a size to a typed pointer scales it by the pointed-to element size. If the size is already measured in bytes, that can advance too far. The PR keeps packed offsets in bytes. A review should write down units for each size-producing API and each offset expression, rather than relying on similar variable names. A successful first group says little because its zero offset does not exercise the erroneous increment.

## Bias has its own group mapping

Correcting weight addresses does not automatically correct bias selection. The PR separately gives each group the intended bias slice. A proposed test assigns different biases to different groups and compares with a no-bias control. Uniform bias would hide repeated use of group zero. Keep weights distinguishable as well so a weight-pack error and a bias-slice error produce separable evidence rather than one unexplained numerical mismatch.

## The architecture path is part of the test

Upstream notes that the relevant packing route is Arm64-specific. Passing on x64 cannot validate code that x64 never executes. The PR reports emulator-based verification and explicitly says physical Arm64 hardware was not tested there. Preserve that distinction when reusing its evidence. A local qualification should identify the real selected kernel and hardware, with initialized and runtime-supplied weights where those choose different preparation routes.

## Model effects require the affected configuration

The release is a targeted grouped-Conv correctness repair, not a general Arm performance announcement. Verify every group’s result before measuring time, and retain allocation diagnostics if corruption was observed. This article reports the two mappings and proposed controls without claiming new hardware measurements. Models that never use the affected FP16 packing path do not acquire a demonstrated accuracy improvement merely by sharing the same runtime version.

## Sources

- [ONNX Runtime v1.32.0 release](https://github.com/microsoft/onnxruntime/releases/tag/v1.32.0)
- [ONNX Runtime pull request #33598](https://github.com/microsoft/onnxruntime/pull/33598)

## Related reading

- [Keep byte width and row pitch distinct in CUDA matrix copies](/journal/guide-perf-memcpy2d-byte-pitch/)
- [ONNX Runtime offline optimization: a saved optimized graph inherits a target contract](/journal/fg2-onnxruntime-offline-graph-target-compatibility/)
