[Paper Review] Canary in a Coalmine: Better Membership Inference with Ensembled Adversarial Queries
This paper proposes Canary attacks, a novel black-box membership inference method that uses ensembled adversarial queries optimized to maximally distinguish models trained with and without a target data point. By adversarially crafting discriminative queries instead of relying on simple data augmentations, the approach achieves state-of-the-art performance, especially in low false-positive regimes critical for legal enforcement, outperforming prior methods across multiple datasets, architectures, and even under differential privacy.
As industrial applications are increasingly automated by machine learning models, enforcing personal data ownership and intellectual property rights requires tracing training data back to their rightful owners. Membership inference algorithms approach this problem by using statistical techniques to discern whether a target sample was included in a model's training set. However, existing methods only utilize the unaltered target sample or simple augmentations of the target to compute statistics. Such a sparse sampling of the model's behavior carries little information, leading to poor inference capabilities. In this work, we use adversarial tools to directly optimize for queries that are discriminative and diverse. Our improvements achieve significantly more accurate membership inference than existing methods, especially in offline scenarios and in the low false-positive regime which is critical in legal settings. Code is available at https://github.com/YuxinWenRick/canary-in-a-coalmine.
Motivation & Objective
- To address the critical need for effective membership inference in real-world legal and regulatory contexts where model weights are typically not accessible.
- To overcome the limitations of existing membership inference attacks that rely only on the original data point or basic augmentations, which yield sparse and uninformative model behavior sampling.
- To develop a method that generates highly discriminative, adversarially optimized queries capable of reliably detecting whether a target sample was in a model's training set.
- To evaluate the robustness and transferability of these adversarial queries across diverse datasets, model architectures, and privacy defenses such as differential privacy.
- To provide a practical tool for data owners and regulators to verify compliance with data ownership rights, such as the GDPR's 'right to be forgotten'.
Proposed method
- The method constructs adversarial queries—perturbed inputs—specifically optimized to maximize the difference in model outputs between models trained with and without the target data point.
- It uses a gradient-based optimization process to generate query vectors that are maximally discriminative, focusing on pre-softmax logits and Carlini-Wagner (CW) loss objectives for optimal performance.
- The approach trains an ensemble of such adversarial queries to improve robustness and generalization across different model architectures and datasets.
- It leverages transferability by training queries on shadow models and transferring them to the target model, even without access to the target model's weights.
- The optimization targets the model's confidence and output logits, with pre-softmax logits showing the strongest improvement in both online and offline settings.
- The method is evaluated under differential privacy by applying norm clipping and noise injection, assessing performance degradation and transferability.
Experimental results
Research questions
- RQ1Can adversarially optimized queries significantly improve membership inference performance compared to standard data augmentations in black-box settings?
- RQ2How effective are ensembled adversarial queries in detecting membership when the target model is trained with differential privacy?
- RQ3Which optimization objective (e.g., pre-softmax logits, CW loss) yields the most robust and accurate membership inference across diverse model architectures and datasets?
- RQ4To what extent do adversarial queries trained on shadow models transfer effectively to unseen target models without white-box access?
- RQ5Can the proposed method achieve high true positive rate at low false positive rates—critical for legal applications—where prior methods fail?
Key findings
- The Canary attack achieves a 21.98% true positive rate at 1% false positive rate (TPR@1% FPR) in the offline setting, significantly outperforming the baseline LiRA method, which achieves only 9.85% on the same metric.
- In the offline setting, the best-performing objective—directly maximizing pre-softmax logits—achieves a TPR@1% FPR of 12.60%, a 2.75% improvement over the next best method.
- Under differential privacy with ε=100, the Canary attack increases the TPR@1% FPR from 1.18% (LiRA) to 1.81%, demonstrating improved robustness against privacy-preserving defenses.
- The method consistently improves performance across three datasets (CIFAR-10, SVHN, CelebA), four model architectures (ResNet-18, WideResNet, DenseNet, VGG), and both online and offline membership inference scenarios.
- Even under strong differential privacy (ε=100), the target model's test accuracy drops from 88% to 44%, yet the Canary attack still achieves a measurable improvement over baseline methods, indicating its resilience.
- The use of pre-softmax logits as the optimization objective yields the largest performance gain, despite not explicitly suppressing confidence for non-target classes, suggesting its effectiveness in capturing membership-relevant signal.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.