Additive Logistic Mechanism for Privacy-Preserving Self-Supervised Learning

Yunhao Yang, Parham Gohari, Ufuk TopcuarXiv 2022 · DOI

Introduction

Self-supervised learning (SSL) has become a foundational paradigm in modern artificial intelligence, allowing models to learn rich representations from large-scale unlabeled datasets. A common workflow involves pre-training a robust "base encoder" on public data and subsequently "fine-tuning" a smaller "projection head" on task-specific private data. While efficient, this fine-tuning stage introduces a critical security vulnerability: Membership Inference Attacks (MIA). In an MIA, an adversary attempts to determine whether a specific data record was part of the private training set, posing a significant risk to data privacy.

The Additive Logistic Mechanism (ALM)

To mitigate these risks without sacrificing model performance, researchers have developed the Additive Logistic Mechanism (ALM). This novel differential privacy (DP) tool is designed to protect models specifically during the sensitive fine-tuning phase.

The core innovation lies in the choice of noise distribution. Traditional DP methods often rely on the Laplace mechanism or the Gaussian mechanism. The Laplace mechanism provides "pure" $\epsilon$-differential privacy but uses a sharp, "pointy" distribution that can significantly degrade model utility. Conversely, the Gaussian mechanism is bell-shaped and less disruptive to model weights but only offers "approximate" $(\epsilon, \delta)$-privacy guarantees. The ALM utilizes a logistic distribution, which offers the "best of both worlds": it is bell-shaped like a Gaussian, preserving the natural distribution of neural network weights, yet its mathematical properties ensure the rigorous "pure" $\epsilon$-DP associated with the Laplace mechanism.

Methodology and Sensitivity Estimation

The protection is implemented via the Additive Logistic Query Handler (ALQH), a post-training algorithm. Unlike training-time interventions like DP-SGD, ALQH adds calculated logistic noise to the weights of the projection head after training is complete. This approach avoids the computational overhead and convergence issues often associated with private training loops.

A fundamental requirement for any DP mechanism is an accurate estimate of "sensitivity"—the maximum change a single data point can induce in the model's weights. Because calculating sensitivity analytically for deep neural networks is intractable, the authors employ a sampling-based approach to estimate it empirically across various benchmarks.

Table 1: Dataset statistics and empirical sensitivity estimates for the three benchmark datasets used in the study.

Experimental Results

The ALM was evaluated using the SimCLR framework on three standard computer vision datasets: CIFAR-10, CIFAR-100, and STL-10. The experiments focused on the trade-off between privacy (measured by the budget $\epsilon$) and utility (measured by loss in accuracy).

Figure 1: Utility loss versus privacy budget ($\epsilon$) across CIFAR-10, CIFAR-100, and STL-10. The Additive Logistic Mechanism (red) consistently outperforms the Laplace (blue) and Gaussian (green) mechanisms by maintaining lower utility loss at equivalent privacy levels.

The results highlight several key advantages of the ALM:

  • Attack Neutralization: Without protection, MIA accuracy reached as high as 71% on CIFAR-100. Following the application of ALM, attack accuracy was reduced to approximately 50%, effectively matching the performance of random guessing.
  • High Utility Retention: The mechanism achieved strong privacy levels ($\epsilon < 1$) while keeping utility loss below 5%.
  • Superior Performance Trade-offs: As shown in the comparative plots, the logistic distribution consistently provided a better privacy-utility profile than both Laplace and Gaussian noise across all tested datasets.

Conclusion

The Additive Logistic Mechanism represents a significant step forward in practical privacy-preserving machine learning. By leveraging the unique properties of the logistic distribution, it provides a post-training solution that is both mathematically rigorous and computationally efficient. Future research will focus on developing a "moments accountant" for the logistic mechanism, which would allow for its integration directly into the training process, potentially further improving scalability for complex, multi-layer architectures.

Summary updated

Abstract

We study the privacy risks that are associated with training a neural network's weights with self-supervised learning algorithms. Through empirical evidence, we show that the fine-tuning stage, in which the network weights are updated with an informative and often private dataset, is vulnerable to privacy attacks. To address the vulnerabilities, we design a post-training privacy-protection algorithm that adds noise to the fine-tuned weights and propose a novel differential privacy mechanism that samples noise from the logistic distribution. Compared to the two conventional additive noise mechanisms, namely the Laplace and the Gaussian mechanisms, the proposed mechanism uses a bell-shaped distribution that resembles the distribution of the Gaussian mechanism, and it satisfies pure $ε$-differential privacy similar to the Laplace mechanism. We apply membership inference attacks on both unprotected and protected models to quantify the trade-off between the models' privacy and performance. We show that the proposed protection algorithm can effectively reduce the attack accuracy to roughly 50\%-equivalent to random guessing-while maintaining a performance loss below 5\%.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10 · Cifar 10Unprotected self-supervised modelMIA accuracy62\%fine-tuned · attack=black-box · protection=unprotected
Source quote
L288: We first performed MIAs on the queries from the fine-tuning datasets with the unprotected outputs to acquire benchmark attack accuracies. We got benchmark MIA accuracies of 62% on Cifar 10, 61% on STL 10, and 71% on Cifar 100.
STL-10 · STL 10Unprotected self-supervised modelMIA accuracy61\%fine-tuned · attack=black-box · protection=unprotected
Source quote
L288: We first performed MIAs on the queries from the fine-tuning datasets with the unprotected outputs to acquire benchmark attack accuracies. We got benchmark MIA accuracies of 62% on Cifar 10, 61% on STL 10, and 71% on Cifar 100.
CIFAR-100 · Cifar 100Unprotected self-supervised modelMIA accuracy71\%fine-tuned · attack=black-box · protection=unprotected
Source quote
L288: We first performed MIAs on the queries from the fine-tuning datasets with the unprotected outputs to acquire benchmark attack accuracies. We got benchmark MIA accuracies of 62% on Cifar 10, 61% on STL 10, and 71% on Cifar 100.
BibTeX
@misc{yang2022additive,
  author = {Yunhao Yang and Parham Gohari and Ufuk Topcu},
  title = {{Additive Logistic Mechanism for Privacy-Preserving Self-Supervised Learning}},
  year = {2022},
  eprint = {2205.12430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.12430},
}
Figure