Dissecting Distribution Inference
Anshuman Suri, Yifu Lu, Yanjin Chen, David Evans
TL;DR
This work advances distribution inference privacy by introducing a black-box KL-Divergence Attack that often outperforms prior white-box approaches, even when adversaries have limited access (e.g., label-only APIs). By training shadow models on candidate distributions and comparing prediction distributions via KL divergence, the attack yields substantial leakage across diverse datasets, challenging the effectiveness of common noise-based defenses. The study systematically analyzes how adversary knowledge (model architectures, feature extractors, and access modality) affects leakage and finds that leakage persists even with reduced information, though sharing representations and model capacity considerations matter. As a practical countermeasure, the authors propose simple data re-sampling defenses (under-/over-sampling, augmentation strategies) that can markedly reduce leakage at the cost of some task performance and fairness implications, while revealing fundamental trade-offs between generalization and privacy. Code to reproduce results is publicly available at the linked GitHub repository.
Abstract
A distribution inference attack aims to infer statistical properties of data used to train machine learning models. These attacks are sometimes surprisingly potent, but the factors that impact distribution inference risk are not well understood and demonstrated attacks often rely on strong and unrealistic assumptions such as full knowledge of training environments even in supposedly black-box threat scenarios. To improve understanding of distribution inference risks, we develop a new black-box attack that even outperforms the best known white-box attack in most settings. Using this new attack, we evaluate distribution inference risk while relaxing a variety of assumptions about the adversary's knowledge under black-box access, like known model architectures and label-only access. Finally, we evaluate the effectiveness of previously proposed defenses and introduce new defenses. We find that although noise-based defenses appear to be ineffective, a simple re-sampling defense can be highly effective. Code is available at https://github.com/iamgroot42/dissecting_distribution_inference
