U-Boost NAS: Utilization-Boosted Differentiable Neural Architecture Search

Ahmet Caner Yüzügüler, Nikolaos Dimitriadis, Pascal Frossard

Abstract

Optimizing resource utilization in target platforms is key to achieving high performance during DNN inference. While optimizations have been proposed for inference latency, memory footprint, and energy consumption, prior hardware-aware neural architecture search (NAS) methods have omitted resource utilization, preventing DNNs from taking full advantage of the target inference platforms. Modeling resource utilization efficiently and accurately is challenging, especially for widely-used array-based inference accelerators such as Google TPU. In this work, we propose a novel hardware-aware NAS framework that optimizes for task accuracy, inference latency, and resource utilization. By using a proposed computational model for resource utilization and a smooth relaxation for differentiability, we achieve 2.8x to 4x speedup for DNN inference compared to prior hardware-aware NAS methods while attaining similar or improved accuracy on CIFAR-10 and ImageNet-100.

Introduction: The Efficiency Paradox

In the pursuit of efficient deep learning, the community has traditionally focused on reducing FLOPs (floating-point operations) or minimizing parameter counts. However, a "smaller" model in terms of operations does not always translate to a "faster" model in practice. This discrepancy arises from the architecture of modern AI hardware, specifically array-based accelerators like the Google TPU or Tesla’s FSD chip. These devices rely on systolic arrays—grids of processing elements—to perform high-speed matrix multiplications.

When a neural network's layer dimensions do not align with the hardware's physical grid size, the hardware sits partially idle, a phenomenon known as underutilization. Prior hardware-aware Neural Architecture Search (NAS) methods were largely "blind" to this internal efficiency, often selecting operations that look efficient on paper but perform poorly on large-scale accelerators.

Methodology: Bridging the Hardware-Software Gap

U-Boost NAS addresses this by treating hardware utilization as a primary optimization objective. The framework introduces two critical innovations to bridge the gap between abstract model design and physical execution.

1. Analytical Utilization Modeling

The authors derived a mathematical formula to calculate how convolutional layers are tiled onto a hardware grid. This model accounts for the "CONV-to-GEMM" (convolution to general matrix multiplication) conversion that occurs during execution. By understanding how the hardware maps these operations, the search algorithm can predict the actual efficiency of a proposed architecture.

2. Differentiable Optimization via Smooth Relaxation

A significant challenge in optimizing for utilization is that the exact formula involves "ceil" functions (rounding up to the nearest grid dimension), which are non-differentiable. To integrate utilization into a gradient-based NAS process, the authors replaced these discrete steps with a smooth approximation using a generalized logistic function. This relaxation allows the utilization metric to be plugged directly into the loss function, enabling the search process to "learn" hardware-efficient structures through standard backpropagation.

The search process itself is hierarchical, looking at both micro-architecture (the types of operations in a cell) and macro-architecture (the number of channels in each layer). The final loss function balances classification accuracy, latency, and utilization.

Experimental Evaluation

The researchers evaluated U-Boost NAS using the CIFAR-10 and ImageNet-100 datasets, targeting weight-stationary array-based accelerators.

Performance and Speedups

Compared to standard hardware-aware NAS methods—such as those relying solely on FLOPs or simple roofline models—U-Boost achieved significant performance gains:

  • CIFAR-10: 2.8x to 4x speedup in inference latency.
  • ImageNet-100: 2.1x to 3.3x speedup.

Utilization Gains

The framework successfully maximized hardware efficiency. On ImageNet-100, U-Boost reached up to 91.1% hardware utilization. In contrast, baseline NAS methods often resulted in models that utilized less than 10% of the hardware's capacity, despite having fewer theoretical operations.

Key Insights

The search process revealed several design principles that challenge conventional wisdom in mobile-first architecture design:

  • The "Multiple of Array Size" Rule: U-Boost consistently converged on channel sizes that were multiples of the hardware's array size (e.g., 128 or 256). This alignment ensures that the systolic array is fully occupied during computation.
  • The Depthwise Convolution Trade-off: While depthwise convolutions are staples of mobile-optimized models (like MobileNet) due to their low FLOP count, they often result in abysmal utilization on large array-based accelerators. U-Boost frequently favored standard or dilated convolutions that "fill the grid," resulting in faster real-world execution despite higher operation counts.
  • Latency vs. Efficiency: U-Boost demonstrates that a model can be fast not just by being small, but by being efficient. This allows for higher-capacity models that maintain high accuracy within a strict latency budget.

Conclusion and Future Work

U-Boost NAS represents a shift toward hardware-native architecture design. By making utilization differentiable, it enables the automated discovery of models that are truly optimized for the hardware they run on. While the current model is tailored for weight-stationary systolic arrays, the principles of differentiable utilization modeling can be extended to other hardware architectures and complex tasks like object detection and semantic segmentation.

Summary updated

BibTeX
@misc{yuzuguler2022u,
  author = {Ahmet Caner Yüzügüler and Nikolaos Dimitriadis and Pascal Frossard},
  title = {{U-Boost NAS: Utilization-Boosted Differentiable Neural Architecture Search}},
  year = {2022},
  eprint = {2203.12412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.12412},
}
Figure