Abstract
Deep Neural Network (DNN) inference on edge devices is frequently constrained by the memory bandwidth required to store and transfer intermediate feature maps. This paper proposes a novel learned compression method that represents activations as binary vectors over the GF(2) finite field. By integrating Nonlinear Dimensionality Reduction (NDR) layers directly into the network architecture, the model learns to "squeeze" activations into a compact form. Evaluations on ImageNet and PASCAL VOC using SqueezeNet and MobileNetV2 demonstrate that this approach achieves a 2x reduction in feature map memory with negligible accuracy loss. When combined with 8-bit quantization and layer fusion, the method reaches a total compression factor of up to 304x compared to 32-bit floating-point baselines.
Introduction
While significant research has focused on compressing model weights, intermediate feature maps often represent a massive memory bottleneck, particularly for high-resolution inputs in applications like autonomous driving. Moving these activations between the processor and external memory is a primary driver of power consumption. This work addresses this challenge by learning a compact representation of activations, exploiting inherent structural redundancies without the overhead of complex on-the-fly encoding.
Methodology
GF(2) Representation and NDR
The core innovation involves treating activations as vectors over the GF(2) finite field (binary 0s and 1s). The authors embed Nonlinear Dimensionality Reduction (NDR) layers—small convolutional bottlenecks—that operate within this binary space. These layers consist of a binarization/compression function ($b()$) that maps activations to a lower-dimensional space $\mathcal{B}$, and an expansion function ($b^{-1}()$) that restores the data for subsequent functional layers.
End-to-End Training
Because binarization and quantization are non-differentiable, the authors employ a Straight-Through Estimator (STE) to approximate gradients during backpropagation. This allows the network to learn optimal compression parameters end-to-end. Additionally, to maintain training stability, Batch Normalization parameters were fixed and merged into the weights, preventing fluctuations that often occur when combining normalization with binary representations.
Layer Fusion
To maximize efficiency, the authors utilize a layer fusion technique. Intermediate, uncompressed feature maps are kept within small, fast on-chip buffers during the NDR process rather than being written to main memory. This minimizes external memory access, which is the most energy-intensive part of the inference process.
Experimental Results
The proposed method was evaluated on industry-standard benchmarks using SqueezeNet and MobileNetV2.
- ImageNet Classification: On SqueezeNet, the method achieved a 2x reduction in memory requirements for targeted layers with less than a 1% drop in Top-1 accuracy.
- Object Detection: Using the SSD framework on PASCAL VOC, the researchers observed that spatial compression was particularly effective in early layers. The combination of NDR, 8-bit quantization, and layer fusion resulted in a total compression factor of 304x relative to a 32-bit floating-point baseline.
- Comparative Performance: The NDR-enhanced models outperformed state-of-the-art binary networks (e.g., XNOR-Net) in terms of the accuracy-to-memory footprint trade-off, particularly on large-scale datasets like ImageNet.
Conclusion
By leveraging learned representations over GF(2), this work provides a robust framework for reducing the memory footprint of DNN activations. The method effectively exploits multidimensional redundancies in feature maps while maintaining high accuracy. Future research will focus on automating the placement of compression bottlenecks via Neural Architecture Search and developing optimized hardware kernels to fully realize the speed benefits of bitwise GF(2) operations.
Summary updated