arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.15042cs.CRcs.CL
收藏

利用差分隐私对大语言模型进行隐私微调

Privately Fine-Tuning Large Language Models with Differential Privacy

University of South Florida(南佛罗里达大学);University of Arizona(亚利桑那大学)

Rouzbeh Behnia, Mohamamdreza Ebrahimi, Jason Pacheco, Balaji Padmanabhan

AI总结:

针对大语言模型微调场景下现有差分隐私理论假设不匹配的问题,提出基于Edgeworth会计师的有限样本隐私微调框架\tewtune,在保障隐私的同时降低噪声并提升模型性能。

摘要:

预训练大语言模型(LLM)是现代人工智能的核心组成部分,已在复杂AI任务中实现了突破性性能。拥有昂贵基础设施的大型AI公司能够从零开发并训练这些具有数十亿乃至数亿参数的大模型。第三方机构、研究人员和从业者越来越多地采用这些预训练模型,并在自有私有数据上对其进行微调,以完成下游AI任务。但已有研究表明,攻击者可以从这些大语言模型中提取或重构出确切的训练样本,这可能导致个人身份信息泄露,该问题已引发人们对大语言模型隐私性的深度担忧。差分隐私(DP)提供了一个严谨的框架,可在大语言模型的训练或微调过程中添加噪声,使得训练数据提取变得不可行(即成功概率低至密码学意义上的极小水平)。尽管现有多数研究提供的理论隐私保障均假设模型是在渐近场景下经过多轮训练迭代从零学习的,但这一假设在训练迭代次数显著更少的微调场景中并不成立。为填补这一研究空白,我们提出了\tewtune,这是一款基于Edgeworth会计师(Edgeworth accountant)的大语言模型微调差分隐私框架,具备有限样本隐私保障。我们在四项成熟的自然语言理解(NLU)任务上的实验结果表明,\tewtune在为大语言模型微调过程提供隐私保障的同时,可将引入的噪声最高降低5.6%,并且在所有NLU任务上将当前最优大语言模型的性能最高提升1.1%。我们已开源实现代码,以供广泛应用和公开测试。

英文摘要:

Pre-trained Large Language Models (LLMs) are an integral part of modern AI that have led to breakthrough performances in complex AI tasks. Major AI companies with expensive infrastructures are able to develop and train these large models with billions and millions of parameters from scratch. Third parties, researchers, and practitioners are increasingly adopting these pre-trained models and fine-tuning them on their private data to accomplish their downstream AI tasks. However, it has been shown that an adversary can extract/reconstruct the exact training samples from these LLMs, which can lead to revealing personally identifiable information. The issue has raised deep concerns about the privacy of LLMs. Differential privacy (DP) provides a rigorous framework that allows adding noise in the process of training or fine-tuning LLMs such that extracting the training data becomes infeasible (i.e., with a cryptographically small success probability). While the theoretical privacy guarantees offered in most extant studies assume learning models from scratch through many training iterations in an asymptotic setting, this assumption does not hold in fine-tuning scenarios in which the number of training iterations is significantly smaller. To address the gap, we present \ewtune, a DP framework for fine-tuning LLMs based on Edgeworth accountant with finite-sample privacy guarantees. Our results across four well-established natural language understanding (NLU) tasks show that while \ewtune~adds privacy guarantees to LLM fine-tuning process, it directly contributes to decreasing the induced noise to up to 5.6\% and improves the state-of-the-art LLMs performance by up to 1.1\% across all NLU tasks. We have open-sourced our implementations for wide adoption and public testing purposes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑