Abstract
With neural networks growing deeper and feature maps growing larger, limited communication bandwidth with external memory (DRAM) and power constraints become a bottleneck in implementing network inference on mobile and edge devices. In this paper, we propose an end-to-end differentiable bandwidth-efficient neural inference method with activation compressed by a neural data compression method. Specifically, we propose a transform-quantization-entropy coding pipeline for activation compression with symmetric exponential Golomb coding and a data-dependent Gaussian entropy model for arithmetic coding. Optimized with existing model quantization methods, low-level tasks of image compression can achieve up to 19x bandwidth reduction with 6.21x energy saving.
Introduction
In edge computing environments, such as smartphones and IoT devices, the primary energy consumption often stems from data movement rather than computation. Accessing external DRAM can consume up to 1000× more energy than a single on-chip operation. While weight compression techniques are well-established, activation maps—the intermediate data between layers—often represent a much larger bottleneck. In low-level vision tasks like neural image compression (NIC), these activations can be up to 1300× larger than the model weights. This paper addresses this "activation bottleneck" by integrating a specialized compression scheme directly into the inference pipeline.
Proposed Method
The proposed framework introduces an end-to-end differentiable pipeline to compress activations before they are written to DRAM. The system architecture consists of several key components:
- Activation Auto-Encoder: Activations pass through a $1 \times 1$ convolution transform ($T$) to decorrelate data, followed by uniform quantization to convert floating-point numbers into integers.
- Entropy Coding: Two models are proposed: a data-dependent Gaussian model for high-efficiency arithmetic coding and a hardware-friendly Symmetric Exponential Golomb (SymEG) coder for lower latency.
- Joint Optimization: The network is trained using a composite loss function $L = L_{task} + \gamma \cdot \text{ActivationSize}$, forcing the model to learn naturally compressible feature representations using a Straight-Through Estimator.
The framework is designed to be compatible with standard efficiency techniques like int8 quantization and weight sparsity, providing a holistic approach to inference optimization.
Experimental Results
The method was evaluated on the Kodak dataset. The results demonstrate significant improvements in bandwidth efficiency with negligible impact on output quality.
- Bandwidth and Energy: The Gaussian-based model achieved up to a 19.54× reduction in activation bandwidth, translating to approximately 6.21× energy savings due to reduced DRAM access.
- Quality Preservation: The performance drop, measured by BD-Rate, remained below 0.1%, indicating that the compression is nearly lossless in terms of visual task performance.
- Layer-wise Analysis: Compression was most effective on the larger activation maps found in the early stages of the network, where bandwidth pressure is most acute.
Conclusion
This work demonstrates that activation compression is a viable and highly effective strategy for reducing the DRAM bottleneck in edge AI. By making the compression process differentiable and jointly optimizing it with the primary task, substantial bandwidth savings can be achieved without sacrificing image quality. Future work will explore the application of this framework to high-level vision tasks like object detection and the physical implementation on specialized hardware to further validate real-world latency benefits.
Summary updated