Universal Multi-Party Poisoning Attacks This is a full version of a paper that was previously published in the Proceedings of the 36th International Conference on Machine Learning, Long Beach, California, PMLR 97, 2019.
Abstract
In this work, we demonstrate universal multi-party poisoning attacks that adapt and apply to any multi-party learning process with arbitrary interaction pattern between the parties. More generally, we introduce and study -poisoning attacks in which an adversary controls of the parties, and for each corrupted party , the adversary submits some poisoned data on behalf of that is still “-close” to the correct data (e.g., fraction of is still honestly generated). We prove that for any “bad” property of the final trained hypothesis (e.g., failing on a particular test example or having “large” risk) that has an arbitrarily small constant probability of happening without the attack, there always is a -poisoning attack that increases the probability of from to by . Our attack only uses clean labels, and it is online.
More generally, we prove that for any bounded function defined over an -step random process , an adversary who can override each of the blocks with even dependent probability can increase the expected output by at least .
Contents
1 Introduction
Learning from a set of training examples in a way that the predictions generalize to instances beyond is a fundamental problem in learning theory. The goal here is to produce a hypothesis in such a way that , with high probability, predicts the “correct” label , where the pair is sampled from the target (test) distribution . In the most natural setting, the examples in the training data set are also generated from the same distribution , however this is not always the case (e.g., due to noise in the data).
Poisoning attacks.
Many previous works studying noise in the data allow it to be adversarial and maliciously chosen against the learner [43, 28, 6]. A tightly related and more recent approach to the problem of learning under adversarial noise is the framework of so-called poisoning (aka causative) attacks [10, 9, 38], in which the adversary’s goal is not necessarily to completely prevent the learning, but perhaps it simply wants to increase the risk of the hypothesis produced by the learning process or make it more likely to fail on a particular test instance (i.e., getting a targeted poisoning attack [10, 41]).
Multi-party poisoning.
In the distributed setting [37, 36, 8, 29], the training data might be coming from various sources; e.g., it can be generated by data providers in an online way, while at the end a fixed algorithm, called the aggregator , generates the hypothesis based on . The goal of is to eventually help construct a hypothesis that does well (e.g. in the case of classification) in predicting the label of a given instance , where is sampled from the final test distribution. The data provided by each party might even be of “different type”, so we cannot simply assume that the data provided by is necessarily sampled from the same distribution . To model this more general setting, we let model the distribution from which the training data (of ) is sampled. Poisoning attacks can naturally be defined in the distributed setting as well [23, 12, 7, 26] to model adversaries who partially control the training data . These works, however, focus on attacking and defending specific learning tasks. This leads us to the central question of this work.
What is the inherent provable power of poisoning attacks in the multi-party setting?
Answering the above question is critical for understanding the limits of provable security against multi-party poisoning.
1.1 Our Contribution
We first formalize a new general model multi-party poisoning. We then prove the existence of universal data poisoning attacks in the multi-party setting that apply to any task.
New attack model: -poisoning attacks.
our first contribution of this work is to formalize a general notion that covers multi-party poisoning attackers that corrupt out of data provider parties and furthermore, for each message sent by a corrupted party, the adversary still generates data that is “close” to the honestly generated data. More formally, a -poisoning attacker can first choose to corrupt of the parties. Then, if a corrupted is supposed to send the next message, then the adversary will sample for a maliciously chosen distribution that is guaranteed to be to the original distribution in total variation distance. Our -poisoning attacks include the so called “-tampering” attacks of [34] as special case by letting ( is the number of parties). Moreover, -attacks also include the standard model of static corruption in secure multi-party computation (in cryptography) letting . Our main result in this works is to prove the universal power of -poisoning as follow. We show that in any -party learning protocol, there exist a -poisoning adversary that increases probability of the produced hypothesis having a bad property (e.g., failing on a particular target instance known to the adversary). For the formal version of Theorem 1.1, see Theorem 2.5.
Theorem 1.1 (Power of -poisoning attacks–informal).
Let be an -party learning protocol for an -party learning problem. Also let be a bad property defined over the output of the protocol. There is a polynomial time -poisoning attack such that, given oracle access to the data distribution of the parties, it can increase the probability of from to .
Example.
By corrupting half of the parties (i.e., ) the adversary can increase the probability of any bad event from to .
Universal nature of our attack.
Our attacks are universal in the sense that they could be applied to any learning algorithm for any learning task, and they are dimension-independent as they applied to any data distribution. On the other hand, our universal attacks rely on an initial vulnerability of arbitrary small constant probability that is then amplified through the poisoning attack. As a result, although recent poisoning attacks (e.g., see [30]) obtain stronger bounds in their attack against specific defenses, our attacks apply to any algorithm with any built in defenses.
Deriving attacks on federated learning as special case.
Since we allow the distribution of each party in the multi-party case to be completely dependent on that party, our attacks cover the case of model poisoning in federated learning [12, 4], in which each party sends something other than their plain share of data, as special case. In fact, multiple works have already demonstrated the power of poisoning attacks and defences in the federated learning setting (e.g., see [23, 4, 17, 15, 24, 44, 42, 16, 27]). Some of these attacks obtain stronger quantitative bounds in their attacks, however this is anticipated as these works investigate attacks on specific learners, while a crucial property of our attack is that our attacks come with provable bounds and are universal in that they apply to any learning task and any hypothesis class (including neural nets as special case), if there is an initial vulnerability (for some bad property) over the generated hypothesis.
Note that, our attacks actually do not need the exact history of examples that are used by parties, and only need to know the updates sent by the parties during the course of protocol. Suppose an uncorrected party randomizes its local model (e.g., for differential privacy purposes) and shares an update with the server. Knowledge of is enough for our attacker. One might go even further and ask what if the updates are sent in a secure/private way? Interestingly, our attack work in that model too as it only needs to know the effect of the updates on the central model at the end of round (because all the attack wants is a random continuation of the intermediate model).
It also worth mentioning that our attack requires sampling oracles from distributions of all the parties. This might seem that we are giving the adversary too much power. However, we think the right way to define security of federated learning is by giving the adversary everything that hat might be leaked to them. This way of defining security is inspired by cryptography. For instance, when modeling the “chosen plaintext” security of encryption schemes, adversary is given access to an encryption oracle, while one might question how realistic it is. Analogously, In federated learning, the adversary can potentially gather some statistics about the distribution of other parties and learn them over time. However, as mentioned above, we do not need to give adversary access to the actual data of honest parties. Only the public effect of them on the shared model is needed.
Further Related Work.
Recent breakthroughs of Diakonikolas et al. [18] and Lai et al. [32] demonstrated the surprising power of algorithmic robust learning over poisoned training data with limited risk that does not depend on the dimension of the distribution (but still depends on the fraction of poisoned data). These works led to an active line of work (e.g., see [14, 20, 21, 19, 39, 22, 40] and references therein) exploring the possibility of robust statistics over poisoned data with algorithmic guarantees. The works of [14, 21], followed by [3], performed list-decodable learning, and [5, 19, 39] studied supervised learning.
On the negative side, Mahloujifar, Mahmoody and Diochnos [35, 33] studied (universal) poisoning attacks that apply to any learning task and any hypothesis class and showed that such attacks can indeed increase the error of any classifiers for any learning problem by a constant probability, so long as there is an initial constant error probability. The attack model used in [35, 33], called -tampering, was a generalization of a similar model introduced in Austrin et al. [1] in the bitwise setting in a cryptographic context. These attacks (like the ones in our work) were universal in the sense that they could be applied to any learning algorithm for any learning task, and dimension-independent as they applied to any data distribution. On the other hand, these universal attacks rely on an initial vulnerability of arbitrary small constant probability that is then amplified through the poisoning attack. That is why such universal attacks (including those in the multi-party setting) are not in contradiction with the above results.
1.2 Technical Overview
Previous universal poisoning attacks of [35, 33] for the single party case are designed in a setting in which each training example is chosen by the adversary with independent probability . We first describe where exactly the ideas of these works come short of extending to the multiparty case, and then we explain how to borrow ideas from attacks on coin-tossing protocols in cryptography [11, 25] and obtain the desired attacks of this work.
-tampering attacks and their shortcoming.
For starters, let us assume that the adversary gets to corrupt and control randomly selected parties. In this case, it is easy to see that, at the end every single message in the protocol between the parties is controlled with exactly probability by the adversary (even though these probabilities are correlated). Thus, at a high level it seems that we should be able to use the -tampering attacks of [35, 33] to degrade the quality of the produced hypothesis. However, the catch is that the proof of -tampering attacks of [35, 33] (and the bitwise version of [2]) crucially rely on the assumption that each message (which in our context corresponds to a training example) is tamperable with independent probability , while corrupting random parties, leads to tamperable messages in a correlated way.
We prove our main results by first proving a general result about the power of “biasing” adversaries whose goal is to increase the expected value of a random process by controlling each incoming “segment” (aka block) of the random process with probability (think of as ). These segments/blocks correspond to single or multiple training examples shared during the learning. As these biasing attacks generalize -tampering attacks, we simply call them generalized -tampering attacks. We now describe this attack model and clarify how it can be used to obtain Theorem 1.1.
Generalized -tampering: new model for biasing attacks.
In this work we introduce generalized -tampering (biasing) attacks that are defined for any random process and a function defined over this process. In order to explain the attack model, first consider the setting where there is no attacker. Now, given a prefix of the blocks, the next block is simply sampled from its conditional probability distribution . (Looking ahead, think of as the ’th training example provided by one of the parties in the interactive learning protocol.) Now, imagine an adversary who enters the game and whose goal is to increase the expected value of a function defined over the random process by tampering with the block-by-block sampling process of described above. Before the attack starts, there will be a a list of “tamperable” blocks that is not necessarily known to the in advance, but will become clear to him as the game goes on. Indeed, this set itself will be first sampled according to some fixed distribution , and the crucial condition we require is that holds for all . After is sampled, the sequence of blocks will be sampled block-by-block as follows. Assuming (inductively) that are already sampled so far, if , then gets to fully control and determine its value, but if , then is simply sampled from its original conditional distribution . At the end, the function is computed over the (adversarially) sampled sequence.
We now explain the intuitive connection between generalized -tampering attacks and -poisoning attacks. The main idea is that we will use a generalized -tampering attack for over the random process that lists the sequence of training data provided by the parties during the protocol. Let be the distribution over that picks its members through the following algorithm. First choose a set of random parties , and then for each message that belongs to , include the corresponding index in the final sampled with independent probability . It is easy to see that eventually picks every message with (marginal) probability , but it is also the case that these inclusions are not independent events. Finally, to use the power of generalized -tampering attacks over the described and the random process of messages coming from the parties to get the results of Theorem 1.1, roughly speaking, we let a function model the loss function applied over the produced hypothesis. Therefore, to prove Theorem 1.1 it is sufficient to prove Theorem 1.2 below which focuses on the power of generalized -tampering biasing attacks.
Theorem 1.2 (Power of generalized -tampering-informal).
Suppose is a joint distribution such that, given any prefix, the remaining blocks could be efficiently sampled in polynomial time. Also let . Then, for any set distribution for which for all , there is a polynomial-time generalized -tampering attack (over tampered blocks in ) that increases the average of over its input from to (arbitrarily close to) . In particular, if is boolean function, then it hold that .
Bitwise vs. blockwise attacks.
It is easy to see that in the definition of generalized -tampering attacks, it does not matter whether we define the attack bit-by-bit or block-by-block. The reason is that, even if we break down each block into smaller bits, then still each bit shall eventually fall into the set of tamperable bits, and the model allows correlation between the inclusion and exclusion of each block/bit into the final tamperable set. This is in contrast to the -tampering model for which this equivalence is not true. In fact, optimal bounds achievable by bitwise -tampering as proved in [2] are impossible to achieve in the blockwise -tampering setting [35]. Despite this simplification, we still prefer to use a blockwise presentation of the random process, as this way of modeling the problem allows better tracking measures for the attacker’s sample complexity.
Ideas behind the tampering attack of Theorem 1.2.
To prove Theorem 1.2 we use ideas from [25, 11] in the context of coin-tossing attacks and generalize them using new techniques to obtain our generalized -tampering attacks.
Rejection sampling attack. The simplified version of our attack can be described as follows. Based on the nature of this attack, we call it the “rejection sampling” (RS) attack. For any prefix of already sampled blocks , suppose the adversary is given the chance of controlling the next ’th block. The RS tampering then works as follows:
- 1.
Let be a random continuation of the random process, conditioned on .
- 2.
If , then if output , and otherwise (i.e., if ) go to Step 1 and repeat the sampling process.
The above attack is inspired by the two-party attack of [25]. Our main contribution is to do the following steps. (1) First, analyze this attack in the generalized tampering setting and show its power, which implies the multiparty case as special case. This already gives an alternative, and in our eyes simpler, proof of the classic result of [11] (2) We then extend this attack and its analysis to the real-output setting. (3) Finally, we show how to approximate this attack in polynomial time.
2 Multi-Party Poisoning: Definitions and Main Results
Notation.
We use bold font (e.g., ) to represent random variables, and usually use same non-bold letters for denoting samples from these distributions. We use to denote the process of sampling from the random variable . By we mean the expected value of over the randomness of , and by we denote the variance of random variable . We might use a “processed” version of , and use and to denote the expected value and variance, respectively, of over the randomness of . A learning problem is specified by the following components. The set is the set of possible instances, is the set of possible labels, is distribution over .00 0 By using joint distributions over , we jointly model a set of distributions over and a concept class mapping to (perhaps with noise and uncertainty). The set is called the hypothesis space or hypothesis class. An example is a pair where and . We consider loss functions where measures how different the ‘prediction’ (of some possible hypothesis ) is from the true outcome . We call a loss function bounded if it always takes values in . A natural loss function for classification tasks is to use if and otherwise. The risk of a hypothesis is the expected loss of with respect to , namely . The average error which quantifies the total error of the protocol is defined as
Definition 2.1 (Multi-party learning protocols).
An -party learning protocol for the -party learning problem consists of an aggregator function and (interactive) data providers . For each data provider , there is a distribution that models the (honest) distribution of labeled samples generated by , and there is a final (test) distribution that want to learn jointly. The protocol runs in rounds and at each round, based on the protocol , one particular data owner broadcasts a single labeled example .11 1 We can directly model settings where more data is exchanged in one round, however, we stick to the simpler definition w.l.o.g. In the last round, the aggregator function maps the the messages to an output hypothesis .
Now, we define poisoning attackers that target multi-party protocols. We formalize a more general notion that includes -tampering attacks and -party corruption as special case.
Definition 2.2 (Multi-party -poisoning attacks).
A -poisoning attack against an -party learning protocol is defined by an adversary who can control a subset of the parties where . The attacker shall pick the set at the beginning. At each round of the protocol, if a data provider is supposed to broadcast the next example from its distribution , the adversary can partially control this sample using the tampered distribution such that in total variation distance. Note that the distribution can depend on the history of examples broadcast so far, but the requirement is that, conditioned on this history, the malicious message of adversary modeled by distribution , is at most -statistically far from . We use to denote the protocol in presence of . We also define the following notions. is a plausible adversary, if it always holds that . is efficient if it runs in polynomial time in the total length of the messages exchanged during the protocol (from the beginning till end).
Remark 2.3 (Static vs. adaptive corruption).
Definition 2.2 focuses on corrupting parties statically. A natural extension of this definition in which the set is chosen adaptively [13] while the protocol is being executed can also be defined naturally. However, here we focus on static corruption and leave the possibility of improving our results in the adaptive case for future work.
Remark 2.4 (Plausible vs. clean-label attacks).
In recent years, the term clean-label is used for data-poisoning attacks that must use the correct label for the poison data. This definition is special case of plausibility as one can define the support set to be the all images with their correct label. However, our definition is more general and can be used for model poisoning attacks against federated learning as well. For example, the distribution could be the distribution of gradients at a certain round. Being plausible in this setting means that the gradient must be calculated based on a real input and cannot be arbitrary.
We now formally state our result about the power of -poisoning attacks.
Theorem 2.5 (Power of efficient multi-party poisoning).
In any -party protocol for parties , for any and , the following hold where is the total length of the messages exchanged.
- 1.
For any bad property , there is a plausible -poisoning attack that runs in time and increases the probability of from (in the no-attack setting) to
- 2.
If the (normalized) loss function is bounded (i.e., it outputs in ), then there is a plausible, -poisoning that runs in time and increases the average error of the protocol as
where and is the variance.
Allowing different distributions in different rounds.
In Definition 2.2, we restrict the adversary to remain “close” to for each message sent out by one of the corrupted parties. A natural question is: what happens if we allow the parties distributions to be different in different rounds. For example, in a round , a party might send multiple training examples , and we want to limit the total statistical distance between the distribution of the larger message from (i.e., iid samples from ).22 2 Note that, even if each block in remains -close to , their joint distribution could be quite far from . We emphasize that, our results extend to this more general setting as well. In particular, the proof of Theorem 2.5 directly extends to a more general setting where we can allow the honest distribution of each party to also depend on the round in which these messages are sent. Thus, we can use a round-specific distribution to model the joint distribution of multiple samples that are sent out in the ’th round by the party . This way, we can obtain the stronger form of attacks that remain statistically close to the joint (correct) distribution of the (multi-sample) messages sent in a round. In fact, as we will discuss shortly might be of completely different type.
Allowing randomized aggregation.
The aggregator is a simple function that maps the transcript of the exchanged messages to a hypothesis . A natural question is: what happens if we generalize this to the setting where is allowed to be randomized. We note that in Theorem 2.5, Part 2 can allow to be randomized, but Parts 1 and 3 need deterministic aggregation. The reason is that for those parts, we need the transcript to determine the confidence and average error functions. One general way to make up for randomized aggregation is to allow the parties to inject randomness into the transcript as they run the protocol by sending messages that are not necessarily learning samples from their distribution . As described above, our attacks extend to this more general setting as well. Otherwise, we will need the adversary to be able to also depend on the randomness of , but that is also a reasonable assumption if the aggregation is used using public beacon that could be obtained by the adversary as well.
3 Multi-Party Poisoning via Generalized -Tampering
To prove our Theorem 2.5 we interpret the multi-party learning protocol as a coin tossing protocol in which the final bit is if has the (bad) property . We define a corresponding attack model in coin tossing protocols that can be directly used to obtain the desired goal; this model is called generalized -tampering. Below, we formally state our main result about the power of generalized -tampering attacks. We start by formalizing some notation and definitions.
Notation.
By we denote that the random variables and have the same distributions. Unless stated otherwise, by using a bar over a variable, we emphasize that it is a vector. By we refer to a joint distribution over vectors with components. For a joint distribution , we use to denote the joint distribution of the first variables . Also, for a vector we use to denote the prefix . For a randomized algorithm , by we denote the randomized execution of on input outputting . For a distribution , by we denote the conditional distribution . By we denote the support set of . By we denote an algorithm with oracle access to a sampler for that upon every query returns fresh samples from . By we denote the distribution that returns iid samples from .
Definition 3.1 (Valid prefixes).
Let be an arbitrary joint distribution. We call a valid prefix for if there exist such that . denotes the set of all valid prefixes of .
Definition 3.2 (Tampering with random processes).
Let be an arbitrary joint distribution. We call a (potentially randomized and possibly computationally unbounded) algorithm an (online) tampering algorithm for if given any prefix , we have
Namely, outputs such that is again a valid prefix. We call an efficient tampering algorithm for if it runs in time where is the bit length of .
Definition 3.3 (Online samplers).
We call an online sampler for if for all , . Moreover, we call online samplable if it has an online sampler that runs in time where is the bit length of .
Notation for tampering distributions.
Let be an arbitrary joint distribution and a tampering algorithm for . For any subset , we define to be the joint distribution that is the result of online tampering of over set , where is sampled inductively as follows. For every , suppose is the previously sampled block. If , then the block is generated by the tampering algorithm , and otherwise, is sampled from . For any distribution over subsets of , by we denote the random variable that can be sampled by first sampling and then .
Definition 3.4 (-covering).
Let be a distribution over the subsets of . We call a -covering distribution on (or simply -covering, when is clear from the context), if for all .
The following theorem states the power of generalized -tampering attacks.
Theorem 3.5 (Biasing of bounded functions through generalizing -tampering).
Let be a -covering distribution on , be a joint distribution, , and . Then, for any , there exists a tampering algorithm that, given oracle access to and any online sampler for , it runs in time , where is the bit length of any , and for , it holds that
Special case of Boolean functions.
When the function is Boolean, we get , which matches the bound proved in [11] for the special case of for integer and for that is uniformly random subset of of size . (The same bound for the case of 2 parties was proved in [25] with extra properties). Even for this case, compared to [11, 25] our result is more general, as we can allow with arbitrary and achieve a polynomial time attack given oracle access to an online sampler for . The work of [25] also deals with polynomial time attackers for the special case of 2 parties, but their efficient attackers use a different oracle (i.e., OWF inverter), and it is not clear whether or not their attack extend to the case of more then 2 parties. Finally, both [11, 25] prove their bound for the geometric mean of the averages for different , while we do so for their arithmetic mean, but we emphasize that this is enough for all of our applications.
The bounds of Theorem 3.5 relies on the quantity . A natural question is: how large is compared to ? As discussed above, for the case of Boolean , we already know that , but that argument does not apply to the real-output . A simple application of Jensen’s inequality shows that in general, but that still does not mean that .
General case of real-output functions: relating the bias to the variance.
If , then no tampering attack can achieve any bias, so any the minimum bias of all attacks should somehow depend on the variance of . In the following, we show that this gap does exist and that . Similar results relating the bias the the variance of the original distribution were previously proved [33, 35, 1] for the special case of -tampering attacks (i.e., chooses every independently with probability ). Here, we obtain a more general result for any -covering set structure .
Corollary 3.6.
If , then the computationally bounded attack of Theorem 3.5 achieves
3.1 Proving Theorem 3.5
Here, we first prove the power of computationally unbounded adversaries. Then, we show how we can “approximate” this attack with a polynomial-time adversary and get almost the same bias.
3.1.1 Warm up: Computationally Unbounded Adversaries
The construction below describes a computationally unbounded biasing algorithm that achieves the bounds of Theorem 3.5.
Construction 3.7 (Rejection-sampling tampering).
Let and . The rejection sampling tampering algorithm works as follows. Given the valid prefix , the tampering algorithm would do the following:
- 1.
Sample by using the online sampler for .
- 2.
If , then with probability output , otherwise go to Step 1 and repeat.
We will first prove a property of the rejection sampling algorithm when applied on every block.
Definition 3.8 (Notation for partial expectations of functions).
Suppose is defined over a joint distribution , , and . Then, using a small hat, we define the notation . E.g., for , we have .
Claim 3.9.
If . Then, for every valid ,
Proof.
Based on the description of , for any the following equation holds for the probability of sampling conditioned on prefix .
The first term in this equation corresponds to the probability of selecting and accepting in the first round of sampling and the second term corresponds to the probability of selecting and accepting in any round except the first round. Therefore we have
which implies that
∎
Now, we prove two properties for any tampering algorithm (not just rejection sampling) over a -covering distribution.
Lemma 3.10.
Let be -covering for and . For any and an arbitrary tampering algorithm for , let . Then,
Proof.
For every define as
Then, for all we have
Therefore we have
∎
Claim 3.11.
Suppose is -covering on , for any , and for an arbitrary tampering algorithm for . Then, it holds that
Proof.
Let . Also let . Note that for any . Therefore, we have is equal to
| (by AM-GM inequality) | |||
| (by -covering of and Lemma 3.10) | |||
∎
3.1.2 Proving Theorem 3.5 for Polynomially Bounded Attacks
In this section, we prove the second item of Theorem 3.5. Namely, we show an efficient tampering algorithm whose average is -close to the average of . We define this attack as follows:
Construction 3.12 (-rejection-sampling tampering).
Let be a joint distribution and . The -rejection sampling tampering algorithm works as follows. Given the valid prefix , the tampering algorithm would do the following for times:
- 1.
Sample by using the online sampler for .
- 2.
Let ; with probability output , otherwise go to Step 1.
If no was output during any of the above iterations then output a fresh sample .
The output distribution of on any input, converges to the rejections sampling tampering algorithm for sufficiently large .
Notation. Below, use the notation and .
We will prove the following claim which will directly completes the proof of second part of Theorem 3.5.
Claim 3.13.
Let be a joint distribution and . For any , let . Then runs in time , where is the total bit-length of representing , and for it holds that
Proof.
It is easy to see why runs in time and thus we will focus on proving the expected value of the output of the -rejection sampling tampering algorithm. To that end, we start by providing some definitions relevant to our analysis.
Definition 3.14.
For , let
Claim 3.15.
For , it holds that
As a result, it holds that , and so
Proof.
Let be such that is the smallest prefix such that . Now consider the set . For any we have
which implies
Thus, we have
∎
Claim 3.16.
Let , then we have
Proof.
Consider to be the event that outputs one of its first samples, when performed on . Then, it holds that
On the other hand, we know that . Thus, we have
By multiplying these inequalities for we get ∎
Claim 3.17.
For , it holds that
Proof.
Therefore, we have
| (by Bernoulli inequality) | |||
∎
In order to conclude the proof of Claim 3.13, we can set and let . Then, given that we have , we get
∎
3.2 Obtaining -Poisoning: Proof of Theorem 2.5 using Theorem 3.5
In this section, we formally prove Theorem 2.5 using Theorems 3.5. We first prove the first part of theorem about the boolean property.
Proof of Theorem 2.5, Part 1.
For a subset let and be the subset of rounds where one of the parties in sends an example. Also for a subset , we define to be a distribution over all the subsets of , where each subset hast the probability . Now, consider the covering of the set which is distributed equivalent to the following process. First sample a uniform subset of of size . Then sample and output a set sampled from . is clearly a -covering. We use this covering to prove the theorem. For let be the index of the provider at round and let be the designated distribution of the th round and let .
We define a function , which is a Boolean function and is if the output of the protocol has the property , and otherwise it is . Now we use Theorem 3.5. We know that is a -covering for . Therefore of Theorem 3.5, there exist an time tampering algorithm that changes to where
By an averaging argument, we can conclude that there exist a set of size for which the distribution produces average output at least . Note that the measure of empty set in is exactly equal to which means with probability the adversary will not tamper with any of the blocks, therefore, the statistical distance is at most . This concludes the proof. ∎
Proof of Theorem 2.5 part 2.
Now we prove the second part. The second part is very similar to first part except that the function that we define here is a real valued function. Consider the function which is defined to be the risk of the output hypotheses. Now by Theorem 3.5 and Lemma A.3, we know that there is tampering algorithm that changes to such that
By a similar averaging argument we can conclude the proof. ∎
References
- ACM+ [14] Per Austrin, Kai-Min Chung, Mohammad Mahmoody, Rafael Pass, and Karn Seth. On the impossibility of cryptography with tamperable randomness. In International Cryptology Conference, pages 462–479. Springer, 2014.
- ACM+ [17] Per Austrin, Kai-Min Chung, Mohammad Mahmoody, Rafael Pass, and Karn Seth. On the impossibility of cryptography with tamperable randomness. Algorithmica, 79(4):1052–1101, Dec 2017.
- BBV [08] Maria-Florina Balcan, Avrim Blum, and Santosh Vempala. A discriminative framework for clustering via similarity functions. In Proceedings of the fortieth annual ACM symposium on Theory of computing, pages 671–680. ACM, 2008.
- BCMC [18] Arjun Nitin Bhagoji, Supriyo Chakraborty, Prateek Mittal, and Seraphin Calo. Analyzing federated learning through an adversarial lens. arXiv preprint arXiv:1811.12470, 2018.
- BDLS [17] Sivaraman Balakrishnan, Simon S Du, Jerry Li, and Aarti Singh. Computationally efficient robust sparse estimation in high dimensions. In Conference on Learning Theory, pages 169–212, 2017.
- BEK [02] Nader H. Bshouty, Nadav Eiron, and Eyal Kushilevitz. PAC learning with nasty noise. Theoretical Computer Science, 288(2):255–275, 2002.
- BGS+ [17] Peva Blanchard, Rachid Guerraoui, Julien Stainer, et al. Machine learning with adversaries: Byzantine tolerant gradient descent. In Advances in Neural Information Processing Systems, pages 119–129, 2017.
- BIK+ [17] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for privacy-preserving machine learning. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, pages 1175–1191. ACM, 2017.
- BNL [12] Battista Biggio, Blaine Nelson, and Pavel Laskov. Poisoning attacks against support vector machines. In Proceedings of the 29th International Coference on International Conference on Machine Learning, pages 1467–1474. Omnipress, 2012.
- BNS+ [06] Marco Barreno, Blaine Nelson, Russell Sears, Anthony D Joseph, and J Doug Tygar. Can machine learning be secure? In Proceedings of the 2006 ACM Symposium on Information, computer and communications security, pages 16–25. ACM, 2006.
- BOL [89] M. Ben-Or and N. Linial. Collective coin flipping. Randomness and Computation, 5:91–115, 1989.
- BVH+ [18] Eugene Bagdasaryan, Andreas Veit, Yiqing Hua, Deborah Estrin, and Vitaly Shmatikov. How to backdoor federated learning. arXiv preprint arXiv:1807.00459, 2018.
- CFGN [96] Ran Canetti, Uri Feige, Oded Goldreich, and Moni Naor. Adaptively secure multi-party computation. In Proceedings of the twenty-eighth annual ACM symposium on Theory of computing, pages 639–648. ACM, 1996.
- CSV [17] Moses Charikar, Jacob Steinhardt, and Gregory Valiant. Learning from untrusted data. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pages 47–60. ACM, 2017.
- CSX [17] Yudong Chen, Lili Su, and Jiaming Xu. Distributed statistical machine learning in adversarial settings: Byzantine gradient descent. Proceedings of the ACM on Measurement and Analysis of Computing Systems, 1(2):44, 2017.
- CV [19] Gregory Cirincione and Dinesh Verma. Federated machine learning for multi-domain operations at the tactical edge. In Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications, volume 11006, page 1100606. International Society for Optics and Photonics, 2019.
- CWCP [18] Lingjiao Chen, Hongyi Wang, Zachary Charles, and Dimitris Papailiopoulos. Draco: Byzantine-resilient distributed training via redundant gradients. In International Conference on Machine Learning, pages 902–911, 2018.
- DKK+ [16] Ilias Diakonikolas, Gautam Kamath, Daniel M Kane, Jerry Li, Ankur Moitra, and Alistair Stewart. Robust estimators in high dimensions without the computational intractability. In Foundations of Computer Science (FOCS), 2016 IEEE 57th Annual Symposium on, pages 655–664. IEEE, 2016.
- DKK+ [18] Ilias Diakonikolas, Gautam Kamath, Daniel M Kane, Jerry Li, Jacob Steinhardt, and Alistair Stewart. Sever: A robust meta-algorithm for stochastic optimization. arXiv preprint arXiv:1803.02815, 2018.
- DKS [17] Ilias Diakonikolas, Daniel M Kane, and Alistair Stewart. Statistical query lower bounds for robust estimation of high-dimensional Gaussians and Gaussian mixtures. In Foundations of Computer Science (FOCS), 2017 IEEE 58th Annual Symposium on, pages 73–84. IEEE, 2017.
- [21] Ilias Diakonikolas, Daniel M Kane, and Alistair Stewart. List-decodable robust mean estimation and learning mixtures of spherical Gaussians. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, pages 1047–1060. ACM, 2018.
- [22] Ilias Diakonikolas, Weihao Kong, and Alistair Stewart. Efficient algorithms and lower bounds for robust linear regression. arXiv preprint arXiv:1806.00040, 2018.
- FYB [18] Clement Fung, Chris JM Yoon, and Ivan Beschastnikh. Mitigating sybils in federated learning poisoning. arXiv preprint arXiv:1808.04866, 2018.
- GR+ [18] Rachid Guerraoui, Sébastien Rouault, et al. The hidden vulnerability of distributed learning in byzantium. In International Conference on Machine Learning, pages 3518–3527, 2018.
- HO [14] Iftach Haitner and Eran Omri. Coin flipping with constant bias implies one-way functions. SIAM Journal on Computing, 43(2):389–409, 2014.
- HO [18] Jamie Hayes and Olga Ohrimenko. Contamination attacks and mitigation in multi-party machine learning. In Advances in Neural Information Processing Systems, pages 6604–6615, 2018.
- HZ [19] Yufei Han and Xiangliang Zhang. Robust federated training via collaborative machine teaching using trusted instances. arXiv preprint arXiv:1905.02941, 2019.
- KL [93] Michael J. Kearns and Ming Li. Learning in the Presence of Malicious Errors. SIAM J. on Computing, 22(4):807–837, 1993.
- KMY+ [16] Jakub Konečnỳ, H Brendan McMahan, Felix X Yu, Peter Richtárik, Ananda Theertha Suresh, and Dave Bacon. Federated learning: Strategies for improving communication efficiency. arXiv preprint arXiv:1610.05492, 2016.
- KSL [18] Pang Wei Koh, Jacob Steinhardt, and Percy Liang. Stronger data poisoning attacks break data sanitization defenses. arXiv preprint arXiv:1811.00741, 2018.
- LB [17] JG Liao and Arthur Berg. Sharpening Jensen’s inequality. The American Statistician, 2017.
- LRV [16] Kevin A Lai, Anup B Rao, and Santosh Vempala. Agnostic estimation of mean and covariance. In Foundations of Computer Science (FOCS), 2016 IEEE 57th Annual Symposium on, pages 665–674. IEEE, 2016.
- [33] Saeed Mahloujifar, Dimitrios I Diochnos, and Mohammad Mahmoody. Learning under -tampering attacks. In Algorithmic Learning Theory, pages 572–596, 2018.
- [34] Saeed Mahloujifar, Dimitrios I Diochnos, and Mohammad Mahmoody. Learning under -Tampering Attacks. In ALT, pages 572–596, 2018.
- MM [17] Saeed Mahloujifar and Mohammad Mahmoody. Blockwise p-Tampering Attacks on Cryptographic Primitives, Extractors, and Learners. In Theory of Cryptography Conference, pages 245–279. Springer, 2017.
- MMR+ [16] H Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, et al. Communication-efficient learning of deep networks from decentralized data. arXiv preprint arXiv:1602.05629, 2016.
- MR [17] Brendan McMahan and Daniel Ramage. Federated learning: Collaborative machine learning without centralized training data. Google Research Blog, 2017.
- PMSW [16] Nicolas Papernot, Patrick McDaniel, Arunesh Sinha, and Michael Wellman. Towards the science of security and privacy in machine learning. arXiv preprint arXiv:1611.03814, 2016.
- PSBR [18] Adarsh Prasad, Arun Sai Suggala, Sivaraman Balakrishnan, and Pradeep Ravikumar. Robust estimation via robust gradient estimation. arXiv preprint arXiv:1802.06485, 2018.
- SKL [17] Jacob Steinhardt, Pang Wei W Koh, and Percy S Liang. Certified defenses for data poisoning attacks. In Advances in neural information processing systems, pages 3517–3529, 2017.
- STS [16] Shiqi Shen, Shruti Tople, and Prateek Saxena. A uror: defending against poisoning attacks in collaborative deep learning systems. In Proceedings of the 32nd Annual Conference on Computer Security Applications, pages 508–519. ACM, 2016.
- TCC [19] Richard Tomsett, Kevin Chan, and Supriyo Chakraborty. Model poisoning attacks against distributed machine learning systems. In Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications, volume 11006, page 110061D. International Society for Optics and Photonics, 2019.
- Val [85] Leslie G. Valiant. Learning disjunctions of conjunctions. In IJCAI, pages 560–566, 1985.
- YCRB [18] Dong Yin, Yudong Chen, Kannan Ramchandran, and Peter Bartlett. Byzantine-robust distributed learning: Towards optimal statistical rates. arXiv preprint arXiv:1803.01498, 2018.
Appendix A Some Useful Inequalities
The following well-known variant of the inequality for the arithmetic mean and the geometric mean could be derived from the Jensen’s inequality.
Lemma A.1 (Weighted AM-GM inequality).
For any , let be a sequence of non-negative real numbers and let be such that for every and . Then, it holds that
The following lemma provides a tool for lower bounding the gap between the two sides of Jensen’s inequality, also known as the Jensen gap.
Lemma A.2 (Lower bound for Jensen gap [31]).
Let be a real-valued random variable, , and . Let be twice differentiable on , and let . Then,
A.1 Relating the Bias to the Variance
We first prove a lemma that shows the connection of bias to variance. Then, using this lemma we immediately get a lower bounds for the bias achieved by the attacker of Theorem 3.5 for the general case of real-valued functions and arbitrary -covering set distribution .
Lemma A.3.
Let be any real-valued random variable over , and . Let be the expected value of , be the variance of . Then, it holds that
Proof.
We use Lemma A.2 by letting . Thus, we have to minimize the following function on ,
We now prove that the minimum happens on . Note that the function is continues on and and the limit exists at and is equal to . Therefore if we show that is negative for it implies that, . We have
We prove that the numerator is positive for and negative for . For , we have
Therefore, is increasing for which implies and . We have . Therefore we have
| (1) |
Now we prove that . Consider the following function,
We will show that is a decreasing function for . We have
We will show that the numerator is negative for We have which is negative for . This implies that . Therefore, is a decreasing function, and we obtain
| (2) |
Now, we conclude that
| (by Lemma A.2) | |||
| (by Inequality 1) | |||
| (by Inequality 2) |
∎