Generalization Properties of NAS under Activation and Skip Connection Search

Zhenyu Zhu, Fanghui Liu, Grigorios Chrysos, Volkan Cevher

Neural Architecture Search (NAS) has revolutionized deep learning by automating the design of state-of-the-art models. However, for a long time, NAS has operated as a bit of a "black box"—we know it works empirically, but we often lack the theoretical "why."

In this NeurIPS 2022 paper, researchers from EPFL bridge this gap. They provide the first theoretical guarantees for NAS within a framework that searches for both activation functions and skip connections, demonstrating that the secret to a model's success lies in the spectral properties of its Neural Tangent Kernel (NTK).

The Problem: Moving Beyond Fixed Architectures

While NAS algorithms like DARTS are incredibly effective, they are often computationally expensive—sometimes requiring days of GPU time—or rely heavily on heuristics. Furthermore, most existing deep learning theory focuses on "fixed" architectures, usually simple fully-connected networks with a single activation function like ReLU.

The real world is messier. NAS search spaces involve a mix of different activations (Sigmoid, Tanh, Swish) and complex skip connections (like those in ResNets). The authors tackle two main questions:

  1. Can we provide generalization guarantees for a network when its architecture is still actively being searched?
  2. Can we predict which architecture will perform best without actually training it?

Methods: The NTK Framework

To answer these questions, the researchers utilize Neural Tangent Kernel (NTK) theory. The NTK describes how a neural network evolves during training with gradient descent. Specifically, the authors focus on the minimum eigenvalue ($\lambda_{min}$) of the NTK. A larger $\lambda_{min}$ generally implies faster convergence and better generalization.

Mathematical formulations and coefficients for various activation functions analyzed within the NTK framework.

Key technical contributions include: * Recursive NTK Formula: They derived a new recursive formula for the NTK that accounts for architectures where each layer can have a different activation function and an optional skip connection. * Eigenvalue Bounding: They established lower and upper bounds for $\lambda_{min}$ in both infinite-width and finite-width regimes. * Eigen-NAS Algorithm: Leveraging their theory, they proposed a "train-free" metric. Instead of training a candidate model to completion, they estimate its NTK's minimum eigenvalue at initialization. They use a computationally efficient $O(N)$ estimation technique to rank architectures rapidly.

Key Insights and Ideas

The theoretical bounds derived by the authors lead to several fascinating practical insights about network design:

  • The "First Layer" Rule: One of the most striking findings is that the activation function in the first layer matters significantly more for generalization than those in deeper layers. The first layer's "Hermite coefficient" largely dictates the lower bound of the NTK's eigenvalue.
  • Why ReLU Wins: The theory predicts that ReLU and LeakyReLU lead to larger minimum eigenvalues compared to Sigmoid or Tanh. This explains why NAS algorithms almost always converge on ReLU-based designs—they are mathematically "easier" to optimize and generalize.
  • Skip Connections are Stabilizers: For networks of moderate depth ($L \approx 10$), skip connections are essential because they prevent the minimum eigenvalue from decaying too quickly, ensuring the network remains trainable and generalizes well.
Search probabilities for activation functions and skip connections across layers, highlighting the preference for ReLU in the first layer and the importance of skip connections at moderate depths.
  • Training is Optional (for Search): The results show that the properties of a network at random initialization are highly predictive of its final performance. This justifies the move toward "train-free" NAS, which can reduce search time from days to minutes.

Key Results

The authors validated their theoretical findings and the Eigen-NAS algorithm using standard computer vision benchmarks, including Fashion-MNIST, NAS-Bench-101, and NAS-Bench-201.

  • Superior Accuracy: On the NAS-Bench-201 benchmark, Eigen-NAS outperformed other popular train-free methods (like KNAS and NASWOT). For example, on CIFAR-100, it achieved 71.42% accuracy, surpassing KNAS (70.78%).
  • Efficiency: By using a tighter, more efficient bound for the eigenvalue, Eigen-NAS is significantly faster than methods that attempt to calculate the full NTK matrix.
  • Theoretical Alignment: Experiments using the DARTS algorithm showed that the search process naturally selects architectures that maximize the $\lambda_{min}$ of the NTK, exactly as the authors' theory suggested.

Limitations and Future Work

While a significant step forward, the paper notes a few limitations:

  • Architectural Scope: The current proof framework is designed for fully-connected and ResNet-style architectures. Extending this to convolutional layers (CNNs) is non-trivial due to the complex tensor operations involved.
  • Bound Tightness: While the bounds are informative, there is still some overlap between the bounds of different activation functions, meaning the theory cannot always perfectly distinguish between two very similar activations.
  • Complexity of Search: The paper focuses on the properties of the resulting architecture but doesn't analyze the convergence of the search algorithms (like DARTS) themselves.

Future work will likely focus on developing tighter bounds and expanding the theory to cover more complex structures like Transformers or Graph Neural Networks.

Summary updated

BibTeX
@inproceedings{zhu2022generalization,
  author = {Zhenyu Zhu and Fanghui Liu and Grigorios 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