[Paper Review] ZiCo: Zero-shot NAS via Inverse Coefficient of Variation on Gradients
ZiCo proposes a training-free zero-shot NAS proxy based on the mean and variance of gradients across samples, yielding consistently better correlation with test accuracy than #Params on multiple NAS benchmarks, and enabling competitive results with far less search time.
Neural Architecture Search (NAS) is widely used to automatically obtain the neural network with the best performance among a large number of candidate architectures. To reduce the search time, zero-shot NAS aims at designing training-free proxies that can predict the test performance of a given architecture. However, as shown recently, none of the zero-shot proxies proposed to date can actually work consistently better than a naive proxy, namely, the number of network parameters (#Params). To improve this state of affairs, as the main theoretical contribution, we first reveal how some specific gradient properties across different samples impact the convergence rate and generalization capacity of neural networks. Based on this theoretical analysis, we propose a new zero-shot proxy, ZiCo, the first proxy that works consistently better than #Params. We demonstrate that ZiCo works better than State-Of-The-Art (SOTA) proxies on several popular NAS-Benchmarks (NASBench101, NATSBench-SSS/TSS, TransNASBench-101) for multiple applications (e.g., image classification/reconstruction and pixel-level prediction). Finally, we demonstrate that the optimal architectures found via ZiCo are as competitive as the ones found by one-shot and multi-shot NAS methods, but with much less search time. For example, ZiCo-based NAS can find optimal architectures with 78.1%, 79.4%, and 80.4% test accuracy under inference budgets of 450M, 600M, and 1000M FLOPs, respectively, on ImageNet within 0.4 GPU days. Our code is available at https://github.com/SLDGroup/ZiCo.
Motivation & Objective
- Motivate the need for training-free proxies in NAS and address inconsistencies in prior zero-shot proxies compared to #Params.
- Theoretically analyze how gradient mean and variance across samples influence convergence and generalization.
- Develop ZiCo as a zero-shot proxy that leverages gradient statistics to outperform existing proxies on mainstream NAS benchmarks.
- Demonstrate ZiCo's effectiveness across NAS benchmarks and in ImageNet-scale searches with reduced search time.
Proposed method
- The authors analyze how the mean and standard deviation of gradients across samples affect training convergence and generalization, starting with a linear regression setup and extending to ReLU-MLPs.
- They prove that higher absolute gradient mean across samples accelerates convergence while lower gradient variance improves generalization, linking these to Gram matrix eigenvalues.
- ZiCo is defined as a zero-shot proxy that sums, in log form, the ratio of the expected gradient magnitude to the standard deviation of gradient magnitudes per layer across initial parameters, computed using two batches (N=2) without training.
- The ZiCo metric is architecture-agnostic to CNNs and relies on initial parameters only, ensuring zero-shot evaluation.
- They show ZiCo achieves higher correlation with test accuracy than other zero-shot proxies and #Params on NASBench101, NATS-Bench-SSS/TSS, and TransNASBench-101.
Experimental results
Research questions
- RQ1Can gradient mean and gradient variance across training samples serve as a theoretically grounded zero-shot proxy for NAS performance?
- RQ2Do Zero-shot proxies based on gradient statistics consistently outperform the naive #Params proxy across diverse NAS topologies and tasks?
- RQ3Can ZiCo predict architectures with competitive test accuracy under various FLOPs budgets with minimal search cost?
- RQ4How does ZiCo perform relative to one-shot and multi-shot NAS methods on large-scale tasks like ImageNet?
Key findings
- ZiCo correlates better with test accuracy than existing proxies, including #Params, on NASBench101 and NATS-Bench spaces across multiple datasets.
- ZiCo-based zero-shot NAS achieves competitive Top-1 accuracies compared to state-of-the-art NAS methods under 450M–1000M FLOPs budgets on ImageNet, with markedly lower search costs (~0.4 GPU days).
- Two training batches are sufficient to compute ZiCo with high reliability, enabling fast evaluation of candidate architectures.
- ZiCo enables NAS that finds architectures with competitive FLOPs-accuracy tradeoffs versus one-shot and multi-shot NAS while requiring far less training time.
- Empirical ablations suggest higher numbers of batches in ZiCo computation do not improve correlation, and a batch size of 64 stabilizes the metric.
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.