Robustness in deep learning: The good (width), the bad (depth), and the ugly (initialization)

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

Abstract

We study the average robustness notion in deep neural networks in (selected) wide and narrow, deep and shallow, as well as lazy and non-lazy training settings. We prove that in the under-parameterized setting, width has a negative effect while it improves robustness in the over-parameterized setting. The effect of depth closely depends on the initialization and the training mode. In particular, when initialized with LeCun initialization, depth helps robustness with the lazy training regime. In contrast, when initialized with Neural Tangent Kernel (NTK) and He-initialization, depth hurts the robustness. Moreover, under the non-lazy training regime, we demonstrate how the width of a two-layer ReLU network benefits robustness. Our theoretical developments improve the results by [Huang et al. NeurIPS21; Wu et al. NeurIPS21] and are consistent with [Bubeck and Sellke NeurIPS21; Bubeck et al. COLT21].

Introduction

In the quest for more robust AI, researchers have encountered a paradox: does increasing model capacity make a network more resilient or more fragile? While empirical "adversarial training" often requires high-capacity (wide and deep) models, recent theoretical work has suggested that over-parameterization might actually damage robustness. This paper reconciles these conflicting views by investigating the interplay between width, depth, and initialization—the "good, the bad, and the ugly"—and their impact on a network's perturbation stability.

Methodology

The authors provide a rigorous theoretical analysis of average robustness (perturbation stability), measuring the expected change in output given a random input perturbation. This differs from Lipschitz constants, which focus on worst-case sensitivity.

The analysis covers two primary training regimes:

  1. Lazy Training: Weights remain near their initial values (e.g., NTK analysis).
  2. Non-Lazy Training: Weights evolve significantly, facilitating feature learning.
Neural network architecture used for the theoretical analysis of robustness.

The study derives upper bounds for stability under three Gaussian initialization schemes: LeCun, He, and NTK. These theoretical results were validated using standard benchmarks: MNIST for fully connected networks, and CIFAR-10/100 for CNNs and ResNet-110, exploring widths from $2^4$ to $2^{14}$ and depths from 2 to 10 layers.

Theoretical Insights: The Interplay of Architecture and Initialization

The core contribution of this work is identifying how initialization dictates the impact of architectural choices.

The Width Phase Transition

In the lazy regime, robustness follows a non-monotonic path. For under-parameterized models, increasing width initially degrades robustness. However, once the model enters the over-parameterized regime, further width increases improve robustness until it plateaus. In the non-lazy regime, width is consistently beneficial, showing a positive correlation with robustness from the outset.

Initialization: The "Ugly" Truth

The effect of depth is entirely dependent on the initialization scheme used.

  • LeCun Initialization: Depth exponentially improves robustness.
  • He or NTK Initialization: Depth hurts robustness at a polynomial rate.
Comparison of robustness bounds across different initialization schemes.

While LeCun initialization offers superior robustness in deep networks, it introduces a trade-off: it makes training significantly harder as signals tend to vanish in deep ReLU layers.

Key Results and Comparison

The derived bounds are tighter and more precise than previous literature. By accounting for the specific initialization and width regime, this work explains why prior studies reached contradictory conclusions. Experimental results confirm the predicted "hump" in stability-vs-width plots, where robustness dips near the interpolation threshold before recovering in the over-parameterized regime.

Conclusion and Future Work

This research clarifies the complex relationships between network architecture and robustness. While it provides a comprehensive look at the lazy regime for deep networks, the non-lazy analysis is currently limited to two-layer architectures. Future work will aim to extend these findings to deeper non-lazy networks and further bridge the gap between average robustness and worst-case adversarial robustness.

Summary updated

BibTeX
@inproceedings{zhu2022robustness,
  author = {Zhenyu Zhu and Fanghui Liu and Grigorios G. Chrysos and Volkan Cevher},
  title = {{Robustness in deep learning: The good (width), the bad (depth), and the ugly (initialization)}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=m8vzptcFKsT},
}
Figure