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

隐私感知解码:缓解检索增强生成中大语言模型的隐私泄露

Privacy-Aware Decoding: Mitigating Privacy Leakage of Large Language Models in Retrieval-Augmented Generation

Emory University(埃默里大学);Illinois Institute of Technology(伊利诺伊理工学院)

Haoran Wang, Xiongxiao Xu, Baixiang Huang, Kai Shu

AI总结:

提出一种轻量级推理时防御方法PAD,通过在解码过程中注入校准高斯噪声,结合置信度筛选、敏感度估计和上下文感知噪声校准,在RAG系统中平衡隐私保护与生成质量,并利用Rényi差分隐私跟踪累积隐私损失。

摘要:

检索增强生成(RAG)通过将输出条件化于外部知识源来增强大语言模型(LLM)的事实准确性。然而,当检索涉及私人或敏感数据时,RAG系统容易受到提取攻击,从而通过生成的响应泄露机密信息。我们提出隐私感知解码(PAD),一种轻量级的推理时防御方法,在生成过程中自适应地将校准的高斯噪声注入到token logits中。PAD集成了基于置信度的筛选以选择性保护高风险token、高效的敏感度估计以最小化不必要的噪声,以及上下文感知的噪声校准以平衡隐私与生成质量。Rényi差分隐私(RDP)会计机制严格跟踪累积隐私损失,从而为敏感输出提供明确的每响应$(\varepsilon, δ)$-DP保证。与需要重新训练或语料库级过滤的先前方法不同,PAD是模型无关的,并且完全在解码时运行,计算开销极小。在三个真实世界数据集上的实验表明,PAD在保持响应实用性的同时显著减少了私有信息泄露,优于现有的基于检索和后处理的防御方法。我们的工作通过解码策略在缓解RAG中的隐私风险方面迈出了重要一步,为敏感领域中的通用和可扩展隐私解决方案铺平了道路。我们的代码可在https://github.com/wang2226/PAD获取。

英文摘要:

Retrieval-Augmented Generation (RAG) enhances the factual accuracy of large language models (LLMs) by conditioning outputs on external knowledge sources. However, when retrieval involves private or sensitive data, RAG systems are susceptible to extraction attacks that can leak confidential information through generated responses. We propose Privacy-Aware Decoding (PAD), a lightweight, inference-time defense that adaptively injects calibrated Gaussian noise into token logits during generation. PAD integrates confidence-based screening to selectively protect high-risk tokens, efficient sensitivity estimation to minimize unnecessary noise, and context-aware noise calibration to balance privacy with generation quality. A \renyi Differential Privacy (RDP) accountant rigorously tracks cumulative privacy loss, enabling explicit per-response $(\varepsilon, δ)$-DP guarantees for sensitive outputs. Unlike prior approaches requiring retraining or corpus-level filtering, PAD is model-agnostic and operates entirely at decoding time with minimal computational overhead. Experiments on three real-world datasets demonstrate that PAD substantially reduces private information leakage while preserving response utility, outperforming existing retrieval- and post-processing-based defenses. Our work takes an important step toward mitigating privacy risks in RAG via decoding strategies, paving the way for universal and scalable privacy solutions in sensitive domains. Our code is available: https://github.com/wang2226/PAD.

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

↑