Pr$εε$mpt: A Sensitive Prompt Sanitization Method for Large Language ModelsPr$εε$mpt: Sanitizing Sensitive Prompts for LLMs
AI summary
The researchers propose the concept of a cryptography-inspired prompt sanitizer and implement the Pr$εε$mpt system, which provides formal protection for sensitive information in prompts when calling proprietary LLM APIs. The system divides sensitive tokens into two categories: those whose answers depend only on format (such as SSNs and credit card numbers) are handled with format-preserving encryption (FPE), and those whose answers depend on specific values (such as age and salary) are handled with metric differential privacy (mDP). Evaluation shows that the method provides meaningful privacy guarantees, maintains high utility compared with unsanitized prompts, and outperforms existing methods.