Abstract
The record-breaking performance of deep neural networks (DNNs) comes with heavy parameterization, leading to reliance on external dynamic random-access memory (DRAM) for storage. The prohibitive energy of DRAM accesses makes it non-trivial to deploy DNNs on resource-constrained devices, calling for minimizing weight and data movements to improve energy efficiency. We present SmartDeal (SD), an algorithm framework to trade higher-cost memory storage/access for lower-cost computation, in order to aggressively boost storage and energy efficiency for both inference and training. The core of SD is a novel weight decomposition with structural constraints, carefully crafted to unleash hardware efficiency potential. Specifically, we decompose each weight tensor as the product of a small basis matrix and a large structurally sparse coefficient matrix whose non-zeros are quantized to power-of-2. The resulting sparse and quantized DNNs enjoy greatly reduced energy for data movement and weight storage, incurring minimal overhead to recover the original weights thanks to sparse bit-operations. Beyond inference, we introduce innovative techniques to address training roadblocks while preserving SD structures. We also design a dedicated hardware accelerator to fully utilize the SD structure. Results show that SD achieves up to 2.44× energy efficiency for inference and up to 10.56× storage reduction for training with negligible accuracy loss.
The DRAM Bottleneck in Deep Learning
The massive success of DNNs is often proportional to their parameter count. For resource-constrained edge devices, such as mobile phones or IoT sensors, storing these parameters requires external DRAM. However, DRAM access is orders of magnitude more expensive than on-chip computation or local SRAM access. As shown in the energy cost analysis, DRAM access can consume over 95% of an accelerator's energy budget.
SmartDeal addresses this by minimizing data movement and weight storage without sacrificing predictive performance, effectively trading "cheap" computation for "expensive" memory access.
The SmartDeal Framework
The core of SmartDeal is a novel weight matrix decomposition. It represents a large weight matrix $W$ as the product of two smaller factors: $W \approx C_e B$.
- The Basis Matrix ($B$): A very small, dense matrix that captures the fundamental patterns of the weights.
- The Coefficient Matrix ($C_e$): A large matrix with two strict structural constraints designed for hardware efficiency:
- Structural Sparsity: Most elements are zero, allowing hardware to skip unnecessary data movement and computation.
- Power-of-2 Quantization: Non-zero elements are restricted to powers of 2 (e.g., $2^{-1}, 2^{-3}$). This transforms expensive multiplications into much cheaper bit-shift and addition operations.
Efficient Training on the Edge
While inference weights are decomposed as a post-processing step, training requires maintaining this structure dynamically. SmartDeal introduces two techniques for this:
- Fixed Sparsity Mask: The locations of zero elements in $C_e$ are "frozen" during training to avoid dynamic indexing overhead.
- Bucket Switch Updating: Instead of high-precision "shadow weights," gradient signs determine when to "switch" a $C_e$ coefficient from one power-of-2 "bucket" to the next, keeping the model in its compressed form during updates.
Hardware-Algorithm Co-design
To fully realize these benefits, the authors designed a dedicated hardware accelerator featuring "Rebuilding Engines" (REs). These engines are placed close to the processing elements to reconstruct the original weights on-the-fly from the compressed $C_e$ and $B$ matrices. This architecture replaces standard multipliers with shifters, significantly reducing the silicon area and energy footprint.
Experimental Results
The framework was evaluated across diverse tasks, including image classification (ImageNet, CIFAR-10) and semantic segmentation (CamVid), using architectures ranging from VGG to compact models like MobileNetV2.
- Inference Efficiency: On real FPGA hardware, SmartDeal achieved up to 2.44× improvement in energy efficiency compared to standard implementations.
- Training Gains: For edge-based training, it led to a 10.56× reduction in storage and a 4.48× reduction in training energy cost with negligible accuracy loss (typically <1%).
- Accelerator Performance: The dedicated SD accelerator outperformed state-of-the-art sparse accelerators like SCNN by up to 6.7× in energy efficiency and 19.2× in latency.
Conclusion
SmartDeal demonstrates that re-modeling weights through hardware-aware decomposition is a powerful strategy for deploying DNNs on the edge. By integrating pruning, quantization, and factorization into a single framework, it successfully shifts the energy burden from expensive memory access to efficient bit-level computation. Future work includes automating hyperparameter tuning via AutoML and extending the training logic to support training from scratch.
Summary updated