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

DP-MIND:差分隐私的记忆引导长上下文推理

DP-MIND: Differentially private memory-guided Long context Inference

Zhejiang University(浙江大学);Ant Group(蚂蚁集团);Institute of Science Tokyo(东京科学大学);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学)

Zhihao Liu, Yitian Cheng, Shuang Liu, Rui Wen, Yuke Hu, Zhan Qin

AI总结:

针对现有差分隐私推理方法难以处理百万token级长上下文的问题,本文提出DP-MIND框架,通过记忆引导结合强化学习优化与局部去噪,实现了更优的隐私保护、可扩展性和效用。

摘要:

大模型即服务(LLM-as-a-Service)已成为访问大语言模型的主流范式,无需本地部署即可使用,但用户查询可能包含敏感或机密上下文,引发严重隐私问题。差分隐私(DP)是保护此类输入的原则性方法,但现有DP推理方法主要针对短或中等上下文场景,受限于上下文容量,且在DP扰动下效用严重下降,难以处理百万token级输入。本文提出DP-MIND,一种记忆引导框架,可将差分隐私推理扩展至百万token上下文。DP-MIND通过局部扰动输入、用紧凑记忆分块处理输入,该记忆保留序列中与任务相关的信息,实现隐私长上下文推理。为使该记忆对DP噪声具有鲁棒性,我们采用强化学习,基于最终答案正确性和记忆一致性,直接在扰动输入上优化记忆构建策略。我们还通过局部去噪模块恢复被扰动破坏的答案片段,无需将原始上下文暴露给外部模型。我们对DP-MIND进行了理论隐私分析,并在多个上下文长度达百万token级的长上下文基准上开展了大量实证分析,结果表明DP-MIND在可扩展性和效用上始终优于现有DP及长上下文推理基线。

英文摘要:

LLM-as-a-Service has become a dominant paradigm for accessing large language models without requiring local deployment. However, the process raises severe privacy concerns when user queries may include sensitive or confidential contexts. Differential privacy (DP) provides a principled approach to protecting such inputs, but existing DP inference methods are primarily designed for short- or moderate-context settings and struggle with million-token-scale inputs due to limited context capacity and severe utility degradation under DP perturbation. In this paper, we propose DP-MIND, a memory-guided framework that scales differentially private inference to million-token contexts. DP-MIND enables private long-context inference by locally perturbing the input and processing it chunk by chunk with a compact memory that preserves task-relevant information across the sequence. To make this memory robust to DP noise, we optimize the memory construction policy directly on perturbed inputs using reinforcement learning, guided by both final answer correctness and memory consistency. We further recover perturbation-corrupted answer spans through a local denoising module without exposing the original context to the external model. We provide theoretical privacy analysis of DP-MIND and further conduct extensive empirical analysis across multiple long-context benchmarks with context lengths up to the million-token scale, demonstrating that DP-MIND consistently outperforms existing DP and long-context inference baselines in both scalability and utility.

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

↑