Skip to main content
QUICK REVIEW

[Paper Review] Fine-Tuning with Differential Privacy Necessitates an Additional Hyperparameter Search

Yannis Cattan, Christopher A. Choquette-Choo|arXiv (Cornell University)|Oct 5, 2022
Privacy-Preserving Technologies in DataComputer Science5 citations
TL;DR

This paper proposes that fine-tuning only the first and last layers of a pretrained model—rather than the full model or just the last layer—significantly improves privacy-accuracy tradeoffs in differentially private learning. By reducing the number of trainable parameters subject to noise in DP-SGD, the method achieves state-of-the-art performance, including 77.9% accuracy on CIFAR-100 under (ε=2, δ=10⁻⁵)-DP, outperforming prior approaches by up to 3.2 percentage points.

ABSTRACT

Models need to be trained with privacy-preserving learning algorithms to prevent leakage of possibly sensitive information contained in their training data. However, canonical algorithms like differentially private stochastic gradient descent (DP-SGD) do not benefit from model scale in the same way as non-private learning. This manifests itself in the form of unappealing tradeoffs between privacy and utility (accuracy) when using DP-SGD on complex tasks. To remediate this tension, a paradigm is emerging: fine-tuning with differential privacy from a model pretrained on public (i.e., non-sensitive) training data. In this work, we identify an oversight of existing approaches for differentially private fine tuning. They do not tailor the fine-tuning approach to the specifics of learning with privacy. Our main result is to show how carefully selecting the layers being fine-tuned in the pretrained neural network allows us to establish new state-of-the-art tradeoffs between privacy and accuracy. For instance, we achieve 77.9% accuracy for $(\varepsilon, δ)=(2, 10^{-5})$ on CIFAR-100 for a model pretrained on ImageNet. Our work calls for additional hyperparameter search to configure the differentially private fine-tuning procedure itself.

Motivation & Objective

  • To investigate whether existing differentially private fine-tuning methods are optimized for the unique constraints of private learning.
  • To address the performance degradation in DP-SGD due to increased noise scaling with model size (sqrt(d) noise growth).
  • To explore whether selective layer fine-tuning can mitigate the privacy-utility tradeoff without additional hyperparameter tuning beyond layer selection.
  • To establish a new state-of-the-art in privacy-accuracy performance for vision benchmarks using a minimal architectural modification.

Proposed method

  • The method involves fine-tuning only the first and last layers of a pretrained neural network, while keeping all other layers frozen.
  • This approach reduces the total number of parameters subject to differential privacy noise in DP-SGD, thereby lowering the effective noise magnitude.
  • The authors apply standard DP-SGD with noise scaling tuned to the remaining trainable parameters, maintaining (ε,δ)-DP guarantees.
  • The method is evaluated under the same experimental setup as prior work, including the same model architecture (28-10 Wide-ResNet) and datasets (CIFAR-10, CIFAR-100).
  • The approach is compared against two baselines: full-model fine-tuning and last-layer-only fine-tuning, with all other hyperparameters held constant.

Experimental results

Research questions

  • RQ1Does selectively fine-tuning only the first and last layers of a pretrained model improve privacy-accuracy tradeoffs in differentially private learning?
  • RQ2Can reducing the number of trainable parameters in DP fine-tuning mitigate the noise scaling problem inherent in DP-SGD?
  • RQ3Is the performance gain from first-last-layer fine-tuning consistent across different privacy budgets and datasets?
  • RQ4Why do prior approaches that fine-tune all or only the last layer underperform compared to this selective strategy?

Key findings

  • The proposed first-last-layer fine-tuning method achieves 77.9% top-1 accuracy on CIFAR-100 under (ε=2, δ=10⁻⁵)-DP, a 3.2 percentage point improvement over the prior state-of-the-art of 74.7%.
  • On CIFAR-10, the method achieves 96.4% accuracy under (ε=8, δ=10⁻⁵)-DP, outperforming both full-model and last-layer baselines.
  • The performance gain is most pronounced at lower privacy budgets, with a 3.4 percentage point improvement on CIFAR-100 at ε=1.
  • The method consistently outperforms both full-model and last-layer fine-tuning across all evaluated privacy budgets on both CIFAR-10 and CIFAR-100.
  • The improvement is achieved without modifying any other hyperparameters, indicating that layer selection is a critical, previously overlooked hyperparameter in DP fine-tuning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.