Introduction
Sharing text data online often involves a hidden privacy risk: "linguistic fingerprints." Even when names are removed, stylometry allows attackers to identify authors based on unique writing patterns. This paper introduces DP-Prompt, a novel approach that leverages Large Language Models (LLMs) to achieve Local Differential Privacy (LDP) through zero-shot paraphrasing.
Methodology: The DP-Prompt Framework
The core idea of DP-Prompt is to use the inherent abstraction capabilities of pretrained LLMs to rewrite text, stripping away idiosyncratic style while preserving semantic meaning.
Zero-Shot Prompting and Privacy Control
Unlike previous methods that require complex fine-tuning or word-level noise addition, DP-Prompt uses a simple zero-shot prompt: "Document: [Private Document] Paraphrase of the document:".
The privacy level is controlled by the sampling temperature ($T$). Higher temperatures introduce more randomness into the generation process, providing stronger mathematical privacy guarantees. The authors formally prove that this mechanism satisfies $\epsilon$-LDP by clipping model logits and adjusting temperature to bound the privacy risk.
Experimental Evaluation
The researchers evaluated DP-Prompt using the IMDB and Yelp datasets, focusing on two primary tasks:
- Utility: Sentiment classification (2-class).
- Privacy: Author identification (10-class).
The system was tested against various attacker models, including "Static" attackers (trained on clean data) and "Adaptive" attackers (who attempt to model the DP-Prompt defense itself).
Key Results
The experimental results demonstrate that DP-Prompt significantly outperforms traditional word-level and sentence-level differential privacy methods.
As shown in the results, using ChatGPT as the underlying model allows for nearly perfect preservation of sentiment utility. For instance, on the IMDB dataset, the method maintained the original sentiment F1 score while reducing the author identification success rate by 46% against static attackers. Larger, instruction-tuned models generally provided better results, though a performance gap remains between proprietary models like ChatGPT and current open-source alternatives.
Discussion and Future Work
While DP-Prompt is highly effective at hiding writing style, it does not automatically redact explicit Personally Identifiable Information (PII) like names or addresses unless specifically prompted. Additionally, the "API Paradox" remains a challenge: using powerful cloud-based LLMs requires sending private data to a third party, which conflicts with the "local" requirement of LDP. Future research should focus on improving the performance of local, open-source models to ensure privacy can be maintained entirely on-device.
Conclusion
DP-Prompt represents a significant step forward in text sanitization. By reframing LLMs as privacy-preserving tools rather than privacy risks, the authors provide a simple, scalable, and theoretically grounded method for protecting user identity in the age of large-scale text sharing.
Summary updated