Author Obfuscation Using Generalised Differential Privacy

Natasha Fernandes, Mark Dras, Annabelle McIverarXiv 2018

Published in May 2018, this research presents a formal mathematical framework for hiding a writer's identity without compromising the semantic integrity of their text. By adapting Generalised Differential Privacy (GDP) to the domain of Natural Language Processing (NLP), the authors provide a method to replace words with "noisy" synonyms that satisfy rigorous, mathematically provable privacy guarantees.

The Problem: Stylometry and Deanonymization

In the age of advanced machine learning, "stylometry"—the statistical analysis of writing style—can easily deanonymize authors of supposedly anonymous texts. Unique linguistic habits, such as average sentence length or the frequency of specific "stop words" (e.g., the, and, but), act as a stylistic fingerprint. For whistleblowers or activists, this lack of privacy can have severe consequences.

Existing obfuscation techniques are often "ad-hoc," relying on heuristics like word swapping or sentence shuffling. These methods lack a formal way to measure the level of privacy they provide. While standard Differential Privacy (DP) is the gold standard for privacy in tabular databases, it is difficult to apply to unstructured text where "adjacency" between documents is not easily defined. This paper addresses this gap by moving from a binary privacy model to a metric-based one.

Methodology: Generalised Differential Privacy

The authors utilize Generalised Differential Privacy (GDP), which extends the principles of DP to any data that can be measured with a "metric" (a distance function).

Word Embeddings and Word Mover’s Distance

The framework represents words as high-dimensional vectors using embeddings like Word2Vec or GloVe. In this vector space, semantically similar words are positioned close to each other. To measure the distance between two documents, the authors employ Word Mover’s Distance (WMD). WMD treats documents as probability distributions over word vectors and calculates the minimum "travel cost" to transform one document into another.

The n-Dimensional Laplace Mechanism

The core technical contribution is the n-dimensional Laplace mechanism. To obfuscate a word, the algorithm performs the following steps:

  1. Vector Lookup: It identifies the word's position in the high-dimensional vector space.
  2. Noise Addition: It adds a noise vector where the magnitude is drawn from a Gamma distribution and the direction is chosen uniformly from an n-dimensional sphere.
  3. Synonym Selection: It finds the word in the original vocabulary that is closest to this new, noisy vector.

Key Insights and Theoretical Foundations

A central contribution of the paper is the proof of document-indistinguishability. This property ensures that an adversary cannot reliably determine whether an obfuscated output came from the original document or a semantically similar alternative.

Transport plans (T and T') illustrating the movement of whole words between documents.

The authors demonstrate in Theorem 3 that for documents of equal length, the optimal way to "move" one document to another via WMD involves moving whole words rather than splitting a word's "mass" across multiple destinations. This insight, illustrated in the transport matrices above, simplifies the mathematical application of the privacy mechanism to entire documents.

Furthermore, the authors argue that by removing "stopwords"—which carry significant stylistic information but little semantic weight—and using word embeddings to capture meaning, they can fulfill the "Privacy Promise": the output remains topically useful while becoming stylistically anonymous.

Key Results

  • Theorem 5: The authors derived the mathematical proof for adding noise in $n$ dimensions, showing that a vector $x + UR$ (where $U$ is a uniform direction and $R$ is a Gamma-distributed scale) satisfies $\epsilon d_2$-privacy.
  • Theorem 8: They proved that a mechanism operating on individual word vectors can be extended to entire "Bag of Words" (BOW) documents while maintaining the $\epsilon$-document-indistinguishability guarantee.
  • Algorithm 1: The paper provides a concrete, implementable pseudocode for an "Obfuscation Mechanism" that researchers can use to generate private text.

Limitations and Future Work

While the paper establishes a strong theoretical foundation, it focuses primarily on mathematical proofs rather than empirical evaluation. Future work is needed to assess the utility of the obfuscated text—specifically, how readable and topically accurate it remains after processing. Additionally, the current model assumes fixed-length documents, and the practical trade-offs involved in choosing the privacy parameter $\epsilon$ remain an open area for research.

Summary updated

BibTeX
@misc{fernandes2018author,
  author = {Natasha Fernandes and Mark Dras and Annabelle McIver},
  title = {{Author Obfuscation Using Generalised Differential Privacy}},
  year = {2018},
  eprint = {1805.08866},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.08866},
}
Figure