NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adversarial Task-Specific Privacy Preservation under Attribute Attack

Han Zhao, Jianfeng Chi, Yuan Tian, Geoffrey J. Gordon

Abstract

Crowdsourced data used in machine learning services might carry sensitive information about attributes that users do not want to share. Various methods have been proposed to minimize the potential information leakage of sensitive attributes while maximizing the task accuracy. However, little is known about the theory behind these methods. In light of this gap, we develop a novel theoretical framework for attribute obfuscation. Under our framework, we propose a minimax optimization formulation to protect the given attribute and analyze its inference guarantees against worst-case adversaries. Meanwhile, it is clear that in general there is a tension between minimizing information leakage and maximizing task accuracy. To understand this, we prove an information-theoretic lower bound to precisely characterize the fundamental trade-off between accuracy and information leakage. We conduct experiments on two real-world datasets to corroborate the inference guarantees and validate this trade-off. Our results indicate that, among several alternatives, the adversarial learning approach achieves the best trade-off in terms of attribute obfuscation and accuracy maximization.

Introduction

In the modern landscape of machine learning services, users frequently share data to receive personalized recommendations or services. However, this data often contains sensitive "nuisance" attributes—such as race, age, or health status—that users may wish to keep private. Simple removal of these attributes is insufficient due to correlations with other features. This paper addresses the challenge of Attribute Inference Attacks by establishing a formal theoretical framework for attribute obfuscation.

Theoretical Framework

The core of the proposed approach is a minimax optimization game involving three components:

  1. The Encoder ($f$): Maps raw data $X$ to a representation $Z$.
  2. The Task Classifier ($h$): Predicts the target label $Y$ from $Z$.
  3. The Adversary ($h_A$): Attempts to infer the sensitive attribute $A$ from $Z$.

The objective is to maximize the accuracy of $h$ while minimizing the performance of $h_A$. The authors introduce the Attribute Inference Advantage (ADV) as a robust metric for privacy, defined by the adversary's ability to distinguish between attribute classes better than a random guess.

A key contribution is the derivation of information-theoretic lower bounds. The paper proves a "No Free Lunch" theorem: if the target task and the sensitive attribute are correlated, perfect accuracy and perfect privacy are mutually exclusive. The fundamental trade-off is governed by the Jensen-Shannon (JS) divergence between the data distributions.

Experimental Validation

The framework was evaluated using two benchmark datasets:

  • UCI Adult Dataset: Predicting income while obfuscating gender, age, and education.
  • UTKFace Dataset: Gender classification while hiding age and ethnicity.

The experiments compared several methods, including Gradient Reversal Layers (GRL), Maximum Entropy (MAX-ENT), Principal Component Analysis (PCA), and Differential Privacy (DP) variants like Local DP (LDP) and DP-SGD.

Adversary error rates across different datasets and methods. Horizontal lines indicate theoretical lower bounds.

Results and Discussion

The empirical results strongly support the theoretical findings. As shown in Figure 1, the adversary's error probability $\tilde{Pr}(\hat{A} \neq A)$ increases as stronger obfuscation methods are applied. Notably, the empirical results closely track the theoretical lower bounds (indicated by horizontal lines in the figures), validating the tightness of the proposed bounds.

Privacy metric (sum of error rates) for various obfuscation techniques. Higher values indicate better privacy.

Figure 2 illustrates the privacy guarantees through the metric $Err_0 + Err_1$. While Differential Privacy methods (like LDP with $\epsilon=1$) provide high levels of privacy (values near 1.0), they often suffer from significant utility loss. In contrast, adversarial methods like GRL and MAX-ENT consistently achieve a superior balance, providing robust attribute protection while maintaining high task accuracy.

Conclusion

This work provides a rigorous mathematical foundation for adversarial representation learning in the context of privacy. By characterizing the fundamental trade-off between utility and obfuscation, it offers a roadmap for designing more secure and efficient machine learning systems. The results confirm that adversarial training is a powerful tool for surgical privacy preservation, outperforming traditional methods in balancing the competing demands of data utility and attribute protection.

Summary updated

BibTeX
@inproceedings{zhao2020adversarial,
  author = {Han Zhao and Jianfeng Chi and Yuan Tian and Geoffrey J. Gordon},
  title = {{Adversarial Task-Specific Privacy Preservation under Attribute Attack}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=5BAyLae2Qi9},
}
Figure