Skip to main content
QUICK REVIEW

[Paper Review] Hide and Seek (HaS): A Lightweight Framework for Prompt Privacy Protection

Yu Chen, Tingxin Li|arXiv (Cornell University)|Sep 6, 2023
Privacy-Preserving Technologies in DataComputer Science5 citations
TL;DR

Hide and Seek (HaS) is a lightweight, locally deployable framework that protects user prompt privacy in LLM applications by anonymizing sensitive entities before sending prompts to cloud-based LLMs and de-anonymizing outputs using a small local model. It achieves strong privacy protection with minimal utility loss, outperforming prior methods in both privacy resilience and task performance across translation and classification tasks.

ABSTRACT

Numerous companies have started offering services based on large language models (LLM), such as ChatGPT, which inevitably raises privacy concerns as users' prompts are exposed to the model provider. Previous research on secure reasoning using multi-party computation (MPC) has proven to be impractical for LLM applications due to its time-consuming and communication-intensive nature. While lightweight anonymization techniques can protect private information in prompts through substitution or masking, they fail to recover sensitive data replaced in the LLM-generated results. In this paper, we expand the application scenarios of anonymization techniques by training a small local model to de-anonymize the LLM's returned results with minimal computational overhead. We introduce the HaS framework, where "H(ide)" and "S(eek)" represent its two core processes: hiding private entities for anonymization and seeking private entities for de-anonymization, respectively. To quantitatively assess HaS's privacy protection performance, we propose both black-box and white-box adversarial models. Furthermore, we conduct experiments to evaluate HaS's usability in translation and classification tasks. The experimental findings demonstrate that the HaS framework achieves an optimal balance between privacy protection and utility.

Motivation & Objective

  • To address the growing privacy risk in LLM services where user prompts are exposed to providers.
  • To overcome the limitations of existing methods—such as MPC’s high overhead and anonymization’s irreversibility—by enabling local, reversible privacy protection.
  • To design a plug-and-play system that preserves output utility while protecting named entities in free-text prompts.
  • To evaluate privacy resilience using black-box and white-box adversarial models, ensuring robustness against decryption attacks.
  • To open-source datasets and models to accelerate research in privacy-preserving LLMs.

Proposed method

  • The HaS framework uses two core processes: 'Hide' (anonymization) and 'Seek' (de-anonymization) to protect and restore private entities locally.
  • Two anonymization schemes are implemented: a generative approach using a fine-tuned Bloomz model (560M/1.7B parameters) and a label-based approach using pre-trained NER models.
  • The de-anonymization process employs a separate small Bloomz model (fine-tuned on GPT-3.5-turbo-annotated data) to restore original entities from LLM outputs with low computational cost.
  • Privacy protection is evaluated using black-box and white-box adversarial models trained to break the anonymization, measuring success via precision, recall, and F1 scores.
  • The framework supports local deployment without modifying cloud-based LLMs, ensuring transparency and compatibility.
  • Datasets and models are released to support reproducibility and further research in prompt privacy.

Experimental results

Research questions

  • RQ1Can a lightweight, local framework effectively protect sensitive entities in LLM prompts without relying on computationally heavy MPC or DP?
  • RQ2How well does the HaS framework preserve output utility in downstream tasks like translation and text classification after anonymization and de-anonymization?
  • RQ3What is the resilience of HaS’s anonymization schemes against adversarial decryption attacks under black-box and white-box settings?
  • RQ4How does the choice of anonymization method (generative vs. label-based) affect privacy protection strength and utility loss?
  • RQ5To what extent can the de-anonymization model accurately restore original entities despite information loss from anonymization?

Key findings

  • The generative anonymization scheme with the 560M model achieved a micro-F1 of 91.36% on the classification task, with only a 0.17% increase in F1 compared to the no-obscure baseline, indicating minimal utility loss.
  • The label-based scheme showed a 1.16% drop in micro-F1, suggesting higher utility degradation, but still maintained strong performance.
  • In translation tasks, the METEOR score dropped by 5.65% for the 560M generative model and 4.86% for the label-based model, demonstrating acceptable utility retention.
  • The white-box attack model achieved a macro-F1 of 0.3212 on the generative scheme, indicating that even with full model access, the scheme remains resilient.
  • The black-box attack model achieved a macro-F1 of 0.3147, showing that the anonymization is robust even under limited knowledge.
  • The seeker model performed better on label-based obscured text, achieving higher de-anonymization accuracy, suggesting label-based obfuscation may be more reversible despite higher information loss.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.