Introduction
Deploying deep neural networks (DNNs) on edge devices, such as smartphones and IoT sensors, remains a significant challenge due to the high energy demands of Multiply-Accumulate (MAC) operations. While traditional model compression techniques like magnitude-based pruning reduce the number of operations by removing small weights, they often overlook the underlying hardware reality: in a digital circuit, the power consumption of a calculation is determined by the specific bit patterns of the operands, not just their numerical magnitude.
This paper introduces PowerPruning, a hardware-aware optimization technique that selects weights and activations based on their actual power and timing profiles within a processor's circuit. By pruning "expensive" values and those that trigger long circuit delays, PowerPruning enables aggressive voltage scaling, achieving up to 73.9% power savings with minimal impact on model accuracy.
The Hardware Reality: Not All Numbers are Equal
In standard digital CMOS circuits, power consumption is largely driven by switching activity—the frequency with which transistors flip between 0 and 1. A specific 8-bit weight might trigger thousands of electrical switches, while another value of similar magnitude might trigger far fewer. For example, weights that are powers of two often translate to simple, energy-efficient bit-shifts in hardware.
Furthermore, certain combinations of weights and activations "sensitize" the critical paths of a circuit—the longest, slowest routes that electrical signals must travel. These paths dictate the maximum clock speed and the minimum supply voltage ($V_{dd}$) required for stable operation. Traditional pruning ignores these timing dynamics, but PowerPruning leverages them to create more efficient hardware-software co-designs.
The PowerPruning Methodology
The PowerPruning framework consists of five primary stages designed to align the neural network with the physical characteristics of the MAC unit:
- Power and Timing Characterization: Using industry-standard tools like Synopsys Power Compiler and a 15nm process node library, the authors mapped the average power and delay for every possible 8-bit weight and activation combination. They found significant variance; for instance, a quantized weight of -105 consumes nearly double the power ($1,066 \mu W$) of a weight of -2 ($596 \mu W$) in the same hardware unit.
- Value Selection: The method establishes "power thresholds" and "delay thresholds." Any weight or activation value that exceeds these thresholds is targeted for pruning.
- Pruning and Filtering: Unlike static weight pruning, PowerPruning also addresses activations. While weight pruning is handled during model preparation, activation filtering requires a small logic modification to the activation layer (e.g., ReLU) to zero out expensive values dynamically during inference.
- Hardware-Aware Retraining: To mitigate accuracy loss from pruning these specific values, the model undergoes retraining. A "straight-through estimator" (STE) is used to keep weights within the pre-defined "efficient" set while allowing the gradient descent process to optimize the remaining parameters.
- Voltage Scaling: By removing the inputs that trigger the slowest circuit paths, the authors effectively shorten the critical path of the hardware. This "virtual speedup" allows the supply voltage to be safely lowered (e.g., from 0.8V to 0.7V) without risking timing errors, resulting in exponential power savings.
Experimental Results
The researchers evaluated PowerPruning across several computer vision benchmarks and architectures, comparing it against optimized hardware baselines:
- CIFAR-10 (LeNet-5 & ResNet-20): Achieved the highest gains with a 73.9% reduction in total power.
- CIFAR-100 (ResNet-50): Power consumption was reduced by 72.4%, with accuracy only dipping slightly from 79.9% to 78.4%.
- ImageNet (EfficientNet-B0-Lite): Even on highly optimized models, PowerPruning achieved a 41.5% power reduction.
The inclusion of timing-aware pruning was particularly effective, as the resulting voltage scaling contributed an additional ~10% to the total power savings beyond what value-based pruning alone could achieve.
Discussion and Limitations
PowerPruning demonstrates that significant efficiency gains are possible by treating the neural network not as a mathematical abstraction, but as a set of electrical signals. A key advantage of this approach is its compatibility with standard systolic array architectures, such as those used in Google’s TPU, requiring no exotic hardware modifications.
However, some challenges remain. The search space for finding the optimal subset of values to prune is computationally complex, currently relying on a randomized iterative approach. Additionally, the power and timing profiles are specific to the 15nm process node and the specific MAC design used; adapting the method to a different chip architecture would require a new characterization phase. Future work may focus on automating this characterization and optimizing the activation filtering logic to further reduce overhead.
Summary updated