The Fire Thief Is Also the Keeper: Balancing Usability and Privacy in Prompts

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shen, Zhili, Xi, Zihang, He, Ying, Tong, Wei, Hua, Jingyu, Zhong, Sheng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911927639212032
author Shen, Zhili
Xi, Zihang
He, Ying
Tong, Wei
Hua, Jingyu
Zhong, Sheng
author_facet Shen, Zhili
Xi, Zihang
He, Ying
Tong, Wei
Hua, Jingyu
Zhong, Sheng
contents The rapid adoption of online chatbots represents a significant advancement in artificial intelligence. However, this convenience brings considerable privacy concerns, as prompts can inadvertently contain sensitive information exposed to large language models (LLMs). Limited by high computational costs, reduced task usability, and excessive system modifications, previous works based on local deployment, embedding perturbation, and homomorphic encryption are inapplicable to online prompt-based LLM applications. To address these issues, this paper introduces Prompt Privacy Sanitizer (i.e., ProSan), an end-to-end prompt privacy protection framework that can produce anonymized prompts with contextual privacy removed while maintaining task usability and human readability. It can also be seamlessly integrated into the online LLM service pipeline. To achieve high usability and dynamic anonymity, ProSan flexibly adjusts its protection targets and strength based on the importance of the words and the privacy leakage risk of the prompts. Additionally, ProSan is capable of adapting to diverse computational resource conditions, ensuring privacy protection even for mobile devices with limited computing power. Our experiments demonstrate that ProSan effectively removes private information across various tasks, including question answering, text summarization, and code generation, with minimal reduction in task performance.
format Preprint
id arxiv_https___arxiv_org_abs_2406_14318
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Fire Thief Is Also the Keeper: Balancing Usability and Privacy in Prompts
Shen, Zhili
Xi, Zihang
He, Ying
Tong, Wei
Hua, Jingyu
Zhong, Sheng
Cryptography and Security
Artificial Intelligence
Computation and Language
The rapid adoption of online chatbots represents a significant advancement in artificial intelligence. However, this convenience brings considerable privacy concerns, as prompts can inadvertently contain sensitive information exposed to large language models (LLMs). Limited by high computational costs, reduced task usability, and excessive system modifications, previous works based on local deployment, embedding perturbation, and homomorphic encryption are inapplicable to online prompt-based LLM applications. To address these issues, this paper introduces Prompt Privacy Sanitizer (i.e., ProSan), an end-to-end prompt privacy protection framework that can produce anonymized prompts with contextual privacy removed while maintaining task usability and human readability. It can also be seamlessly integrated into the online LLM service pipeline. To achieve high usability and dynamic anonymity, ProSan flexibly adjusts its protection targets and strength based on the importance of the words and the privacy leakage risk of the prompts. Additionally, ProSan is capable of adapting to diverse computational resource conditions, ensuring privacy protection even for mobile devices with limited computing power. Our experiments demonstrate that ProSan effectively removes private information across various tasks, including question answering, text summarization, and code generation, with minimal reduction in task performance.
title The Fire Thief Is Also the Keeper: Balancing Usability and Privacy in Prompts
topic Cryptography and Security
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2406.14318