[论文解读] Open LLMs are Necessary for Current Private Adaptations and Outperform their Closed Alternatives
本文评估了近期针对闭源大语言模型(LLM)的私有微调方法,发现它们均会将私有查询数据泄露给 LLM 提供商,在四分之三的情况下会泄露大量训练数据,性能低于在开源 LLM 上进行的私有微调,且成本更高。作者得出结论:如今要实现高性能、低成本且真正保护隐私的 LLM 微调,开源 LLM 是必不可少的。
While open Large Language Models (LLMs) have made significant progress, they still fall short of matching the performance of their closed, proprietary counterparts, making the latter attractive even for the use on highly private data. Recently, various new methods have been proposed to adapt closed LLMs to private data without leaking private information to third parties and/or the LLM provider. In this work, we analyze the privacy protection and performance of the four most recent methods for private adaptation of closed LLMs. By examining their threat models and thoroughly comparing their performance under different privacy levels according to differential privacy (DP), various LLM architectures, and multiple datasets for classification and generation tasks, we find that: (1) all the methods leak query data, i.e., the (potentially sensitive) user data that is queried at inference time, to the LLM provider, (2) three out of four methods also leak large fractions of private training data to the LLM provider while the method that protects private data requires a local open LLM, (3) all the methods exhibit lower performance compared to three private gradient-based adaptation methods for local open LLMs, and (4) the private adaptation methods for closed LLMs incur higher monetary training and query costs than running the alternative methods on local open LLMs. This yields the conclusion that, to achieve truly privacy-preserving LLM adaptations that yield high performance and more privacy at lower costs, taking into account current methods and models, one should use open LLMs.
研究动机与目标
- 评估近期闭源 LLM 私有微调方法的隐私保障与性能权衡。
- 将这些方法与在本地开源 LLM 上使用的私有微调技术进行比较。
- 评估在私有微调下,闭源与开源 LLM 的训练与推理成本。
- 确定当前闭源 LLM 私有微调方法是否真正实现了隐私保护。
- 提供实证证据,证明开源 LLM 在实现高性能、私有微调方面具有优势。
提出的方法
- 作者分析了四种近期针对闭源 LLM 的私有微调方法:DP-ICL、PromptPATE、DP-FewShotGen(1)、DP-FewShotGen(2) 和 DP-OPT。
- 他们在多种 LLM 架构、数据集和任务类型(分类与生成)下,于差分隐私(DP)约束条件下评估这些方法。
- 本研究将闭源 LLM 微调方法的性能与在本地开源 LLM 上进行的基于梯度的私有微调进行对比。
- 通过在推理和提示生成过程中,测量查询数据与训练数据泄露给 LLM 提供商的程度,来衡量隐私泄露。
- 训练与推理的经济成本通过开源 LLM 的云硬件定价和闭源 LLM 的 API 成本进行估算。
- 分析涵盖十种最先进模型:Vicuna、Llama 3、LLaMA、BERT、RoBERTa、Pythia、Claude、GPT-3(Babbage、Davinci)和 GPT-4 Turbo。
实验结果
研究问题
- RQ1当前闭源 LLM 私有微调方法是否能防止私有查询数据泄露给 LLM 提供商?
- RQ2这些方法在多大程度上会将私有训练数据泄露给 LLM 提供商?
- RQ3闭源 LLM 私有微调方法的性能与在开源 LLM 上进行的私有微调相比如何?
- RQ4闭源与开源 LLM 上私有微调的训练与推理成本差异为何?
- RQ5在开源 LLM 上的私有微调能否实现比当前闭源 LLM 方法更优的隐私-效用权衡?
主要发现
- 所有四种闭源 LLM 私有微调方法在推理过程中均会将私有查询数据泄露给 LLM 提供商,违反了用户隐私。
- 四分之三的方法还向 LLM 提供商泄露了大量私有训练数据,表明数据保护不足。
- 虽有一种方法避免了训练数据泄露,但其需要本地开源 LLM 进行提示工程,增加了系统复杂性。
- 所有闭源 LLM 微调方法的下游性能均低于在本地开源 LLM 上进行的基于梯度的私有微调,即使使用更小的开源模型也是如此。
- 由于 API 访问费用,闭源 LLM 上私有微调的训练与查询成本显著高于等效的开源 LLM 微调。
- 本研究结论为:在当前环境下,要实现高性能、低成本且真正保护隐私的 LLM 微调,开源 LLM 是必不可少的。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。