A Closer Look at the Calibration of Differentially Private Learners
Preprint
Abstract
We systematically study the calibration of classifiers trained with differentially private stochastic gradient descent (DP-SGD) and observe miscalibration across a wide range of vision and language tasks. Our analysis identifies per-example gradient clipping in DP-SGD as a major cause of miscalibration, and we show that existing approaches for improving calibration with differential privacy only provide marginal improvements in calibration error while occasionally causing large degradations in accuracy. As a solution, we show that differentially private variants of post-processing calibration methods such as temperature scaling and Platt scaling are surprisingly effective and have negligible utility cost to the overall model. Across 7 tasks, temperature scaling and Platt scaling with DP-SGD result in an average 3.1-fold reduction in the in-domain expected calibration error and only incur at most a minor percent drop in accuracy.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Gaussian Differential PrivacyJournal of the Royal Statistical Society Series B: Statistical Methodology, 2022
- Understanding deep learning (still) requires rethinking generalizationCommunications of the ACM, 2021
- Does learning require memorization? a short tale about a long tail2020
- Calibration: the Achilles heel of predictive analyticsBMC Medicine, 2019
- Do Better ImageNet Models Transfer Better?2019
- SciTaiL: A Textual Entailment Dataset from Science Question AnsweringProceedings of the AAAI Conference on Artificial Intelligence, 2018
- Membership Inference Attacks Against Machine Learning Models2017
- Algorithmic stability for adaptive data analysis2016
- Preserving Statistical Validity in Adaptive Data Analysis2015
- Stochastic gradient descent with differentially private updates2013