paper-with-me

홈 › Papers

FlashDP: Private Training Large Language Models with Efficient DP-SGD

2025-07-01 · Liangyu Wang, Junxiao Wang, Jie Ren, Zihang Xiang, David E. Keyes, Di Wang arxiv

As large language models (LLMs) increasingly underpin technological advancements, the privacy of their training data emerges as a critical concern. Differential Privacy (DP) serves as a rigorous mechanism to protect this data, yet its integration via Differentially Private Stochastic Gradient Descent (DP-SGD) introduces substantial challenges, primarily due to the complexities of per-sample gradient clipping. Current explicit methods, such as Opacus, necessitate extensive storage for per-sample gradients, significantly inflating memory requirements. Conversely, implicit methods like GhostClip reduce storage needs by recalculating gradients multiple times, which leads to inefficiencies due to redundant computations. This paper introduces FlashDP, an innovative cache-friendly per-layer DP-SGD that consolidates necessary operations into a single task, calculating gradients only once in a fused manner. This approach not only diminishes memory movement by up to \textbf{50\%} but also cuts down redundant computations by \textbf{20\%}, compared to previous methods. Consequently, FlashDP does not increase memory demands and achieves a \textbf{90\%} throughput compared to the Non-DP method on a four-A100 system during the pre-training of the Llama-13B model, while maintaining parity with standard per-layer clipped DP-SGD in terms of accuracy. These advancements establish FlashDP as a pivotal development for efficient and privacy-preserving training of LLMs. FlashDP's code has been open-sourced in https://github.com/kaustpradalab/flashdp.

📄 PDF Abstract BibTeX arXiv:2507.01154

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Can Public Large Language Models Help Private Cross-device Federated Learning?

2023-05-20 · Boxin Wang, Yibo Jacky Zhang, Yuan Cao, Bo Li 외

We study (differentially) private federated learning (FL) of language models. The language models in cross-device FL are relatively small, which can be trained with meaningful formal user-level differential privacy (DP) …

Federated Learning

Submix: Practical Private Prediction for Large-Scale Language Models

2022-01-04 · Antonio Ginart, Laurens van der Maaten, James Zou, Chuan Guo

Recent data-extraction attacks have exposed that language models can memorize some training samples verbatim. This is a vulnerability that can compromise the privacy of the model's training data. In this work, we introdu…

Language ModelingLanguage Modelling

Large Language Models Can Be Strong Differentially Private Learners

2021-10-12 · ICLR 2022 4 · Xuechen Li, Florian Tramèr, Percy Liang, Tatsunori Hashimoto

Differentially Private (DP) learning has seen limited success for building large deep learning models of text, and straightforward attempts at applying Differentially Private Stochastic Gradient Descent (DP-SGD) to NLP t…

PrE-Text: Training Language Models on Private Federated Data in the Age of LLMs

2024-06-05 · Charlie Hou, Akshat Shrivastava, Hongyuan Zhan, Rylan Conway 외

On-device training is currently the most common approach for training machine learning (ML) models on private, distributed user data. Despite this, on-device training has several drawbacks: (1) most user devices are too …

Language ModellingLarge Language Model

Differentially Private Fine-tuning of Language Models

2021-10-13 · ICLR 2022 4 · Da Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi 외

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 …

Text Generation