Skip to main content
QUICK REVIEW

[Paper Review] TEM: High Utility Metric Differential Privacy on Text

Ricardo Silva Carvalho, Theodore Vasiloudis|arXiv (Cornell University)|Jul 16, 2021
Privacy-Preserving Technologies in DataComputer Science8 citations
TL;DR

This paper proposes Truncated Exponential Mechanism (TEM), a novel differentially private method for text data that selects privatized words from a candidate set using a metric-based scoring system, enabling adaptive noise calibration to embedding space density. TEM achieves significantly higher utility than state-of-the-art methods under the same privacy budget by supporting arbitrary distance metrics and allowing embeddings trained on sensitive data.

ABSTRACT

Ensuring the privacy of users whose data are used to train Natural Language Processing (NLP) models is necessary to build and maintain customer trust. Differential Privacy (DP) has emerged as the most successful method to protect the privacy of individuals. However, applying DP to the NLP domain comes with unique challenges. The most successful previous methods use a generalization of DP for metric spaces, and apply the privatization by adding noise to inputs in the metric space of word embeddings. However, these methods assume that one specific distance measure is being used, ignore the density of the space around the input, and assume the embeddings used have been trained on non-sensitive data. In this work we propose Truncated Exponential Mechanism (TEM), a general method that allows the privatization of words using any distance metric, on embeddings that can be trained on sensitive data. Our method makes use of the exponential mechanism to turn the privatization step into a \emph{selection problem}. This allows the noise applied to be calibrated to the density of the embedding space around the input, and makes domain adaptation possible for the embeddings. In our experiments, we demonstrate that our method significantly outperforms the state-of-the-art in terms of utility for the same level of privacy, while providing more flexibility in the metric selection.

Motivation & Objective

  • To address the limitations of existing metric differential privacy methods in NLP, which assume fixed distance metrics, ignore embedding space density, and require non-sensitive embeddings.
  • To develop a general-purpose mechanism that supports any distance metric and enables domain adaptation for word embeddings trained on sensitive data.
  • To improve utility in differentially private NLP by calibrating noise injection based on local embedding space density.
  • To provide a computationally efficient alternative to existing exponential mechanism-based approaches through truncation and Gumbel noise sampling.

Proposed method

  • TEM formulates word privatization as a selection problem using the exponential mechanism, where candidate words are selected with probabilities proportional to their proximity in the embedding metric space.
  • The mechanism applies a truncation step to limit the search space to words within a predefined distance γ from the input, improving computational efficiency.
  • Noise is injected via Gumbel-distributed random variables to approximate the exponential mechanism without explicit probability computation.
  • The method allows any valid distance function (e.g., Euclidean, cosine) to define the metric space, enabling flexibility in metric choice.
  • A special symbol ⊥ is introduced to represent all words beyond the truncation threshold, which are grouped and sampled uniformly if selected.
  • The algorithm is formally proven to satisfy ε-metric differential privacy and is shown to be distributionally equivalent to the original exponential mechanism.
(a) Utility Evaluation
(a) Utility Evaluation

Experimental results

Research questions

  • RQ1Can a differentially private mechanism for text data be designed to support arbitrary distance metrics in the embedding space?
  • RQ2How can noise calibration be adapted to local density in the embedding space to improve utility?
  • RQ3Can a computationally efficient variant of the exponential mechanism be constructed for word selection in NLP with strong privacy guarantees?
  • RQ4Does the proposed method outperform existing state-of-the-art methods in terms of utility while maintaining the same privacy budget?
  • RQ5Can word embeddings be trained on sensitive data without compromising the privacy guarantees of the final mechanism?

Key findings

  • TEM achieves significantly higher utility than the state-of-the-art Madlib mechanism under the same privacy budget (ε = 1.0), with a 12.5% improvement in accuracy on the IMDB sentiment classification task.
  • The method maintains strong privacy guarantees, satisfying ε-metric differential privacy as formally proven in the paper.
  • By adapting noise to local embedding space density, TEM reduces utility loss in high-density regions where word similarity is high.
  • The computationally efficient version of TEM (Algorithm 3) achieves O(1) candidate lookup per input after pre-processing, making it scalable for large vocabularies.
  • The use of Gumbel noise enables efficient sampling without explicit probability computation, preserving privacy while improving runtime performance.
  • TEM supports domain-adaptive embeddings trained on sensitive data, unlike prior methods that assume non-sensitive representations.
(b) Empirical Privacy Evaluation
(b) Empirical Privacy Evaluation

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.