English

Pr$\epsilon\epsilon$mpt: Sanitizing Sensitive Prompts for LLMs

Cryptography and Security 2025-08-18 v2 Machine Learning

Abstract

The rise of large language models (LLMs) has introduced new privacy challenges, particularly during inference where sensitive information in prompts may be exposed to proprietary LLM APIs. In this paper, we address the problem of formally protecting the sensitive information contained in a prompt while maintaining response quality. To this end, first, we introduce a cryptographically inspired notion of a prompt sanitizer which transforms an input prompt to protect its sensitive tokens. Second, we propose Prϵϵ\epsilon\epsilonmpt, a novel system that implements a prompt sanitizer. Prϵϵ\epsilon\epsilonmpt categorizes sensitive tokens into two types: (1) those where the LLM's response depends solely on the format (such as SSNs, credit card numbers), for which we use format-preserving encryption (FPE); and (2) those where the response depends on specific values, (such as age, salary) for which we apply metric differential privacy (mDP). Our evaluation demonstrates that Prϵϵ\epsilon\epsilonmpt is a practical method to achieve meaningful privacy guarantees, while maintaining high utility compared to unsanitized prompts, and outperforming prior methods

Keywords

Cite

@article{arxiv.2504.05147,
  title  = {Pr$\epsilon\epsilon$mpt: Sanitizing Sensitive Prompts for LLMs},
  author = {Amrita Roy Chowdhury and David Glukhov and Divyam Anshumaan and Prasad Chalasani and Nicolas Papernot and Somesh Jha and Mihir Bellare},
  journal= {arXiv preprint arXiv:2504.05147},
  year   = {2025}
}
R2 v1 2026-06-28T22:49:32.828Z