[论文解读] Differentially Private Fine-tuning of Language Models
本文提出一个用于私有微调语言模型的元框架,采用参数高效更新(LoRA、adapter、Compacter),在隐私-效用权衡方面达到最先进水平,常在只更新极少数参数的情况下接近非私有表现。
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.
研究动机与目标
- 激励对大型预训练语言模型(LLMs)进行隐私保护微调。
- 开发一个元框架,通过添加轻量级可训练参数实现参数高效的私有微调。
- 证明使用轻量级适配器的差分私有微调在显著降低内存和计算成本的同时仍具竞争力的准确性。
- 证明在差分隐私下,容量更大的模型能保持更好的效用,并且该方法可扩展到NLP任务和NLG基准。
提出的方法
- 引入一个元框架,在一个冻结的预训练模型中添加一小组可训练参数,仅对这些参数使用 DPSGD 进行训练。
- 将框架实例化为多种参数高效方法:LoRA(低秩适配器)、适配器和 Compacter(张量化适配器)。
- 每种方法将更新限制在总参数的一小部分,从而在差分隐私下降低内存和计算。
- 使用对每个样本的梯度裁剪和高斯噪声(DPSGD),结合隐私记账(PRV Accountant)以保证 (ε,δ)-DP。
- 在 MNLI、SST-2、QQP、QNLI 上微调 RoBERTa,在 E2E 和 DART 数据集上微调 GPT-2,以比较 DP 与非 DP 的性能。
- 与完整微调和重新参数化梯度扰动(RGP)基线进行比较,并报告参数数量、内存和速度。
实验结果
研究问题
- RQ1在标准 NLP 任务上,差分隐私下的参数高效微调方法是否可以接近非私有微调的效用?
- RQ2模型规模如何影响 DP 微调中的隐私-效用权衡?
- RQ3在 DP 下,LoRA、适配器和 Compacter 相对于全量微调是否提供实际的内存和计算节省?
- RQ4DP 记账进展对报告的 ε 值和任务性能有何影响?
主要发现
- 采用参数高效方法的 DP 私有微调在各任务上达到最先进的隐私-效用权衡。
- 在 MNLI 上使用 RoBERTa-Large,ε=6.7 时,DP 微调达到 87.8% 的准确率,而非私有为 90.2%。
- 更大模型(RoBERTa-Large 与 RoBERTa-Base)在 DP 效用上表现更好,例如在同一隐私预算下 MNLI 为 87.8% 对 83.5%。
- LoRA、适配器和 Compacter 将训练参数数量(通常小于 1%)以及内存/计算成本显著低于全量微调和 RGP。
- 在自然语言生成方面,在 DP 预算下对 GPT-2 模型进行私有微调得到的 BLEU/ROUGE-L 分数接近非私有基线(例如 GPT-2-Large DP BLEU 43.1 对 47.5 非私有)。
- 该框架允许将轻量级模块插入到单一预训练模型中以实现多任务的 DP 扩展。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。