English

DPZero: Private Fine-Tuning of Language Models without Backpropagation

Machine Learning 2024-06-07 v3 Cryptography and Security Optimization and Control Machine Learning

Abstract

The widespread practice of fine-tuning large language models (LLMs) on domain-specific data faces two major challenges in memory and privacy. First, as the size of LLMs continues to grow, the memory demands of gradient-based training methods via backpropagation become prohibitively high. Second, given the tendency of LLMs to memorize training data, it is important to protect potentially sensitive information in the fine-tuning data from being regurgitated. Zeroth-order methods, which rely solely on forward passes, substantially reduce memory consumption during training. However, directly combining them with standard differentially private gradient descent suffers more as model size grows. To bridge this gap, we introduce DPZero, a novel private zeroth-order algorithm with nearly dimension-independent rates. The memory efficiency of DPZero is demonstrated in privately fine-tuning RoBERTa and OPT on several downstream tasks. Our code is available at https://github.com/Liang137/DPZero.

Keywords

Cite

@article{arxiv.2310.09639,
  title  = {DPZero: Private Fine-Tuning of Language Models without Backpropagation},
  author = {Liang Zhang and Bingcong Li and Kiran Koshy Thekumparampil and Sewoong Oh and Niao He},
  journal= {arXiv preprint arXiv:2310.09639},
  year   = {2024}
}

Comments

ICML 2024

R2 v1 2026-06-28T12:50:44.564Z