Constraint-guided Hardware-aware NAS through Gradient Modification
Gregory De Ruyter, Mathias Verbeke, Hans Hallez
Abstract
Neural Architecture Search (NAS), particularly gradient-based techniques, has proven highly effective in automating the design of neural networks. Recent work has extended NAS to hardware-aware settings, aiming to discover architectures that are both accurate and computationally efficient. Many existing methods integrate hardware metrics into the optimization objective as regularization terms, which introduces differentiability requirements and hyperparameter tuning challenges. This can either result in overly penalizing resource-intensive architectures or architectures failing to meet the hardware constraints of the target device. To address these challenges, we propose CONNAS, a novel gradientbased NAS framework that enforces hardware constraints directly through gradient modification. This approach eliminates the need for differentiable hardware metrics and regularization weights. The novelty in CONNAS lies in modifying gradients with respect to architectural choices, steering the search away from infeasible architectures while ensuring constraint satisfaction. Evaluations on the NATS-Bench benchmark demonstrate that CONNAS consistently discovers architectures that meet the imposed hardware constraints while achieving performance within just 0.14% of the optimal feasible architecture. Additionally, in a practical deployment scenario, CONNAS outperforms handcrafted architectures by up to 1.55% in accuracy under tight hardware budgets. Our code is publicly available at https://gitlab.kuleuven.be/m-group-campus-brugge/ distrinet_public/connas .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 6ef9bcf1-51aa-4a8c-8e6a-8edfd101558eBuilds on7
- MCUNet: Tiny Deep Learning on IoT DevicesJi Lin, Wei-Ming Chen, Yujun Lin, John Cohn et al.NeurIPS 2020 · 827 citations
- BANANAS: Bayesian Optimization with Neural Architectures for Neural Architecture SearchColin White, Willie Neiswanger, Yash SavaniAAAI 2021 · 401 citations
- HW-NAS-Bench: Hardware-Aware Neural Architecture Search BenchmarkChaojian Li, Zhongzhi Yu, Yonggan Fu, Yongan Zhang et al.ICLR 2021 · 128 citations
- HardCoRe-NAS: Hard Constrained diffeRentiable Neural Architecture SearchNiv Nayman, Yonathan Aflalo, Asaf Noy, Lihi ZelnikICML 2021 · 41 citations
- Enabling hard constraints in differentiable neural network and accelerator co-explorationDeokki Hong, Kanghyun Choi, Hyeyoon Lee, Joonsang Yu et al.DAC 2022 · 4 citations
Related papers
- You only search once: on lightweight differentiable architecture search for resource-constrained embedded platformsXiangzhong Luo, Di Liu, Hao Kong, Shuo Huai et al.DAC 2022 · 13 citations
- Searching by Generating: Flexible and Efficient One-Shot NAS With Architecture GeneratorSian-Yao Huang, Wei-Ta ChuCVPR 2021
- UNAS: Differentiable Architecture Search Meets Reinforcement LearningArash Vahdat, Arun Mallya, Ming-Yu Liu, Jan KautzCVPR 2020
- AOWS: Adaptive and Optimal Network Width Search With Latency ConstraintsMaxim Berman, Leonid Pishchulin, Ning Xu, Matthew B. Blaschko et al.CVPR 2020
- Multi-objective Differentiable Neural Architecture SearchRhea Sanjay Sukthanker, Arber Zela, Benedikt Staffler, Samuel Dooley et al.ICLR 2025
