DP-MIND: Differentially private memory-guided Long context Inference
Zhihao Liu, Yitian Cheng, Shuang Liu, Rui Wen, Yuke Hu, Zhan Qin
Abstract
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.
Create a lesson
Related papers
History Replays Itself: Unleashing Long-Context Capability in Linear Attention
Shared title terminologycs.AILi Nanbo, Firas Laakom, Yilan Zhang et al.
Recall What Is Missing: Composing Evidence from Long-Term Agent Memory
Shared title terminologycs.AIQi Feng, Jicong Fan
OntoAR-HAR: Ontology-Guided Agentic RAG with Personalized Memory for Human Activity Recognition
Shared title terminologycs.AIXiangqing Lu, Tao Zhu, Liang Yu et al.
Emotion-Aware and Context-Grounded Dialogue Agents for Personalized Video Game Interactions
Shared title terminologycs.AIMichael Adjeisah, Jin Zhang, Pierluigi Vito Amadori et al.
SAE-Audit: Clinical-Trial Prediction via Inference-Time Optimization of Black-Box LLMs Audited by Sparse Autoencoder Evidence
Shared title terminologycs.AIJunbo Shen
NoeVera: Can Knowledge Guide Experiments and Experiments Refine Knowledge?
Shared title terminologycs.AIPinaki Prasad Guha Neogi, Spyros Mastorakis, Ankur Mallick et al.