Skip to main content
QUICK REVIEW

[Paper Review] RelaxLoss: Defending Membership Inference Attacks without Losing Utility

Dingfan Chen, Ning Yu|arXiv (Cornell University)|Jul 12, 2022
Adversarial Robustness in Machine LearningComputer Science11 citations
TL;DR

This paper proposes RelaxLoss, a novel defense framework that reduces membership inference attack (MIA) vulnerability by intentionally relaxing the target training loss to narrow the generalization gap between training and testing loss distributions. By minimizing the distinguishability of these distributions, RelaxLoss effectively defends against a wide range of MIAs—including black-box and white-box attacks—while preserving or even improving model utility, outperforming state-of-the-art defenses across five diverse datasets.

ABSTRACT

As a long-term threat to the privacy of training data, membership inference attacks (MIAs) emerge ubiquitously in machine learning models. Existing works evidence strong connection between the distinguishability of the training and testing loss distributions and the model's vulnerability to MIAs. Motivated by existing results, we propose a novel training framework based on a relaxed loss with a more achievable learning target, which leads to narrowed generalization gap and reduced privacy leakage. RelaxLoss is applicable to any classification model with added benefits of easy implementation and negligible overhead. Through extensive evaluations on five datasets with diverse modalities (images, medical data, transaction records), our approach consistently outperforms state-of-the-art defense mechanisms in terms of resilience against MIAs as well as model utility. Our defense is the first that can withstand a wide range of attacks while preserving (or even improving) the target model's utility. Source code is available at https://github.com/DingfanChen/RelaxLoss

Motivation & Objective

  • To address the persistent privacy threat posed by membership inference attacks (MIAs) in deep learning models deployed in sensitive domains like healthcare and finance.
  • To reduce the distinguishability between training and testing loss distributions, which is a key factor in MIA success.
  • To develop a defense mechanism that maintains or improves model utility while providing strong resilience against diverse MIAs.
  • To overcome the limitations of existing defenses such as differential privacy (which degrades utility) and adversarial training (which assumes known attack models).
  • To provide a simple, plug-and-play defense applicable to any classification model with minimal implementation overhead.

Proposed method

  • Introduce RelaxLoss, a training framework that modifies the target loss to a more achievable level, reducing the gap between training and test loss distributions.
  • Leverage the insight that a large difference between training and test loss increases membership privacy risk, as shown by Yeom et al. (2018).
  • Formalize the defense using a Bayesian optimal attacker model, showing that minimizing loss distribution divergence reduces attack success.
  • Apply the relaxed loss during training without modifying the model architecture, enabling easy integration into existing pipelines.
  • Use a hyperparameter to control the degree of relaxation, balancing privacy and utility.
  • Demonstrate that RelaxLoss increases training loss variance and reduces the overlap gap between member and non-member loss distributions, making MIAs less effective.

Experimental results

Research questions

  • RQ1Can a defense mechanism reduce membership inference attack success without degrading model utility?
  • RQ2To what extent does narrowing the generalization gap between training and test loss reduce MIA vulnerability?
  • RQ3Can a simple, utility-preserving defense generalize across diverse data modalities and attack types?
  • RQ4How does RelaxLoss compare to state-of-the-art defenses like label smoothing, DP-SGD, and adversarial regularization in privacy-utility trade-offs?
  • RQ5Does the relaxed loss approach remain effective under both black-box and white-box membership inference attacks?

Key findings

  • RelaxLoss consistently reduces attack AUC to near-random guessing levels (≈0.5) across all five datasets, including CIFAR-10, Texas100, and Purchase100, under both black-box and white-box attacks.
  • On Texas100 and Purchase100, RelaxLoss outperforms label smoothing, which only achieves AUC reduction in the 0.55–0.8 range and fails to reach random-guessing levels under strong attacks.
  • DP-SGD shows contradictory results: small noise scales reduce attack AUC but provide weak theoretical privacy guarantees, and larger scales degrade utility significantly—highlighting a gap between theory and practice.
  • Unlike regularization methods (e.g., dropout, weight decay), RelaxLoss effectively increases training loss variance and reduces the gap between member and non-member loss distributions, explaining its superior defense performance.
  • RelaxLoss improves or maintains model utility across all datasets, while DP-SGD and adversarial defenses consistently degrade utility.
  • The method is universally applicable and requires minimal implementation overhead, making it practical for real-world deployment in privacy-sensitive applications.

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.