Abstract
Low-rank compression is a mathematically robust method for reducing the computational footprint of Deep Neural Networks (DNNs). However, its practical application is hindered by the combinatorial explosion of possible rank configurations and a disconnect between theoretical operation counts (FLOPs) and actual hardware latency. This paper presents HALOC (Hardware-Aware Low-Rank Compression), a framework that treats rank selection as a differentiable Neural Architecture Search (NAS) problem. By incorporating hardware-specific constraints and latency modeling directly into the optimization loop, HALOC identifies compression profiles that maximize throughput on target devices. Experimental results demonstrate that HALOC not only reduces model size and latency across various hardware platforms—including GPUs and ASICs—but frequently improves accuracy over uncompressed baselines.
1. Introduction
As Deep Neural Networks (DNNs) scale in complexity, deploying them on resource-constrained edge devices or specialized accelerators becomes increasingly difficult. Low-rank decomposition—the process of factoring large weight tensors into smaller, more efficient cores—offers a promising solution. Despite its potential, two primary challenges remain: the "Search Space Explosion," where even a standard ResNet-18 presents over $10^{71}$ possible rank combinations, and "Hardware Blindness," where reductions in theoretical FLOPs do not translate to actual speedups due to hardware utilization patterns.
HALOC addresses these issues by automating rank selection through a hardware-aware architecture search, ensuring that the resulting compressed models are optimized for the specific characteristics of the target execution environment.
2. Methodology
HALOC reinterprets the problem of low-rank compression through the lens of Differentiable Neural Architecture Search (NAS). Instead of manual tuning, the framework constructs an over-parameterized super-network where each layer contains multiple candidate rank settings.
2.1 Differentiable Rank Search
The framework utilizes a differentiable approach to alternately update the weights of the candidate layers and the architectural parameters (the probability of selecting a specific rank). This allows the optimal architecture to be "learned" via standard backpropagation. To ensure the compressed layers retain the representational power of the original model, HALOC employs feature-map-based regularization, forcing the compressed layers to mimic the output distributions of the uncompressed baseline.
2.2 Hardware-Aware Optimization
A core innovation of HALOC is the integration of a latency prediction model into the loss function. This ensures the search algorithm penalizes configurations that do not yield real-world performance gains. This is critical because hardware latency is often non-linear; for instance, due to thread-warp alignment on GPUs, a rank of 33 may perform identically to a rank of 64.
2.3 Search Space Pruning
To navigate the massive search space of $10^{71}$ combinations, HALOC introduces two key design principles:
- Granularity: Ranks are searched in multiples of a constant (typically 32), aligning with hardware execution boundaries where latency shifts are most significant.
- Symmetry: For Tucker-2 decomposition, the framework constrains input and output ranks to be equal ($r^{(1)} = r^{(2)}$), significantly reducing the search space without sacrificing model expressivity.
3. Experimental Results
HALOC was evaluated on CIFAR-10 and ImageNet datasets using architectures including ResNet-20, VGG-16, ResNet-18, and MobileNetV2. Performance was measured across diverse hardware, including NVIDIA RTX 2080 and Tesla V100 GPUs, the Jetson TX2 embedded module, and the Eyeriss ASIC accelerator.
3.1 Accuracy and Efficiency
HALOC consistently outperformed state-of-the-art automatic compression methods like ALDS. Notably, on ResNet-20 (CIFAR-10), HALOC achieved a 72.2% reduction in FLOPs and a 76.1% reduction in parameters while actually increasing accuracy by 0.07%. On the more challenging ImageNet dataset, HALOC improved ResNet-18 top-1 accuracy by 0.9% while cutting FLOPs by over 66%.
3.2 Hardware Throughput
The framework demonstrated significant practical speedups. On the NVIDIA Tesla V100, HALOC increased ResNet-18 throughput from 4,362 to 6,360 images per second. On the Eyeriss ASIC, throughput more than doubled compared to the baseline, validating the importance of hardware-aware rank selection.
4. Discussion and Conclusion
HALOC demonstrates that treating low-rank compression as a hardware-aware NAS problem effectively bridges the gap between theoretical compression and practical deployment. By exploiting the "steppy" nature of hardware latency and utilizing feature-map alignment, HALOC produces models that are both smaller and faster without the typical accuracy trade-offs.
Future work may extend this framework beyond Tucker-2 decomposition to other formats like CP or Tensor Train decomposition. Additionally, while the current evaluation focuses on image classification, the principles of hardware-aware rank selection are likely applicable to object detection and transformer-based architectures, providing a robust path forward for efficient deep learning.
Summary updated