Skip to main content
QUICK REVIEW

[Paper Review] Differentially Private Bias-Term Fine-tuning of Foundation Models

Zhiqi Bu, Yu-Xiang Wang|arXiv (Cornell University)|Sep 30, 2022
Privacy-Preserving Technologies in DataComputer Science7 citations
TL;DR

This paper proposes DP-BiTFiT, a differentially private, model-agnostic fine-tuning method that trains only the bias terms of foundation models, achieving state-of-the-art accuracy with 0.1% parameter efficiency and near-zero computational overhead. It is 2–30× faster and uses 2–8× less memory than DP full fine-tuning, enabling efficient private training on long sequences and high-resolution images.

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. 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).

Motivation & Objective

  • Address the challenge of privacy-preserving fine-tuning of large foundation models on sensitive data while minimizing computational and memory overhead.
  • Overcome the limitations of existing differentially private (DP) fine-tuning methods that suffer from high computational cost or architectural modifications.
  • Enable efficient DP fine-tuning on computationally demanding tasks such as long-sequence NLP and high-resolution image classification.
  • Maintain high model accuracy under strong privacy constraints (e.g., ε ≤ 8) while preserving parameter and computation efficiency.

Proposed method

  • Propose a model-agnostic approach that only fine-tunes the bias terms of pre-trained models, leaving all other weights frozen.
  • Integrate differential privacy (DP) into the bias-only fine-tuning process using DP-SGD with gradient clipping and noise injection.
  • Eliminate forward activation caching and weight gradient back-propagation, drastically reducing memory and time complexity.
  • Achieve near-zero DP overhead by avoiding computation on frozen weights and only tracking gradients for bias parameters.
  • Introduce a two-phase training strategy: first perform DP full fine-tuning for X epochs (X ≤ 2), then switch to DP-BiTFiT to maintain high accuracy with efficiency.
  • Combine DP-BiTFiT with other parameter-efficient methods (e.g., LoRA, Adapter) via joint optimization of bias and additional parameters.

Experimental results

Research questions

  • RQ1Can bias-term-only fine-tuning achieve competitive accuracy under strong differential privacy constraints without modifying model architecture?
  • RQ2How does DP-BiTFiT compare to DP full fine-tuning in terms of accuracy, speed, and memory usage across diverse NLP and vision tasks?
  • RQ3Does DP-BiTFiT maintain efficiency and accuracy on long-sequence and high-resolution inputs where full fine-tuning is computationally prohibitive?
  • RQ4Can a two-phase training strategy combining full and bias-only fine-tuning improve performance on small or difficult models where DP-BiTFiT underperforms?

Key findings

  • DP-BiTFiT achieves state-of-the-art accuracy on GLUE and MNLI benchmarks under strong privacy (ε ≤ 8), matching or exceeding prior DP methods.
  • On CIFAR100 with ε=2, DP-BiTFiT achieves 88.7% accuracy using BEiT-large, outperforming prior SOTA full fine-tuning (87.0%) under the same privacy budget.
  • DP-BiTFiT is 2–30× faster and uses 2–8× less memory than DP full fine-tuning, even outpacing standard non-private full fine-tuning in speed.
  • For vision tasks, DP-BiTFiT achieves 95.5% accuracy on ImageNet with ViT-Large (ε=8), compared to 98.0% with full fine-tuning, demonstrating strong performance on high-resolution images.
  • The two-phase training (1+BiTFiT) improves accuracy to 98.8% on CIFAR10 (ε=2), surpassing prior SOTA full fine-tuning by 1.7 percentage points.
  • DP-BiTFiT maintains consistent parameter efficiency (~0.1%) across models, including GPT2, RoBERTa, and ViT, regardless of model size.

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.