Skip to main content
QUICK REVIEW

[Paper Review] Differentially Private Representation for NLP: Formal Guarantee and An Empirical Study on Privacy and Fairness

Lingjuan Lyu, Xuanli He|arXiv (Cornell University)|Oct 3, 2020
Privacy-Preserving Technologies in DataComputer Science37 references6 citations
TL;DR

This paper proposes Differentially Private Neural Representation (DPNR), a novel method that applies local differential privacy to neural text representations during inference to formally guarantee privacy. By combining DP noise with a robust training process and dropout-based masking, DPNR reduces privacy leakage while maintaining high main-task accuracy and improving fairness across demographic groups on benchmark NLP datasets.

ABSTRACT

It has been demonstrated that hidden representation learned by a deep model can encode private information of the input, hence can be exploited to recover such information with reasonable accuracy. To address this issue, we propose a novel approach called Differentially Private Neural Representation (DPNR) to preserve the privacy of the extracted representation from text. DPNR utilises Differential Privacy (DP) to provide a formal privacy guarantee. Further, we show that masking words via dropout can further enhance privacy. To maintain utility of the learned representation, we integrate DP-noisy representation into a robust training process to derive a robust target model, which also helps for model fairness over various demographic variables. Experimental results on benchmark datasets under various parameter settings demonstrate that DPNR largely reduces privacy leakage without significantly sacrificing the main task performance.

Motivation & Objective

  • To formally quantify and guarantee privacy of neural text representations using differential privacy, addressing the risk of re-identification from hidden representations.
  • To develop a method that provides formal privacy guarantees for representations extracted during inference, not just training data.
  • To improve model fairness by reducing bias across demographic groups (e.g., gender, age) as a by-product of the privacy mechanism.
  • To maintain high utility of the main task (e.g., sentiment classification) despite the addition of privacy-preserving noise.
  • To empirically investigate the interplay between differential privacy and model fairness in NLP representations.

Proposed method

  • Applies local differential privacy (LDP) to the hidden representations of text during inference, ensuring formal privacy guarantees for test-phase data.
  • Introduces a robust training process that incorporates DP-noised representations into the training of the target model to preserve utility.
  • Employs dropout-based word masking as a complementary technique to further enhance privacy by reducing memorization of sensitive linguistic cues.
  • Uses a noise injection mechanism with carefully calibrated privacy budget (ε) to control the trade-off between privacy and utility.
  • Employs a two-stage training pipeline: first, noisy representations are generated via DP; second, the target model is fine-tuned using these noisy representations to maintain performance.
  • Leverages t-SNE visualization and subgroup accuracy analysis to evaluate privacy and fairness improvements.

Experimental results

Research questions

  • RQ1Can differential privacy be formally applied to neural text representations during inference to prevent re-identification of sensitive attributes?
  • RQ2Does the integration of DP noise and dropout masking reduce privacy leakage in NLP representations compared to non-private or adversarial baselines?
  • RQ3To what extent does the proposed DPNR method maintain performance on main NLP tasks while improving fairness across demographic subgroups?
  • RQ4How does the combination of DP and robust training preserve model utility despite noise injection?
  • RQ5What is the relationship between differential privacy and model fairness in neural NLP representations?

Key findings

  • DPNR significantly reduces privacy leakage: on the TP-USA dataset, the accuracy of an attacker predicting gender from representations drops from 98.07% (non-private) to 98.00% (DPNR), and from 97.05% to 97.09% on the blog dataset, indicating strong privacy preservation.
  • On the AG dataset, DPNR improves fairness for minority entity groups, reducing the performance gap between majority and minority subgroups (e.g., from -18.82% to -16.93% deviation for entity A) and achieving statistically significant fairness gains (p < 0.0001).
  • DPNR maintains high main-task accuracy: on TP-USA, the model achieves 85.90% accuracy (vs. 85.41% for non-private baseline), and on blog, it reaches 86.08% (vs. 85.38% for non-private), showing minimal performance degradation.
  • t-SNE visualization confirms that DPNR representations mix subgroups (e.g., under-20 and over-30 age groups), reducing discriminability and supporting the privacy claim.
  • The method reduces model discrimination: in most cases, DPNR leads to lower fairness deviation across demographic groups compared to non-private and adversarial baselines.
  • The combination of DP noise and dropout masking provides a stronger privacy guarantee than either technique alone, as proven in the theoretical analysis.

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.