Efficient Per-Example Gradient Computations in Convolutional Neural Networks

Gaspar Rochette, Andre Manoel, Eric W. Tramel
12/12/2019
cs.LGcs.CVstat.ML

Official code: owkin/grad-cnns (29 stars, TeX, last commit 2020-01-26).

Abstract

Deep learning frameworks leverage GPUs to perform massively-parallel computations over batches of many training examples efficiently. However, for certain tasks, one may be interested in performing per-example computations, for instance using per-example gradients to evaluate a quantity of interest unique to each example.

Show full abstract

One notable application comes from the field of differential privacy, where per-example gradients must be norm-bounded in order to limit the impact of each example on the aggregated batch gradient. In this work, we discuss how per-example gradients can be efficiently computed in convolutional neural networks (CNNs). We compare existing strategies by performing a few steps of differentially-private training on CNNs of varying sizes. We also introduce a new strategy for per-example gradient calculation, which is shown to be advantageous depending on the model architecture and how the model is trained. This is a first step in making differentially-private training of CNNs practical.

View on arXivView PDF

Code Implementations(1)

owkin/grad-cnnsOfficial100%

Code and manuscript for "Efficient Per-Example Gradient Computations in Convolutional Neural Networks"

2912TeX, PythonDec 12, 20196 years ago

Similar Papers

Cite this paper

@article{rochette2019efficient,
  title  = {Efficient Per-Example Gradient Computations in Convolutional Neural Networks},
  author = {Gaspar Rochette and Andre Manoel and Eric W. Tramel},
  year   = {2019},
  eprint = {1912.06015},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.06015}
}

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/1912.06015.svg)](https://codeofpaper.com/paper/1912.06015)

Discussion