Adversarial Rademacher Complexity of Deep Neural Networks

Jiancong Xiao, Yanbo Fan, Ruoyu Sun, Zhi-Quan Luo

TL;DR

Adversarially trained deep neural networks frequently overfit to training perturbations, leaving a massive gap between robust training and robust test accuracy. This paper derives the first direct upper and lower bounds on the adversarial Rademacher complexity for deep neural networks by bypassing traditional "layer-peeling" induction techniques with whole-network covering numbers. The theoretical bounds and empirical findings reveal that adversarial training drastically inflates network weight norms, explaining why robust generalization is so difficult to achieve.

What Problem Does This Paper Address?

Adversarial training (e.g., via Projected Gradient Descent, or PGD) is the primary defense against adversarial attacks, but it suffers from severe generalization failure: models frequently reach near 100% robust training accuracy while lingering at 40–60% robust test accuracy.

In classical learning theory, generalization gaps are analyzed using Rademacher complexity, typically bounded in multi-layer networks via an inductive "layer-peeling" technique (stripping one layer at a time via Talagrand's contraction lemma). In adversarial settings, however, the loss includes an inner maximization/infimum over input perturbations ($\inf_{\|x'-x\| \le \epsilon} y f(x')$). The optimal adversarial perturbation depends on the entire network; stripping the top layer alters the optimal perturbation, causing traditional layer-peeling induction to break down. Prior theoretical guarantees were consequently limited to linear models, two-layer networks, or loose surrogate formulations.

Methods

  • Covering Numbers Instead of Layer Peeling: Rather than peeling layers inductively, the authors directly construct an $\epsilon$-cover for the entire function class of depth-$d$, width-$h$ fully connected neural networks under matrix norm constraints (Frobenius norm and $\ell_{1,\infty}$-group norm). Defining the worst-case perturbation once for the whole network avoids the perturbation-shifting pathology of layer induction.
  • Chaining via Dudley’s Integral: With the metric entropy of the network class established, Dudley’s chaining integral is used to bound the empirical adversarial Rademacher complexity $\mathcal{R}_S(\tilde{\mathcal{F}})$.
  • Multi-Class Margin Bounds: Using the ramp loss and a multi-class margin operator, the authors extend the binary complexity results to $K$-class classification, providing data-dependent margin guarantees scaling inversely with margin $\gamma$.
  • Lower Bound Construction: The authors construct a scalar deep network family that collapses to a linear hypothesis class, providing a lower bound via Khintchine's inequality.

Datasets

The authors evaluated their findings on standard image classification benchmarks:

  • CIFAR-10
  • CIFAR-100

Architectures evaluated include the VGG family (VGG-11, VGG-13, VGG-16, and VGG-19). No new benchmark datasets were introduced.

Key Insights and Ideas

  • Why Layer Peeling Fails: In standard training, $f(x) = W_d \rho(f_{d-1}(x))$ acts on fixed sample points $x_i$. In adversarial training, the input evaluated is $x_i^*(f)$, which depends non-trivially on the entire composition. Thus, $x_i^*(f) \neq x_i^*(f_{d-1})$, invalidating layer-wise contraction.
  • Separation of Factors: The robust generalization gap can be decomposed into:
  • Algorithm-independent factor $C_{\text{adv}} = (B + \epsilon)h\sqrt{d \log d}$, reflecting attack radius $\epsilon$, width $h$, and depth $d$.
  • Algorithm-dependent factor $W_{\text{adv}} = \frac{\prod_{l=1}^d \|W_l\|}{\gamma}$, governed by the training procedure.
  • Weight Norm Explosion: To memorize adversarial perturbations alongside clean data labels, networks require greater representational capacity, driving up the product of weight norms ($\prod_{l=1}^d \|W_l\|_F$). Thus, $W_{\text{adv}} \gg W_{\text{std}}$, directly driving the observed robust generalization gap.

Key Results

  • Complexity Bounds: For depth-$d$, width-$h$ networks with data bound $\|X\|_{p,\infty} \le B$, perturbation budget $\epsilon$, and layer bounds $\|W_l\| \le M_l$: $$\mathcal{R}_S(\tilde{\mathcal{F}}) \le \mathcal{O}\left( \frac{(B + \epsilon)h\sqrt{d\log d} \prod_{l=1}^d M_l}{\sqrt{m}} \right)$$ The corresponding lower bound is $\Omega\left(\frac{(B + \epsilon)\prod_{l=1}^d M_l}{\sqrt{m}}\right)$.

  • Empirical Generalization Gap (VGG-19 on CIFAR-10):

  • Standard model: Clean generalization gap $\mathcal{E}(f_{\text{std}}) = 10.45\%$ (0% train error, 10.45% test error). Robust training error is 100% (a degenerate 0% robust gap).
  • Adversarially trained model: Clean generalization gap increases to $26.34\%$, while the robust generalization gap explodes to $\tilde{\mathcal{E}}(f_{\text{adv}}) = 58.90\%$ (0.02% robust train error vs. 58.92% robust test error).
  • Role of Regularization: Experiments comparing PGD training with and without weight decay show that explicitly penalizing weight norms curtails $\prod_{l=1}^d \|W_l\|_F / \gamma$ and noticeably shrinks the robust generalization gap.

Limitations and Future Work

  • Depth/Width Gap: There is an unresolved gap of $h\sqrt{d\log d}$ between the upper bound and the scalar-network lower bound. It remains open whether the upper bound can be made depth/width-independent or if tighter multi-dimensional lower bounds exist.
  • Surrogate Attacks in Practice: The theoretical bounds depend on the infimum over the $\ell_p$ ball, but empirical evaluations rely on PGD-20 / PGD-40 approximations because exact global minima are computationally intractable in deep networks.
  • Implicit Regularization: Popular empirical tricks in adversarial training (e.g., early stopping, cyclic learning rates, adversarial weight perturbation) improve robust generalization, but whether they act primarily through implicit control of weight norms remains an open question.

Summary updated

BibTeX
@inproceedings{xiao2022adversarial,
  author = {Jiancong Xiao and Yanbo Fan and Ruoyu Sun and Zhi-Quan Luo},
  title = {{Adversarial Rademacher Complexity of Deep Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=wNsNT56zDkG},
}
Figure