TL;DR
This paper introduces iDARTS, a novel approach to Differentiable Neural Architecture Search (NAS) that tackles the computational bottleneck of calculating architecture gradients (hypergradients). By leveraging the implicit function theorem and a stochastic approximation, iDARTS significantly improves efficiency and stability, leading to superior neural architectures compared to existing methods.
What Problem Does This Paper Address?
Neural Architecture Search (NAS) aims to automate the design of neural networks, a crucial task in deep learning. Differentiable NAS methods, like DARTS, have revolutionized this field by converting discrete architecture choices into a continuous optimization problem, drastically reducing search time. However, a key challenge lies in efficiently and accurately computing the "hypergradient" – the gradient of the architecture parameters with respect to the validation loss. Traditional methods often rely on unrolling the inner optimization loop for many steps, which is computationally expensive and memory-intensive, or use approximations that can be unstable. This paper addresses the need for a more scalable, stable, and accurate hypergradient computation method for differentiable NAS.
Methods
The core innovation of iDARTS lies in its approach to hypergradient computation. Instead of unrolling the inner optimization loop, iDARTS utilizes the Implicit Function Theorem (IFT). This allows the hypergradient to be calculated based solely on the final optimized weights of the inner loop, making it agnostic to the specific optimization path and significantly reducing memory requirements.
To further address computational costs, iDARTS employs two key techniques:
- Neumann Approximation: The IFT approach requires inverting a Hessian matrix, which is computationally prohibitive for large networks. iDARTS approximates this inverse using a Neumann series, a well-established mathematical technique.
- Stochastic Approximation: To handle large datasets, iDARTS uses minibatch sampling for both inner and outer loop computations, leading to a stochastic hypergradient. This makes the method scalable to real-world deep learning scenarios.
The paper also provides theoretical guarantees, showing that iDARTS is expected to converge to a stationary point under mild assumptions.
Datasets
The paper evaluates iDARTS on the following datasets and benchmarks:
- NAS-Bench-1Shot1: A benchmark dataset derived from NAS-Bench-101, offering three distinct search spaces. The authors use the most complex search space for their analysis.
- NAS-Bench-201: Another popular NAS benchmark dataset, known for its simpler search space but comprehensive performance data across CIFAR-10, CIFAR-100, and ImageNet.
- Common DARTS Search Space: The standard search space used in the original DARTS paper, applied to the CIFAR-10 dataset for evaluation and then transferred to CIFAR-100 and ImageNet.
Key Insights and Ideas
- IFT is the Key: Reframing hypergradient computation through the lens of the Implicit Function Theorem is a significant departure from previous methods and unlocks substantial efficiency gains.
- Neumann Series for Practicality: The Neumann series approximation provides a computationally feasible way to handle the inverse Hessian problem, making IFT-based hypergradients practical.
- Stochasticity for Scalability: Incorporating stochasticity via minibatch sampling is crucial for applying these advanced hypergradient techniques to large-scale NAS problems.
- Hypergradient Matters: The paper highlights that issues in differentiable NAS might not solely stem from supernet training or final discretization, but also from the accuracy and stability of the hypergradient calculation itself.
- Tuning Inner Steps is Beneficial: Increasing the number of inner optimization steps ($T$) in the supernet training generally leads to better performance, as it allows the weights to better approximate the optimal solution.
Key Results
- Outperforms Baselines: iDARTS consistently outperforms the standard DARTS baseline and other state-of-the-art NAS methods across all tested benchmarks.
- Improved Accuracy: On NAS-Bench-201, iDARTS achieved test accuracies of 93.76% (CIFAR-10), 71.11% (CIFAR-100), and 41.44% (ImageNet).
- Competitive on DARTS Search Space: On the common DARTS search space, iDARTS achieved a test error of 2.37±0.03% on CIFAR-10, on par with leading methods.
- Efficiency Gains: The IFT-based approach significantly reduces memory requirements compared to reverse-mode backpropagation, making it more practical for deep networks.
- Robustness to Hyperparameters: While sensitive to learning rates, iDARTS shows robustness to the number of approximation terms ($K$) and inner optimization steps ($T$), with reasonable trade-offs identified.
Limitations and Future Work
- Hyperparameter Sensitivity: The performance of iDARTS is sensitive to learning rates, particularly the architecture learning rate ($\gamma_a$), and requires careful tuning.
- Theoretical Assumptions: The theoretical convergence proofs rely on certain assumptions (e.g., strong convexity of the inner loss function), which may not always hold in practice.
- Future Work: The authors suggest that iDARTS can be extended to other bi-level optimization problems beyond NAS, such as meta-learning and hyperparameter optimization, opening up new research avenues. They also highlight the potential for further exploration of the trade-offs between approximation accuracy ($K$), inner optimization steps ($T$), and computational cost.
Summary updated