Partial sensitivity analysis in differential privacy

Tamara T. Mueller, Alexander Ziller, Dmitrii Usynin, Moritz Knolle, Friederike Jungmann, Daniel Rueckert, Georgios KaissisarXiv 2021

Introduction

Differential Privacy (DP) has become the gold standard for protecting individual privacy in data analysis and machine learning. Traditionally, DP provides a "blanket" guarantee for an entire record, often assuming a worst-case scenario for privacy loss. While recent developments like individual Rényi DP allow for per-person accounting based on gradient norms, they still treat all features within a record as equally sensitive. This paper introduces partial sensitivity, a novel framework to quantify the specific contribution of individual input features—such as a single pixel in an image or a specific attribute in a database—to an individual's overall privacy loss.

Mathematical Framework: Partial Sensitivity

The authors define partial sensitivity as the gradient of the gradient norm of a function with respect to its input variables: $$\Delta_p(f(X)) := \nabla_X \|\nabla f(X)\|_2$$ This metric measures the rate at which the overall privacy cost changes in response to infinitesimal changes in a single input feature.

Calculating this requires looking inside the "black box" of the model. Standard Automatic Differentiation (AD) tools like those in PyTorch are insufficient for this second-order interaction between inputs and weights. Instead, the authors utilize symbolic automatic differentiation via the Deuterium framework. This approach generates exact algebraic expressions, allowing for the isolation of input data from model parameters and the calculation of fractional privacy contributions.

Multivariate Sensitivity Analysis

To demonstrate the concept, the authors analyzed a toy multivariate query $f(a, b) = a^2 + e^{2b-a}$. By plotting the partial sensitivity, they provide visual proof of how different variables independently drive the Rényi DP guarantees.

Figure 1: 3D partial sensitivity plot for a multivariate query, showing how variables a and b independently affect the gradient norm.

This granular view allows analysts to see exactly how variables independently affect privacy guarantees, enabling them to assign different privacy weights to different attributes.

Neural Network Memorization and DP-SGD

The most significant application of partial sensitivity is in understanding how neural networks learn and memorize data. Using a synthetic dataset of 5x5 pixel images (vertical and horizontal bars), the authors compared standard Stochastic Gradient Descent (SGD) with Differentially Private SGD (DP-SGD).

Figure 2: Comparison of partial sensitivity in SGD vs. DP-SGD. (A) Heatmaps show sensitivity concentrated on identifying pixels in SGD, while DP-SGD spreads it across the image. (B) Histograms show the distribution of sensitivity values.

Key Findings:

  1. Standard SGD Memorizes Outliers: In standard training, partial sensitivity spikes on specific "outlier" features. For instance, pixels that deviate from the expected pattern of a class cause massive gradient updates. This provides a mathematical explanation for how models memorize highly identifying, anomalous features.
  2. DP-SGD Homogenizes Sensitivity: DP-SGD fundamentally changes the model's attention. It forces partial sensitivity to drop on identifying pixels and spread across unrelated parts of the input space. This "homogenization" suppresses the model's ability to memorize specific features, thereby enforcing privacy.

Conclusion and Future Directions

While currently limited to small-scale synthetic data and simple architectures, partial sensitivity offers a powerful tool for explainable privacy. Future work aims to scale symbolic AD to modern architectures like Transformers and explore targeted noise addition. By adding noise only to features with high partial sensitivity, researchers could potentially preserve model utility while maintaining robust privacy guarantees. Additionally, this metric may provide new insights into model fairness and gradient-based explainability.

Summary updated

BibTeX
@misc{mueller2021partial,
  author = {Tamara T. Mueller and Alexander Ziller and Dmitrii Usynin and Moritz Knolle and Friederike Jungmann and Daniel Rueckert and Georgios Kaissis},
  title = {{Partial sensitivity analysis in differential privacy}},
  year = {2021},
  eprint = {2109.10582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.10582},
}
Figure