Elamur Research

Analyzing Federated Learning through an Adversarial Lens

Paper · 2019 · Arjun Nitin Bhagoji, Supriyo Chakraborty, Prateek Mittal et al.

Summary

Federated learning allows participants to train a shared classifier while keeping their training records on their own devices or systems. A server distributes the current parameters, receives updates from the participants selected for a round, and combines those updates. The arrangement keeps raw records out of the server’s hands, but it also leaves the server with limited evidence about how an update was produced. The authors use this gap to ask an integrity question. Can one participant, working alone and unable to see its peers’ current submissions, cause the shared classifier to give a particular wrong answer while it continues to perform well on ordinary examples?

The authors call this targeted model poisoning. The participant interferes during training by changing the update it submits. The input whose prediction changes can be presented in its original form. In experiments on Fashion-MNIST and Adult Census, the authors show that a single participant can influence chosen predictions under weighted averaging. They compare approaches that concentrate on the selected prediction with approaches that also try to retain ordinary classification performance and resemble legitimate submissions. Alternating between these objectives gives the strongest combined showing in the main Fashion-MNIST experiment. On Adult Census, the alternating approach retains 84% accuracy on the ordinary task while the chosen wrong prediction has confidence around 0.7.

The paper examines two kinds of server scrutiny. One measures how accurately a submitted update would classify validation examples when applied on its own. The other asks whether the update’s distances from its peers resemble the distances among ordinary submissions. An update devoted to the selected error can stand out on both checks even when the shared classifier remains accurate. Updates that account for ordinary training and similarity to peers are harder to distinguish in the reported runs. The authors also compare weighted averaging with Krum and the coordinate-wise median, two aggregation rules designed for distributed learning with unreliable participants. Both rules admit targeted errors in the experiments, although the approaches that succeed and their effects on overall accuracy differ.

A comparison with mislabeled training examples illustrates why the kind of access matters. In the Fashion-MNIST experiment, adding 1000 mislabeled copies to one participant’s local training data fails to induce the chosen global prediction, whereas direct modification of the submitted update succeeds in the same general setting. The authors also compare visual explanations from ordinary and compromised classifiers. The displayed explanations look very similar, including for an input whose prediction changes. Together, the experiments show how evidence about ordinary accuracy, update similarity, and visual explanations can leave a particular prediction error undiscovered.

Deep dive: Analyzing Federated Learning through an Adversarial Lens

Analyzing Federated Learning through an Adversarial Lens asks how one participant can distort chosen predictions while overall accuracy stays high. · about 35 minutes to read

The problem and its context

The server sees the result of local training

Consider a group training an image classifier on separate collections of photographs. Each participant can calculate how the current classifier should change in light of its own collection. The server needs to combine the resulting changes, and the participants can keep their photographs private. In the federated-learning arrangement studied here, the server receives a vector of parameter changes. The data and the process that generated those changes remain local.

Earlier work on communication-efficient learning from decentralized data supplied the setting that the authors study. Training proceeds in rounds. The selected participants start from common parameters, perform local training, and send back changes for aggregation. Under weighted averaging, each receives a share of the influence on the next global state. The server can repeat this exchange as the shared classifier improves.

This division of work creates a difference between what the server can observe and what it would need to establish about a submission. It can inspect the numbers it receives, apply the update and test the resulting classifier, or compare it with submissions from the same round. Establishing that the participant took the expected training steps on the expected records would require information absent from this setup. The paper studies the consequences of that difference for machine learning integrity.

The attacker’s access is narrow in some respects and substantial in another. The study gives it control of a single participant, with no collaborators and no view of the other participants’ current submissions. It receives the shared parameters when selected and has local training data of its own. Its consequential freedom is the ability to choose what update its participant returns. A server taking part in the same protocol can receive a correctly formed vector whose effect differs from what ordinary local training was meant to produce.

A selected error can coexist with convergence

The authors define success using particular inputs and particular wrong classes. An image that ordinarily belongs to one category should be assigned a different, preselected category. A wrong guess that lands in some third class gives a different outcome. So does a round in which the intended class is selected weakly. The paper follows the assigned class and the confidence attached to it, alongside accuracy on ordinary examples.

The comparison is especially informative when the shared classifier continues to learn the ordinary task. With good overall accuracy, a test result that averages over many records may have little to say about one chosen prediction. Conversely, widespread misclassification can make the ordinary task fail without producing the targeted behavior under study. The experiment therefore needs separate observations of the selected inputs and the evaluation set as a whole.

This goal differs from one motivating line of research on Byzantine failures. In distributed optimization, a Byzantine participant can submit arbitrary updates. The paper describes prior work that aims to make convergence possible in the presence of such submissions, with the threat commonly framed as degradation of the shared result. From that perspective, a rule that keeps training on course addresses the central problem. A targeted attacker can share the defender’s interest in seeing ordinary training converge, because a classifier that serves most inputs well draws less attention to its treatment of the selected ones.

The paper connects these research questions without treating them as interchangeable. Byzantine resilience concerns the behavior of the distributed training process under specified conditions. The security question here concerns a small set of input–class pairs. A guarantee about the former would need a further argument to establish the latter. The authors use the aggregation experiments to see whether that distinction matters in practice.

Where poisoning occurs

Earlier poisoning work, as described by the authors, frequently changes the material used for training. In a dirty-label attack, records can carry deliberately incorrect labels. In a clean-label attack, the labels must remain acceptable to a process that verifies their classes, and the manipulations to the records have to escape notice. The paper places work on influence functions and BadNets in its discussion of this broader area.

Federated learning changes the location of the interaction between a participant and the server. Local records affect the shared classifier indirectly, through the update produced by local training. A participant that controls the submission can intervene at the point where it reports that update. In principle, an update produced from mislabeled records is one possible submission among many. The paper takes that relationship as a reason to separate the effect of changing local records from the effect of controlling the outgoing parameters.

The authors also distinguish poisoning from the adversarial-input setting discussed in Intriguing Properties of Neural Networks. In that setting, the input is changed to influence the prediction. In this paper, the point of intervention is earlier, during training. A selected input can later be classified in its ordinary form. That distinction also matters when looking at visual explanations, because the same image can be passed to the ordinary and compromised classifiers and the outputs compared.

The reference point closest to the paper is How To Backdoor Federated Learning, which the authors identify as concurrent and independent. They describe it as investigating model replacement with either a single participant or multiple participants and as amplifying a participant’s whole update. Their own comparison centers on separating the part associated with the chosen error from the part associated with ordinary training. The shared question is how much influence a participant can exert through an update. The distinction is how that influence is distributed within the submission and at what stage of global training it is examined.

Why visibility has several meanings

The paper uses stealth in a specific, observational sense. A global classifier may look ordinary when a server measures aggregate validation accuracy. An individual submission may look ordinary when the server evaluates the classifier it would produce. The submission may also look ordinary when its distances from other submissions are measured. These are different observations with different reference points.

Suppose an update would make the classifier perform poorly if the server applied it in full. Weighted aggregation gives the update only a share of the influence on the global parameters. The global classifier can consequently look sound even though a separate check on the submission raises concern. The reverse distinction matters as well. A submission that looks competent on validation data has passed a test of broad classification behavior, while its geometry in parameter space may still be unusual. Neither observation directly queries what happens on a selected input.

That is why the paper includes several comparisons rather than reporting only the progress of global accuracy. It observes the final prediction behavior, isolates an individual update for validation, compares submissions geometrically, changes the aggregation rule, and inspects visual explanations after training. Each observation answers a different question about the same integrity problem.

The method, step by step

Follow an ordinary training round

The starting point is a classification task and a server that holds the current parameters. Training records are divided into local shards. A shard is the portion assigned to a single participant. The participants selected for a round receive the same starting parameters, process their own shards, and report vectors recording how their local training changed those parameters.

The simplest way to read the design is to follow the information available at each point. Before local training, a participant has the current shared state and its own records. At the end of local training, it has a locally updated state and can calculate the difference from the shared starting point. The server sees the submitted differences and can combine them. Validation and update diagnostics give the experimenters additional observations with which to assess what happened.

Federated training and the paper’s evaluation

The steps in order.

Federated training and the paper’s evaluationStep 1: Partition the training records into private shards1. Partition the training records into private shardsStep 2: Select participants for the round2. Select participants for the roundStep 3: Distribute the current shared parameters3. Distribute the current shared parametersStep 4: Receive updates computed by the selected participants4. Receive updates computed by the selected participantsStep 5: Inspect validation performance and update distances5. Inspect validation performance and update distancesStep 6: Aggregate submissions to obtain the next shared parameters6. Aggregate submissions to obtain the next shared parametersStep 7: Evaluate ordinary accuracy and selected predictions7. Evaluate ordinary accuracy and selected predictions

The diagnostics appear before aggregation in the diagram because they examine incoming submissions. The paper introduces them as checks that a server could apply. In the poisoning experiments, the authors use those observations to assess whether submissions would stand out under the proposed criteria. Passing such a check and being selected by an aggregation rule are separate events.

Write the local and global states precisely

The paper represents the total amount of training data as the sum of the local shard sizes.

l = ∑ᵢ lᵢ

Here lᵢ is the number of training records held by participant i, and l is the total across participants. The index under ∑ identifies whose shard size is being added. The paper calls the total number of participants K and the subset size for a given round k. A local shard is denoted by 𝒟ᵢ, with 𝒟 standing for a collection of records and i identifying its holder.

Each selected participant begins local training from the same global vector. The authors describe running an optimizer such as stochastic gradient descent on the shard. Stochastic gradient descent adjusts parameters using gradients estimated from batches of examples. In the general protocol, B is the batch size and E is the number of epochs, with an epoch denoting a pass through the local training data. For the neural networks in question, local training is an approximate search for lower loss.

δᵢᵗ⁺¹ = wᵢᵗ⁺¹ − wᴳᵗ

The vector δᵢᵗ⁺¹ is the local change submitted by participant i. The round index is t. The symbol wᴳᵗ is the global parameter vector at the start, with G identifying the global state. The symbol wᵢᵗ⁺¹ denotes the local parameters after training. The superscript t⁺¹ is a time index. Vector subtraction records the change to each parameter. The paper uses n for the number of parameters in this part of the formulation.

Under weighted averaging, the server adds the sum of the weighted submissions to its starting vector.

wᴳᵗ⁺¹ = wᴳᵗ + ∑ᵢ∈[k] αᵢ δᵢᵗ⁺¹

Here wᴳᵗ⁺¹ is the next global state, wᴳᵗ is the previous one, and δᵢᵗ⁺¹ is the submission from participant i. The bracketed k in the summation identifies the participating indices in the round. The coefficient αᵢ is the aggregation weight attached to participant i. The sum represents the joint change, and the plus sign outside the sum applies it to the old global state.

αᵢ = lᵢ ÷ l

In the paper’s definition, αᵢ is participant i’s share of the data, lᵢ is its shard size, and l is the total training size. The division sign denotes that share. The authors state that the weights sum to one over the full collection. The main point for the attack comparison is that the participant’s raw submission and its contribution to the shared state are different quantities. A change that has a substantial effect when evaluated on its own can have a smaller effect after aggregation.

Define the behavior under test

The paper gives the controlled participant a local shard and a separate collection of auxiliary examples. In the threat setup, a single distribution underlies the examples and both the training and test datasets. Each auxiliary input has a true label and an intended wrong label. This design lets the authors ask whether the shared classifier produces a specified error on recognizable data from the task.

∑ᵣᵢ₌₁ 𝟙[f(xᵢ; wᴳᵗ) = τᵢ]

In this expression, r is the number of selected inputs and i indexes them. The symbol xᵢ is an input, τᵢ is its designated wrong label, and f is the classifier. Inside f, the punctuation separates the input from the parameters wᴳᵗ used to classify it. The indicator 𝟙 contributes one when the equality holds and zero otherwise. The expression counts how many chosen inputs receive their intended wrong label at round t. The true label, denoted by yᵢ in the paper, is used to establish that τᵢ is a misclassification.

This count describes the target behavior. For the optimization analysis, the authors discuss cross-entropy, a training loss that gives a lower value when the classifier assigns a larger share of its predicted probability to the supplied label. The count can stay unchanged as confidence shifts, provided the winning class stays the same. Cross-entropy gives the authors a way to discuss those changes before the categorical prediction switches. The paper’s figures also follow confidence in the target class, which answers a different question from the count itself.

The current global result depends on other participants’ updates as well. Those submissions are unavailable to the controlled participant when it prepares its own. The paper compares a simplified view of the upcoming aggregate with a history-based estimate of the other participants’ collective effect. In the latter case, movement of the global parameters between observed rounds is evidence about the group. A participant that sits out rounds sees a gap containing several changes. Such a gap can support an estimate of typical movement over the interval, while leaving the precise contribution of each intervening round unknown.

Separate the experimental strategies

The authors organize the weighted-averaging experiments around three increasingly demanding aims. The first strategy is concerned with making the chosen prediction survive aggregation. It provides a baseline for how much influence over that prediction can be observed through a single submitted update. Its isolated validation accuracy and distance from peer updates are then measured after the fact.

A second strategy keeps the chosen error as an objective and brings the two proposed checks into the comparison. It uses ordinary local training performance to reflect what an accuracy check would see. It also uses similarity to the past collective behavior of the other participants as a proxy for the update geometry that the server would see in the current round. The proxy matters because the current peer submissions are unavailable to the participant. This comparison asks whether good ordinary classification behavior and ordinary-looking parameters can be maintained together.

The alternating strategy treats the chosen prediction and the stealth criteria as separate optimization objectives. Its significance for the study is the resulting control over the tradeoff. A single joint objective combines quantities that respond differently as parameters move. Separating their treatment lets the authors examine whether the ordinary task and the similarity criteria can be improved while retaining the selected error. The result remains an empirical matter, since different aggregators later give different outcomes for that same strategy.

The estimation experiments ask an additional question. A historical estimate can inform the search for an update, or it can be treated as a correction after that search. Those are different uses of the same incomplete information about other participants. One changes the state in which an update is evaluated. The other changes a result that has already been obtained. The paper tests both and reports that their practical effects differ.

Examine what the server can observe

The accuracy diagnostic applies one participant’s submission to the old global parameters and tests the result. It uses the submissions from the rest of the group as a comparison. When the resulting validation performances differ enough, the diagnostic can flag the individual update. This check depends on having evaluation examples that represent the ordinary task. The authors discuss a time-dependent tolerance because natural variation between legitimate updates can also produce accuracy differences.

wᵢᵗ = wᴳᵗ⁻¹ + δᵢᵗ

Here wᵢᵗ is the state tested in isolation for participant i at round t. The term wᴳᵗ⁻¹ is the preceding global state. The submitted change is δᵢᵗ. The plus sign applies the entire submission to that prior state for the diagnostic. Its validation accuracy concerns a different classifier from the one the server obtains by aggregating the round.

The distance diagnostic begins with all the comparisons between one submission and its peers. It records the smallest and largest distances, then compares those endpoints with the corresponding spread among ordinary submissions in the experiment.

Rᵢ = [minⱼ≠ᵢ d(δᵢᵗ, δⱼᵗ), maxⱼ≠ᵢ d(δᵢᵗ, δⱼᵗ)]

In this expression, Rᵢ is the distance range for participant i, and square brackets enclose its lower and upper endpoints. The symbols min and max select the smallest and largest values over the other participants j, indicated by j≠i. The two arguments to d are their submitted vectors at round t. The experiments use Euclidean distance, which measures the separation of the parameter-change vectors. The paper calls the tolerance on the range comparison κₜ, where the subscript marks that the tolerance can vary by round.

A histogram gives a further view of the submissions. Here the values counted in each bin are entries of an update vector. A histogram shows how those entries are distributed over magnitudes and signs. A distance compares the location of two whole vectors in parameter space. Similar histograms and similar distances are separate observations, even when both support the same qualitative judgment.

Change how the server aggregates

The authors compare weighted averaging with two rules for distributed learning in the presence of Byzantine participants. Krum chooses a submitted update based on its distances to a set of nearby submissions. In this part of the paper, n denotes the number of submissions and f the number of Byzantine participants allowed by the rule. These uses of n and f belong to the Krum formulation. In the earlier notation, n was the parameter dimension and f was the classifier.

n ≥ 2f + 3

Here n is the number of participants contributing updates, f is the number the rule allows to be Byzantine, ≥ means at least as large as, and 2 and 3 are the constants in the stated Krum requirement.

S(δᵢᵗ) = ∑δ∈Cᵢ ‖δᵢᵗ − δ‖

In this formula, S is the score of candidate submission δᵢᵗ from participant i in round t. The set Cᵢ contains the n − f − 2 closest other submissions, where n and f have their Krum meanings and 2 is the constant subtracted by the rule. The symbol δ ranges through those neighboring vectors, and the double bars denote the norm of each difference. The server chooses the submission with the lowest score. Accordingly, selection and influence are tightly connected. One submitted vector becomes the change applied for the round.

The coordinate-wise median builds an aggregate by working separately on every parameter position.

δ̄ᵗ(j) = medᵢ {δᵢᵗ(j)}

The symbol δ̄ᵗ is the aggregate vector for round t, and j is a parameter position. The value δᵢᵗ(j) is the entry at that position in participant i’s submission. The braces collect the entries from the round, and medᵢ takes their median across participants. Repeating this calculation over positions yields the aggregate vector. Different positions can reflect different participants’ submissions, so there is no single selected participant to count in the way there is for Krum.

Experiments and results

Datasets and reference points

Fashion-MNIST supplies the image task. Its inputs are 28 × 28 grayscale images and its 10 classes cover clothing and footwear. The paper gives 60,000 training examples and a test or validation set of 10,000 examples. The classifier is a 3-layer convolutional network with dropout. Convolutional layers process patterns at positions in an image, and dropout is used during training. The centralized reference for this architecture is 91.7% test accuracy. The federated training procedure uses 91% as the prespecified accuracy target on this dataset.

The Adult Census task uses records on adults from the 1994 US Census to predict an income category. The paper describes the dataset as containing over 40,000 samples. Its class 0 denotes an income greater than $50,000 a year, and class 1 denotes an income below that threshold. The authors use a fully connected network. The reported test accuracy reference is 84.8%, and the federated run uses 84% as its prespecified accuracy target. The accuracy target and the reference accuracy play different roles. One governs the training procedure, while the other gives context for interpreting accuracy after interference.

The authors study populations of 10 and 100 participants. In the smaller population, all participants are selected each round. In the larger population, a tenth are randomly drawn for a round. The reported limits are 40 timesteps for the smaller setup and 50 for the larger one, with early stopping when the accuracy objective is reached. The main weighted-averaging figures largely focus on a single selected input. In Fashion-MNIST the example is a sandal, class 5, and its intended wrong output is sneaker, class 7. On Adult Census the selected record moves from class 0 to class 1. An appendix investigates a broader objective involving 10 selected Fashion-MNIST inputs.

The comparisons therefore involve several quantities. Global classification accuracy concerns the ordinary task over the evaluation set. Isolated-update accuracy concerns the classifier obtained from one submission. Target confidence concerns the wrong class assigned to an individual example. Update distances concern parameter changes, and the Krum selection count concerns how frequently an individual submission supplies the global change. Each result is interpretable only with its own unit and reference population.

Weighted averaging on the image task

The direct targeted strategy changes the selected sandal prediction even as the shared classifier continues to improve on ordinary Fashion-MNIST data. In the 10-participant experiment, the authors describe the intended wrong prediction as highly confident after t=3. The contribution statement reports that targeted misclassification can reach 100% confidence in the evaluations on both datasets. Confidence here belongs to the reported wrong prediction. The number gives no frequency estimate over all sandals, all people in the Census data, or all possible target choices.

The direct strategy is conspicuous under the authors’ submission-level diagnostics. Its isolated validation accuracy is much lower than the global accuracy. Its update histogram is sparser and occupies a smaller range than a legitimate participant’s histogram. The legitimate participants’ distance ranges stay relatively stable, while the endpoints of the direct strategy’s ranges decrease as the rounds proceed. The relative differences give the authors evidence that the targeted baseline could be identified under the checks they propose, even as the ordinary global classifier appears to be learning successfully.

Adding ordinary training and distance criteria improves the picture for the submitted update. The combined-objective strategy changes the chosen prediction and brings the update’s validation accuracy closer to the reference. In the reported Fashion-MNIST comparison, the paper puts the accuracy tolerance at 10% and reports that this strategy qualifies on 10 of 15 iterations. The direct baseline never comes within 10% of the global reference on the figure discussed there. The combined-objective strategy also shows closer distances to legitimate peers. Those results concern the particular comparison used by the authors, with the reported tolerance and round trajectory.

The alternating strategy attains high confidence in the selected wrong class starting at t=2 in the reported Fashion-MNIST run. The shared classifier continues to perform well on validation examples, and the performance of the isolated submission is close to the global performance. Its peer-distance range follows and overlaps the ranges observed for legitimate submissions. “Stealth” in this result refers to appearance under those checks. It combines a behavioral observation on ordinary data with a geometric observation about the submitted vectors.

Adult Census and the accuracy cost

Adult Census provides a different task and architecture, and it makes the cost of concentrating on the chosen example easier to see. The targeted baseline causes a selected record to receive the intended wrong class with high confidence, while ordinary classification accuracy falls from 84.8% in the benign case to around 80%. The alternate strategy keeps ordinary accuracy at 84% and causes the chosen misclassification with confidence around 0.7.

The chart shows the two exact-valued accuracies in the appendix’s comparison. The baseline poisoning result belongs in the prose because the paper gives it as an approximation. The star marks the paper’s alternating strategy. The benign setting is a reference for how well the task is served in ordinary training.

Ordinary Adult Census classification accuracy with benign training and alternating minimization

Alternating minimization keeps ordinary classification accuracy close to the benign result.

Ordinary Adult Census classification accuracy with benign training and alternating minimizationBenign classification: 84.8Benign classification84.8Alternating minimization (this paper): 84Alternating minimization (this paper)84
The numbers
System or settingaccuracy %
Benign classification84.8
Alternating minimization (this paper)84

The two Adult Census measures make the tradeoff visible. Maintaining 84% ordinary accuracy does not assign that value to the probability of the chosen wrong class. Similarly, confidence around 0.7 on the selected record does not describe the percentage of correct predictions on the evaluation set. The result is that both kinds of behavior occur in the same reported setting, at the respective values the appendix gives.

Krum and the coordinate-wise median

With Krum, the question of whether the controlled participant’s submission is selected can be counted directly. In the main experiment with 10 Fashion-MNIST participants, Krum selects the alternating strategy’s submission for 26 of 40 timesteps. The chosen prediction changes, and the global classifier retains good ordinary performance. Those two outcomes are the reason this case is evidence of targeted poisoning under Krum. The selection count alone would establish only how often one participant provided the applied change.

The appendix offers a contrast. Krum selects the direct targeted strategy’s update for 34 of 40 timesteps, and the global classifier’s validation accuracy becomes extremely low. This case has the larger selection count. It also fails the paper’s ordinary-performance criterion for a targeted attack that leaves the broader task in good condition. The chart records the selection comparison only. The star identifies the strategy featured in the main Krum result.

Krum selections of the controlled participant on Fashion-MNIST over 40 time steps

The direct targeted baseline is selected more often than the alternating strategy.

Krum selections of the controlled participant on Fashion-MNIST over 40 time stepsDirect targeted baseline: 34Direct targeted baseline34Alternating minimization (this paper): 26Alternating minimization (this paper)26
The numbers
System or settingselection count
Direct targeted baseline34
Alternating minimization (this paper)26

Here better: lower takes the defender’s perspective on selecting the controlled participant. The metric omits what each selected update does and therefore cannot rank the two strategies on either attack success or ordinary accuracy. The global validation result supplies the missing distinction in the paper.

The coordinate-wise median presents a different outcome. In the direct targeted experiment, the designated wrong class has confidence close to 0.9 for 11 of 14 timesteps, while the global classifier converges to a state the authors describe as effective. The corresponding appendix comparison finds the alternating strategy ineffective with this aggregation rule. The paper therefore shows a successful example for each of the two Byzantine-resilient rules, using different strategies. It also supplies a counterexample to a blanket ranking in which the more elaborate weighted-averaging strategy would always be more effective.

Local data poisoning and visual explanations

The data-poisoning comparison uses Fashion-MNIST and a 10-participant setup in which everyone contributes at every step. It gives the controlled participant incorrect copies of the chosen example in its training shard. The authors try repeated copies and copies with small random changes to the pixels. Even with 1000 added copies, ordinary local training on the altered shard fails to produce the desired global prediction in the reported comparison. Amplifying the whole update produced by such local training can affect ordinary performance, as the paper also notes.

The comparison ties the result to the location of the intervention. Incorrect labels change the records that feed into local training, and whatever local training produces then goes through the ordinary aggregation procedure. Direct control concerns the vector that enters that procedure. A large count of incorrect local examples consequently has no simple interpretation as influence on the global decision. The experiment establishes this point for the comparison the authors run, with one controlled local shard and the stated Fashion-MNIST setup.

The authors use interpretability methods to ask whether a compromised prediction leaves a distinctive visual explanation. One family of methods produces a map of which image regions appear relevant to a prediction. Others relate internal activations to image features or use gradients to show input sensitivity or attribute a score to parts of the input. The paper includes methods associated with visualizing convolutional networks and with image-classification saliency maps.

The displayed maps for the ordinary and compromised Fashion-MNIST classifiers look very similar on the chosen example. Appendix figures also compare explanations on ordinary inputs and show broad visual similarity. The evidence is qualitative. The paper’s conclusion about the figures rests on the similarity of the displayed explanations, while the prediction measurements separately establish what the classifiers do on the selected inputs.

What the ablations show

Global success and isolated behavior can move apart

The comparison between direct targeting and the joint objectives is a controlled way to distinguish kinds of success. The direct method does enough to change the selected global prediction under weighted averaging. A server that examines the submission on its own would see poor validation behavior, and the update distances and histograms also give reasons for scrutiny. The result establishes that global target success can coexist with an anomalous individual contribution.

Bringing ordinary training into the objective improves the relevance of local classification accuracy to the server’s check. A participant whose local records come from the same distribution as the validation data can use local loss as a proxy for broad task performance. This link is central to the experiment. It explains why the assumed data distribution matters even though the server never sees the participant’s local records. Ordinary local loss and validation accuracy are measured on different data, but both concern the task the group is supposed to learn.

The distance terms address a separate question. Two parameter states can yield good evaluations on similar records and still reflect updates that lie far apart in parameter space. Consequently, a validation comparison cannot stand in for the geometric comparison. The experiments show why the authors track both. A strategy can improve on one without making the other observation equally ordinary.

The appendix also clarifies the difference between distance ranges and histograms. In the evolution plots, the direct baseline and the combined-training strategy leave visibly different update distributions for the controlled and ordinary participants. Alternation without the distance constraint narrows that visual difference, and alternation with the constraint yields the closest distributions. This is consistent with the main text’s observation that the combined objective improves particular distance comparisons. A range of inter-update distances and a distribution of individual coordinate values describe different properties.

Alternation changes the observed trade-off

The joint strategy asks one optimization process to account for the chosen error, ordinary training performance, and similarity to peer behavior. Its Fashion-MNIST comparison shows partial success against accuracy checking, along with targeted misclassification. The alternating strategy is closer to ordinary submissions under both the validation and distance diagnostics. The comparison supports the authors’ view that keeping the objectives separate gives better control over their competing effects in this setting.

The dependency on the aggregation rule is an important qualification. Under weighted averaging, a submission contributes a weighted vector to a larger sum. Under Krum, its influence depends on being chosen as a whole. Under the coordinate-wise median, every parameter position is handled through its own ordering of submitted values. An update can consequently have a favorable effect in one setting and an unfavorable or negligible effect in another. The reported failure of alternating minimization against the coordinate-wise median makes this concrete.

Adult Census exposes a second tradeoff. The direct strategy is reported to attain high confidence in its chosen wrong label while losing ordinary accuracy. Alternation retains the 84% ordinary accuracy target, with around 0.7 confidence for the chosen label. This outcome is stronger evidence for the joint goal of broad accuracy and a targeted error than a result that reports only the wrong label’s confidence. It still leaves the exact balance of the two objectives specific to the dataset and run reported.

The experiments with multiple selected images extend that comparison. When the objective covers 10 Fashion-MNIST examples, direct targeting induces the desired errors at a cost to global accuracy. The alternating strategy gives the authors both the targeted behavior and convergence on the ordinary task. The comparison matters because the main figures predominantly address one selected input. It shows the combined behavior for a larger target set within the paper’s chosen examples. The paper gives the multi-target result through figure trajectories and qualitative conclusions, so the strength and uniformity of the individual predictions cannot be summarized with an additional numeric result.

Accounting for aggregation inside the optimization

The appendix compares the direct baseline with an alternative that accounts for the server’s weight implicitly during the optimization. The implicit Fashion-MNIST baseline achieves the selected classification objective in 4 of 10 iterations. The paper reports an average of 2000 optimization steps to converge per round, about 4× the time taken by a legitimate participant. The authors then concentrate on the explicit strategy for the main comparisons.

This is a comparison of both prediction behavior and computation. The implicit strategy has poorer observed target performance and takes more local effort in the tested setting. The timing matters because the training protocol is synchronous. A server waiting for round submissions can observe late arrival even though the local computation is private. The authors raise the possibility of a consistently delayed participant being dropped from a real system. Their experimental comparison establishes the computational burden they observe. It leaves the effect of deadlines to the deployment scenario.

The result also shows the difference between writing an objective that represents the aggregation rule and obtaining a useful submission under practical optimization. The implicit approach includes the scaling in the way it evaluates the objective. In the reported run, this representation does not make the numerical search comparably effective. The evidence comes from the Fashion-MNIST baseline and its optimizer behavior, with the stated number of successes and effort per round.

Historical estimates help under a particular use

The estimation analysis tests how knowledge of earlier global states changes the early trajectory. The authors report higher confidence in the selected wrong class in the first few rounds when the estimate is used before optimization. This holds for both the direct targeted and alternating approaches in the comparison. The paper describes the trend in its table discussion. Exact confidence entries for the comparison are unavailable, so the defensible result is directional.

Applying the estimate after the optimization gives a different outcome. The paper reports worse attack success and worse convergence. The contrast suggests that an imperfect historical estimate can be informative as context for the optimization while being unreliable as a stand-alone correction to a submitted change. The experiment evaluates the consequence for target confidence and ordinary learning. It gives no direct measurement of how accurately each participant’s unpublished update was inferred.

The history-based comparison also illuminates the assumption that the other participants’ behavior can be represented by a past average. When the controlled participant contributes each round, its successive observations are close in time. When it is chosen intermittently, the global movement between observations can contain several rounds with changing membership. That movement summarizes what happened across the gap. How well it predicts the next aggregate depends on how similar the intervening history is to the current round, and the reported outcomes give only a partial assessment of that dependence.

Random selection changes several conditions at once

With 100 participants and a random subset contributing per round, the controlled participant sometimes has no submission in the aggregate. The appendix reports that the targeted behavior can disappear in rounds with only ordinary submissions, then be present at the end of training. The time series establishes two distinct outcomes. A classifier can have the selected behavior at the final checkpoint, and the same behavior can be intermittent along the way.

The larger population also gives the controlled participant a smaller shard. The authors connect this to weaker local training on the ordinary task. Their alternating strategy improves the isolated classifier’s test accuracy in the larger setting, yet the improvement is limited by the amount of local data. The experiment changes both participation frequency and shard size. Accordingly, it supplies evidence about the larger setup as a whole while leaving the contribution of each change unmeasured on its own.

These observations are especially relevant to comparisons across experiments. A result in which the participant is present in every round measures the effect of repeated influence. The larger setup shows how the behavior evolves when that influence is periodically absent. The difference is visible even though both setups use the same image dataset and one controlled participant. The paper leaves open whether augmenting the smaller local shard would improve its ordinary-task behavior.

Krum selection and median aggregation measure different things

The Krum appendix shows that selection frequency by itself is a poor measure of the paper’s full adversarial objective. The direct targeted strategy obtains more selections than the alternating one, yet it damages global validation accuracy extensively. With Krum, every selection applies that participant’s submitted vector as the round’s change. It follows that frequent selection can magnify whichever properties the update carries, including poor ordinary classification performance. The alternating comparison succeeds on the broader experimental objective because it preserves that performance while changing the chosen prediction.

In the coordinate-wise median comparison, the authors attribute the retained ordinary performance under direct targeting to the way the aggregate draws on entries from multiple participants. This is an interpretation of the result. The experiment observes the prediction and accuracy trajectories, and the aggregation formula explains why there is no winner in the Krum sense. The evidence leaves the authors’ proposed causal account open to a cleaner test across variations of the median rule.

Together the pair of aggregators also clarify what an ablation of the objective can and cannot establish. Adding a term that improves a participant’s own validation accuracy can make it a better stand-alone update. A server that constructs a vector from coordinate medians is sensitive to the ordering of submitted entries. Good performance by a classifier built from an individual update provides only indirect evidence about how those entries will influence the resulting global vector. The appendix’s ineffective alternating case is consistent with that distinction.

A similar explanation can accompany a different decision

The visualization comparison holds the input fixed and varies whether the shared classifier was trained with the controlled participant. This rewards a careful reading of the maps. If both classifiers highlight broadly similar regions, the result tells the reader that the chosen explanation techniques can produce similar pictures under the two training conditions. The accompanying prediction result tells the reader that a targeted class change can nevertheless occur.

The benign-input comparisons serve a related purpose. They ask whether ordinary predictions come with visibly different explanations after exposure to the targeted training interference. The displayed examples offer little visual evidence of a difference. That outcome agrees with the broader classification aim of preserving ordinary behavior. The figures alone leave the internal computation underdetermined, because the visual representation compresses a classifier’s behavior into an image-level explanation.

The paper thus gives two empirical checks on what an observer can infer. On the selected example, visual inspection can miss an experimentally verified prediction difference. On the ordinary examples shown, it may provide little evidence about the training history. The authors use both observations to question the ability of these visualizations to act as integrity diagnostics in the reported setup.

Limitations

Limits the authors state

The paper explicitly bounds the threat model. Its main experiments involve one non-colluding participant. Training records in the threat setup are distributed independently and from the same distribution, and the auxiliary inputs follow the training and test distribution. The authors point out that comparable local data make legitimate updates easier to compare, thereby raising the bar for appearing ordinary under the two checks. They also recognize that a wider federated-learning setup can admit dissimilar local data distributions.

The authors treat the accuracy and distance criteria as additional tests a server could implement. The accuracy tolerance can be adjusted over time, and they acknowledge a tradeoff in choosing it. A wide tolerance leaves a larger range of anomalous behavior unflagged. A narrow one can reject ordinary variation between participants. The data the server uses for validation and the amount of peer diversity therefore matter to what the test can establish. The reported stealth outcomes are relative to those measurements.

They also qualify the conclusions about Byzantine resilience. The theoretical results associated with the aggregation rules rely on assumptions about the loss and the optimization setting. The authors say those assumptions generally fail to hold for the neural networks they study. Their demonstrations give empirical behavior for these networks and training runs. A proof about convergence under its stated hypotheses and an experiment on targeted classification for a neural network are claims with distinct scopes.

Some limitations emerge directly in the appendix. Implicit optimization performs poorly on the selected prediction and takes longer than ordinary local training in its comparison. Sparse participation can make the selected behavior intermittent, and a smaller local shard limits the validation performance achieved by the controlled participant. The authors leave the value of data augmentation in that setting as an open question. They also report that alternating minimization is ineffective against the coordinate-wise median in its appendix experiment, even though direct targeting succeeds under that rule in the main results.

Limits visible in the setup

The paper uses two tasks, and most of the detailed analysis concerns Fashion-MNIST. A single sandal chosen for a specific wrong classification is concrete enough to inspect across rounds. The Adult Census result adds a distinct data type and classification task. The experiment with 10 image targets expands the number of chosen examples. These comparisons establish feasibility in the settings examined. They leave the frequency with which a participant could pick and consistently influence arbitrary examples across datasets or architectures unmeasured.

The i.i.d. assumption also has consequences beyond the authors’ stated interpretation. It gives the server a population of legitimate updates with a relatively clear basis for comparison. It gives the controlled participant local records that can serve as a proxy for ordinary validation behavior. With strongly different shards, both sides of that comparison could change. The paper therefore provides a controlled look at malicious behavior among comparable participants and leaves outcomes under heterogeneous local distributions open.

Confidence in a wrong class is evidence about the classifier’s output for a chosen input. Even 100% confidence in a reported case leaves several other questions unanswered, including how many target choices behave similarly and how long the prediction persists after the participant’s last contribution. The randomized-selection plots make persistence a visible concern, since they show the behavior disappearing in some rounds. Ending training when ordinary accuracy reaches its target also leaves persistence under further ordinary training outside the evaluated endpoint.

The paper uses validation, test, and global comparison terminology in related but different ways across its definition and its result descriptions. The prose definition of the accuracy diagnostic discusses comparing an isolated update with a state formed from the other updates. The numeric comparison is described using distance from global validation accuracy. As printed, the inequality also uses a label index and a subtraction order that are difficult to reconcile with the prose’s intended direction of rejection. The reported 10 of 15 passes are best read as the authors’ empirical finding for that tolerance and comparison. They supply limited guidance about the behavior of a server implementing a literal version of the displayed expression.

Several measures are given as figure trajectories or qualitative descriptions. The paper describes overlapping distance ranges and visual similarity, and it reports early confidence gains for the historical estimate. These observations support comparisons within the experiments. They leave the amount of variation across runs, and the accuracy of a fixed detector at distinguishing legitimate and controlled submissions, unquantified. In particular, the similarity of two displayed maps leaves open whether a quantitative analysis on a broader collection of images could separate the training conditions.

The Krum results illustrate how the requested security property governs the interpretation of a defense. The case with very low validation accuracy shows a severe training outcome in this neural-network experiment. The alternating case shows a more selective failure measured by ordinary accuracy alongside a targeted prediction. Those results give different kinds of evidence. Extending either to a general attack rate under Krum, or to other aggregation rules with different assumptions, would require comparisons beyond the paper.

Finally, the paper’s dirty-label result is a comparison with the local data manipulations it evaluates. Within that setting it isolates an important practical difference between relying on local learning and controlling the submitted vector. Changing the data distribution, training protocol, or scope of the data manipulation could alter that comparison. The result supports the paper’s conclusion that access to the update channel merits separate scrutiny. The general effectiveness of other data-poisoning methods remains outside the experiment.

What came after

Federated learning as a broader research problem

Advances and Open Problems in Federated Learning cites the paper and, by its stated scope, places it within a broader discussion of progress and unresolved questions in federated learning. The connection is clearest at the level of what a federated protocol is expected to guarantee. Keeping records local, allowing distributed optimization to converge, and preserving the integrity of particular predictions are distinguishable goals. The poisoning experiments give a concrete example of the gap between achieving ordinary aggregate performance and preserving a selected decision. The citation establishes the connection to the broader work. A specific experimental extension or adoption of the alternating method is unspecified.

Privacy Preservation in Federated Learning: An insightful survey from the GDPR Perspective cites the paper from the perspective of privacy preservation. The shared issue is the boundary between private computation and server visibility. Local training limits what the server sees of a participant’s records and procedure, while parameter updates still affect a collective result. The original experiments address integrity at that boundary. The survey’s title identifies privacy and the GDPR as its frame, and the citation connects the research areas. It leaves the survey’s specific treatment of the original experiments unspecified.

Concurrent backdoor research and later safety work

How To Backdoor Federated Learning belongs to the same stage of research. The authors explicitly call it concurrent and independent, and they use it to compare two approaches to influence through federated updates. As they describe it, the related work examines replacement of the shared parameters with submissions from one or more participants and gives greater influence to a whole submission. Their own experiments study how selected prediction behavior and ordinary learning can be treated separately within that shared integrity problem. That distinction explains why the related work appears in both the paper’s account of its immediate context and the record of work connected to it.

Safe-FedLLM: Delving into the Safety of Federated Large Language Models cites the paper in a later setting whose title identifies safety and federated language systems as its subject. The original classification experiments provide a precedent for asking whose behavior a shared system inherits when the server has limited visibility into local training. The citation and title establish a connection across those settings. The specific safety tests, results, and use of the earlier methods are unspecified.

Cite

Cite as Arjun Nitin Bhagoji, Supriyo Chakraborty, Prateek Mittal and Seraphin B. Calo. 2019. Analyzing Federated Learning through an Adversarial Lens. International Conference on Machine Learning.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{bhagoji2019analyzing,
  title = {{Analyzing Federated Learning through an Adversarial Lens}},
  author = {Arjun Nitin Bhagoji, Supriyo Chakraborty, Prateek Mittal and Seraphin B. Calo},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  eprint = {1811.12470},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.12470}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bhagoji-2019-analyzing-federated-learning-through-adversarial/

References

30 references, from the paper's own bibliography.

  1. J. Adebayo, J. Gilmer, M. Muelly, I. Goodfellow, M. Hardt, and B. Kim. Sanity checks for saliency maps. In Advances in Neural Information Processing Systems, pages 9525–9536, 2018. OpenAlex ↗ · Scholar ↗
  2. E. Bagdasaryan, A. Veit, Y. Hua, D. Estrin, and V. Shmatikov. How to backdoor federated learning. arXiv preprint arXiv:1807.00459, 2018. our card
  3. B. Biggio, B. Nelson, and P. Laskov. Poisoning attacks against support vector machines. In Proceedings of the 29th International Conference on Machine Learning (ICML-12), pages 1807–1814, 2012. our card
  4. P. Blanchard, E. M. El Mhamdi, R. Guerraoui, and J. Stainer. Machine learning with adversaries: Byzantine tolerant gradient descent. Advances in Neural Information Processing Systems, 2017. OpenAlex ↗ · Scholar ↗
  5. N. Carlini and D. Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pages 39–57. IEEE, 2017. our card
  6. L. Chen, H. Wang, Z. B. Charles, and D. S. Papailiopoulos. DRACO: byzantine-resilient distributed training via redundant gradients. In Proceedings of the 35th International Conference on Machine Learning, ICML, 2018. OpenAlex ↗ · Scholar ↗
  7. X. Chen, C. Liu, B. Li, K. Lu, and D. Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017. OpenAlex ↗ · Scholar ↗
  8. Y. Chen, L. Su, and J. Xu. Distributed statistical machine learning in adversarial settings: Byzantine gradient descent. Proc. ACM Meas. Anal. Comput. Syst., 1(2), 2017. OpenAlex ↗ · Scholar ↗
  9. M. Fernández-Delgado, E. Cernadas, S. Barro, and D. Amorim. Do we need hundreds of classifiers to solve real world classification problems? The Journal of Machine Learning Research, 15(1):3133–3181, 2014. OpenAlex ↗ · Scholar ↗
  10. T. Gu, B. Dolan-Gavitt, and S. Garg. Badnets: Identifying vulnerabilities in the machine learning model supply chain. arXiv preprint arXiv:1708.06733, 2017. our card
  11. M. Jagielski, A. Oprea, B. Biggio, C. Liu, C. Nita-Rotaru, and B. Li. Manipulating machine learning: Poisoning attacks and countermeasures for regression learning. In IEEE Security and Privacy, 2018. OpenAlex ↗ · Scholar ↗
  12. D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015. our card
  13. P. W. Koh and P. Liang. Understanding black-box predictions via influence functions. In ICML, 2017. our card
  14. Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. OpenAlex ↗ · Scholar ↗
  15. Y. Liu, S. Ma, Y. Aafer, W.-C. Lee, J. Zhai, W. Wang, and X. Zhang. Trojaning attack on neural networks. In NDSS, 2017. OpenAlex ↗ · Scholar ↗
  16. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, 2017. our card
  17. S. Mei and X. Zhu. Using machine teaching to identify optimal training-set attacks on machine learners. In AAAI, 2015. OpenAlex ↗ · Scholar ↗
  18. E. M. E. Mhamdi, R. Guerraoui, and S. Rouault. The hidden vulnerability of distributed learning in byzantium. In ICML, 2018. OpenAlex ↗ · Scholar ↗
  19. G. Montavon, S. Bach, A. Binder, W. Samek, and K. Müller. Explaining nonlinear classification decisions with deep taylor decomposition. arXiv preprint arXiv:1512.02479, 2015. OpenAlex ↗ · Scholar ↗
  20. L. Muñoz-González, B. Biggio, A. Demontis, A. Paudice, V. Wongrassamee, E. C. Lupu, and F. Roli. Towards poisoning of deep learning algorithms with back-gradient optimization. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security. ACM, 2017. OpenAlex ↗ · Scholar ↗
  21. B. I. Rubinstein, B. Nelson, L. Huang, A. D. Joseph, S.-h. Lau, S. Rao, N. Taft, and J. Tygar. Stealthy poisoning attacks on pca-based anomaly detectors. ACM SIGMETRICS Performance Evaluation Review, 37(2):73–74, 2009. OpenAlex ↗ · Scholar ↗
  22. K. Simonyan, A. Vedaldi, and A. Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013. our card
  23. D. Smilkov, N. Thorat, B. Kim, F. B. Viégas, and M. Wattenberg. Smoothgrad: removing noise by adding noise. arXiv preprint arXiv:1706.03825, 2017. OpenAlex ↗ · Scholar ↗
  24. J. T. Springenberg, A. Dosovitskiy, T. Brox, and M. A. Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014. OpenAlex ↗ · Scholar ↗
  25. M. Sundararajan, A. Taly, and Q. Yan. Axiomatic attribution for deep networks. arXiv preprint arXiv:1703.01365, 2017. OpenAlex ↗ · Scholar ↗
  26. C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. our card
  27. H. Xiao, B. Biggio, G. Brown, G. Fumera, C. Eckert, and F. Roli. Is feature selection secure against training data poisoning? In ICML, 2015. OpenAlex ↗ · Scholar ↗
  28. H. Xiao, K. Rasul, and R. Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. OpenAlex ↗ · Scholar ↗
  29. D. Yin, Y. Chen, K. Ramchandran, and P. Bartlett. Byzantine-robust distributed learning: Towards optimal statistical rates. arXiv preprint arXiv:1803.01498, 2018. OpenAlex ↗ · Scholar ↗
  30. M. Zeiler and R. Fergus. Visualizing and understanding convolutional networks. In Computer Vision, ECCV 2014 - 13th European Conference, Proceedings, 2014. our card