On Privacy Protection of Latent Dirichlet Allocation Model Training

Fangyuan Zhao, Xuebin Ren, Shusen Yang, Xinyu Yang

Introduction

Latent Dirichlet Allocation (LDA) is a foundational technique in natural language processing, widely utilized for discovering latent thematic structures within large-scale text corpora. However, as machine learning models are increasingly trained on sensitive or proprietary data, the risk of information leakage has become a critical concern. Standard LDA training can inadvertently "memorize" specific training instances, making the model vulnerable to Membership Inference Attacks—where an adversary determines if a specific document was part of the training set—and Model Inversion Attacks, which aim to reconstruct sensitive training data from model outputs.

While Differential Privacy (DP) offers a robust mathematical framework for mitigating these risks, traditional DP-LDA implementations often rely on a "trusted curator" model. In this scenario, a central authority is assumed to have access to raw, sensitive data before applying noise. In many real-world applications, such as crowdsourced data collection, users are unwilling to share raw text with a central server. This paper addresses these challenges by quantifying the inherent privacy provided by standard LDA training and introducing LP-LDA, a framework designed for local differential privacy.

Quantifying Inherent Privacy in Gibbs Sampling

The most prevalent method for training LDA models is Collapsed Gibbs Sampling (CGS). CGS is a stochastic process where topic assignments are sampled iteratively based on conditional probabilities. The researchers observe that this inherent randomness allows CGS to behave similarly to the "exponential mechanism," a core building block of differential privacy.

To quantify this, the authors developed a privacy monitoring algorithm that calculates the cumulative privacy budget ($ε$) consumed during the sampling process. Their analysis reveals that while CGS provides a degree of "free" privacy, this protection is not static. The privacy parameter $ε$ grows approximately linearly with the number of iterations. Consequently, while the algorithm is naturally private in its early stages, maintaining strict privacy standards requires either early termination of training or the acceptance of a higher privacy leakage as the model converges.

LP-LDA: Local Privacy for Crowdsourced Data

For environments where a central server cannot be trusted, the authors propose LP-LDA (Locally Private LDA). This framework shifts the burden of privacy to the individual contributor through a two-stage process:

  1. Local Perturbation: Instead of sending raw text, each user encodes their document as a binary vector representing the presence or absence of words from a global vocabulary. Users then apply Randomized Response—a technique where bits are flipped with a specific probability ($f$)—before transmitting the data. This ensures that the server never receives the true word-presence bit for any individual user.
  2. Server-Side Reconstruction: The server collects these noisy vectors and employs statistical estimation to "denoise" the aggregate word counts. Because LDA training is primarily dependent on global word distributions rather than the specific partitioning of words into individual documents, the server can reconstruct a representative dataset. This synthetic dataset is then used to train the LDA model using standard methods.

Experimental Evaluation

The authors evaluated their methods using three diverse real-world datasets: KOS (blog entries), NIPS (research papers), and Enron (corporate emails). These datasets provided a range of document lengths and vocabulary sizes to test the scalability of the privacy mechanisms.

Key Insights

  • Privacy Granularity: The study distinguishes between word-level and document-level privacy. Interestingly, the NIPS dataset, characterized by long documents and a massive vocabulary, exhibited the strongest word-level privacy but the weakest document-level privacy. This suggests that the structure of the data significantly influences the effectiveness of inherent privacy.
  • Utility vs. Privacy Trade-off: In LP-LDA, the flipping probability ($f$) serves as the primary lever for privacy. As $f$ increases, privacy strengthens, but model perplexity (a measure of predictive accuracy where lower is better) also increases.
  • Performance Benchmarks: LP-LDA demonstrated superior performance compared to traditional Laplace-noise-based DP methods, particularly in regimes where the privacy requirement was moderate ($ε > 4$). By focusing on reconstructing global statistics rather than adding noise to every individual document, LP-LDA maintains higher utility for topic discovery.

Conclusion

This research provides a dual contribution to the field of private topic modeling. By providing a method to monitor the inherent privacy of Collapsed Gibbs Sampling, the authors offer a way to quantify the security of existing LDA deployments. Furthermore, the LP-LDA framework provides a viable path for training high-accuracy models on crowdsourced data without requiring users to sacrifice their local privacy. Future work will focus on deriving tighter mathematical bounds for CGS and refining the reconstruction process to better preserve fine-grained document structures in the synthetic training data.

Summary updated

BibTeX
@inproceedings{zhao2019privacy,
  author = {Fangyuan Zhao and Xuebin Ren and Shusen Yang and Xinyu Yang},
  title = {{On Privacy Protection of Latent Dirichlet Allocation Model Training}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/675},
}
Figure