2025-05-22 · 专家 · 自然语言处理

Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!

该论文揭示了开源大型语言模型(LLM)微调过程中一种新的数据泄露风险:攻击者可以通过简单的后门训练,仅需访问微调后的模型,即可提取私有的下游微调数据。

更新于 2025-05-23。作者:Zhexin Zhang、Yuhao Sun、Junxiao Yang、Shiyao Cui、Hongning Wang、Minlie Huang。

中文摘要

使用私有数据对开源大型语言模型 (LLM) 进行微调,现在已成为下游开发者获取特定任务 LLM 的标准实践。令人惊讶的是,我们揭示了这种实践中一种新的且令人担忧的风险:开源 LLM 的创建者可以通过简单的后门训练,仅需访问微调后的下游模型的黑盒访问权限,就能提取私有的下游微调数据。我们在 4 个常用的开源模型(参数量从 30 亿到 320 亿)和 2 个下游数据集上进行了全面的实验,结果表明提取性能可能非常高:在实际情况下,最多可以完美提取总共 5000 个样本中的 76.3% 的下游微调数据(查询),在更理想的设置下,成功率可以提高到 94.9%。我们还探索了一种基于检测的防御策略,但发现它可以通过改进的攻击绕过。总而言之,我们强调了这种新发现的微调数据泄露风险的紧迫性,并希望后续研究能够推动解决这一令人担忧的风险的进展。我们实验中使用的代码和数据已发布在 https://github.com/thu-coai/Backdoor-Data-Extraction。

英文摘要

Fine-tuning on open-source Large Language Models (LLMs) with proprietary data is now a standard practice for downstream developers to obtain task-specific LLMs. Surprisingly, we reveal a new and concerning risk along with the practice: the creator of the open-source LLMs can later extract the private downstream fine-tuning data through simple backdoor training, only requiring black-box access to the fine-tuned downstream model. Our comprehensive experiments, across 4 popularly used open-source models with 3B to 32B parameters and 2 downstream datasets, suggest that the extraction performance can be strikingly high: in practical settings, as much as 76.3% downstream fine-tuning data (queries) out of a total 5,000 samples can be perfectly extracted, and the success rate can increase to 94.9% in more ideal settings. We also explore a detection-based defense strategy but find it can be bypassed with improved attack. Overall, we highlight the emergency of this newly identified data breaching risk in fine-tuning, and we hope that more follow-up research could push the progress of addressing this concerning risk. The code and data used in our experiments are released at https://github.com/thu-coai/Backdoor-Data-Extraction.

解读

一句话总结

该论文揭示了开源大型语言模型(LLM)微调过程中一种新的数据泄露风险:攻击者可以通过简单的后门训练,仅需访问微调后的模型,即可提取私有的下游微调数据。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt