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

Canary in a Coalmine: Better Membership Inference with Ensembled Adversarial Queries

Yuxin Wen, Arpit Bansal, Hamid Kazemi, Eitan Borgnia, Micah Goldblum, Jonas Geiping, Tom Goldstein · DOI

Introduction

Membership Inference Attacks (MIAs) are a cornerstone of AI privacy research, designed to determine whether a specific data point was used to train a target model. This capability is increasingly relevant for legal compliance, such as verifying a company's adherence to the "right to be forgotten" under the EU's General Data Protection Regulation (GDPR). However, existing MIAs often struggle with precision, particularly in "offline" scenarios where the attacker has limited information about the target model's training process. Traditional methods typically rely on simple data augmentations, which may fail to elicit a distinct response from models that are not heavily overfitted.

Methodology: Hatching the Canary

To address these limitations, this research introduces Canary, an algorithm that utilizes adversarially optimized queries to maximize the behavioral difference between "member" (IN) and "non-member" (OUT) models. Instead of querying the target model with the original data point $x$ or its simple rotations, Canary "hatches" an adversarial version $x + \Delta$.

Comparison of decision boundaries for augmented vs. adversarial queries.

The optimization process uses gradient descent to find a perturbation $\Delta$ that minimizes loss on a set of "OUT" shadow models while maximizing it on "IN" shadow models. To ensure these queries remain relevant to the original data point and do not simply overfit to the shadow models, the authors implement an $\epsilon$-constraint, restricting the perturbation to a small neighborhood around the original image. Furthermore, the framework employs an ensembling strategy, generating multiple diverse canaries for a single target point and averaging their signals to create a more robust "litmus test" for membership.

Experimental Setup

The effectiveness of Canary was evaluated on standard image classification benchmarks, including CIFAR-10, CIFAR-100, and MNIST. The researchers tested the attack across a variety of architectures—WideResNet-28-10, ResNet-18, VGG-16, and ConvMixer—to demonstrate its generalizability.

Key Results and Discussion

Canary demonstrates a significant performance boost over previous state-of-the-art methods like LiRA, particularly in realistic "offline" settings. For instance, in experiments using VGG-16, Canary achieved a 15.59% improvement in Area Under the Curve (AUC) over baseline methods.

Impact of ensembling multiple adversarial queries on attack performance.

A critical advantage of the Canary approach is its performance in the "low false-positive regime." In legal contexts, high precision is paramount; a 5% false positive rate is often unacceptable for accusing an entity of a privacy violation. Canary provides much higher True Positive Rates (TPR) at a strict 1% False Positive Rate (FPR) threshold. As shown in the figure above, the ensembling of multiple adversarial queries consistently improves both AUC and the TPR at 1% FPR, highlighting the robustness of the ensembled approach.

The study also found that model architectures with highly reproducible decision boundaries, such as VGG, are more vulnerable to these attacks because the optimized queries transfer more effectively from shadow models to the target model. While Differential Privacy (DP) remains a strong defense, Canary consistently outperformed previous attacks even against DP-trained models.

Conclusion and Future Work

Canary represents a significant step forward in membership inference, providing a more potent tool for privacy auditing. By leveraging adversarial optimization and ensembling, it overcomes the sparsity issues of traditional MIAs. While the computational cost of generating these queries is higher, the gains in precision—especially in offline and low-FPR scenarios—are substantial. Future research will focus on extending these techniques to discrete data types, such as text in Large Language Models (LLMs), where gradient-based optimization presents unique technical challenges.

Summary updated

BibTeX
@inproceedings{wen2023canary,
  author = {Yuxin Wen and Arpit Bansal and Hamid Kazemi and Eitan Borgnia and Micah Goldblum and Jonas Geiping and Tom Goldstein},
  title = {{Canary in a Coalmine: Better Membership Inference with Ensembled Adversarial Queries}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=b7SBTEBFnC},
}
Figure