Abstract
Moving deep learning from the cloud to the "edge"—including IoT sensors, smartphones, and embedded devices—presents a significant engineering challenge due to strict memory and computational limits. Manual architecture design for diverse hardware targets is often prohibitively slow and expensive. This paper introduces DCA-NAS (Device Constraints-Aware Neural Architecture Search), a differentiable NAS framework that treats hardware constraints as primary objectives. By utilizing a Lagrange multiplier to balance accuracy and resource limits, DCA-NAS discovers high-performing models up to 15x smaller than manual designs with search times as low as 1.5 hours on a single GPU.
Introduction
Traditional Neural Architecture Search (NAS) has historically prioritized raw accuracy, often resulting in "bigger is better" models that are impractical for resource-constrained hardware. While "hardware-aware" NAS variants exist, they frequently suffer from two major drawbacks: high search costs—requiring thousands of GPU hours to train massive "supernets"—and extreme hyperparameter sensitivity, particularly regarding the scaling factors used to balance accuracy and size.
Researchers from the Indian Institute of Technology Delhi propose DCA-NAS to address these limitations. The method provides a principled approach to finding optimal architectures for specific memory or FLOP limits without the massive overhead typically associated with automated design.
Methodology
DCA-NAS builds upon the foundation of Differentiable NAS (such as DARTS) but introduces several key optimizations to ensure efficiency and hardware compliance.
Constrained Bi-level Optimization
Instead of optimizing solely for validation loss, DCA-NAS formulates the search as a constrained optimization problem. The framework employs a Lagrange multiplier ($\lambda$) that is updated dynamically during the training process. This mechanism allows the algorithm to automatically discover the optimal trade-off between model performance and hardware constraints, eliminating the need for manual tuning of scaling hyperparameters.
The "Softmax Gap" and Lookup Graphs (LUG)
A common issue in differentiable NAS is the discrepancy between the continuous search phase (where operations are weighted sums) and the discrete evaluation phase (where a single operation is selected). This "Softmax Gap" often leads to final models that exceed the intended hardware limits. To mitigate this, the authors utilize a Lookup Graph (LUG) to map search-phase constraints to actual evaluation-phase hardware limits, ensuring the derived models remain within the target budget.
Efficiency Boosters
To further reduce the computational footprint of the search process, DCA-NAS incorporates two primary structural optimizations:
- Channel Bottlenecks: The use of 1x1 convolutions reduces the depth of channels within the search space, significantly saving memory.
- Weight Sharing and Derived Cells: Rather than searching across every cell in a deep stack, the algorithm optimizes only two specific types—a "normal" cell and a "reduction" cell. The rest of the architecture is derived from these, cutting GPU memory usage and enabling larger batch sizes during the search.
Experimental Results
The researchers evaluated DCA-NAS across several standard benchmarks, including CIFAR-10, CIFAR-100, TinyImagenet, and ImageNet-1k, as well as specialized benchmarks like NAS-Bench-201 and Hardware-NAS-Bench.
Search-Time Efficiency
DCA-NAS demonstrates remarkable speed. By combining weight sharing with channel bottlenecks, the framework achieves a search cost of just 0.06 GPU days for ImageNet-1k. This is orders of magnitude faster than many competing state-of-the-art methods.
Model Compression and Transferability
On the CIFAR-10 dataset, DCA-NAS discovered models that were 15x smaller than the manually designed PyramidNet-272, while suffering only a ~1% drop in accuracy. Furthermore, architectures searched on simpler datasets like CIFAR-10 with specific memory constraints transferred effectively to more complex datasets like TinyImagenet, outperforming established manual designs like ResNet-18.
Hardware Performance
When validated on real-world hardware, including the Raspberry Pi 4 and Pixel 3, models produced by DCA-NAS consistently showed lower inference latency for the same level of accuracy compared to previous state-of-the-art methods like PC-DARTS. The method effectively identifies the "Pareto front"—the optimal set of models for any given resource budget.
Conclusion
DCA-NAS represents a significant step forward in making NAS accessible for edge computing. By integrating hardware constraints directly into a differentiable optimization framework via Lagrange multipliers, it achieves high efficiency and competitive accuracy. Future work may involve expanding the framework to include more complex metrics such as energy consumption or exploring "training-free" adaptation to further reduce search times.
Summary updated