[Paper Review] Tempered Sigmoid Activations for Deep Learning with Differential Privacy
This paper proposes using tempered sigmoid activations—specifically, a family of bounded activation functions—to improve deep learning under differential privacy. By curbing exploding activations and reducing gradient clipping loss, tempered sigmoids enable faster convergence and significantly better privacy-accuracy trade-offs, achieving state-of-the-art results on MNIST (98.1%), FashionMNIST (86.1%), and CIFAR10 (66.2%) under DP-SGD without modifying the training procedure.
Because learning sometimes involves sensitive data, machine learning algorithms have been extended to offer privacy for training data. In practice, this has been mostly an afterthought, with privacy-preserving models obtained by re-running training with a different optimizer, but using the model architectures that already performed well in a non-privacy-preserving setting. This approach leads to less than ideal privacy/utility tradeoffs, as we show here. Instead, we propose that model architectures are chosen ab initio explicitly for privacy-preserving training. To provide guarantees under the gold standard of differential privacy, one must bound as strictly as possible how individual training points can possibly affect model updates. In this paper, we are the first to observe that the choice of activation function is central to bounding the sensitivity of privacy-preserving deep learning. We demonstrate analytically and experimentally how a general family of bounded activation functions, the tempered sigmoids, consistently outperform unbounded activation functions like ReLU. Using this paradigm, we achieve new state-of-the-art accuracy on MNIST, FashionMNIST, and CIFAR10 without any modification of the learning procedure fundamentals or differential privacy analysis.
Motivation & Objective
- To address the poor performance of standard ReLU activations in differentially private deep learning due to unbounded activations and gradient clipping effects.
- To improve the privacy-accuracy trade-off in DP-SGD by explicitly designing model architectures for privacy-preserving training from the start.
- To demonstrate that bounded activation functions like tempered sigmoids can better preserve gradient signal under clipping and noise, leading to higher utility.
- To show that architectural choices—particularly activation functions—must be re-evaluated for private learning, rather than reusing non-private models.
- To establish tempered sigmoids as a superior default activation function for private deep learning, outperforming ReLU across multiple benchmarks.
Proposed method
- Introduce a general family of bounded activation functions called tempered sigmoids, defined as $ \sigma_T(x) = \frac{1}{1 + e^{-x/T}} $, where $ T $ controls the temperature and bounds the output.
- Use the tempered sigmoid family to limit activation magnitudes, thereby reducing the risk of exploding gradients during training under DP-SGD.
- Analyze the relationship between the temperature parameter $ T $ and the clipping norm in DP-SGD, showing that tempered sigmoids naturally align with the clipping mechanism.
- Apply DP-SGD with gradient clipping and Gaussian noise, but replace ReLU with tempered sigmoids to reduce signal loss from clipping and noise injection.
- Conduct extensive hyperparameter search across learning rate, batch size, optimizer, and number of epochs, specifically tuned for private learning conditions.
- Compare performance using ReLU versus tempered sigmoids (e.g., tanh) under identical privacy budgets ($ \varepsilon, \delta $) on MNIST, FashionMNIST, and CIFAR10.
Experimental results
Research questions
- RQ1How do unbounded activation functions like ReLU degrade performance in differentially private deep learning due to gradient clipping and noise?
- RQ2Can bounded activation functions such as tempered sigmoids reduce the negative impact of gradient clipping and noise in DP-SGD?
- RQ3What is the relationship between the temperature parameter in tempered sigmoids and the clipping norm in DP-SGD?
- RQ4Does using tempered sigmoids as the default activation function lead to improved privacy-accuracy trade-offs compared to ReLU in standard benchmarks?
- RQ5Can architectural choices like activation functions be designed ab initio for privacy-preserving training to outperform post-hoc adaptation of non-private models?
Key findings
- Tempered sigmoids achieve 98.1% test accuracy on MNIST under DP-SGD with $ \varepsilon = 2.93 $, outperforming ReLU-based models which reach only 96.6%.
- On FashionMNIST, the proposed method achieves 86.1% accuracy under $ \varepsilon = 2.7 $, compared to 81.9% with ReLU, demonstrating a significant improvement in privacy-accuracy trade-off.
- For CIFAR10, the model with tempered sigmoids reaches 66.2% accuracy under $ \varepsilon = 7.53 $, surpassing the 61.6% accuracy of ReLU-based models.
- The performance gains are consistent across all three benchmarks, indicating that tempered sigmoids are broadly effective for private deep learning.
- The improvement is attributed to reduced signal loss from gradient clipping and noise, as bounded activations prevent gradient explosion and preserve more useful information.
- Hyperparameter tuning is critical: learning rates must be re-optimized for private training, and adaptive optimizers like Adam do not outperform SGD in this context.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.