mlsanityData to 7 Oct 2026

Casper: Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models

arXiv 2408.07004 ↗First posted 13 Aug 2024cs.CR cs.AIcited by 8

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,592
  4. 2016Deep Learning with Differential Privacycited by 2,682
  5. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
  6. 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 329
  7. 2018Scalable Private Learning with PATEcited by 266
  8. 2023Towards Building the Federated GPT: Federated Instruction Tuningcited by 184
  9. 2023FederatedScope-LLM: A Comprehensive Package for Fine-tuning Large Language Models in Federated Learningcited by 146
  10. 2022The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text Anonymizationcited by 94
  11. 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 80
  12. 2021Differential Privacy for Text Analytics via Natural Text Sanitizationcited by 74
11 more
  1. 2019Portuguese Named Entity Recognition using BERT-CRFcited by 73
  2. 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 70
  3. 2023FATE-LLM: A Industrial Grade Federated Learning Framework for Large Language Modelscited by 62
  4. 2023DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineercited by 56
  5. 2023Hide and Seek (HaS): A Lightweight Framework for Prompt Privacy Protectioncited by 37
  6. 2023Are Large Language Models Geospatially Knowledgeable?cited by 30
  7. 2024Artificial Intelligence Index Report 2024cited by 22
  8. 2024The Fire Thief Is Also the Keeper: Balancing Usability and Privacy in Promptscited by 13
  9. 2020Measuring the Effectiveness of Privacy Policies for Voice Assistant Applicationscited by 7
  10. 2017SGXIO: Generic Trusted I/O Path for Intel SGXcited by 3
  11. 2024SyzRetrospector: A Large-Scale Retrospective Study of Syzbotcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 2.

8 papers.