Casper: Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models
Not on the map. Why?
Abstract (arXiv)
Web-based Large Language Model (LLM) services have been widely adopted and have become an integral part of our Internet experience. Third-party plugins enhance the functionalities of LLM by enabling access to real-world data and services. However, the privacy consequences associated with these services and their third-party plugins are not well understood. Sensitive prompt data are stored, processed, and shared by cloud-based LLM providers and third-party plugins. In this paper, we propose Casper, a prompt sanitization technique that aims to protect user privacy by detecting and removing sensitive information from user inputs before sending them to LLM services. Casper runs entirely on the user's device as a browser extension and does not require any changes to the online LLM services. At the core of Casper is a three-layered sanitization mechanism consisting of a rule-based filter, a Machine Learning (ML)-based named entity recognizer, and a browser-based local LLM topic identifier. We evaluate Casper on a dataset of 4000 synthesized prompts and show that it can effectively filter out Personal Identifiable Information (PII) and privacy-sensitive topics with high accuracy, at 98.5% and 89.9%, respectively.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 23 of its 89 references that are in the map. First posted on arXiv 13 Aug 2024.
Builds on
23 of 89 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,592
- 2016Deep Learning with Differential Privacycited by 2,682
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 329
- 2018Scalable Private Learning with PATEcited by 266
- 2023Towards Building the Federated GPT: Federated Instruction Tuningcited by 184
- 2023FederatedScope-LLM: A Comprehensive Package for Fine-tuning Large Language Models in Federated Learningcited by 146
- 2022The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text Anonymizationcited by 94
- 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 80
- 2021Differential Privacy for Text Analytics via Natural Text Sanitizationcited by 74
11 more
- 2019Portuguese Named Entity Recognition using BERT-CRFcited by 73
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 70
- 2023FATE-LLM: A Industrial Grade Federated Learning Framework for Large Language Modelscited by 62
- 2023DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineercited by 56
- 2023Hide and Seek (HaS): A Lightweight Framework for Prompt Privacy Protectioncited by 37
- 2023Are Large Language Models Geospatially Knowledgeable?cited by 30
- 2024Artificial Intelligence Index Report 2024cited by 22
- 2024The Fire Thief Is Also the Keeper: Balancing Usability and Privacy in Promptscited by 13
- 2020Measuring the Effectiveness of Privacy Policies for Voice Assistant Applicationscited by 7
- 2017SGXIO: Generic Trusted I/O Path for Intel SGXcited by 3
- 2024SyzRetrospector: A Large-Scale Retrospective Study of Syzbotcited by 3
Built on by
Citing papers per year: 2025: 6; 2026: 2.
8 papers.
- 2025Can Textual Gradient Work in Federated Learning?cited by 14
- 2025Towards Harnessing the Collaborative Power of Large and Small Models for Domain Taskscited by 4
- 2025Can Large Language Models Really Recognize Your Name?cited by 4
- 2025Helping Large Language Models Protect Themselves: An Enhanced Filtering and Summarization Systemcited by 2
- 2025Guarding Your Conversations: Privacy Gatekeepers for Secure Interactions with Cloud-Based AI Modelscited by 1
- 2026Harnessing Hyperbolic Geometry for Harmful Prompt Detection and Sanitizationcited by 1
- 2025RL-Finetuned LLMs for Privacy-Preserving Synthetic Rewritingcited by 0
- 2026Learning to Refer: Client-Resolved Generation for Privacy-Aware Language Modelscited by 0
- 2026Learning to Refer: Client-Resolved Generation for Privacy-Aware Language Models26 Sep 2026
- 2026Harnessing Hyperbolic Geometry for Harmful Prompt Detection and Sanitization7 Apr 2026
- 2025RL-Finetuned LLMs for Privacy-Preserving Synthetic Rewriting25 Aug 2025
- 2025Guarding Your Conversations: Privacy Gatekeepers for Secure Interactions with Cloud-Based AI Models22 Aug 2025
- 2025Can Large Language Models Really Recognize Your Name?20 May 2025
- 2025Helping Large Language Models Protect Themselves: An Enhanced Filtering and Summarization System2 May 2025
- 2025Towards Harnessing the Collaborative Power of Large and Small Models for Domain Tasks24 Apr 2025
- 2025Can Textual Gradient Work in Federated Learning?27 Feb 2025