TL;DR
EBPC (Extended Bit-Plane Compression) is a novel, lossless, and hardware-efficient compression scheme designed to break the memory bottleneck in Deep Neural Network (DNN) accelerators. By combining sparsity-aware run-length encoding with bit-plane compression that exploits the "smoothness" of feature maps, it achieves up to 5.1× compression while occupying a silicon footprint smaller than seven multiply-add units.
Introduction
While modern AI research often focuses on maximizing operations per second (FLOPs), the primary energy cost in hardware is data movement. Transferring data between a processor and off-chip DRAM consumes significantly more power than the actual computation. As DNNs transition toward high-resolution tasks like autonomous driving, the volume of intermediate "feature maps" has exploded, often exceeding the size of the model weights themselves.
Existing compression methods typically target weights or simple "zero-skipping" (sparsity). However, these ignore the spatial correlation—or "smoothness"—of non-zero values in feature maps. EBPC addresses this by providing a lossless, hardware-friendly compression algorithm that handles both zeros and non-zeros effectively without becoming a computational bottleneck.
Methods: The EBPC Pipeline
EBPC fuses two distinct strategies into a single hardware pipeline:
- Zero/Non-Zero Encoding (Z-RLE): The input stream is first checked for zeros. Bursts of zeros are compressed using a simple run-length encoding.
- Bit-Plane Compression (BPC): For non-zero values, the algorithm exploits spatial correlation through a multi-stage transformation:
- Delta Encoding: Instead of absolute values, EBPC stores the difference (delta) between neighboring pixels. Since feature maps are often smooth, these deltas are typically small.
- Bit-Plane Transformation: The deltas are viewed as bit-planes.
- XOR-ing (DBX): Neighboring bit-planes are XORed to map negative values (in two's complement) to a representation with more leading zeros, increasing compressibility.
- Prefix Coding: A hardware-friendly encoding table maps common patterns (e.g., all-zeros, all-ones, or single-one) to short codes.
The efficiency of this approach relies on the frequency of specific bit patterns. As shown in the symbol histogram, "all-0 DBX" and "single-1" patterns are highly prevalent in DNN feature maps, allowing the prefix code to significantly reduce the bit-stream size.
Hardware Implementation
The authors designed and synthesized a dedicated hardware architecture in 65 nm CMOS technology. The design targets a throughput of one 8-bit word per cycle at 600 MHz. By avoiding complex entropy coding (like Huffman or LZW) which requires large dictionaries, EBPC achieves an extremely small silicon footprint: approximately 2.8 kGE for the encoder and 3.0 kGE for the decoder. Combined, this is less area than seven 8-bit multiply-add units.
Key Results
The researchers evaluated EBPC across popular architectures (AlexNet, VGG-16, ResNet-34, MobileNetV2) and tasks (ImageNet classification, YOLOv3 detection, OpenPose).
- Compression Ratios: EBPC achieved average compression of 5.1× for AlexNet, 4× for VGG-16, and 2.2× for MobileNetV2. This represents a 45–70% improvement over sparsity-only methods like Zero-RLE.
- Training Benefits: EBPC performs exceptionally well on gradient maps during training, as gradients often exhibit both high sparsity and spatial smoothness.
- Stability: The compression ratio showed low frame-to-frame variance, which is critical for real-time systems requiring guaranteed bandwidth.
Conclusion and Future Work
EBPC demonstrates that harvesting redundancy from non-zero values via delta encoding is as important as zero-skipping. While highly efficient, the current implementation's throughput (1 word/cycle) may need parallelization for ultra-high-performance accelerators. Future work may address the quadratic growth of "packer" logic when scaling throughput and optimize the algorithm for floating-point data, where bit-true subtraction is less efficient than with integers. Additionally, EBPC's performance is maximized when data is stored in NCHW layouts, ensuring spatial neighbors are contiguous.
Summary updated