Improved Sample Complexities for Deep Networks and Robust Classification via an All-Layer Margin

Colin Wei, Tengyu Ma
10/9/2019
cs.LGstat.ML

Official code: cwein3/all-layer-margin-opt (8 stars, Python, last commit 2020-01-18).

Abstract

For linear classifiers, the relationship between (normalized) output margin and generalization is captured in a clear and simple bound -- a large output margin implies good generalization. Unfortunately, for deep models, this relationship is less clear: existing analyses of the output margin give complicated bounds which sometimes depend exponentially on depth.

Show full abstract

In this work, we propose to instead analyze a new notion of margin, which we call the "all-layer margin." Our analysis reveals that the all-layer margin has a clear and direct relationship with generalization for deep models. This enables the following concrete applications of the all-layer margin: 1) by analyzing the all-layer margin, we obtain tighter generalization bounds for neural nets which depend on Jacobian and hidden layer norms and remove the exponential dependency on depth 2) our neural net results easily translate to the adversarially robust setting, giving the first direct analysis of robust test error for deep networks, and 3) we present a theoretically inspired training algorithm for increasing the all-layer margin. Our algorithm improves both clean and adversarially robust test performance over strong baselines in practice.

View on arXivView PDF

Code Implementations(1)

AMO algorithm from the following paper: https://arxiv.org/abs/1910.04284.

80PythonJan 18, 20206 years ago

Similar Papers

Cite this paper

@article{wei2019improved,
  title  = {Improved Sample Complexities for Deep Networks and Robust Classification via an All-Layer Margin},
  author = {Colin Wei and Tengyu Ma},
  year   = {2019},
  eprint = {1910.04284},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.04284}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.04284.svg)](https://codeofpaper.com/paper/1910.04284)

Discussion