Abstract
Machine learning models are known to leak sensitive information about their training data through the predictions they generate. This paper presents the first comprehensive empirical study comparing two primary strategies for mitigating this leakage: private training, which incorporates privacy into the model creation process, and private prediction, which perturbs model outputs at inference time. Our findings reveal that private training methods, specifically DP-SGD, generally offer a superior balance of accuracy and privacy. Furthermore, we demonstrate that private prediction methods suffer from a diminishing "inference budget," where accuracy degrades as the number of queries increases, making training-based methods more robust for real-world applications.
Introduction
Every prediction made by a machine learning model reveals a small amount of information about its training set. In sensitive fields like healthcare or finance, this "leakage" can allow malicious actors to reconstruct private records. To address this, researchers have proposed two paths: baking privacy into the model from the start (Private Training) or "fuzzing" the outputs of a non-private model (Private Prediction).
While the theoretical foundations of these methods are established, practitioners lack clear guidance on their real-world trade-offs. This study evaluates these techniques across varying privacy levels, dataset sizes, and "inference budgets"—the total number of predictions a model is permitted to make.
Methodology and Experimental Setup
The authors evaluate five primary techniques within a regularized empirical risk minimization framework:
- Private Training Methods:
- Model Sensitivity: Adding noise to final model parameters.
- Loss Perturbation: Adding noise to the loss function during training.
- DP-SGD (Differentially Private Stochastic Gradient Descent): Clipping and adding noise to gradients during training steps.
- Private Prediction Methods:
- Prediction Sensitivity: Adding noise to raw output scores (logits).
- Subsample-and-Aggregate: Training multiple models on data subsets and using a noisy voting mechanism for the final output.
These methods were tested on three benchmarks: MNIST (handwritten digits), InfiMNIST (synthetic large-scale MNIST), and CIFAR-10 (complex image classification using ResNet-20).
The Privacy-Accuracy Frontier
A critical finding is the impact of the privacy failure probability parameter, $\delta$. Allowing even a tiny probability of privacy failure (e.g., $\delta = 10^{-5}$) dramatically improves the accuracy of training-based methods. Under these conditions, DP-SGD and Loss Perturbation dominate, achieving high accuracy even at strict privacy levels ($\epsilon < 1$).
In contrast, Prediction Sensitivity performed poorly across almost all tests, requiring excessive noise to provide meaningful privacy, which rendered the model's outputs nearly useless.
The Inference Budget Challenge
One of the most significant advantages of private training is its "one-and-done" nature. Once a model is privately trained, its privacy cost is fixed, allowing for an infinite number of queries. Private prediction methods, however, "leak" privacy with every query. Consequently, their accuracy plummets as the inference budget (the number of requested predictions) grows.
As shown in the experimental results, the Subsample-and-Aggregate method is overtaken by Loss Perturbation on MNIST after approximately 80 predictions. On the more complex CIFAR-10 dataset, DP-SGD outperforms Subsample-and-Aggregate after as few as five predictions.
Conclusion and Future Work
The study concludes that while privacy always incurs an "accuracy tax," private training methods are generally more efficient and scalable than private prediction. Subsample-and-Aggregate remains useful primarily for very small datasets where its inherent regularization provides a benefit.
Future research may explore more sophisticated privacy accounting for prediction-based methods (such as the PATE framework) or investigate how these trade-offs shift with large-scale language models and tabular data. Additionally, accounting for the privacy costs of hyperparameter tuning remains an important open challenge in the field.
Summary updated