Skip to main content
QUICK REVIEW

[Paper Review] Privacy Regularization: Joint Privacy-Utility Optimization in Language Models

Fatemehsadat Mireshghallah, Huseyin A. Inan|arXiv (Cornell University)|Mar 12, 2021
Privacy-Preserving Technologies in DataComputer Science29 references5 citations
TL;DR

This paper proposes two privacy regularization techniques—adversarial training with a discriminator and a novel triplet-loss-based regularizer—for joint optimization of privacy and utility in language models. The methods outperform differential privacy by achieving better privacy-utility trade-offs, faster training, and reduced disparate impact on under-represented user groups.

ABSTRACT

Neural language models are known to have a high capacity for memorization of training samples. This may have serious privacy implications when training models on user content such as email correspondence. Differential privacy (DP), a popular choice to train models with privacy guarantees, comes with significant costs in terms of utility degradation and disparate impact on subgroups of users. In this work, we introduce two privacy-preserving regularization methods for training language models that enable joint optimization of utility and privacy through (1) the use of a discriminator and (2) the inclusion of a triplet-loss term. We compare our methods with DP through extensive evaluation. We show the advantages of our regularizers with favorable utility-privacy trade-off, faster training with the ability to tap into existing optimization approaches, and ensuring uniform treatment of under-represented subgroups.

Motivation & Objective

  • Address the privacy risks of language models memorizing sensitive training data, such as user identities in email correspondence.
  • Overcome the significant utility degradation and disparate impact on under-represented groups associated with differential privacy (DP) training.
  • Develop regularization techniques that enable joint optimization of privacy and model utility without relying on DP’s strict, one-size-fits-all noise injection.
  • Ensure fair treatment of users with fewer training samples by minimizing utility loss disparities across subgroups.
  • Provide a scalable, gradient-based alternative to DP that leverages existing optimization pipelines and avoids cumbersome hyperparameter tuning.

Proposed method

  • Train a discriminator to predict the author of an input sequence from the language model’s final hidden state, using this prediction to compute a privacy loss that penalizes linkability between representations and sensitive attributes.
  • Introduce a triplet-loss regularizer that encourages the model to produce similar representations for sequences from the same author while pushing representations of different authors apart, thereby reducing author linkability.
  • Optimize the language model with a combined loss: standard language modeling loss plus the privacy regularization loss, enabling end-to-end training with standard optimization methods.
  • Use the last hidden state of the RNN (or [CLS] token in transformers) as the sequence embedding for privacy regularization, aligning with GDPR’s definition of linkable information.
  • Apply the regularizers during training to prevent memorization of author identities without requiring gradient clipping or noise injection as in DP-SGD.
  • Evaluate the models using a tab-based reconstruction attack that attempts to recover entire training sequences from partial prompts, measuring success via reconstruction accuracy.

Experimental results

Research questions

  • RQ1Can privacy regularization techniques reduce the risk of model inversion attacks without incurring the high utility costs of differential privacy?
  • RQ2How do the proposed regularizers compare to DP in terms of privacy protection and model utility across different datasets and perplexity levels?
  • RQ3Do the regularization methods mitigate disparate impacts on under-represented user groups, as observed in DP training?
  • RQ4Can the proposed methods be trained efficiently using standard optimization pipelines, avoiding the slow convergence and tuning complexity of DP-SGD?
  • RQ5To what extent can the models trained with these regularizers resist reconstruction attacks using partial prompts?

Key findings

  • The proposed regularizers achieve comparable or better privacy protection than DP, especially in reconstructing synthesized canaries, where DP’s uniform noise application leaves correlated or repeated sequences less protected.
  • For high-perplexity models, the unmitigated model shows low reconstruction accuracy on synthetic canaries, but this increases significantly in lower-perplexity models, indicating stronger memorization.
  • The models trained with the proposed regularizers outperform DP in both privacy and utility, particularly in low-perplexity settings where memorization is more likely.
  • The utility loss gap between well-represented and under-represented users is only 7 points for the proposed method, compared to 29 points for DP, demonstrating significantly reduced disparate impact.
  • The regularizers enable faster training and are compatible with standard optimization techniques, avoiding the computational overhead and tuning burden of DP-SGD.
  • The models trained with the regularizers show robustness to tab-based reconstruction attacks, with lower attack success rates than DP models, especially on real-world canaries that follow grammatical patterns.

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.