Skip to main content
QUICK REVIEW

[Paper Review] Differentially Private Fine-tuning of Language Models

Dahua Yu, Saurabh Naik|arXiv (Cornell University)|Oct 13, 2021
Privacy-Preserving Technologies in DataComputer Science58 references46 citations
TL;DR

The paper proposes a meta-framework for privately fine-tuning language models with parameter-efficient updates (LoRA, adapters, Compacter) that achieve state-of-the-art privacy-utility tradeoffs, often approaching non-private performance while updating only a small fraction of parameters.

ABSTRACT

We give simpler, sparser, and faster algorithms for differentially private fine-tuning of large-scale pre-trained language models, which achieve the state-of-the-art privacy versus utility tradeoffs on many standard NLP tasks. We propose a meta-framework for this problem, inspired by the recent success of highly parameter-efficient methods for fine-tuning. Our experiments show that differentially private adaptations of these approaches outperform previous private algorithms in three important dimensions: utility, privacy, and the computational and memory cost of private training. On many commonly studied datasets, the utility of private models approaches that of non-private models. For example, on the MNLI dataset we achieve an accuracy of $87.8\%$ using RoBERTa-Large and $83.5\%$ using RoBERTa-Base with a privacy budget of $ε= 6.7$. In comparison, absent privacy constraints, RoBERTa-Large achieves an accuracy of $90.2\%$. Our findings are similar for natural language generation tasks. Privately fine-tuning with DART, GPT-2-Small, GPT-2-Medium, GPT-2-Large, and GPT-2-XL achieve BLEU scores of 38.5, 42.0, 43.1, and 43.8 respectively (privacy budget of $ε= 6.8,δ=$ 1e-5) whereas the non-private baseline is $48.1$. All our experiments suggest that larger models are better suited for private fine-tuning: while they are well known to achieve superior accuracy non-privately, we find that they also better maintain their accuracy when privacy is introduced.

Motivation & Objective

  • Motivate privacy-preserving fine-tuning of large pre-trained language models (LLMs).
  • Develop a meta-framework that enables parameter-efficient private fine-tuning by adding lightweight trainable parameters.
  • Show that DP fine-tuning with lightweight adapters yields competitive accuracy with far smaller memory and compute costs.
  • Demonstrate that larger models retain better utility under differential privacy and that the approach scales to NLP tasks and NLG benchmarks.

Proposed method

  • Introduce a meta-framework that adds a small set of trainable parameters to a frozen pre-trained model and trains only these parameters with DPSGD.
  • Instantiate the framework with multiple parameter-efficient methods: LoRA (low-rank adapters), adapters, and Compacter (tensorized adapters).
  • Each method constrains updates to a tiny fraction of total parameters, reducing memory and computation under DP.
  • Use per-example gradient clipping and Gaussian noise (DPSGD) with privacy accounting (PRV Accountant) to guarantee (ε,δ)-DP.
  • Fine-tune RoBERTa on MNLI, SST-2, QQP, QNLI and GPT-2 on E2E and DART datasets to compare DP vs non-DP performance.
  • Compare against full fine-tuning and reparametrized gradient perturbation (RGP) baselines and report parameter counts, memory, and speed.

Experimental results

Research questions

  • RQ1Can parameter-efficient fine-tuning methods under differential privacy approach the utility of non-private fine-tuning on standard NLP tasks?
  • RQ2How does model size affect the privacy-utility tradeoff in DP fine-tuning?
  • RQ3Do LoRA, adapters, and Compacter offer tangible memory and compute savings under DP compared to full fine-tuning?
  • RQ4What is the impact of DP accounting advances on reported ε values and task performance?

Key findings

  • DP private fine-tuning with parameter-efficient methods achieves state-of-the-art privacy-utility tradeoffs across tasks.
  • On MNLI with RoBERTa-Large under ε=6.7, DP fine-tuning reaches 87.8% accuracy versus 90.2% non-private.
  • Larger models (RoBERTa-Large vs RoBERTa-Base) yield better DP utility, e.g., 87.8% vs 83.5% on MNLI under the same privacy budget.
  • LoRA, adapters, and Compacter significantly reduce the number of trained parameters (often <1%) and memory/compute costs compared to full fine-tuning and RGP.
  • For NLG, privately fine-tuning GPT-2 models yields BLEU/ROUGE-L scores close to non-private baselines under DP budgets (e.g., GPT-2-Large DP BLEU 43.1 vs 47.5 non-private).
  • The framework allows plug-in lightweight modules to extend a single pre-trained model to many tasks with DP.

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.