Extended Bit-Plane Compression for Convolutional Neural Network Accelerators

Lukas Cavigelli, Luca Benini

Introduction

The rapid advancement of Convolutional Neural Networks (CNNs) has led to a significant increase in computational demands. While modern hardware accelerators have evolved to handle these computations efficiently, they are increasingly constrained by the "memory wall"—the energy and latency bottleneck associated with moving data between the processor and off-chip DRAM. While model weight compression is well-studied, intermediate feature maps (activations) generated during inference present a dynamic and high-volume data challenge that requires efficient on-the-fly compression.

The Memory Wall and Existing Limitations

Current compression techniques often fall into two categories: weight-focused methods that ignore dynamic data, or complex entropy-based methods like Huffman coding that require large, power-hungry dictionaries. Simpler methods, such as Zero-Value Compression (ZVC) or basic Zero-Run-Length Encoding (Zero-RLE), primarily exploit sparsity but fail to capture redundancies within non-zero value distributions. This paper proposes a hardware-efficient, streamable compression scheme that combines sparsity-focused encoding with an optimized bit-plane compression (BPC) algorithm.

Proposed Architecture: Extended Bit-Plane Compression

The proposed "Extended Bit-Plane Compression" (EBPC) utilizes a two-stage pipeline designed to be integrated directly into a DMA controller with minimal hardware overhead. The architecture transforms raw data blocks through several stages to minimize the bit-stream size.

Overview of the EBPC pipeline, showing the transformation from raw data blocks to compressed bit-streams through delta encoding, bit-plane transformation, and XOR operations.

Encoding Strategy

The compression process begins by evaluating the input stream for zero values. As shown in the encoder logic, bursts of zeros are handled by a Zero-RLE stage, while non-zero values are routed to a specialized Bit-Plane Encoder. This dual-path approach ensures that both the sparsity (common in ReLU-activated layers) and the value distribution of activations are exploited.

The Bit-Plane Encoder employs several key transformations:

  1. Delta Encoding: Computes the difference between consecutive values to exploit spatial correlation in feature maps.
  2. Bit-Plane Transformation: Reorganizes deltas into bit-planes, grouping bits of the same significance together.
  3. XOR-ing: Neighboring bit-planes are XOR-ed to further reduce the number of set bits (1s).
  4. Symbol Encoding: Bit patterns are mapped to short binary codes based on frequent patterns, such as all-zero planes or single-bit changes.

Experimental Evaluation

The EBPC method was evaluated using the ILSVRC (ImageNet) validation set across several popular CNN architectures, including AlexNet, ResNet-34, and SqueezeNet. The study considered various data types, specifically 8-bit and 16-bit fixed-point, and 32-bit floating-point representations.

Key Results

The proposed method achieved significant compression ratios, particularly for quantized models:

  • 4.45× for 8-bit AlexNet.
  • 2.45× for 8-bit ResNet-34.
  • 2.8× for 8-bit SqueezeNet.

Notably, on ResNet-34, EBPC provided a 60% improvement over standard Zero-Value Compression (ZVC), demonstrating the value of bit-plane analysis over simple sparsity exploitation.

Insights and Hardware Efficiency

A critical finding was the impact of data layout; the NCHW format (where spatial dimensions are adjacent in memory) yielded the best results due to the high spatial correlation in feature maps. Furthermore, the entire compressor/decompressor logic requires fewer than 300 bits of sequential logic (registers). This minimal footprint makes it "practically free" in terms of silicon area compared to the massive buffers usually found in CNN accelerators.

Limitations and Future Work

The effectiveness of EBPC is sensitive to word width. While it performs exceptionally well on 8-bit data, compression ratios decrease for 32-bit floating-point data. This is primarily due to "noise" in the least significant bits (LSBs) of the mantissa, which are inherently harder to compress without loss. Future work may involve adapting the logic to handle specific quantization schemes, such as power-of-two quantization, even more effectively.

Conclusion

By fusing sparsity-focused RLE with value-focused bit-plane compression, EBPC offers a high-performance solution that significantly mitigates the off-chip memory bottleneck. Its minimal hardware footprint and lack of complex dictionaries make it a practical choice for real-time, low-latency CNN inference on embedded and mobile systems.

Summary updated

BibTeX
@inproceedings{cavigelli2018extended,
  author = {Lukas Cavigelli and Luca Benini},
  title = {{Extended Bit-Plane Compression for Convolutional Neural Network Accelerators}},
  booktitle = {AICAS},
  year = {2018},
  doi = {10.1109/aicas.2019.8771562},
}
Figure