arXiv:2506.17353cs.CRcs.AI2025-06被引 13

提出新方法从微调大模型中提取私有数据,揭示安全风险。

Differentiation-Based Extraction of Proprietary Data from Fine-Tuned LLMs

  • 利用微调模型与预训练模型的置信度差异进行数据提取
  • 在多场景下提取效果优于现有方法,最高提升37%
  • 适合关注大模型安全、数据隐私的研究者

随着对领域特定和人类对齐的大语言模型需求增长,监督微调(SFT)技术被广泛应用。SFT数据集包含高价值的指令-响应对,成为潜在的数据提取目标。本文首次系统研究此关键问题,形式化定义问题并分析真实场景中SFT数据的攻击目标、类型与变体。基于对直接提取行为的分析,提出一种专为SFT模型设计的新方法——差异化数据提取(DDE),利用微调模型的置信度水平及其与预训练基模型的行为差异。在多个领域和场景的大量实验表明,DDE在所有攻击设置中均显著优于现有基线方法。为此,我们进一步提出一种防御机制,在最小影响模型性能的前提下有效缓解DDE攻击。研究揭示了微调大模型中的隐含数据泄露风险,为构建更安全模型提供重要参考。

原文摘要 · Abstract (English)

The increasing demand for domain-specific and human-aligned Large Language Models (LLMs) has led to the widespread adoption of Supervised Fine-Tuning (SFT) techniques. SFT datasets often comprise valuable instruction-response pairs, making them highly valuable targets for potential extraction. This paper studies this critical research problem for the first time. We start by formally defining and formulating the problem, then explore various attack goals, types, and variants based on the unique properties of SFT data in real-world scenarios. Based on our analysis of extraction behaviors of direct extraction, we develop a novel extraction method specifically designed for SFT models, called Differentiated Data Extraction (DDE), which exploits the confidence levels of fine-tuned models and their behavioral differences from pre-trained base models. Through extensive experiments across multiple domains and scenarios, we demonstrate the feasibility of SFT data extraction using DDE. Our results show that DDE consistently outperforms existing extraction baselines in all attack settings. To counter this new attack, we propose a defense mechanism that mitigates DDE attacks with minimal impact on model performance. Overall, our research reveals hidden data leak risks in fine-tuned LLMs and provides insights for developing more secure models.

大模型安全数据提取微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。