Generalization Properties of NAS under Activation and Skip Connection Search

Zhenyu Zhu, Fanghui Liu, Grigorios G Chrysos, Volkan Cevher

TL;DR

This paper provides the first theoretical generalization guarantees for multilayer Neural Architecture Search (NAS) across a joint search space of mixed activation functions and skip connections. By bounding the minimum eigenvalue of the Neural Tangent Kernel (NTK), the authors design "Eigen-NAS"—a highly efficient, train-free NAS algorithm that accurately selects top-performing architectures without requiring any network training.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) has revolutionized deep learning by automating the design of state-of-the-art neural network architectures. However, despite its massive empirical success, NAS largely operates as a theoretical black box.

When a search space includes a complex mix of different activation functions (e.g., ReLU, Tanh, Swish) and arbitrary layer-wise skip connections, traditional learning theory struggles to predict how well the discovered network will generalize to unseen data. Existing theoretical analyses using the Neural Tangent Kernel (NTK) framework typically assume a single, uniform activation function across a standard architecture. This paper bridges the gap by providing a unifying framework to analyze the optimization and generalization properties of networks containing diverse operations.

Methods

The authors tackle this problem by establishing a rigorous mathematical framework:

  • Unifying Framework: They define a deep neural network architecture that explicitly parameterizes both layer-wise skip connections and a choice of five representative activation functions: ReLU, LeakyReLU, Sigmoid, Tanh, and Swish.
  • NTK Eigenvalue Bounding: They derive the exact recursive formula for the NTK of these mixed networks in both infinite- and finite-width regimes. Crucially, they prove the upper and lower bounds for the minimum eigenvalue ($\lambda_{\min}$) of the NTK matrix.
  • Connecting Theory to Generalization: Using Lipschitz continuity and the Gershgorin circle theorem, they connect $\lambda_{\min}$ directly to the generalization error bounds of networks trained via Stochastic Gradient Descent (SGD).
  • Eigen-NAS Algorithm: Leveraging their proof that a larger minimum eigenvalue leads to better generalization and faster convergence, they propose a "train-free" NAS proxy. Eigen-NAS scores candidate architectures using a computationally cheap $O(N)$ mathematical bound of the minimum eigenvalue, entirely bypassing the need to train candidate networks.

The formulas and constants for the analyzed activation functions are summarized below:

Table 1: Formula of different activation functions, definitions of relevant constants and some intermediate results.

Datasets

The authors validated their theoretical findings and the Eigen-NAS algorithm using several standard image classification datasets and tabular NAS benchmarks:

  • Image Datasets: MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, ImageNet-16 (a downsampled $16 \times 16$ variant of ImageNet), and ImageNette2.
  • NAS Benchmarks: NAS-Bench-101 and NAS-Bench-201, which allow for controlled, reproducible comparisons against other search algorithms.

Key Insights and Ideas

  • The First Layer Dictates the Bounds: Surprisingly, the theoretical bounds reveal that the minimum eigenvalue of the NTK is heavily influenced by the activation function chosen for the very first layer, rather than the deeper layers of the network.
  • Why NAS Naturally Prefers ReLU: The authors' theory predicts that ReLU and LeakyReLU maximize the NTK's minimum eigenvalue. This perfectly explains empirical observations where gradient-based NAS algorithms consistently favor these activations during the search phase.
Figure 1: Architecture search results on activation functions indicated by the probability of σ in (a) and skip connections indicated by α in (b). We notice that for each layer, ReLU and LeakyReLU are selected a the higher probability.
  • Skip Connections as Eigenvalue Boosters: The mathematical analysis shows that adding skip connections causes the minimum eigenvalue to increase rapidly with network depth, explaining why residual connections fundamentally improve both trainability and generalization.
  • Overcoming Non-Homogeneity: Analyzing smooth or bounded activations like Tanh and Swish is notoriously difficult because they lack the scaling homogeneity of ReLU ($ReLU(cx) = c \cdot ReLU(x)$). The authors overcame this by introducing a novel integral estimation technique to handle non-homogeneous functions within deep networks.

Key Results

  • State-of-the-Art Train-Free Performance: On the NAS-Bench-201 benchmark, Eigen-NAS outperformed existing train-free methods (such as KNAS, NASWOT, and TE-NAS), achieving 71.42% accuracy on CIFAR-100 and 45.54% on ImageNet-16.
  • Massive Computational Speedups: Standard NTK eigenvalue computation scales at $O(N^3)$, and Frobenius-norm methods scale at $O(N^2)$. Eigen-NAS computes a tighter, more effective bound in just $O(N)$ time, making it exceptionally lightweight and capable of running on a single GPU in a few hours.

Limitations and Future Work

  • The Convolutional Gap: The current proof framework relies on fully-connected and residual matrix structures. Extending this global-recursive NTK formulation to Convolutional Neural Networks (CNNs) is highly non-trivial due to the complex tensor contractions involved. In practice, empirical skip-connection behavior in CNNs still partially mismatches the fully-connected theory.
  • Overlapping Bounds: The theoretical bounds derived for different activation functions still exhibit some mathematical overlap, meaning a tighter, completely non-overlapping bound is needed to perfectly separate activation performance in theory.

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