Adversarial Learning Guarantees for Linear Hypotheses and Neural Networks

Pranjal Awasthi, Natalie Frank, Mehryar Mohri

Abstract

This work provides a rigorous theoretical foundation for understanding generalization in machine learning models under adversarial attacks. By directly analyzing the adversarial Rademacher complexity of linear models and simple neural networks, the authors derive tight bounds that quantify the "adversarial generalization gap." The research demonstrates that while adversarial robustness often incurs a "dimensionality tax," this can be mitigated or eliminated through the selection of regularization norms compatible with the attacker's constraints.

Introduction

In standard machine learning, tools like VC-dimension and Rademacher complexity are used to estimate sample requirements for generalization. However, these tools often fail in adversarial settings, where a model may appear robust on training data but fail on unseen test data. This "adversarial generalization gap" has led to a "cat and mouse" game between attacks and defenses. This paper seeks to quantify the data requirements for guaranteed robustness and identify the mathematical principles governing this gap.

Methodology

The authors utilize Rademacher complexity to measure a function class's ability to fit random noise, which directly relates to generalization. Key contributions include:

  • Direct Analysis: Unlike previous approaches using surrogate losses, this work analyzes the true adversarial loss function.
  • General $l_r$-norm Perturbations: The analysis extends beyond $l_\infty$ perturbations to any $l_r$ perturbation ($r \geq 1$).
  • Adversarial Shattering: For neural networks, the authors introduce "adversarial shattering" and an "adversarial growth function," providing a robust analogue to classical VC-theory.

To validate the tightness of their derived norm bounds, the authors use synthetic mathematical constructs, such as Gaussian and identity matrices.

Figure 1: Comparison of derived norm bounds for identity and general matrices across varying $p^*$ values.

Theoretical Insights

A primary finding is that the "dimensionality tax" is optional. For linear models, adversarial complexity is the standard complexity plus a term that may depend on dimensionality $d$. Crucially, if the regularization norm $p$ is compatible with the attacker's perturbation norm $r$ (specifically $1/r + 1/p \geq 1$), dimension-independent generalization is achievable.

Furthermore, the paper identifies an asymmetry in ReLU units, where negative labels are inherently easier to handle due to the ReLU's flat region masking small perturbations. The authors also demonstrate that previous bounds based on SDP relaxations are often too loose, whereas their direct network analysis provides significantly tighter guarantees.

Key Results

The paper provides matching upper and lower bounds for linear hypotheses, proving that specific $l_p$ regularizers prevent sample complexity from exploding with feature count. For one-hidden-layer neural networks, they establish a bound scaling with $\sqrt{d \cdot n}$. Notably, the authors improve upon existing "classical" Rademacher bounds for linear classifiers, showing their new analysis is strictly tighter than the previous state-of-the-art (Theorem 3).

Figure 2: Visualization of constants $c_1$ and $c_2$ and their bounds, illustrating the improved tightness of the proposed Rademacher analysis.

Conclusion and Future Work

While this work offers tight guarantees for linear models and shallow networks, extending these bounds to deep, multi-layer architectures remains a challenge. Future research is needed to investigate the applicability of dimension-independent results to more general weight distributions and to develop practical training algorithms that implement the identified optimal regularizers.

Summary updated

BibTeX
@inproceedings{awasthi2020adversarial,
  author = {Pranjal Awasthi and Natalie Frank and Mehryar Mohri},
  title = {{Adversarial Learning Guarantees for Linear Hypotheses and Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure