[Paper Review] Generalizing Few-Shot NAS with Gradient Matching
This paper proposes GM-NAS, a generalized few-shot Neural Architecture Search (NAS) method that uses gradient matching scores (GM) to intelligently split a supernet into sub-supernets, reducing harmful weight-sharing. By clustering edges based on gradient similarity and enabling higher edge partitioning under budget constraints, GM-NAS achieves state-of-the-art accuracy—2.34% test error on DARTS space and 19.7% Top-1 error on ImageNet—while significantly improving ranking correlation among top architectures.
Efficient performance estimation of architectures drawn from large search spaces is essential to Neural Architecture Search. One-Shot methods tackle this challenge by training one supernet to approximate the performance of every architecture in the search space via weight-sharing, thereby drastically reducing the search cost. However, due to coupled optimization between child architectures caused by weight-sharing, One-Shot supernet's performance estimation could be inaccurate, leading to degraded search outcomes. To address this issue, Few-Shot NAS reduces the level of weight-sharing by splitting the One-Shot supernet into multiple separated sub-supernets via edge-wise (layer-wise) exhaustive partitioning. Since each partition of the supernet is not equally important, it necessitates the design of a more effective splitting criterion. In this work, we propose a gradient matching score (GM) that leverages gradient information at the shared weight for making informed splitting decisions. Intuitively, gradients from different child models can be used to identify whether they agree on how to update the shared modules, and subsequently to decide if they should share the same weight. Compared with exhaustive partitioning, the proposed criterion significantly reduces the branching factor per edge. This allows us to split more edges (layers) for a given budget, resulting in substantially improved performance as NAS search spaces usually include dozens of edges (layers). Extensive empirical evaluations of the proposed method on a wide range of search spaces (NASBench-201, DARTS, MobileNet Space), datasets (cifar10, cifar100, ImageNet) and search algorithms (DARTS, SNAS, RSPS, ProxylessNAS, OFA) demonstrate that it significantly outperforms its Few-Shot counterparts while surpassing previous comparable methods in terms of the accuracy of derived architectures.
Motivation & Objective
- To address the performance degradation in One-Shot NAS caused by coupled optimization due to excessive weight-sharing across child architectures.
- To improve upon Few-Shot NAS by replacing its exhaustive, operation-wise partitioning with a more intelligent splitting criterion that groups similar operations.
- To develop a supernet splitting strategy that maximizes search efficiency and accuracy by leveraging gradient similarity between child models.
- To enable higher edge partitioning under fixed budget by reducing the branching factor per edge through gradient-based clustering.
- To demonstrate consistent performance gains across diverse search spaces, datasets, and NAS algorithms.
Proposed method
- Proposes a gradient matching score (GM) that computes cosine similarity between gradients of shared weights from different child models to assess compatibility for weight-sharing.
- Uses the GM score as a weighted edge in a graph clustering formulation to partition the supernet into sub-supernets, minimizing harmful weight-sharing.
- Introduces a graph min-cut-based edge selection strategy to identify optimal edges for splitting, reducing variance and improving performance.
- Employs supernet warmup and sub-supernet weight restart after splitting to stabilize training and eliminate residual weight-sharing effects.
- Supports arbitrary branching factors by allowing multiple sub-supernets per split edge, enabling more edges to be partitioned under the same budget.
- Applies the method across multiple NAS benchmarks (NASBench-201, DARTS, MobileNet) and algorithms (DARTS, SNAS, RSPS, ProxylessNAS, OFA).
Experimental results
Research questions
- RQ1Can gradient similarity between child models serve as an effective criterion for determining whether they should share weights in a supernet?
- RQ2Does using gradient matching to guide supernet splitting lead to better performance estimation and search outcomes than exhaustive partitioning?
- RQ3Can GM-NAS achieve higher edge partitioning under a fixed budget compared to Few-Shot NAS by reducing the branching factor?
- RQ4To what extent does GM-NAS improve ranking correlation among top architectures compared to existing methods?
- RQ5How robust is GM-NAS to hyperparameter choices such as supernet warmup epochs and restart strategies?
Key findings
- GM-NAS achieves a test error of 2.34% on the DARTS search space, ranking at the top among state-of-the-art methods.
- On ImageNet using the MobileNet search space, GM-NAS attains a 19.7% Top-1 test error, surpassing previous comparable methods.
- With a branching factor of 2, GM-NAS splits four edges (vs. two in Few-Shot NAS), enabling three times more edge splits under the same budget.
- The method achieves a Spearman correlation of 0.532 among top 1% architectures on NASBench-201, significantly higher than Few-Shot NAS’s 0.117.
- Supernet warmup and sub-supernet restart are critical: removing them reduces mean accuracy on CIFAR-10 from 93.95% to 91.04%.
- The proposed edge selection via min-cut reduces variance in performance (0.08 vs. 0.39) and improves mean accuracy (93.95% vs. 93.58%) on NASBench-201.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.