Abstract
Designing efficient Deep Neural Networks (DNNs) requires navigating a complex trade-off between predictive accuracy and hardware-specific performance. Traditional optimization strategies often rely on coarse proxies like theoretical FLOPs or black-box end-to-end latency, which frequently fail to capture the nuances of hardware utilization. This paper identifies the "GPU tail" effect—a phenomenon where hardware under-utilization leads to significant latency overhead—as a primary bottleneck in efficient deep learning. To address this, we propose a dual-pronged approach: a "full-stack" profiling methodology to optimize static architectures by aligning layer dimensions with GPU hardware configurations, and a novel dynamic pruning method that targets spatial redundancy in feature maps. Our results demonstrate up to a 27% reduction in latency for static models and a 54.5% reduction in computation for dynamic models with minimal impact on accuracy.
Introduction
The proliferation of deep learning across diverse hardware platforms has made Neural Architecture Search (NAS) and model compression essential tools for developers. However, the effectiveness of these automated tools is often limited by the metrics they optimize. Floating Point Operations (FLOPs) are a poor proxy for actual speed, and end-to-end latency measurements treat the underlying hardware as a "black box," ignoring the specific execution patterns that cause delays.
This research explores the design space of efficient DNNs by looking "under the hood" of GPU execution. By understanding how threads and cores are utilized during computation, we can design architectures that are not just theoretically efficient, but hardware-optimal.
The "GPU Tail" and Static Optimization
A central finding of this work is the "GPU tail" effect. This occurs when a DNN's layer dimensions (such as the number of channels) do not align well with the GPU's parallel architecture. In these instances, a few remaining threads continue to process data at the end of a computation cycle while the majority of the GPU's cores sit idle. This mismatch means that a model with fewer FLOPs can actually exhibit higher latency than a larger, better-aligned model.
To mitigate this, we employ "full-stack" profiling at the GPU core and thread level. This granular analysis allows us to identify a discrete set of channel configurations that maximize hardware utilization. By restricting the NAS search space to these hardware-optimal candidates, we can reduce the search space by 10× while ensuring that the resulting architectures eliminate the tail effect.
Dynamic Execution and Spatial Redundancy
Beyond static architecture design, we investigate dynamic model execution. While traditional dynamic models focus on skipping layers or channels at runtime, we introduce a new dimension of optimization: spatial feature map redundancy.
Our dynamic pruning methodology reduces computation by simultaneously targeting both the channel and spatial (height/width) dimensions of convolutions. By identifying and pruning redundant regions within the feature maps themselves, we can significantly decrease the computational load for specific inputs without sacrificing the model's ability to extract critical features.
Key Results
The proposed methodologies yield significant improvements over state-of-the-art (SOTA) NAS and pruning techniques:
- Static Optimization: By eliminating the GPU tail effect, we achieved a 27% reduction in latency and a 4% improvement in accuracy compared to existing SOTA methods. This demonstrates that optimizing for hardware intrinsics allows for larger, more capable models to run within the same time budget as smaller, unoptimized ones.
- Dynamic Optimization: The dual-dimension dynamic pruning approach achieved up to a 54.5% reduction in FLOPs. This suggests that spatial redundancy is a massive, often untapped source of efficiency in standard image-classification DNNs.
Discussion and Future Work
While these results are promising, several challenges remain. The current "tail-aware" profiling is primarily used as a local search or fine-tuning step; future work will focus on integrating these hardware-intrinsic models directly into the initial NAS search phase.
Furthermore, translating theoretical FLOPs savings from spatial pruning into real-world latency gains requires improved software support. Current standard deep learning libraries are often optimized for dense operations; specialized CUDA implementations and sparse DNN operators are needed to handle non-contiguous data more efficiently. Finally, while this study focused on GPUs, the principles of hardware-aware design should be extended to specialized accelerators such as TPUs and NPUs to determine if similar under-utilization patterns exist across different architectures.
Summary updated