Inference attacks exploiting unintended feature leakage in collaborative learningExploiting Unintended Feature Leakage in Collaborative Learning
The authors study update leakage in collaborative training and report that participants can infer the membership and non-task attributes of others' data.
The attacker is a collaborative training participant who infers the membership and properties of other participants' training data through periodic model updates. Passive attacks only observe updates; active attacks use multi-task learning to change the local training objective. Attribute inference requires correctly labeled auxiliary data.
- When training data does not leave the local device, what can periodically exchanged model updates still leak? The authors focus on whether a specific record participated in training, and on attributes that belong only to part of the training data and are unrelated to the main task.
- Membership inference exploits the nonzero positions in embedding gradients; attribute inference uses auxiliary data to generate labeled gradients and trains an attribute classifier. The active version adds multi-task local training so that the model learns the attributes the attacker cares about.
- The authors report membership, attribute, and appearance-time inference results on image, text, and location data. Under multi-party aggregation some attacks remain usable, but some face identity inference fails; vocabulary reduction is accompanied by a drop in main-task performance.
- The authors note that attribute attacks require labeled auxiliary data, multi-party aggregation makes attribution difficult, and some attributes cannot be detected. The experiments have 2 to 30 participants; achieving both accuracy and participant-level differential privacy with few participants remains an open problem.
- Evaluated models
- CNN (LFW)CNN (FaceScrub)VGG-style 10-layer CNN (PIPA)RNN with GRU (Yelp-health)RNN with GRU (Yelp-author)CNN (FourSquare)CNN (CSI)
- Benchmarks
- Labeled Faces In the Wild (LFW)FaceScrubPeople in Photo Album (PIPA)CLiPS Stylometry Investigation (CSI) CorpusFourSquareYelp-healthYelp-author
- Metrics
- AUCPrecisionRecallPearson correlation
A paper by researchers including Luca Melis (published at IEEE S&P 2019) shows that model updates exchanged in collaborative learning and federated learning leak unintended information about participants' training data. An adversary as a participant can carry out membership inference and property inference: on FourSquare location data, infer with 0.99 precision and perfect recall whether a certain location profile was used to train a gender classifier; on LFW, infer whether the person in a training photo wears glasses and other attributes unrelated to the main task; on Yelp medical reviews, infer with perfect accuracy the specialty of the reviewed doctor, and can also infer when a certain person began appearing in the other party's training photos. Active attackers can use multi-task learning to further amplify the leakage. Among the defenses evaluated in the paper, sharing fewer gradients, dimensionality reduction, and dropout all fail to effectively prevent the attacks, while participant-level differential privacy is difficult to apply because it is designed for thousands of users.
Why it was selectedThe paper shows that model updates in collaborative and federated learning leak the membership and sensitive attributes of participants' training data, and common defenses are difficult to effectively prevent this.
Paper analysis
What problem does this paper attempt to solve?
The authors study whether model updates leak specific training records, as well as local data attributes unrelated to the main task.
The core question is: what unintended information does collaborative training without sharing raw data leak through model updates? The authors distinguish class features that the model is supposed to learn from attributes that belong only to part of the training records.
- Application scenarios: multiple participants train locally and exchange updates. The authors point out that applications such as medical records and private images keep data local, which does not mean that updates carry no data information.
- Difference from existing inference: the authors argue that generating representative samples of a class is insufficient to determine whether a specific sample participated in training; when class members are similar, the similarity between generated images and training images cannot by itself serve as evidence.
- Core observation: the authors argue that deep models may learn internal features unrelated to the specified task; these features leak through gradient updates. For example, the eyeglasses attribute in gender classification training.
- Threat model: the attacker is one participant in the jointly trained model, and the goal is to infer the membership, attributes, and occurrence time of other participants' data.
- Visible information: in two-party synchronous SGD, the other party's single-batch updates can be observed; with multiple parties, the aggregate of other participants' updates is observed; model averaging additionally superimposes local training aggregation.
- Capabilities and knowledge: passive attacks do not change training; active attacks change the local learning objective but submit protocol-compliant messages. The paper states that active attacks still fall under "honest-but-curious".
- Auxiliary data: attribute inference requires data correctly labeled with the target attribute; the active version also requires main task labels.
- Proposed attacks: membership inference exploits embedding updates, attribute inference trains gradient classifiers; the active version uses multi-task learning to influence the joint model's representation.
What related research exists?
The authors distinguish training-record and local-attribute inference from class-representative generation and privacy-preserving training.
The authors organize related work around privacy-preserving training, membership inference, and other model leakage, and emphasize that category features are not equivalent to information specific to training data.
Privacy-preserving distributed training
- Shokri and Shmatikov (2015) — collaboratively train by exchanging gradients, and discuss partial sharing and differential privacy. The authors point out that their differential privacy scheme requires a large ε to obtain an accurate model.
- McMahan et al. (2018), Geyer et al. (2017) — study participant-level differentially private federated learning. The authors argue that their accuracy-privacy trade-off requires a large number of participants; the teacher-student method of Papernot et al. relies on a trusted aggregator and provides record-level protection.
- SecureML and Bonawitz et al. (2017) — protect data or updates through multi-party computation training and secure aggregation, respectively. The authors emphasize that attribute inference may still be possible when only aggregated updates are seen.
Membership inference
- Shokri et al. (2017), Hayes et al. (2019) — study membership inference for black-box supervised models and generative models, respectively; Long et al. (2018) and Yeom et al. (2018) discuss the relationship between generalization, overfitting, and leakage.
- Truex et al. (2018) — study the transferability of membership attacks, and discuss the inference capability of collaborating participants when they access each party's independent updates. In this paper's multi-party setting, typically only the aggregated updates of other participants can be observed.
Class representatives, attributes, and memorization leakage
- Fredrikson et al., Ateniese et al., Hitaj et al. — study class feature inference or class representative generation. The authors argue that the GAN results of Hitaj et al. do not provide evidence distinguishing training images from other images of the same class.
- Aono et al., Song et al., Carlini et al. — discuss gradient recovery under single-sample batches, actively making the model memorize data, and unintended memorization in sequence models, respectively. The authors distinguish these problems from local attribute inference in collaborative training.
- Ganju et al. (2018) — study attribute inference for shallow fully connected networks released white-box after training. The authors point out that their attributes may be related to the main task, whereas this paper focuses on the training process and attributes unrelated to the main task.
Experimental comparison and positioning
- Comparison setting: there is no unified table of existing attack baseline results; the main comparisons are between passive and active attacks, and across changes in defense parameters. CNN, RNN, etc. are evaluated on data such as LFW, FaceScrub, and CSI.
The authors position the distinction of their work as: using updates during training to infer attributes that belong only to part of the training inputs, rather than to the entire class.
How does the paper address this problem?
Membership inference reads embedding updates, attribute inference learns gradient classifiers, and the active version further influences the joint model's representation.
The authors design membership inference, passive attribute inference, and active attribute inference, whose common input is the model updates observable during collaborative training.
Update observation and inference targets
- Update source: the attacker saves consecutive snapshots of the joint model, subtracts their own contribution from the parameter changes, and obtains the aggregate of other participants' updates (Figure 2).
- Aggregation level: in synchronous SGD, each party contributes the gradient of one batch; in model averaging, each party first completes local training, and then the server performs a weighted average by data amount. In the experiments, the per-round participation ratio C is set to 1.
- Attribute scope: it can be determined whether a single batch, an occurrence time across rounds, or the entire local dataset has an attribute. Auxiliary training under model averaging requires locally simulating the aggregation process.
Membership inference: sparse updates in embeddings
- Leakage mechanism: for discrete inputs such as text or positions, the authors exploit the property that the embedding matrix only updates the positions corresponding to tokens appearing in the current batch.
- Decision rule: represent the record to be judged as a Bag of Words; if all the words or positions it contains appear in some observed set of batches, it is judged as a member. This rule only gives a binary judgment and does not output a probability.
- Error source: the authors point out that as the batch grows, more words are observed, which increases the chance that non-member records also satisfy the containment relation.
Passive attribute inference: training a classifier from auxiliary gradients
- Auxiliary samples: the attacker holds data with and without the target attribute; both come from the same class as the target data, but can otherwise be unrelated.
- Training input and output: compute the gradients of the auxiliary data on joint model snapshots, and train a binary classifier with whether the attribute is present as the label; at inference time, input the actually observed updates (Algorithm 3).
- Classifier choice: the embedding gradient attack uses logistic regression; other attacks compare logistic regression, gradient boosting, and random forests, and the authors report that random forests with 50 trees perform best.
- Dimensionality and aggregation: use max pooling to reduce the dimensionality of gradient features. When judging the entire dataset, attribute scores across rounds can be averaged; the paper does not give a unified final decision threshold.
Active attribute inference: changing the local training objective
- Additional task: the attacker connects an attribute classifier to the local joint model, so that local training simultaneously optimizes the main task and the target attribute task.
- Joint objective: Lmt=α L(x,y;θ)+(1−α)L(x,p;θ). Here y is the main task label, p is the attribute label, and α controls the weight of the two loss terms (Section 4.5).
- Intended effect: the authors state that this makes the joint model better distinguish data with and without the attribute, thereby making the corresponding gradients easier to distinguish; the attacker does not need to submit protocol messages with abnormal formats.
- Notational inconsistency: in the formula, α weights the main task loss, but Section 6.5 and Figure 7 call α=0 the passive attack and state that increasing α improves the attack. The paper does not explain how these two places correspond.
What experiments did the paper conduct?
The authors report leakage of multiple types of training data; there are also successful cases in multi-party model averaging, but some face identity inference fails.
The experiments cover two-party synchronous SGD, multi-party synchronous SGD, and multi-party model averaging, and evaluate partial gradient sharing, vocabulary reduction, dropout, and participant-level differential privacy.
Experimental Setup
- Image models and data: 13,233 images from LFW and 18,809 selected images from FaceScrub use a three-layer convolutional CNN; 18,000 selected images from PIPA use a VGG-style 10-layer CNN (Section 5).
- Text and location models: 17,938 Yelp-health and 16,207 Yelp-author reviews use an embedding—GRU—classification-layer RNN; 1,412 CSI reviews and 15,548 FourSquare users use a CNN based on [31].
- Main tasks and inference: Main tasks include gender, smile, age, race, eyeglasses, hair, sentiment, and rating classification; inference targets include membership, identity, author, region, authenticity, doctor specialty, etc. (Table 1).
- Two-party protocol: Membership experiments split the data evenly and train for 3,000 rounds. Single-batch attribute experiments also split the data evenly, with by default half of the target batch all having the attribute and the rest not; partial-attribute experiments change the proportion within the batch.
- Evaluation and controls: Attribute attacks and the joint model use AUC, membership attacks report Precision and Recall; there is no LLM review. Controls include passive attacks, no-attribute control trials, and different defense settings.
- Repetition and scale: Multi-party synchronous SGD examines 4 to 30 participants; model averaging does 8 trials with the attribute and 8 control trials per condition. Other experiments do not uniformly report the number of repetitions or confidence intervals.
Main Results
The table below lists representative results from Table 2 and Table 3; Table 3 also contains other main-task—attribute combinations.
Swipe horizontally to read the table
Evaluated model and data Main task Inference target Setting Metric Source CNN, FourSquare Gender Membership batch 100 Precision 0.99; Recall 1 Table 2 CNN, FourSquare Gender Membership batch 2,000 Precision 0.62; Recall 1 Table 2 RNN, Yelp-health Review score Membership batch 32 Precision 0.92; Recall 1 Table 2 RNN, Yelp-health Review score Membership batch 512 Precision 0.62; Recall 1 Table 2 CNN, LFW Gender Black two-party, single batch AUC 1.0 Table 3 CNN, LFW Gender Eyeglasses two-party, single batch AUC 0.94 Table 3 CNN, LFW Eyewear Asian two-party, single batch AUC 0.91 Table 3 - The authors' interpretation: The Pearson correlation coefficient between the Gender—Black labels in Table 3 is -0.005; the authors use this to discuss attribute leakage unrelated to the main-task label.
- Boundary of the image interpretation: The authors state that in Figure 3 low-level representations group by attribute and high-level ones group by main label. The provided text only has layer names and point-shape and color legends, so the positions and separation of clusters cannot be independently verified.
- Membership errors: The authors explain the lower Precision at larger batch sizes as an expanded word set and more false positives; the Recall results come from their set-inclusion decision rule.
Partial Attributes, Dynamic Appearance, and Generalization
- Partial records within a batch: Section 6.2 reports that FaceScrub identities 0, 1, and 3 have AUC above 0.8 at a proportion of 50%; all Yelp-author identities have AUC above 0.95 at a proportion of 0.3 (Figure 4 corresponds to the main text).
- Appearance time: PIPA is trained for 2,500 rounds, with the attribute appearing only in rounds 500 to 1500; FaceScrub schedules different appearance intervals for identities 0 and 1, with identity 2, which does not appear, as a control. The authors state that classifier scores vary with the appearance interval (Figure 5).
- Generalization conditions: Author gender inference on the CSI sentiment classification model reaches 0.98 AUC after 2 epochs. The authors state that main-task test performance improves with training and that the attack does not require the main model to overfit (Figure 6 corresponds to the main text).
Active Attacks and Multi-party Aggregation
- Active attacks: In FaceScrub gender classification, identity 4 makes up 50% of a certain batch. The authors state that changing α can improve the attack; in Figure 7 only the ROC and t-SNE captions are readable, the curve values cannot be verified, and the definition of α has the aforementioned inconsistency.
- Synchronous SGD: In the main text corresponding to Figure 8, the authors state that the two LFW attacks have AUC of about 0.8 at 12 participants and then decline; some Yelp-author authors still maintain relatively high AUC as participants increase. The text does not give complete values for each author.
- Exception in model averaging: In FaceScrub, the target data is 80% the specified identity, in settings evaluating 3 and 5 total participants. The authors state that the with- and without-attribute scores are distinguishable for identities 1 and 3, but classifiers trained in the same way fail for identities 2 and 4 (Figure 9, Section 7.2).
Defenses and Utility Cost
- Partial sharing: When the CSI sentiment classifier shares only 10% of gradients, the inference AUC for the Antwerpen region, gender, and authenticity is 0.84, 0.90, and 0.94, respectively (Table 5).
- Vocabulary reduction: When the CSI vocabulary goes from 4,000 to 500, membership Precision goes from 0.94 to 0.82 and model AUC from 0.91 to 0.84; when the FourSquare location table goes from 30,000 to 1,000, they are 0.91 to 0.52 and 0.64 to 0.50, respectively (Table 6). The table does not state the batch size.
- Participant-level differential privacy: The authors implement the method of [36] to train the LFW gender classifier, and in the settings tried, with up to 30 participants, it never converged; the authors attribute this to the noise required at that scale (Section 8.4).
Other Ablations and Analyses
- Dropout probability: For CSI region inference, as it goes from 0.1 to 0.9, attack AUC goes from 0.94 to 0.99 and model AUC from 0.87 to 0.84 (Table 7).
- Gradient sharing proportion: For CSI authenticity inference, AUC is 0.99 at both 50% and 100% sharing (Table 5).
- Participant join time: The Figure 10 caption sets K=2 for rounds 0 to 250 and K=3 for rounds 250 to 500; the authors state that after the target joins, the appearance of face attributes can be identified, and the curve values in the figure cannot be verified in the text.
What are some points that can be further explored?
The authors note that auxiliary data, the number of participants, attribute detectability, and attribution determination are limitations of the attack.
The authors explicitly discuss the conditions under which the attack holds, and list reducing non-task feature learning and privacy protection with few participants as future directions.
Limitations and Future Directions Noted by the Authors
- Auxiliary data conditions: Attribute inference requires correctly labeled auxiliary data. An attack against a particular face or author requires that person's photos or a sufficient amount of known author text, and such data may not be available (Section 9.1).
- Number of participants: The authors note that the experiments have 2 to 30 participants, whereas some federated applications have thousands, tens of thousands, or more users; attack performance declines as participants increase (Section 9.2).
- Undetectable attributes: The authors note that if the model does not internally distinguish the features corresponding to an attribute, inference will fail; some face identities in multi-party model averaging are failure cases (Section 9.3).
- Attribution determination: Under multi-party aggregation, even if an attribute is detected, it may not be possible to determine whom it belongs to, or whether it comes from one or multiple participants; attribution requires auxiliary information related to the leakage (Section 9.4).
- Representations and active attack detection: The authors propose that techniques that learn only task-relevant features might be used to build "least-privilege" collaborative models, and might also be explored for detecting active attacks (Section 11).
- Participant-level differential privacy: The authors believe that research is still needed on how to simultaneously prevent these inferences and obtain high-quality models in settings that do not involve thousands of users (Sections 8.4, 11).
Scope of the Experiments
- Models and data: The evaluated objects are CNN, VGG-style CNN, and GRU-style RNN, etc., using the seven datasets or subsets listed in Table 1 (Section 5).
- Protocol scope: The two-party experiments cover passive and active attacks; the multi-party experiments consider only passive attribute inference, and the model averaging experiments use all participants in each round (Sections 2.2, 7).
- Defense scope: The experiments include partial gradient sharing, input vocabulary reduction, dropout, and a participant-level differential privacy implementation (Section 8).
- Repetition reporting: Model averaging reports 8 trials with the attribute and 8 without per condition; the paper does not uniformly report the number of repetitions, confidence intervals, or statistical tests for other experiments (Section 7.2).
- Scope of figure reading: The provided converted text preserves captions and some in-figure text but does not preserve curves, bar heights, or point-cluster positions, so the verifiable quantitative evidence comes mainly from tables and explicit numbers in the main text.
Summarize the main content of the paper
The authors state that keeping data local does not prevent collaborative training updates from leaking membership and non-task attributes.
The authors study privacy leakage during collaborative learning training: whether other participants can tell from updates whether a specific record participated in training, and whether some data carry attributes beyond the main task.
- Attack design: Membership inference exploits the sparse positions of embedding gradients; the passive attribute attack trains a gradient classifier with auxiliary data; the active version adds the attribute task to the local training objective.
- Membership results: In two-party FourSquare gender classification, membership Precision is 0.99 and Recall 1 at batch 100; the Yelp-health rating RNN gives 0.92 and 1, respectively, at batch 32 (Table 2).
- Attribute results: Single-batch Black attribute inference on the LFW gender CNN has AUC 1.0, and the Pearson correlation coefficient between the main label and this attribute is -0.005 (Table 3). The authors argue that updates can leak information beyond class features.
- Partial records and generalization: The authors report that for each Yelp-author identity, inference AUC is above 0.95 when the within-batch proportion is 0.3; CSI author gender inference reaches 0.98 AUC after 2 epochs (Sections 6.2, 6.4).
- Defense trade-offs: When CSI shares only 10% of gradients, region inference AUC is still 0.84 (Table 5). Reducing the vocabulary can lower some membership inference Precision, while main-model AUC also drops (Table 6).
- Evidence boundaries: In multi-party model averaging, there are successful cases for identities 1 and 3, and failures for identities 2 and 4; attribute detection also does not automatically provide participant attribution. The authors argue that task-relevant representations, active attack detection, and participant-level differential privacy with few participants need further study.