Generalization Properties of NAS under Activation and Skip Connection Search

Zhenyu Zhu, Fanghui Liu, Grigorios G. Chrysos, Volkan Cevher · OpenReview

Abstract

Neural Architecture Search (NAS) has fostered the automatic discovery of state-of-the-art neural architectures. Despite the progress achieved with NAS, so far there is little attention to theoretical guarantees on NAS. In this work, we study the generalization properties of NAS under a unifying framework enabling (deep) layer skip connection search and activation function search. To this end, we derive the lower (and upper) bounds of the minimum eigenvalue of the Neural Tangent Kernel (NTK) under the (in)finite-width regime using a certain search space including mixed activation functions, fully connected, and residual neural networks. We use the minimum eigenvalue to establish generalization error bounds of NAS in the stochastic gradient descent training. Importantly, we theoretically and experimentally show how the derived results can guide NAS to select the top-performing architectures, even in the case without training, leading to a train-free algorithm based on our theory. Accordingly, our numerical validation shed light on the design of computationally efficient methods for NAS.

Introduction

Neural Architecture Search (NAS) has revolutionized deep learning by automating the design of high-performing models. However, while NAS works well in practice, it has largely remained a "black box" theoretically. Most existing deep learning theory—specifically Neural Tangent Kernel (NTK) analysis—focuses on fixed architectures with a single activation function, typically ReLU. This paper addresses a major gap: providing generalization guarantees for the diverse search spaces used in NAS, which often involve a mix of different activation functions (e.g., Tanh, Swish, Sigmoid) and varying skip connections. Understanding how these choices impact a model's ability to learn and generalize is crucial for designing more efficient and reliable search algorithms.

Theoretical Framework

The researchers developed a unifying theoretical framework to analyze deep neural networks with mixed architectures. Their approach involves a recursive NTK formulation that accounts for different activation functions in each layer and the presence of skip connections. They established bounds for the minimum eigenvalue ($\lambda_{min}$) of the NTK in both infinite-width and finite-width regimes. In NTK theory, a larger $\lambda_{min}$ generally indicates faster convergence and better generalization.

Theoretical parameters for various activation functions used in the NTK analysis.

A key theoretical insight is the "First Layer Priority": the minimum eigenvalue is heavily influenced by the activation function in the first layer, rather than deeper layers. The theory predicts that ReLU and LeakyReLU achieve the largest minimum eigenvalues compared to Sigmoid, Tanh, or Swish, justifying their prevalence in successful NAS architectures. This is mathematically reflected in the $\beta$ parameters derived for each activation function, where ReLU-like functions maintain higher values.

Eigen-NAS: A Train-Free Search Algorithm

Leveraging their theory, the authors proposed Eigen-NAS, a "train-free" metric. Instead of training thousands of candidate models to see which is best, Eigen-NAS uses the estimated minimum eigenvalue of the NTK at initialization to rank architectures. This significantly reduces computational costs, achieving a complexity of $O(N)$, where $N$ is the number of data points. This is significantly faster than methods requiring the Frobenius norm ($O(N^2)$) or full eigenvalue decomposition ($O(N^3)$).

Empirical Validation and Results

The authors validated Eigen-NAS across several standard benchmarks, including Fashion-MNIST, NAS-Bench-201 (CIFAR-10, CIFAR-100, ImageNet-16), NAS-Bench-101, and NDS. On CIFAR-100, Eigen-NAS achieved 71.42% accuracy, surpassing previous state-of-the-art train-free methods like KNAS and NASWOT.

In DARTS-based experiments, the search algorithm consistently converged on ReLU/LeakyReLU and maintained skip connections in every layer, exactly as the authors' theoretical bounds predicted. As shown in the empirical results, the probability of selecting ReLU or LeakyReLU is significantly higher in the first layer, confirming the theoretical "First Layer Priority." Furthermore, skip connections were found to significantly boost the minimum eigenvalue for networks of moderate depth, facilitating both optimization and generalization.

Empirical selection probabilities for activation functions (a) and skip connections (b) across layers.

Discussion and Limitations

While the theory provides strong foundations for fully-connected layers, extending it to convolutional layers remains an area for future work. Preliminary tests on CNNs showed that activation trends held, but skip connection preferences in CNNs sometimes diverged from the theoretical predictions for fully-connected networks (CNNs sometimes preferred fewer skips than the theory suggested). Additionally, like much NTK-based work, the generalization bounds grow exponentially with depth, posing a challenge for extremely deep architectures. Future work could focus on tightening these bounds to better distinguish between similar smooth activations like Swish and Tanh.

Summary updated

BibTeX
@inproceedings{zhu2022generalization,
  author = {Zhenyu Zhu and Fanghui Liu and Grigorios G. Chrysos and Volkan Cevher},
  title = {{Generalization Properties of NAS under Activation and Skip Connection Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=aQySSrCbBul},
}
Figure