DP-COMET: A Differential Privacy Contextual Obfuscation MEchanism for Texts in Natural Language Processing
Protecting sensitive information within textual data strongly depends on the context in which the data is presented. However, current privacy-preserving obfuscation mechanisms based on epsilon-Differential Privacy (DP) produce an obfuscated private text, changing the original phrase term-by-term without considering the context in which such a term is placed. This paper introduces DP-COMET, an epsilon-DP obfuscation mechanism that evaluates a text's context before producing its private version. The mechanism defines a representation of the original text that considers the entire context within the text, producing an obfuscated version after adding noise to this representation and depending on the privacy parameter epsilon. We test DP-COMET on different Natural Language Processing (NLP) and Information Retrieval (IR) downstream tasks, and our findings show that our obfuscation mechanism not only achieves comparable performance results to traditional term-by-term mechanisms but also produces obfuscated texts less similar to the originals. To promote the reproducibility of DP-COMET, we make the code publicly available at https://github.com/Kekkodf/DP-COMET.
Authors
- Nicola Ferro (ORCID: https://orcid.org/0000-0001-9219-6239)
- Guglielmo Faggioli (ORCID: https://orcid.org/0000-0002-5070-2049)
- Francesco Luigi De Faveri (ORCID: https://orcid.org/0009-0005-8968-9485)
Institutions
- University of Padua (IT)
Publication Details
- Published
- 2025-11-08
- DOI
- https://doi.org/10.1145/3746252.3760888
- Citations
- 1
- Primary Topic
- Privacy-Preserving Technologies in Data
- Type
- article
- Field-Weighted Citation Impact
- 2.48