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

Zhenyu Zhu, Fanghui Liu, Grigorios Chrysos, Volkan Cevher

TL;DR

This paper provides a theoretical framework to resolve the "robustness paradox" in deep learning—the conflicting evidence on whether larger models are more or less robust. By analyzing perturbation stability, the authors demonstrate that while increasing network width generally improves robustness in over-parameterized models, the impact of depth is "ugly": it can either help or hurt depending entirely on the choice of initialization (e.g., LeCun vs. He initialization).

The Robustness Paradox

Deep Neural Networks (DNNs) are notoriously fragile to small, adversarial perturbations. Researchers have long debated how a model's architecture—its width and depth—affects this vulnerability.

The literature is currently split: some studies suggest that over-parameterization (making models bigger) is necessary for robustness, while others argue it actually degrades it. This paper aims to close this gap by providing a unified theoretical analysis of "average robustness." Instead of looking only at the worst-case scenario (which is what the standard Lipschitz constant measures), the authors focus on perturbation stability, which measures how much a network's output changes on average when the input is slightly nudged.

Methods: Measuring Perturbation Stability

The authors derive new theoretical upper bounds for perturbation stability across different training regimes and initializations:

  1. Perturbation Stability Metric: They define robustness as the expected change in the network's output given a random perturbation within an $\ell_2$ ball.
  2. Lazy vs. Non-Lazy Training:
    • Lazy training occurs when the network weights stay very close to their initial values (common in the Neural Tangent Kernel or NTK regime).
  3. Non-lazy training involves significant weight movement, which is more representative of how many modern models actually learn.
  4. Initialization Schemes: They specifically compare LeCun initialization, He initialization, and NTK initialization to see how the starting variance of weights dictates the final robustness.
Theoretical bounds for perturbation stability under different initialization schemes.

Key Insights: Width, Depth, and Initialization

  • The Width "Phase Transition": In the "lazy" training regime, robustness follows a U-shaped curve. In the under-parameterized regime (small models), adding width actually makes the model less robust. However, once you cross a critical threshold into the over-parameterized regime, adding width begins to improve robustness before eventually plateauing.
Empirical validation showing the phase transition of robustness as network width increases.
  • Initialization is the "Ugly" Variable: Depth is not inherently good or bad.
  • Under LeCun initialization, increasing depth exponentially improves robustness.
  • Under He or NTK initialization, increasing depth hurts robustness at a polynomial rate.
  • Non-Lazy Training is Different: In the non-lazy regime (where weights move significantly), the "width hump" disappears. Here, the authors found that increasing width consistently improves robustness from the start.
  • Average vs. Worst-Case: The authors argue that the standard Lipschitz constant is too pessimistic. By focusing on average perturbation stability, they provide a metric that better aligns with the empirical behavior of models on real-world data.

Key Results & Validation

  • Theorem 1 (Lazy Regime): Establishes that the bound for perturbation stability depends on a constant $\gamma$. If $\gamma < 1$ (LeCun), depth helps. If $\gamma = 1$ (He/NTK), depth hurts.
  • Theorem 3 (Non-Lazy Regime): For two-layer networks, the authors prove that robustness and width are positively correlated in the early stages of training.
  • Numerical Validation: Experiments on MNIST, CIFAR-10, and synthetic datasets confirmed the theoretical "phase transition" for width. Figures in the paper clearly show stability worsening and then improving as width grows.

Limitations and Future Work

  • Two-Layer Constraint for Non-Lazy: Much of the analysis for the "non-lazy" regime is restricted to two-layer networks. Extending these proofs to deep, multi-layer networks in the non-lazy regime remains a significant theoretical challenge.
  • Average Robustness vs. Certified Robustness: While average robustness is a useful metric for general performance, it does not provide the "certified" guarantees required for safety-critical systems where a single worst-case failure is unacceptable.
  • Future Directions: The authors suggest that their findings could help in designing better "foundation models" by picking the right combination of depth and initialization to ensure inherent stability without sacrificing trainability.

Summary updated

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