arXiv:2509.13625cs.LGcs.CL2025-09AAAI被引 2

用差分隐私保护大模型生成文本时的敏感信息泄露风险

Privacy Preserving In-Context-Learning Framework for Large Language Models

  • 基于差分隐私框架,无需微调模型即可保障推理隐私
  • 通过聚合每词输出分布,生成更长且连贯的合成文本
  • 融合私有与公开推理结果,提升生成质量且适合实际应用

大型语言模型在自然语言理解与生成方面已取得显著进展,但其可能暴露敏感信息,引发隐私问题。研究指出,攻击者可从提示中提取嵌入的敏感信息。本文提出一种新型隐私预测框架,可在不微调底层模型的前提下,通过差分隐私(DP)确保最坏情况下的信息泄露理论边界。该方法对私有记录进行推理,并聚合每个标记的输出分布,从而生成更长且连贯的合成文本。此外,我们设计了一种简单的混合操作,将私有与公开推理结果结合,进一步提升生成效果。实验表明,该方法在上下文学习(ICL)任务上优于现有最优方法,为高保真度隐私保护文本生成提供了新方向。代码已开源:https://github.com/bhusalb/privacy-preserving-icl。

原文摘要 · Abstract (English)

Large language models (LLMs) have significantly transformed natural language understanding and generation, but they raise privacy concerns due to potential exposure of sensitive information. Studies have highlighted the risk of information leakage, where adversaries can extract sensitive information embedded in the prompts. In this work, we introduce a novel private prediction framework for generating high-quality synthetic text with strong privacy guarantees. Our approach leverages the Differential Privacy (DP) framework to ensure worst-case theoretical bounds on information leakage without requiring any fine-tuning of the underlying models. The proposed method performs inference on private records and aggregates the resulting per-token output distributions. This enables the generation of longer and coherent synthetic text while maintaining privacy guarantees. Additionally, we propose a simple blending operation that combines private and public inference to further enhance utility. Empirical evaluations demonstrate that our approach outperforms previous state-of-the-art methods on in-context-learning (ICL) tasks, making it a promising direction for privacy-preserving text generation while maintaining high utility. Our code is available at https://github.com/bhusalb/privacy-preserving-icl.

隐私保护差分隐私文本生成

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