TL;DR
This paper introduces novel regularization techniques for language models that jointly optimize for privacy and utility, offering a more practical alternative to Differential Privacy (DP). Their methods achieve comparable or better privacy guarantees with significantly less computational overhead and without the disparate impact on under-represented groups often seen with DP.
What Problem Does This Paper Address?
Modern language models (LMs) are incredibly powerful but also prone to memorizing their training data. This poses a significant privacy risk, as sensitive information from user data (like emails) could be inadvertently leaked through model outputs. Differential Privacy (DP) is the current gold standard for mitigating this, but it comes with substantial drawbacks: it severely degrades model utility (performance), is computationally expensive and slow, and disproportionately harms the performance for under-represented user groups. This paper aims to bridge this gap by developing privacy-preserving methods that offer a better balance between privacy and utility, are more efficient, and treat all users equitably.
Methods
The authors propose two novel privacy regularization methods:
- Adversarial Training: This approach involves training a "discriminator" model alongside the language model. The language model's goal is to produce hidden state representations that make it difficult for the discriminator to predict the author of the input text. Simultaneously, the discriminator tries to get better at predicting the author. The privacy loss is achieved by encouraging the discriminator to output a uniform distribution over authors, effectively hiding the true author.
- Triplet-based Loss Function: This method avoids the need for an explicit discriminator. It leverages a triplet loss, commonly used in vision tasks for learning embeddings. Here, it's adapted to increase the distance between representations of samples from the same author while decreasing the distance between samples from different authors. This encourages the model to learn representations that are less sensitive to author identity.
Both methods are integrated into the language model's training objective, allowing for joint optimization of privacy and utility.
Datasets
The paper uses two datasets for evaluation:
- Avocado: A subset of a corporate email dataset, containing 100 users and 60,000 samples.
- Reddit: A subset of the Reddit dataset, containing 10,000 users and 3 million samples.
These datasets are used to train and evaluate LSTM language models.
Key Insights and Ideas
- Privacy as an Optimization Problem: Framing privacy as a joint optimization problem with utility, rather than a strict guarantee like DP, opens up more practical avenues for model development.
- Adversarial Training for Author Obfuscation: Using a discriminator to learn author-specific patterns and then forcing the LM to "fool" it is an effective way to prevent author information from leaking into the model's representations.
- Triplet Loss for Representation Flattening: The triplet loss, when inverted for privacy, effectively "flattens" the author-specific information in the hidden states, making them indistinguishable.
- DP's Disparate Impact: The paper empirically confirms that DP disproportionately harms the utility for under-represented groups, a critical issue for fairness. Their methods, however, do not exhibit this problem.
- Efficiency Gains: The proposed methods are significantly faster than DP, making hyperparameter tuning and large-scale training more feasible.
Key Results
- Privacy-Utility Trade-off: Both proposed methods offer a favorable utility-privacy trade-off, achieving comparable or better privacy than DP at similar utility levels.
- Reduced Exposure: The adversarial and triplet methods significantly reduce the "exposure" of training data (a measure of memorization) compared to unmitigated models, and often outperform DP, especially for repeated patterns.
- Improved Fairness: Unlike DP, the proposed methods show minimal disparate impact on the utility for under-represented user groups.
- Training Efficiency: Adversarial training is only slightly slower than conventional training (1.06x), and triplet-based loss is 1.80x slower. In contrast, DP is a staggering 16.44x slower.
Limitations and Future Work
- Adversarial Discriminator Scaling: The capacity of the adversarial discriminator needs to scale with the number of authors, which can become a bottleneck for datasets with a massive number of users.
- Triplet Loss Auxiliary Batch: The triplet loss requires processing an auxiliary batch, doubling the training time compared to a standard LM.
- Future Work: The authors suggest exploring ways to reduce the number of hidden dimensions in the discriminator to balance parameter overhead. They also note that their approach is applicable to transformer-based models, which could be a direction for future research. Further verification of user privacy preservation in real-world deployments is also highlighted as important.
Summary updated