Abstract
We present Sentence-level Differential Privacy (SentDP), a novel privacy framework for document embeddings that ensures individual sentences remain indistinguishable. We introduce DeepCandidate, a mechanism that leverages Tukey Depth and public candidate pools to maintain high utility in high-dimensional spaces. Our results across multiple datasets demonstrate that DeepCandidate significantly outperforms existing word-level privacy methods while providing a more interpretable guarantee.
Introduction
In the field of Natural Language Processing (NLP), balancing model utility with data privacy is a critical challenge. Traditional privacy techniques often operate at the word level, such as "Metric Differential Privacy," which swaps individual words for similar neighbors. However, word-level protection often fails to obscure sensitive themes spread across a document and is difficult to explain to non-technical users.
To address these limitations, we propose Sentence-level Differential Privacy (SentDP). This framework provides a human-readable guarantee: no single sentence in a document will uniquely identify the resulting output.
The DeepCandidate Mechanism
Applying standard Differential Privacy (DP) to high-dimensional document embeddings typically requires adding substantial noise, which often renders the embeddings useless for downstream tasks. Our proposed mechanism, DeepCandidate, avoids this "utility collapse" by selecting representative embeddings from a pool of public, non-private documents.
DeepCandidate relies on three primary components:
- Public Candidate Sampling: Instead of perturbing private data, the system identifies a representative from a pre-existing public pool.
- Tukey Depth: We utilize Tukey Depth, a robust statistical measure, to select "deep" candidates that are centrally located within the distribution of the private document's sentence embeddings. This ensures the selected candidate is semantically representative of the original text.
- Cluster-Preserving Encoders: We employ a pre-trained sentence encoder ($G'$) designed to cluster semantically similar documents, making it easier to find high-quality public representatives.
The final selection is made using the Exponential Mechanism, ensuring the $\epsilon$-SentDP guarantee is strictly maintained.
Experimental Results
We evaluated DeepCandidate on three diverse datasets: GoodReads (book reviews), 20 News Groups (news posts), and IMDB (movie reviews).
Our findings indicate that DeepCandidate consistently outperforms baselines such as "Truncation" and word-level "Metric DP." In high-privacy regimes ($\epsilon < 10$), our method maintains high F1 scores for topic and sentiment classification, while baseline methods often degrade to the level of random guessing. Notably, the mechanism's performance improves with document length, as more sentences provide a clearer distribution for Tukey Depth to operate upon.
Conclusion
SentDP offers a robust and interpretable alternative to word-level privacy. By shifting the focus from noise addition to public candidate selection, DeepCandidate effectively bypasses the curse of dimensionality. Future work will explore the use of generative models to create synthetic candidates, potentially further enhancing the semantic alignment between private documents and their public representations.
Summary updated