SNAP: Efficiently Extracting Private Properties with Poisoning
SNAP: Efficient Extraction of Private Properties with Poisoning
The authors propose the poisoning-based property inference attack SNAP, claiming a success rate 34 percentage points higher and 56.5 times faster than Mahloujifar et al. on Census.
The attacker can inject a small number of poisoned samples into the training set (e.g., in a collaborative learning setting) and query the target model in a black-box manner to obtain confidence (the label-only variant obtains only predicted labels); the attacker knows the training algorithm, model architecture, features, and number of training samples, but does not know the model parameters or the specific training samples; the victim system is a classification model trained on the poisoned data.
- Property inference attacks can infer global properties of the training set (e.g., the proportion of a certain population) from a trained model, but existing methods require training hundreds or thousands of shadow models to train a meta-classifier, which is computationally expensive.
- SNAP performs subpopulation poisoning on the target property, exploiting the different effects of poisoning on the model's logit distribution under different property proportions, uses at most 4 shadow models to fit Gaussian distributions and compute a separation threshold for discrimination, and has three additional extensions: label-only, property existence, and property proportion estimation.
- Evaluated on four datasets—Adult, Census, Bank Marketing, CelebA—and 18 properties: for medium properties, 0.6% poisoning exceeds 90% accuracy; for property existence, 8 poisoned samples exceed 95%; the authors claim that on Census the success rate is 34 percentage points higher than [3] and 56.5 times faster.
- The authors leave systematic evaluation of defenses and optimal poisoning strategies for subpopulations to future work; experiments cover only shallow neural networks, logistic regression, and ResNet-18 on four tabular and face datasets, and the DP defense was tested on only two properties.
- Evaluated models
- logistic regression1NN2NN3NN4NN5NN6NNResNet-18
- Benchmarks
- AdultCensusBank MarketingCelebA
- Metrics
- attack accuracyestimation errorF1 score
Researchers proposed SNAP, a poisoning-based property inference attack: an attacker poisons part of the training data and queries the trained target model to extract global properties of the training dataset. Previous property inference attacks relied on training many shadow models, which is computationally expensive; SNAP is designed based on a theoretical analysis of model confidence under poisoning, and achieves a higher success rate and requires less poisoning than the optimal poisoning-based property inference attack of Mahloujifar et al., with a 34% higher success rate and 56.5 times faster on the Census dataset. The attack can also be extended to determine whether a property appears in training and to efficiently estimate its exact proportion; researchers validated the method's effectiveness on multiple properties across four datasets, and the open-source implementation is at https://github.com/johnmath/snap-sp23。
Paper analysis
What problem does this paper attempt to solve?
The authors propose a poisoning-based attribute inference attack, SNAP, and state that it has a higher success rate, uses less poisoning, and requires less computation than existing methods.
Core question: how to design a property inference attack with lower computational overhead, a lower poisoning rate, and a higher success rate than existing methods.
- Problem setting: In a property inference attack, the attacker queries a trained model to infer global properties of the training set (e.g., the proportion of a certain demographic group or of a rare disease). The authors give an example: a company can attack a competitor's released model to learn its customers' demographic composition in order to adjust advertising strategy.
- Shortcomings of existing methods: The authors state that existing methods [1][2][5] (including the poisoning-based [3]) all require the attacker to train hundreds or thousands of shadow models to learn a meta-classifier, which is computationally expensive and not necessarily the optimal attack.
- Core observation: Poisoning targeting the target property affects the two "worlds" (property proportion t0 or t1 in the training set) differently: when the poisoning rate is close to the smaller t0, most predictions of the model in World 0 on property samples are flipped, while World 1 is affected much less; and the larger the poisoning rate, the more clearly separated the logit distributions of the two worlds and the smaller their variance (Figure 1).
- Method proposed in the paper: SNAP (Subpopulation INference Attack with Poisoning), which does not train a meta-classifier and uses at most 4 shadow models to fit Gaussian distributions of logits and compute a separation threshold; it is further extended to property existence determination, a label-only version, and property proportion estimation.
- Threat model:
- Goal: infer the proportion of samples in the training set that satisfy some Boolean property f (distinguish t0 from t1, determine whether the property exists, or estimate the exact proportion).
- Knowledge: the attacker knows the training algorithm, model architecture, features, and number of training samples; does not know the model parameters or the specific training samples.
- Capability: inject a small number of poisoned samples into the training set (the paper states this is feasible in collaborative learning settings); query the target model in a black-box manner to obtain confidence, and the label-only variant obtains only predicted labels.
- Victim system: a classification model trained on the poisoned dataset (in the paper's experiments, neural networks, logistic regression, ResNet-18).
What related research exists?
Related work is divided into three categories: individual privacy attacks, poisoning attacks, and property inference; this paper directly benchmarks against Mahloujifar et al. [3].
Individual privacy attacks
- Reconstruction attacks: early work targeted statistical databases [9], and recent work targets generative language models [10][11] and federated learning [12]–[14], and can reconstruct user data in the training set.
- Membership inference: determines whether a sample is in the training set [6][15]–[21]; the paper states that the best membership inference attacks train multiple models to analyze the loss [22] or logit [23] distribution of the target sample.
Poisoning attacks
- Three classic types of poisoning: availability attacks reduce overall test accuracy [24]–[26]; targeted attacks cause target samples to be misclassified [27]–[30]; backdoor attacks cause the model to react to specific trigger patterns [31][32]. Subpopulation poisoning [33] targets a specific subpopulation in the data distribution and is the direct basis for SNAP's poisoning step.
- Combining poisoning with privacy attacks: Ma et al. [34] state that differential privacy can defend against poisoning; poisoning has been used to audit differential privacy lower bounds [35][36]; Truth Serum [37] uses poisoning to improve membership inference success rates.
Property inference
- Ateniese et al. [4]: proposed property inference, initially targeting Hidden Markov Models and SVMs.
- Suri and Evans [5]: formalized property inference as a game of distinguishing two worlds (property proportions t0 and t1); this paper follows that formalization.
- Ganju et al. [1], Zhang et al. [2]: white-box (using neuron ranking to construct meta-classifier features) and black-box (using model confidence) property inference, respectively, both targeting deep neural networks.
- Mahloujifar et al. [3]: the paper states this is the only property inference attack that uses poisoning, with a label-only threat model, using 500 shadow models to train a meta-classifier; it is the only comparison baseline in this paper, compared on Census (Gender=Female, Race=Black) and CelebA (Gender=Male, 30% vs 70%).
Positioning: the authors state that existing methods rely on meta-classifiers and large numbers of shadow models, whereas SNAP replaces the meta-classifier with a discrimination test guided by theoretical analysis, achieving a higher success rate while reducing the number of shadow models by several orders of magnitude.
How does the paper address this problem?
SNAP uses subpopulation poisoning to amplify the difference in logit distributions between the two worlds, then uses Gaussian fitting plus threshold discrimination, without needing a meta-classifier.
Overall approach: treat the target property as a subpopulation and perform subpopulation poisoning, so that the two worlds with different property proportions produce distinguishable logit distribution shifts after poisoning; the attacker uses a small number of shadow models to learn offline the Gaussian distributions of logits for the two worlds and the separation threshold, then queries the target model and performs majority-vote discrimination. The method is driven by a theoretical analysis of the effect of poisoning on the logit distribution.
Problem setting
- Privacy game: following the formalization of [4][5] and the poisoning version of the game in [3]: the challenger randomly selects a bit b, samples a clean dataset Dc (size (1−p)n) containing a proportion tb of the property, the attacker submits a poisoning set Dp (size pn), the challenger trains a model Mb on Dc ∪ Dp, and the attacker outputs a guess b′ after querying.
- Three tasks: distinguishing two property proportions t0 and t1; property existence (the special case t0 = 0, which the authors call a generalization of membership inference); property proportion estimation (without knowing t0, t1, iteratively search for the true proportion t*).
Attack procedure (Algorithm 1)
- Data poisoning: take samples that satisfy property f and have label of the victim class v (the majority class in that subpopulation), and flip the label to the attacker-chosen target class ṽ. The authors state that setting ṽ to the minority class in the subpopulation requires the least poisoning, similar to the label-flipping strategies of [3][33][41].
- Model confidence learning: construct datasets D0, D1 containing property proportions t0, t1, each augmented with Dp, and train k shadow models per world (default k=4); query these 2k models with the property sample query set Ds, fit a Gaussian to each of the two logit distributions, and compute, per Claim 4.3, the separation threshold T that minimizes the sum of the two error probabilities.
- Discrimination test: after the model owner trains the target model on the poisoned data, the attacker queries the target model with Dq ⊆ Ds (default 1000 entries), converts to logits, and outputs World 0 if the majority of logits are greater than T, otherwise World 1.
Theoretical analysis
- Theorem 4.1: under the assumption that the model learns the class probabilities of the training distribution, the target-class logit after poisoning is φ̃(x)ṽ = log[p/(πv(1−p)t) + eφ(x)ṽ(1 + p/(πv(1−p)t))]; the implication: the smaller the property proportion t, the larger the logit shift caused by a fixed poisoning rate p, which is the basis for the discrimination test.
- Theorem 4.2: assuming the clean logits follow a Gaussian distribution, gives closed-form expressions for the mean and variance of the logits after poisoning; the authors state that as the poisoning rate increases, the means of the two worlds shift at different rates and the variance shrinks, increasing separation (in Figure 2 the theoretical curves match the trend of the experimental values). The paper reports that choosing the poisoning rate according to the theoretical variance falling below a fixed threshold (e.g., 0.15) yields attack success rates above 90% on all tested properties.
- Claim 4.3 / 4.4: give, respectively, the closed-form solution for the optimal separation threshold T (approximated by T=(µ0+µ1)/2 when the two Gaussian standard deviations are similar) and the lower bound on the number of queries needed to guarantee a discrimination success probability greater than 1−max(α,β)−ϵ (Chernoff bound).
Three extensions
- Property existence: the special case t0=0, with the procedure unchanged; the authors state that very few poisoned samples are needed (at most 8 on multiple properties).
- Label-only version: exploits "the predicted label flips when the target-class confidence after poisoning is >0.5 (corresponding to the logit turning from negative to positive)", using theoretical analysis to choose the poisoning rate p* so that the mean logit of the t0 world turns positive while the t1 world remains negative; the authors state that when p* is too large the t1 world also flips, and accuracy first rises then falls (Figure 9).
- Property proportion estimation: exploits "the smaller the subpopulation, the larger the logit shift" to rank candidate proportions and perform binary search: initialize t̂=0.5, train shadow models at proportion t̂, check the proportion of their logits falling within the target model's logit interval, and if insufficient, halve the search space until convergence; the number of shadow models drops from S to log2(S), and in experiments at most 12 shadow models achieve 0.001 precision.
What experiments did the paper conduct?
Evaluated on 18 attributes across four datasets, the authors state that for medium attributes, 0.6% poisoning exceeds 90%, with a higher success rate than [3] and 56.5 times faster.
Experimental Setup
- Datasets and models: Adult (48,842 records), Census (299,285 records), and Bank Marketing (45,211 records) use a two-layer neural network (32 and 16 hidden units); CelebA (202,599 face images) uses ResNet-18 for smile detection; when comparing with [3], logistic regression is used.
- Attributes: 18 target attributes in total, divided into large (>10%), medium (1%–10%), and small (<1%) categories; the 11 for Adult/Census are in Table 1, and the 7 for Bank Marketing/CelebA are in Appendix Table 7.
- Metrics: attack accuracy (the probability of correctly distinguishing the proportion of attributes); attribute estimation uses estimation error; model utility uses F1 (dataset class imbalance).
- Repetitions and sample size: all experiments are repeated 5 times; each trial trains 10 target models per proportion and uses 10 different query sets, for 200 observations in total, and the reported accuracy is the average of 1000 observations; the default query set is 1000 records, with 4 shadow models per proportion.
- Baseline: Mahloujifar et al. [3], reproduced by the authors using parameters confirmed by its authors (r=100 ensemble, 500 shadow models, 1500 samples per shadow model, logistic regression).
Main Results
Comparison with [3] (Census, logistic regression, average of 5 trials; according to the main text of Section 5.4):
Swipe horizontally to read the table
Target attribute Poisoning rate SNAP [3] Gender = Female 3% 91% 57% Race = Black 2% 93% 58% label-only version comparison (Census, p* selected according to theory, optimized version used for large attributes; according to Table 3):
Swipe horizontally to read the table
Target attribute Discrimination task p* SNAP [3] Race = Black 10% vs 25% 3.7% 100% 97% Gender = Female 30% vs 50% 4.5% 98% 70% Workclass = Private 20% vs 40% 1.1% 94% 56% Gender = Male; Race = White 15% vs 30% 5.7% 95% 65% - The authors claim that SNAP is consistently better than [3] at each poisoning rate, with a runtime of 13.6 seconds versus 768.2 seconds (M1 chip, 8-core CPU), a 56.5× speedup.
- When the shadow model is changed to 2NN, the authors claim that the two attributes exceed 96% accuracy under 2% poisoning, whereas [3] is below 60% on Gender=Female (Figure 7).
- The abstract and introduction give additional summary figures: on Census, SNAP has a 34 percentage point higher success rate than [3] and is 56.5× faster (per the authors).
Effect of Poisoning Rate and Attribute Size
- Large attributes: Figure 4a shows accuracy above 90% at 5% poisoning, approaching 100% near 10%; the optimized version (poisoning sub-attributes within large attributes; see Appendix Table 8 for the sub-attributes) approaches 90% at 1.5% poisoning (Figure 4c).
- Medium attributes: Figure 4b shows that at 0.6% poisoning, all 4 medium attributes exceed 90% accuracy; when distinguishing "Gender = Female; Occupation = Sales" on Adult at 1% vs 3.5%, 0.4% poisoning reaches 96%.
- Utility cost: the authors report that poisoning large attributes decreases F1 by at most 8%, and at low poisoning rates the metrics are close to the original model.
Attribute Presence and Proportion Estimation
- Presence: Figure 4d shows that three small attributes all reach above 95% accuracy with 8 poisoned samples; without poisoning, the success rate is between 29% and 62%.
- Proportion estimation (2NN, 2000 queries, 2 shadow models per t̂, average of 5 trials): medium attributes under 1% poisoning have estimates within 1%–10% of the true value t* (Table 4, e.g., Education=Bachelors: t*=10.0%, estimate 10.4%); large attributes under 5% poisoning have errors of 0%–5% (Table 5, e.g., Gender=Female: t*=52.1%, estimate 50.0%).
- Robustness to over-poisoning: the authors report that when the poisoning rate is ten times the optimal value, the estimate is still close to t* (e.g., Race=Black has an optimal value of 1%, and at 10% the estimate is within 0.9% of t*).
Other Ablations and Analyses
- Model complexity: going from 1NN to 2NN increases accuracy and F1 by 10% and 6%, respectively; after 6NN overfits, accuracy is at least 17% lower than 2NN (two attributes, 2% and 0.2% poisoning).
- Number of shadow models: a single shadow model already exceeds 90% accuracy per proportion; Race=Black reaches 96% with 2 shadow models under 5% poisoning.
- Number of queries: the theoretical lower bound is conservative; e.g., Workclass=Private at p=5% has a theoretical recommendation of about 260 queries, while Figure 6 shows 92% is reached with 100.
- Training set size: Figure 5 shows that accuracy increases with a larger training set, and at high poisoning rates fewer samples suffice to reach high accuracy.
- Generalization: on Adult, all 15 large attribute combinations (10% vs 25%, p=5%) exceed 93% accuracy; on CelebA, Older Faces is 57%/99%/99% under 0%/5%/10% poisoning, and Wearing Earrings is 40%/73%/79%.
- Differential privacy: on target models trained with DP-Adam (Table 9), Race=Black still has 98% at ε=1, and Race=White, Gender=Male drops to 75% at ε=1, but at that point the private model's F1 on this subgroup is only 0.07.
What are some points that can be further explored?
The authors leave defense evaluation and subpopulation poisoning strategies to future work; experiments are limited to four datasets and several classes of small- to medium-scale models.
Limitations and future directions noted by the authors
- Subpopulation poisoning strategy (Section 6, Selecting Target Properties): the attacker must determine the target property and poisoning points before training; the authors leave "formalizing a poisoning strategy that maximizes the accuracy of subpopulation attacks" to future work.
- Defense evaluation (Section 6, Defenses against Property Inference): the authors leave "a thorough evaluation of defenses against property inference, or a proof that defense is impossible" to future work; the paper only proposes limiting the number of queries per user and applying poisoning defenses [34][43][44] as potential mitigation directions.
- Fairness auditing (Section 6, Property Inference as an Auditing Tool): the authors consider adapting property inference into an ML fairness auditing tool a promising future direction.
- Differential privacy does not constitute a defense (Section 6): the authors point out that differential privacy is not designed to defend against property inference, and support this with DP-Adam experiments; this is a statement about the scope of defenses rather than a limitation of this paper's method.
Experimental coverage
- The models tested are a two-layer neural network (Adult/Census/Bank Marketing), ResNet-18 (CelebA), and logistic regression (compared with [3]); ablations include 1NN–6NN; the DP experiments use 4NN (Census) and 3NN (Adult).
- The datasets are Adult, Census, Bank Marketing, and CelebA, 4 in total, with 18 properties in total (Table 1 and Appendix Table 7).
- The attack accuracy for each condition is averaged over 5 trials, 1000 observations in total; the default query set is 1000 entries, with 4 shadow models per proportion.
- Defense evaluation includes only DP-Adam (ε of 8/4/2/1, two properties, Table 9); limiting the number of queries and poisoning defenses are proposed only as directions, without experiments.
- The comparison with existing work is only against Mahloujifar et al. [3] (the authors state that [3] is the only poisoning-based property inference attack, and that [3] has already been compared with the non-poisoning [1]).
Summarize the main content of the paper
SNAP uses theory-guided poisoning plus a logit Gaussian discriminator for attribute inference; the authors claim a higher success rate and shadow models reduced by several orders of magnitude.
A paper on property inference attacks: the attacker poisons the training set and queries the trained model to infer the proportion of a certain property in the training set.
- Problem to solve: existing property inference attacks (including the poisoning-based Mahloujifar et al. [3]) require training hundreds or thousands of shadow models to train a meta-classifier, which is computationally expensive; the authors aim to simultaneously achieve a lower poisoning rate, a higher success rate, and less computation.
- Method highlights: SNAP treats the target property as a subpopulation and performs label-flipping poisoning, exploiting the theoretical result that poisoning affects the logit distributions of worlds with different proportions differently (Theorem 4.1/4.2), uses at most 4 shadow models to fit Gaussian distributions and compute a separation threshold for majority-vote discrimination; it is extended to property existence, a label-only version, and binary-search-based property proportion estimation.
- Main results: for medium properties, 0.6% poisoning gives accuracy above 90% (Figure 4b); property existence with 8 poisoned samples exceeds 95% (Figure 4d); on Census with Gender=Female, 3% poisoning, and logistic regression, SNAP 91% vs. [3]'s 57%, with runtime 13.6 seconds vs. 768.2 seconds (56.5 times); the label-only version on four properties 94%–100% vs. [3]'s 56%–97% (Table 3); proportion estimation achieves 0.001 precision with at most 12 shadow models.
- Authors' conclusions: the authors claim that SNAP outperforms [1][3][5] in multiple settings, with the number of shadow models reduced by several orders of magnitude; DP-Adam training cannot prevent the attack (at ε=1, still 98% on Race=Black); the authors consider limiting the number of queries and poisoning defenses as potential mitigation directions, and leave systematic evaluation of defenses and fairness auditing applications to future work.