Abstract
NLP models trained with differential privacy (DP) usually adopt the DP-SGD framework, and privacy guarantees are often reported in terms of the privacy budget $\epsilon$. However, $\epsilon$ does not have any intrinsic meaning, and it is generally not possible to compare across variants of the framework. Work in image processing has therefore explored how to empirically calibrate noise across frameworks using Membership Inference Attacks (MIAs). However, this kind of calibration has not been established for NLP. In this paper, we show that MIAs offer little help in calibrating privacy, whereas reconstruction attacks are more useful. As a use case, we define a novel kind of directional privacy based on the von Mises-Fisher (VMF) distribution, a metric DP mechanism that perturbs angular distance rather than adding (isotropic) Gaussian noise, and apply this to NLP architectures. We show that, even though formal guarantees are incomparable, empirical privacy calibration reveals that each mechanism has different areas of strength with respect to utility-privacy trade-offs.
Introduction
In Differential Privacy (DP), the privacy budget $\epsilon$ is the standard metric for safety. However, $\epsilon$ is an abstract mathematical bound; it does not provide a practitioner with an intuitive understanding of how much "leakage" is occurring in a real-world scenario. To address this, researchers use empirical calibration: launching simulated attacks against a model to observe how effectively privacy-preserving noise thwarts adversarial attempts.
While this approach has proven successful in computer vision using Membership Inference Attacks (MIAs)—which attempt to determine if a specific individual was part of the training set—the authors find that MIAs are "ill-behaved" for language models. They do not scale predictably with noise levels, rendering them ineffective for comparing different DP frameworks. This research seeks a more robust method for measuring privacy leakage in NLP and explores whether altering the "shape" of noise can improve the privacy-utility tradeoff.
Methodology
The study explores two primary innovations:
- Calibration via Reconstruction: Instead of relying on MIAs, the authors employ gradient-based reconstruction attacks (specifically Decepticons and LAMP). These attacks attempt to recover original training sentences directly from the gradients shared during training, providing a more granular and predictable measure of privacy risk.
- Directional Privacy (VMF Mechanism): Standard DP-SGD typically adds isotropic Gaussian noise, which pushes the gradient in random directions. The authors propose DirDP-SGD, which utilizes the von Mises-Fisher (VMF) distribution. This mechanism perturbs the angular distance (direction) of the gradient rather than just adding a random vector. The intuition is that preserving the direction of the gradient is more critical for model convergence than preserving its exact magnitude.
These methods were evaluated using three standard NLP benchmarks for fine-tuning BERT and GPT-2: IMDb (sentiment classification of long sequences), SST2 (shorter sentiment sequences), and CoLA (grammatical acceptability).
Empirical Calibration and Results
A central finding of the paper is that MIAs are a dead end for NLP calibration. Because modern Large Language Models (LLMs) are typically fine-tuned for only a few epochs, they do not overfit enough for MIAs to be effective. Consequently, MIA success remains near random chance regardless of the privacy budget. In contrast, reconstruction attacks show a smooth, monotonic relationship with noise: as the privacy budget increases (less noise), the ROUGE-L scores (text similarity) of the reconstructed sentences increase predictably.
As shown in the empirical calibration results, different DP accounting methods (such as RDP and zCDP) exhibit varying levels of empirical leakage despite sharing the same formal $\epsilon$ budget. This highlights the necessity of empirical tools for comparing disparate privacy frameworks.
Furthermore, the effectiveness of a privacy mechanism depends heavily on text length. For tasks with shorter text (CoLA and SST2), the VMF mechanism (directional privacy) achieved better utility for the same level of empirical privacy compared to standard Gaussian noise. While longer texts (IMDb) are easier to reconstruct from gradients, they also benefit more from standard Gaussian noise application.
Conclusion
The authors demonstrate that while formal privacy guarantees across different mechanisms are often incomparable, empirical calibration via reconstruction attacks allows for a meaningful assessment of privacy-utility trade-offs. The VMF mechanism proves to be a viable, and sometimes superior, alternative to standard DP-SGD for specific NLP tasks. Future work will investigate more fine-grained metrics for reconstruction success and how automated metrics correlate with human perceptions of sensitive information leakage.
Summary updated