Quantization—the process of reducing the precision of neural network weights and activations (e.g., from 32-bit floats to 4-bit integers)—is a cornerstone of efficient AI. However, there is a frustrating "hardware gap": most of our existing processors (CPUs and DSPs) are built for high-precision 32-bit or 64-bit math. When you run a 4-bit multiplication on a 32-bit unit, you are effectively leaving the vast majority of that hardware's transistors idle.
HiKonv (High Throughput Quantized Convolution) bridges this gap with a clever mathematical framework that allows standard hardware to perform multiple low-precision operations simultaneously within a single clock cycle.
TL;DR
HiKonv is a unified bit-wise management framework that enables standard CPUs and DSPs to perform multiple low-bitwidth convolutions in parallel using a single high-precision multiplier. By mathematically packing multiple operands into one "full-width" instruction, it achieves up to an 8.6× speedup on CPUs and significantly boosts DSP efficiency on FPGAs.
What Problem Does This Paper Address?
While we can quantize models to 1, 2, or 4 bits to save memory, our hardware isn't always "bit-flexible."
- Underutilization: A standard 32-bit CPU multiplier processing a 4-bit value wastes roughly 87% of its data width. Even SIMD extensions like AVX-512 often treat 8-bit as the smallest unit, still wasting space for sub-8-bit data.
- Lack of Generality: Previous attempts to "pack" data were often ad-hoc, designed for specific bitwidths (like binary only) or specific hardware.
- The Signed Math Headache: Packing signed integers (2’s complement) is notoriously difficult because sign extension bits "bleed" into adjacent packed data, corrupting the results.
HiKonv provides a systematic, theoretical foundation for maximizing throughput across any quantized bitwidth on any standard multiplier.
Methods
The core of HiKonv is treating a high-precision multiplication as a parallel convolution engine.
- Input Slicing and Packing: The authors represent packed inputs as polynomials. By carefully placing "guard bits" between low-bitwidth operands, they ensure that when two large numbers are multiplied, the resulting product contains several independent convolution results in distinct bit segments.
- Theoretical Bounds: They establish a mathematical framework (Theorem 1) to determine exactly how many operands ($N$ and $K$) can fit into a multiplier of a given size ($Bit_A \times Bit_B$) without results overlapping.
- Signed Bit Management: To handle signed integers, HiKonv uses a novel recursive packing and slicing formula (Equation 13). This allows the system to handle negative numbers correctly without the massive overhead of manual bit-manipulation for every single operation.
- Convolution Extension: They extend this "single-multiplication" trick to handle arbitrarily large 1D sequences and full 2D DNN convolutional layers through a shift-accumulation pattern.
Datasets
The authors evaluated HiKonv using:
- Synthetic Benchmarks: For 1D and 2D convolution latency tests on CPUs (Intel i7-10700K and i7-10710U).
- UltraNet: A high-performance object detection model (the DAC-SDC 2020 champion) was used for the end-to-end FPGA evaluation on a Xilinx Ultra96 MPSoC.
Key Insights and Ideas
- The Multiplier as a SIMD Unit: The most profound "aha moment" is that a single 32-bit multiplier isn't just one unit; it's a resource that can deliver 128 binarized operations in a single CPU instruction if the data is managed correctly.
- Guard Bits are the Key: The number of guard bits ($G_b$) isn't arbitrary; it’s a function of the number of accumulations. HiKonv provides the logic to calculate the minimum $G_b$ needed to prevent "overflow bleeding" while maximizing density.
- Hardware-Agnosticism: Because the method relies on the fundamental properties of binary multiplication, it works on Intel CPUs, ARM processors, and Xilinx DSP cores alike.
Key Results
- CPU Performance: On an Intel i7, HiKonv achieved a 3.17× latency improvement for 4-bit convolutions and a massive 8.6× improvement for 1-bit (binary) convolutions compared to standard C++ baselines.
- FPGA Efficiency: When applied to the UltraNet model (4-bit), HiKonv improved throughput from 248 fps to 401 fps (a 2.37× improvement) while using fewer DSP resources.
- DSP Efficiency: The "Gops/DSP" (Giga-operations per second per DSP) metric improved by 2.61×, proving that HiKonv extracts significantly more work from the same silicon.
Limitations and Future Work
- Software Overhead: Preparing the packed operands (bit-shifting and gating) happens at runtime. While the math is faster, this "packing tax" means real-world speedups are slightly lower than the theoretical maximums.
- The ARM Bottleneck: In the FPGA tests, the authors noted that the ARM CPU couldn't feed data to the accelerated DSPs fast enough. Future work could involve offloading the packing logic itself into hardware.
- Compiler Integration: Currently, this requires manual implementation. Integrating HiKonv into a deep learning compiler (like TVM) would make these gains accessible to general developers.
Summary updated