Differentially Private Bias-Term Fine-tuning of Foundation Models

Zhiqi Bu, Yu-Xiang Wang, Sheng Zha, George Karypis
9/30/2022
66 citations
cs.LGcs.CLcs.CR

Official code: awslabs/fast-differential-privacy (144 stars, Python, Apache-2.0, last commit 2026-01-22).

Abstract

We study the problem of differentially private (DP) fine-tuning of large pre-trained models -- a recent privacy-preserving approach suitable for solving downstream tasks with sensitive data. Existing work has demonstrated that high accuracy is possible under strong privacy constraint, yet requires significant computational overhead or modifications to the network architecture.

Show full abstract

We propose differentially private bias-term fine-tuning (DP-BiTFiT), which matches the state-of-the-art accuracy for DP algorithms and the efficiency of the standard BiTFiT. DP-BiTFiT is model agnostic (not modifying the network architecture), parameter efficient (only training about 0.1% of the parameters), and computation efficient (almost removing the overhead caused by DP, in both the time and space complexity). On a wide range of tasks, DP-BiTFiT is 2~30X faster and uses 2~8X less memory than DP full fine-tuning, even faster than the standard full fine-tuning. This amazing efficiency enables us to conduct DP fine-tuning on language and vision tasks with long-sequence texts and high-resolution images, which were computationally difficult using existing methods. We open-source our code at FastDP (https://github.com/awslabs/fast-differential-privacy).

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Fast, memory-efficient, scalable optimization of deep learning with differential privacy

14425PythonNov 20, 202210 months agoApache-2.0
deep-learningdifferential-privacyneural-networkprivacy-preserving-machine-learning

Similar Papers

Cite this paper

@article{bu2022differentially,
  title  = {Differentially Private Bias-Term Fine-tuning of Foundation Models},
  author = {Zhiqi Bu and Yu-Xiang Wang and Sheng Zha and George Karypis},
  year   = {2022},
  eprint = {2210.00036},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.00036}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.00036.svg)](https://codeofpaper.com/paper/2210.00036)

Discussion