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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Chong, Chun Jie, Hou, Chenxi, Yao, Zhihao, Talebi, Seyed Mohammadjavad Seyed
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908688781934592
author Chong, Chun Jie
Hou, Chenxi
Yao, Zhihao
Talebi, Seyed Mohammadjavad Seyed
author_facet Chong, Chun Jie
Hou, Chenxi
Yao, Zhihao
Talebi, Seyed Mohammadjavad Seyed
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_07004
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Casper: Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models
Chong, Chun Jie
Hou, Chenxi
Yao, Zhihao
Talebi, Seyed Mohammadjavad Seyed
Cryptography and Security
Artificial Intelligence
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.
title Casper: Prompt Sanitization for Protecting User Privacy in Web-Based Large Language Models
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2408.07004