Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Automatic Clipping: Differentially Private Deep Learning Made Easier and Stronger

About

Per-example gradient clipping is a key algorithmic step that enables practical differential private (DP) training for deep learning models. The choice of clipping threshold R, however, is vital for achieving high accuracy under DP. We propose an easy-to-use replacement, called automatic clipping, that eliminates the need to tune R for any DP optimizers, including DP-SGD, DP-Adam, DP-LAMB and many others. The automatic variants are as private and computationally efficient as existing DP optimizers, but require no DP-specific hyperparameters and thus make DP training as amenable as the standard non-private training. We give a rigorous convergence analysis of automatic DP-SGD in the non-convex setting, showing that it can enjoy an asymptotic convergence rate that matches the standard SGD, under a symmetric gradient noise assumption of the per-sample gradients (commonly used in the non-DP literature). We demonstrate on various language and vision tasks that automatic clipping outperforms or matches the state-of-the-art, and can be easily employed with minimal changes to existing codebases.

Zhiqi Bu, Yu-Xiang Wang, Sheng Zha, George Karypis• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR10 (test)
Accuracy92.7
585
Natural Language UnderstandingGLUE (test)
SST-2 Accuracy96.21
416
Image ClassificationFashionMNIST (test)
Accuracy86.36
363
Image ClassificationImageNette (test)
Accuracy60.71
164
Table-to-text generationE2ENLG (test)
BLEU0.6946
51
Text ClassificationGLUE
Accuracy (SST-2)84.8
33
Sentence ClassificationGLUE MNLI, QQP, QNLI, SST2 (Matched, Mismatched, dev)
MNLI-m Accuracy85.91
9
Multi-label Image ClassificationCelebA Multi-label (test)
Accuracy87.58
5
Differentially Private TrainingCIFAR100
Average Running Time (s)0.2845
4
Differentially Private TrainingCelebA
Average Running Time (seconds)0.2593
4
Showing 10 of 22 rows

Other info

Code

Follow for update