NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

High Throughput Matrix-Matrix Multiplication between Asymmetric Bit-Width Operands

Dibakar Gope, Jesse Beu, Matthew MattinaarXiv 2020

TL;DR

Researchers from Arm ML Research Lab have proposed a new SIMD instruction that doubles matrix multiplication throughput by natively supporting asymmetric bit-widths (8-bit activations and 4-bit weights). By accumulating results into 16-bit registers instead of the standard 32-bit ones, they achieve a 2x speedup with negligible overflow (0.05%) in real-world deep learning workloads.

What Problem Does This Paper Address?

Deep neural networks are increasingly deployed on resource-constrained edge devices, driving the need for aggressive quantization. While 4-bit weight quantization has become popular due to its minimal impact on accuracy, current hardware often fails to capitalize on it.

Existing SIMD (Single Instruction, Multiple Data) instructions typically expect symmetric operands (e.g., 8-bit weights and 8-bit activations). To use 4-bit weights with these instructions, the weights must be "padded" or sign-extended to 8 bits. This creates a read width imbalance: you are reading 4-bit data but consuming 8 bits of register space and memory bandwidth, effectively leaving half of the hardware's potential performance on the table.

Methods

The authors propose a new SIMD matrix multiplication instruction designed for asymmetric operands.

  1. Asymmetric Packing: Instead of padding 4-bit weights, the instruction packs them contiguously. In a 128-bit vector register, this allows the hardware to access twice as many weight elements (32 elements) compared to 8-bit weights (16 elements).
  2. Narrow Accumulators: Standard 8-bit multiplications produce 16-bit products, which are usually accumulated into 32-bit registers to prevent overflow. However, an 8-bit by 4-bit multiplication produces a maximum 12-bit result. The authors propose accumulating these into 16-bit registers.
  3. Throughput Doubling: Because the output accumulators are now 16-bit instead of 32-bit, the same register file bandwidth can write back twice as many results per cycle.
Fig. 2. Matrix-matrix multiplication between 8- and 4-bit values at 128-bit vector width while accumulating into 16-bit output accumulators.

The paper also details how this logic can be applied to hardware accelerators like Systolic Arrays (found in Google's TPU). By modifying the Processing Element (PE) to handle two 8x4 MAC (Multiply-Accumulate) operations simultaneously, the overall throughput of the array doubles without increasing the size of the operand or accumulator buffers.

Datasets

The researchers evaluated their proposal using the ImageNet dataset on a ResNet18 architecture. This served as a representative workload to measure how often the narrower 16-bit accumulators would actually overflow during typical inference tasks.

Key Insights and Ideas

  • The "Overflow" Myth: The biggest hurdle for 16-bit accumulators is the fear of numerical overflow. Mathematically, a 16-bit register can only safely hold 32 accumulations of 12-bit products in the absolute worst-case scenario. However, neural network weights and activations are rarely all at their maximum values simultaneously.
  • Statistical Safety: In practice, the authors found that even in large layers where over 2,000 products are accumulated, the overflow rate is incredibly low (~0.05%).
  • Hardware Reuse: The proposed architecture is highly efficient because it reuses existing 32-bit accumulator storage. A single 32-bit slot is simply re-partitioned to hold two 16-bit values, maintaining the same physical footprint while doubling logical capacity.
Fig. 5. Systolic array (SA) microarchitectures, modified by extending each scalar PE to perform two MAC operations between 8-bit activations and 4-bit weights, while accumulating the product into 16-bit accumulator buffers.

Key Results

  • 2x Throughput: The primary achievement is a doubling of MAC throughput for both CPUs (via SIMD) and DNN accelerators.
  • Negligible Error: For ResNet18, the overflow rate was just 0.05%. Most layers showed 0.0% overflow, with only the largest, final layers showing any measurable instances.
  • Bandwidth Efficiency: The method utilizes the full read/write port bandwidth of the register file, eliminating the waste associated with zero-padding or sign-extending narrow operands.
Table showing the extremely low overflow percentages across different ResNet18 layers.

Limitations and Future Work

  • Accuracy Impact: While the authors measured the rate of overflow, they did not fully quantify the final impact on Top-1/Top-5 accuracy for ResNet18. They suggest that "sticky" overflow (capping at max/min values) would likely mitigate most issues.
  • Training Integration: The authors propose that future work could involve "overflow-aware training," where the 16-bit accumulator constraint is integrated into the training loop to ensure the model learns weights that naturally avoid these limits.
  • Scope: The evaluation was limited to ResNet18. The authors plan to test the approach on more compact, highly optimized models like MobileNets in the future.

Summary updated

BibTeX
@misc{gope2020high,
  author = {Dibakar Gope and Jesse Beu and Matthew Mattina},
  title = {{High Throughput Matrix-Matrix Multiplication between Asymmetric Bit-Width Operands}},
  year = {2020},
  eprint = {2008.00638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.00638},
}
Figure