A2Q+: Improving Accumulator-Aware Weight Quantization
Ian Colbert, Alessandro Pappalardo, Jakoba Petri-Koenig, Yaman Umuroglu
TL;DR
This work addresses hardware-efficient neural inference under very low-precision accumulation by extending accumulator-aware quantization (A2Q) with A2Q+. The authors identify that A2Q's $\lower$-norm bound and initialization are overly restrictive, introducing quantization error that worsens as the accumulator width decreases. They propose A2Q+ with a zero-centered bound ${}_{\space}\lVert\bm{q}\rVert_{1} \le \frac{2^P - 2}{2^N - 1}$ and Euclidean-projection initialization to minimize initialization error, both compatible with weight normalization. Across CIFAR-10, BSD300, and ImageNet, A2Q+ yields Pareto-dominant trade-offs, enabling ResNet50 to reach roughly 95% of 32-bit accuracy at 12-bit accumulators and outperforming A2Q by about 17 percentage points in some settings, while preserving robustness against overflow. The work highlights practical implications for hardware-aware quantization, including depthwise-convolution considerations and sparsity opportunities for accelerators, pointing to future refinements in deployment-aware optimization and structured sparsity.
Abstract
Quantization techniques commonly reduce the inference costs of neural networks by restricting the precision of weights and activations. Recent studies show that also reducing the precision of the accumulator can further improve hardware efficiency at the risk of numerical overflow, which introduces arithmetic errors that can degrade model accuracy. To avoid numerical overflow while maintaining accuracy, recent work proposed accumulator-aware quantization (A2Q), a quantization-aware training method that constrains model weights during training to safely use a target accumulator bit width during inference. Although this shows promise, we demonstrate that A2Q relies on an overly restrictive constraint and a sub-optimal weight initialization strategy that each introduce superfluous quantization error. To address these shortcomings, we introduce: (1) an improved bound that alleviates accumulator constraints without compromising overflow avoidance; and (2) a new strategy for initializing quantized weights from pre-trained floating-point checkpoints. We combine these contributions with weight normalization to introduce A2Q+. We support our analysis with experiments that show A2Q+ significantly improves the trade-off between accumulator bit width and model accuracy and characterize new trade-offs that arise as a consequence of accumulator constraints.
