Large Language Models (LLMs) generate responses based on user prompts. Often, these prompts may contain highly sensitive information, including personally identifiable information (PII), which could be exposed to third parties hosting these models. In this work, we propose a new method to sanitize user prompts. Our mechanism uses the randomized response mechanism of differential privacy to randomly and independently perturb each character in a word. The perturbed text is then sent to a remote LLM, which first performs a prompt restoration and subsequently performs the intended downstream task. The idea is that the restoration will be able to reconstruct non-sensitive words even when they are perturbed due to cues from the context, as well as the fact that these words are often very common. On the other hand, perturbation would make reconstruction of sensitive words difficult because they are rare. We experimentally validate our method on two datasets, i2b2/UTHealth and Enron, using two LLMs: Llama-3.1 8B Instruct and GPT-4o mini. We also compare our approach with a word-level differentially private mechanism, and with a rule-based PII redaction baseline, using a unified privacy-utility evaluation. Our results show that sensitive PII tagged in these datasets are reconstructed at a rate close to the theoretical rate of reconstructing completely random words, whereas non-sensitive words are reconstructed at a much higher rate. Our method has the advantage that it can be applied without explicitly identifying sensitive pieces of information in the prompt, while showing a good privacy-utility tradeoff for downstream tasks.
PromptGraph: Graph-Guided Prompt Sanitization for Balancing Privacy and Utility in LLM Inference
School of Computer Science and Information Engineering, Hefei University of Technology(计算机科学与信息工程学院,合肥工业大学);International College Beijing, China Agricultural University(北京国际学院,中国农业大学)
Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuning
CISE, University of Florida, FL, USA(佛罗里达大学计算机与信息科学系);North Carolina State University, NC, USA(北卡罗来纳州立大学);Washington State University, WA, USA(华盛顿州立大学);Seoul National University of Science and Technology, South Korea(韩国科学技术大学)
Is External Database Protection Static in Retrieval-Augmented Generation? Rethinking Privacy Preservation under Dynamic Queries
School of Computer Science and Technology, Beijing Institute of Technology(北京理工大学计算机学院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
SkillWatermark: An Embedded Skill Watermark of Progressive Privacy Inference via Benign Prompts
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);CASIC Research Institute of Intelligent Decision Engineering(中国航天科工集团智能决策工程研究院)
SharedRequest: Privacy-Preserving Model-Agnostic Inference for Large Language Models
National University of Singapore (Chongqing) Research Institute(新加坡国立大学(重庆)研究院);Chongqing Key Laboratory of Trusted Perception and Interaction Technology for Intelligent and Connected Vehicles(重庆智能网联车辆可信感知与交互技术重点实验室);National University of Singapore(新加坡国立大学);Hebrew University of Jerusalem(耶路撒冷希伯来大学);State Key Laboratory of Intelligent Vehicle Safety Technology, Chongqing, China(重庆智能车辆安全技术国家重点实验室);CHONGQING CHANGAN AUTOMOBILE Co., Ltd(重庆长安汽车有限公司)
InferDPT: Privacy-Preserving Inference for Closed-box Large Language Model
University of Science and Technology of China(中国科学技术大学);Key Laboratory of Cyberspace Security, Ministry of Education, China(教育部网络安全重点实验室);CFAR, A*STAR(先进研究与工程研究院);Nanyang Technological University(南洋理工大学);Zhejiang University(浙江大学)
PrivCode++: Latent-Conditioned Differentially Private Code Generation for Comprehensive Guarantees
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);University of Virginia(弗吉尼亚大学);Alibaba Qwen(阿里巴巴通义实验室);Monash University(蒙纳士大学);University of Alberta(阿尔伯塔大学);National University of Singapore(新加坡国立大学);Zhejiang University(浙江大学);University of North Carolina at Greensboro(北卡罗来纳大学格林斯伯勒分校)
University of Michigan, Ann Arbor(密歇根大学安阿伯分校);University of Toronto(多伦多大学);Vector Institute(向量研究所);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Langroid Incorporated(Langroid公司);University of California, San Diego(加州大学圣地亚哥分校)
RAG-CT: Mitigating Privacy Risks on Retrieval-Augmented Generation Systems via Scanning Prompt Distribution
University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校);City University of Hong Kong(香港城市大学);Virginia Tech(弗吉尼亚理工大学);University of South Florida(南佛罗里达大学);Rochester Institute of Technology(罗切斯特理工学院)