dpUGC: Learn Differentially Private Representation for User Generated Contents

Xuan-Son Vu, Son N. Tran, Lili JiangarXiv 2019

TL;DR

This paper introduces dpUGC, a novel framework for training differentially private word embeddings on sensitive user-generated content (UGC). By injecting controlled noise during the training process and introducing a personalized, user-level privacy budget, the authors demonstrate that it is possible to share powerful text representations without risking individual user re-identification.

What Problem Does This Paper Address?

Pre-trained word embeddings like Word2Vec, GloVe, and FastText are foundational to modern natural language processing (NLP). However, training these models requires massive amounts of data, often sourced from user-generated content (UGC) like tweets, blog posts, or forum threads.

Because word embeddings are exceptionally good at preserving semantic relationships, they inadvertently memorize sensitive information present in the training data. Even if explicit identifiers like real names are scrubbed, malicious actors can exploit the embedding space using auxiliary data to re-identify individuals or infer private attributes like age, gender, or medical conditions. In extreme cases, embeddings might even memorize leaked credentials from online pranks or security mishaps.

Figure 1: A prank causes user credentials leak in FB data

The core challenge is: How can we leverage massive, sensitive UGC datasets to train and share useful word embedding models without compromising the privacy of individual users?

Methods

The authors tackle this problem by integrating Differential Privacy (DP) directly into the word embedding training pipeline, creating a framework that is both framework- and data-independent. They propose two main approaches:

  1. Differentially Private (DP-) Embedding: Instead of adding noise to a fully trained model (which destroys its utility), the authors inject noise during the learning process itself. Using Differentially Private Stochastic Gradient Descent (DP-SGD), the algorithm clips the 2-norm of the gradients for each minibatch to control sensitivity and then adds Gaussian noise before updating the embedding weights. A "privacy accountant" tracks the cumulative privacy expenditure ($\epsilon, \delta$) across training epochs.
  2. Personalised DP-Embedding: Recognizing that a one-size-fits-all privacy budget is inefficient, the authors introduce a user-level privacy mechanism. Since UGC data can usually be mapped to specific individuals, each user is assigned a personalized privacy budget $(\epsilon, \delta)_u$ based on their predicted privacy concerns (inferred via personality traits). During training, if a specific user's privacy budget is exhausted, their data is dynamically removed from subsequent training rounds.
Fig. 2: Overview of our safe-to-share embedding model that can be used to fa- cilitate research on sensitive data with privacy-guarantee.

Datasets

The authors evaluated their approach using two distinct datasets:

  • Text8: A standard benchmark corpus containing roughly 17 million words from Wikipedia, used primarily to evaluate how the privacy mechanisms alter the semantic space of the embeddings.
  • myPersonality.org (myPer): A dataset containing social media text split into a public set (250 users, ~144k words) and a massive private set (over 153,000 users, ~416 million words). This dataset includes ground-truth psychological scores (like extroversion), making it ideal for testing downstream data utility.

Key Insights and Ideas

  • Noise as a Regularizer: A highly surprising finding was that while DP-embeddings slightly degraded word-level semantic similarity, they actually improved character-level similarity compared to non-private models that used gradient clipping. The authors hypothesize that the injected noise acts similarly to character-level perturbations, inadvertently helping the model generalize better at the sub-word level.
  • The Power of Personalization: Implementing user-level privacy budgets prevents the system from over-filtering data from users who are less sensitive about their privacy. This fine-grained control yields a significantly better overall trade-off between data utility and privacy preservation.
  • Decoupled Sharing: By embedding privacy guarantees directly into the vector space, the resulting model can be freely shared with external researchers for downstream tasks without needing a complex federated client-server architecture.

Key Results

The models were evaluated on a downstream regression task: predicting a user's extroversion score based on their text.

  • Preserved Utility: The DP-Embedding models consistently outperformed baselines trained purely on public data. For instance, using Linear Regression, the baseline achieved a Root Mean Square Error (RMSE) of 1.2903. Incorporating the private data via the DP-Embedding model reduced the error to 1.2514.
  • Optimal Trade-offs: The authors identified specific checkpoints—such as a privacy budget of $(0.125, 0.0184)$-DP—where the model achieved an optimal balance, providing robust mathematical privacy guarantees while maintaining high predictive accuracy on downstream tasks.

Limitations and Future Work

While dpUGC represents a major step forward for privacy-preserving NLP, the authors note a few limitations:

  • Sensitivity to Noise: If the privacy budget is set too low, the required noise injection can degrade the embedding quality to the point of rendering it useless for complex downstream tasks.
  • Predicting Privacy Concerns: The personalized model currently relies on predicting user privacy preferences via personality traits. The authors note that future work should focus on building robust knowledge bases to automatically and dynamically detect exactly what specific content is considered sensitive to a given user.

Summary updated

BibTeX
@misc{vu2019dpugc,
  author = {Xuan-Son Vu and Son N. Tran and Lili Jiang},
  title = {{dpUGC: Learn Differentially Private Representation for User Generated Contents}},
  year = {2019},
  eprint = {1903.10453},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.10453},
}
Figure