
===== PDF PAGE 1 =====
    On the Tension between Byzantine Robustness and No-Attack Accuracy in
                            Distributed Learning


                                       Yi-Rui Yang 1 Chang-Wei Shi 1 Wu-Jun Li 1


                          Abstract                                    1. Introduction
                                                                      Distributed learning has been a hot research topic for
                                                                      years (Haddadpour et al., 2019; Jaggi et al., 2014; Lee et al.,
       Byzantine-robust distributed learning (BRDL),
                                                                      2017; Lian et al., 2017; Ma et al., 2015; Shamir et al., 2014;
       which refers to distributed learning that can work
                                                                      Sun et al., 2018; Yang, 2013; Yu et al., 2019a;b; Zhao et al.,
       with potential faulty or malicious workers (also
                                                                      2017; 2018; Zhou et al., 2018; Zinkevich et al., 2010). Tra-
       known as Byzantine workers), has recently at-
                                                                      ditional distributed learning typically assumes no attack
       tracted much research attention. Robust aggrega-
                                                                      or failure. However, in some real-world scenarios such
       tors are widely used in existing BRDL methods
                                                                      as federated learning (McMahan & Ramage, 2017), the
       to obtain robustness against Byzantine workers.
                                                                      probability of attacks or failure greatly increases due to
       However, Byzantine workers do not always exist
                                                                      the server’s weak control on workers (Baruch et al., 2019;
       in applications. As far as we know, there is al-
                                                                      Kairouz et al., 2021; Xie et al., 2020a). The workers under
       most no existing work theoretically investigating
                                                                      attack or failure are also called Byzantine workers (Lamport
       the effect of using robust aggregators when there
                                                                      et al., 1982). Byzantine-robust distributed learning (BRDL),
       are no Byzantine workers. To bridge this knowl-
                                                                      which refers to distributed learning that can work with poten-
       edge gap, we theoretically analyze the aggrega-
                                                                      tial Byzantine workers, has recently attracted much research
       tion error for robust aggregators when there are
                                                                      attention (Bernstein et al., 2019; Bulusu et al., 2021; Chen
       no Byzantine workers. Specifically, we show that
                                                                      et al., 2018; Damaskinos et al., 2018; Diakonikolas et al.,
       the worst-case aggregation error without Byzan-
                                                                      2017; Diakonikolas & Kane, 2019; Konstantinidis & Ra-
       tine workers increases with the increase of the
                                                                      mamoorthy, 2021; Rajput et al., 2019; Sohn et al., 2020; Wu
       number of Byzantine workers that a robust aggre-
                                                                      et al., 2020; Yang & Li, 2021; Yang et al., 2024; 2020; Yin
       gator can tolerate. The theoretical result reveals
                                                                      et al., 2019).
       the tension between Byzantine robustness and no-
       attack accuracy, which refers to accuracy without              Robust aggregation is a widely used technique to obtain
       faulty workers and malicious workers in this paper.            Byzantine robustness in distributed learning. By replacing
       Furthermore, we provide lower bounds for the                   the vanilla mean aggregator on the server with some robust
       convergence rate of gradient descent with robust               aggregators, the distributed learning method can be robust
       aggregators for non-convex objective functions                 against a certain number of Byzantine workers. There are
       and objective functions that satisfy the Polyak-               many robust aggregators proposed in existing works (Blan-
       Łojasiewicz (PL) condition, respectively. We also              chard et al., 2017; Chen et al., 2017; Guerraoui et al., 2018;
       prove the tightness of the lower bounds. The                   Karimireddy et al., 2021; Yin et al., 2018). Meanwhile,
       lower bounds for convergence rate reveal simi-                 using robust aggregation will also inevitably introduce an
       lar tension between Byzantine robustness and no-               aggregation error, which is the square distance between the
       attack accuracy. Empirical results further support             aggregation result and the true mean value. Large aggrega-
       our theoretical findings.                                      tion error will lead to a decrease of model accuracy.
                                                                      Existing analyses (Allouah et al., 2023; Karimireddy et al.,
                                                                      2021; 2022) for the aggregation error of robust aggregators
   1
    National Key Laboratory for Novel Software Technology,            typically assume that the number (or fraction) of Byzantine
School of Computer Science, Nanjing University, Nanjing, China.       workers is known in advance, while in real-world applica-
Correspondence to: Wu-Jun Li <liwujun@nju.edu.cn>.                    tions, the number of Byzantine workers is usually unavail-
                                                                      able. It is advised in existing works (Karimireddy et al.,
Proceedings of the 42 nd International Conference on Machine
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025           2022; Yang & Li, 2023) to determine the maximum number
by the author(s).                                                     of Byzantine workers that the BRDL method can tolerate

                                                                  1


===== PDF PAGE 2 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

in advance and then set the robust aggregator accordingly.            Algorithm 1 Byzantine-Robust Gradient Descent (ByzGD)
However, Byzantine workers do not always exist in appli-                                                                  −1
                                                                        Input: iteration number T , learning rates {ηt }Tt=0 , ro-
cations. When there are actually no Byzantine workers, the
                                                                        bust aggregator Agg(·);
aggregation error introduced by robust aggregators could
                                                                        Initialization: model parameter w0 ;
have a negative effect on the convergence of distributed
                                                                        for t = 0 to T − 1 do
learning methods and degrade the model accuracy. As far
                                                                          Broadcast wt to all workers;
as we know, there is almost no existing work theoretically
                                                                          on worker i ∈ {1, . . . , n} in parallel do
investigating the performance of robust aggregators when
                                                                             Compute local gradient gi = ∇Fi (wt );
there are no Byzantine workers. To bridge this knowledge
                                                                             Send gi to the server;
gap, we mainly focus on the following question:
                                                                          end on worker
How large could the aggregation error be when there are                   Compute: wt+1 = wt − ηt · Agg(g1 , . . . , gn );
            actually no Byzantine workers?                              end for
                                                                        Output: model parameter wT .
The main contributions of our work are listed as follows:

   • To the best of our knowledge, this is the first work that        to solve the problem (1) is gradient descent as presented
     theoretically investigates the tension between Byzan-            below:                          " n      #
     tine robustness and no-attack accuracy in distributed                                             1X
                                                                                    wt+1 = wt − ηt ·         gi .
     learning.                                                                                         n i=1
                                                                      Specifically, at the t-th iteration, all the workers compute
   • We theoretically prove that the worst-case aggregation
                                                                      local gradients g1 , . . . , gn in parallel and send them to the
     error without Byzantine workers increases with the in-
                                                                      server. Then, the server aggregates the gradients with vanilla
     crease of f , which is the number of Byzantine workers
                                                                      averaging and updates the model parameter with the aggre-
     that a robust aggregator can tolerate. The theoretical re-
                                                                      gated gradient. However, the averaging value is sensitive
     sult reveals the tension between Byzantine robustness
                                                                      to the outliers and not robust against Byzantine workers.
     and no-attack accuracy.
                                                                      Therefore, robust aggregators such as Krum (Blanchard
   • Moreover, we provide lower bounds for the conver-                et al., 2017), geometric median (Chen et al., 2017) and
     gence rate of gradient descent with robust aggrega-              coordinate-wise trimmed mean (Yin et al., 2018) are pro-
     tors for non-convex objective functions and objective            posed to replace vanilla averaging in BRDL. By replacing
     functions that satisfy the Polyak-Łojasiewicz (PL) con-          the vanilla averaging with some robust aggregators, we
     dition, respectively. We further show that the lower             can obtain Byzantine-robust gradient descent (ByzGD). In
     bounds are tight and increase with the increase of f .           ByzGD, the model parameters are updated by:

   • We also provide empirical results, which further sup-                       wt+1 = wt − ηt · Agg(g1 , . . . , gn ),
     port our theoretical findings.
                                                                      where Agg(·) denotes a general robust aggregator. More
                                                                      details about ByzGD are presented in Algorithm 1.
In addition, we would like to point out that existing works
on robust aggregators mainly explore the performance when             In existing works, there are several definitions of robust ag-
there exist Byzantine workers while we focus on the case              gregators that are used to analyze the aggregation error. The
without Byzantine workers in this work.                               definition of (δmax , c)-ARAgg (Karimireddy et al., 2022) is
                                                                      proposed based on the expectation of the distances among
                                                                      the vectors while the definition of (f, λ)-resilient averag-
2. Preliminary                                                        ing (Farhadkhani et al., 2022) is proposed based on the
Many distributed learning problems can be formulated as:              maximum distances among the vectors. In (Allouah et al.,
                                                                      2023), the definition of (f, κ)-robust aggregator is further
                                   n
                           1X                                         proposed, which can unify many existing definitions of
               min F (w) =       Fi (w),                   (1)        robust aggregators including (δmax , c)-ARAgg and (f, λ)-
               w∈Rd        n i=1
                                                                      resilient averaging. Due to this reason, we mainly follow
where w is the model parameter, n is the number of workers            the definition of (f, κ)-robust aggregator in this work. For
and Fi (w) is the loss function associated with the training          simplicity, we use the notation ∥ · ∥ to represent the L2 -norm
data on the i-th worker. Moreover, we mainly focus on the             in this paper.
Parameter Server (PS) framework, where there is an extra              Definition 2.1 ((f, κ)-robustness (Allouah et al., 2023)).
server responsible for coordination. A widely used method             Let f < n2 and κ ≥ 0. An aggregator Agg : Rd×n → Rd is

                                                                  2


===== PDF PAGE 3 =====
                On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

said to be (f, κ)-robust if for any n vectors x1 , . . . , xn ∈ Rd       3.1. General Lower Bound
and for any set S ⊆ {1, . . . , n} satisfying |S| = n − f , we
                                                                         Firstly, we provide a lower bound of ϵ for (f, κ)-robust
have
                                                                         aggregators.
                                      "                          #
                              2          1 X                   2         Theorem 3.1 (Lower Bound). If an (f, κ)-robust aggrega-
∥Agg(x1 , . . . , xn ) − x̄S ∥ ≤ κ ·            ∥xi − x̄S ∥ ,                                            f
                                        |S|                              tor is ϵ-accurate, we have ϵ ≥ n−f .
                                             i∈S

                                                                                             f
             1
where x̄S = |S|
                  P                                                      The lower bound n−f     in Theorem 3.1 is between 0 and 1
                      i∈S xi .                                                      n
                                                                         since f < 2 . Moreover, when the total number of workers
For an (f, κ)-robust aggregator, the square distance be-                 n is fixed, the lower bound increases as f increases. In
tween the aggregated result Agg(x1 , . . . , xn ) and the                other words, making the aggregator robust to more Byzan-
mean value of non-Byzantine workers x̄S is bounded.                      tine workers will inevitably introduce a larger worst-case
∥Agg(x1 , . . . , xn ) − x̄S ∥2 is also known as the aggrega-            aggregation error. We will discuss more about this after
tion error. Since the server cannot identify Byzantine work-             proving the tightness of the lower bound in Theorem 3.1.
ers, the inequality should be satisfied for any set S with
|S| = n − f , where f is the number of Byzantine workers                 3.2. General Upper Bound
that the aggregator can tolerate. Specifically, when there
                                                                         Then we provide a general upper bound of ϵ for all (f, κ)-
are actually no ByzantinePworkers, the aggregation error is
                               n                                         robust aggregators in Theorem 3.2.
∥Agg(x1 , . . . , xn ) − n1 i=1 xi ∥2 . Thus, we propose the
definition of ϵ-accuracy in Definition 2.2, which measures               Theorem 3.2. Any (f, κ)-robust aggregator is κ-accurate.
the aggregation error when there are no Byzantine workers.
                                                                         The constant κ is dependent on f and differs for different
Definition 2.2 (ϵ-accuracy). Let ϵ ≥ 0. An aggregator                    robust aggregators (Allouah et al., 2023). We present the
Agg : Rd×n → Rd is said to be ϵ-accurate if for any n                    values of κ for three common (f, κ)-robust aggregators,
vectors x1 , . . . , xn ∈ Rd , we have                                   which are known as coordinate-wise trimmed mean (TM),
                                       " n               #               coordinate-wise median (CM) and geometric median (GM),
                                2       1X             2                 respectively, and the lower bound of κ in Table 1.
  ∥Agg(x1 , . . . , xn ) − x̄∥ ≤ ϵ ·          ∥xi − x̄∥ ,
                                        n i=1
                                                                         As we can see, the values of κ are much larger than the
                                                                                      f
                Pn                                                       lower bound n−f  of ϵ. Specifically, for GM and CM, the
where x̄ = n1     i=1 xi .                                                                                                      f
                                                                         value of κ is larger than 4 while the lower bound n−f     of ϵ
                                                                                                               n
Comparing Definition 2.1 and 2.2, we can find that ϵ-                    is always smaller than 1 when f < 2 . Moreover, even the
                                                                                          f                                   f
accuracy is equivalent to (f, κ)-robustness when f = 0                   lower bound n−2f     of κ will be much larger than n−f   when
                                                                                       n
and κ = ϵ. However, it is meaningless to say the robust-                 f is close to 2 since the denominator is close to 0. To obtain
ness of an aggregator that can tolerate at most 0 Byzantine              tighter results, then we separately analyze the aggregation
worker (f = 0). Thus, for better readability, we present                 error of each aggregator.
the definition of ϵ-accuracy alone, which is about the per-
formance of an aggregator in the case without Byzantine                  3.3. Analysis for Specific Aggregators
workers.
                                                                         In this section, we analyze the value of ϵ for TM, CM,
                                                                         and GM. Firstly, we present the definitions of these three
3. Analysis of Aggregation Error                                         common (f, κ)-robust aggregators.
In this section, we theoretically analyze the aggregation                Definition 3.3 (coordinate-wise trimmed mean (Yin et al.,
error of (f, κ)-robust aggregators in the case without Byzan-            2018)). Let vectors x1 , . . . , xn ∈ Rd . The coordinate-wise
tine workers. We only present the main results and proof                 trimmed mean TMf /n : Rd×n → Rd is defined as:
sketches in this section. Proof details are deferred to Ap-
pendix A in the supplementary material due to the limited                                                            1    X
                                                                                  [TMf /n (x1 , . . . , xn )]j =            x,
space.                                                                                                             n − 2f
                                                                                                                        x∈Xj

To avoid confusion, we would like to clarify that f is the
number of Byzantine workers that the aggregator can toler-               where [·]j denotes the j-th coordinate of a vector and the set
ate and there are actually no Byzantine workers in the case              Xj is obtained by removing the f largest and the f smallest
that we consider. Specifically, we will focus on how large ϵ             values of {[x1 ]j , . . . , [xn ]j }.
(please refer to Definition 2.2) could be in the case without            Definition 3.4 (coordinate-wise median (Yin et al., 2018)).
Byzantine workers.                                                       Let x1 , . . . , xn ∈ Rd . The coordinate-wise median CM :

                                                                     3


===== PDF PAGE 4 =====
                On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning


                                 Table 1. Values of κ for different robust aggregators (Allouah et al., 2023)
                      Aggregator                    TM                    CM                 GM                Lower bound
                                             6f        f                  f                    f                       f
                             κ              n−2f (1 + n−2f )       4(1 + n−2f )2        4(1 + n−2f )2                 n−2f




                                               Table 2. Values of ϵ for different robust aggregators
                          Aggregator                TMf /n                CM                GM              Lower bound
                                                      f               ⌊ n−1
                                                                         2 ⌋                                        f
                                 ϵ                   n−f             n−⌊ n−1
                                                                                             1                     n−f
                                                                          2 ⌋




Rd×n → Rd is defined as:                                                      3.4.1. P ROOF S KETCH OF T HEOREM 3.6
                                                                              We first consider the case where the dimension d = 1.
     [CM(x1 , . . . , xn )]j = Median([x1 ]j , . . . , [xn ]j ),
                                                                              Let x1 , . . . , xn be any n real numbers. Without loss of
                                                                              generality, we assume that x1 ≤ x2 ≤ . . . ≤ xn since the
where Median(·) is the scalar median operator.                                order does not affect the trimmed mean of the n values.
Definition 3.5 (geometric median). Let x1 , . . . , xn ∈ Rd .                 Furthermore, we let sets I− = {1, 2, . . . , f }, I0 = {f +
The geometric median GM : Rd×n → Rd is defined as:                            1, . . . , n − f } and I+ = {n − f + 1, . . . , n}, and define

                                             n                                                                       f
                                             X                                                           1 X      1X
        GM(x1 , . . . , xn ) ∈ arg min              ∥x − xi ∥.      (2)                      x̄I− =          xi =       xi ,                     (3)
                                     x∈Rd
                                                                                                       |I− |      f i=1
                                              i=1                                                              i∈I−

                                                                                                                     n−f
In other words, the geometric median is the vector that                                             1 X         1    X
                                                                                          x̄I0 =         xi =            xi ,                    (4)
minimizes the sum of L2 -distances. When the vectors                                               |I0 |      n − 2f
                                                                                                        i∈I0                      i=f +1
x1 , . . . , xn are not collinear, the optimization problem in
                                                                                                                               n
the right-hand side of (2) has a unique solution (Vardit &                                             1 X      1              X
                                                                                          x̄I+ =           xi =                         xi .     (5)
Zhang, 2000).                                                                                        |I+ |      f
                                                                                                            i∈I+             i=n−f +1
The values of ϵ for the three (f, κ)-robust aggregators are
                                                                              According to the definition,
summarized in Table 2. Due to the limited space, the
analysis details for TM, CM and GM are deferred to Ap-                                             f        n − 2f       f
pendix A.3, Appendix A.4 and Appendix A.5, respectively.                                    x̄ =     x̄I− +        x̄I0 + x̄I+ ,
                                                                                                   n          n          n
Moreover, please note that the value of ϵ for the coordinate-
wise trimmed mean TMf /n exactly meets the general lower                                         TMf /n (x1 , . . . , xn ) = x̄I0 .
bound in Theorem 3.1. It indicates that the value of ϵ for
                                                                              Thus, we have
TMf /n and the general lower bound are both tight.
                                                                                 TMf /n (x1 , . . . , xn ) − x̄
3.4. Conditions of the Worst Case                                                f                     f           f    f
                                                   f                            = (x̄I0 − x̄I− ) + (x̄I0 − x̄I+ ) = ∆− − ∆+ , (6)
We have obtained that the value of ϵ can be up to n−f in the                     n                     n           n    n
worst case. Then we would like to focus on the following
                                                                              where
question:
                                                                              ∆− = x̄I0 − x̄I− ≥ 0,                and       ∆+ = x̄I+ − x̄I0 ≥ 0.
 Under what conditions is the aggregation error largest?
                                                                              Moreover, we define the within-group variances
To answer the question above, we would like to first present
the theoretical result and a proof sketch for the aggregation                           1 X                                       1X
                                                                               s2I− =       (xi − x̄I− )2 ,              s2I0 =      (xi − x̄I0 )2 ,
error of TM in Theorem 3.6 below. The conditions of the                                 f                                         f
                                                                                          i∈I−                                      i∈I0
worst case can be derived based on the proof of Theorem 3.6.
Theorem 3.6. When f < n2 , the coordinate-wise trimmed                                                      1 X
                                                                                                   s2I+ =       (xi − x̄I+ )2 ,
                f
mean TMf /n is n−f -accurate.                                                                               f
                                                                                                               i∈I+


                                                                          4


===== PDF PAGE 5 =====
                On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

and we have the following equation                                     3.5. More Discussion

    n                                                                  3.5.1. A BOUT THE T IGHTNESS OF THE B OUNDS
 1X                 n−f                                  2
       (xi − x̄)2 =        TMf /n (x1 , . . . , xn ) − x̄              As we can see, the value of ϵ for TMf /n exactly meets the
 n i=1                 f
                                                                                      f
                                                                     lower bound n−f   . Thus, both the upper bound for TMf /n
    2f                f 2     n − 2f 2              f 2
  +     (∆− ∆+ ) +       ·s +            · sI0 + · sI+ .               and the lower bound are tight. Moreover, since coordinate-
     n                n I−        n                 n                  wise median (CM) is robust against f = ⌊ n−12 ⌋ Byzantine
                                                             (7)       workers, the value of ϵ for CM also meets the lower bound.

For space saving, the proof details of (7) are deferred to             Then we show the tightness of the value of ϵ for GM. Con-
Appendix A.3. Noticing that s2I− ≥ 0, s2I0 ≥ 0, s2I+ ≥ 0,              sider the case where n = 2n′ is an even number and the
                                             Pn
∆− ≥ 0 and ∆+ ≥ 0, we have that n1 i=1 (xi − x̄)2 ≥                    dimension d = 1. Moreover, x1 = x2 = . . . = xn′ = 0
                                                                                                                                   1
n−f
                                   2                                 and xnP′ +1 = xn′ +2 = . . . = x2n′ = 1. In this case, x̄ =
                                                                                                                                   2
      TMf /n (x1 , . . . , xn ) − x̄ , or, equivalently,                    1    n           2
                                                                       and n i=1 ∥x̄ − xi ∥ = n     1
                                                                                                       Pn 1  1
                                                                                                         i=1 4 = 4 . The geomet-
 f

                                        " n                  #         ric median xGM can be any value in [0, 1]. When xGM = 0
                              2  f     1X                2
                                                                       or 1, we have that ∥xGM − x̄∥2 = 41 . Therefore, in this case,
 TMf /n (x1 , . . . , xn ) − x̄ ≤     ·          (xi − x̄) .
                                 n − f n i=1                                                           " n                #
                                                                                              1          1 X
                                                            (8)               ∥xGM − x̄∥2 = = 1 ·              ∥x̄ − xi ∥2 .
For general d-dimension cases, ∥TMf /n (x1 , . . . , xn )− x̄∥2                               4          n i=1
and ∥xi − x̄∥2 can be written as summations of square errors
on each dimension. Recursively using inequality (8) for 1-             Therefore, the value ϵ = 1 for GM in Table 2 is tight. More-
dimension case above, we finally obtain that                           over, the value of ϵ for GM asymptotically meets the lower
                                                                       bound since GM is robust against f = ⌊ n−1  2 ⌋ Byzantine
                                          " n             #            workers and limn→∞ ⌊ n−1  2 ⌋/(n − ⌊ n−1
                                                                                                             2  ⌋) = 1.
                                     f      1 X
∥TMf /n (x1 , . . . , xn )−x̄∥2 ≤        ·      ∥xi − x̄∥2 .
                                   n − f n i=1                         3.5.2. A BOUT DATA H ETEROGENEITY
                                                         (9)
                              f                                        Due to the tightness of the lower bound,P     the aggregation
It implies that TMf /n is n−f    -accurate.                                                                            n
                                                                       error in the worst case is proportional to n1 i=1 ∥xi − x̄∥2 ,
3.4.2. D ISCUSSION ON THE W ORST C ASE                                 which could be large when the probability distributions of
                                                                       xi ’s are heterogeneous. Therefore, the aggregation error
By comparing Equation (7) and Inequality (8), we can find              could be larger when data distribution are more heteroge-
that the equation in (8) holds if and only if                          neous. There are some existing techniques to reduce the
                                                                     gradient (or momentum) heterogeneity in BRDL such as
 2f              f 2   n − 2f 2     f 2                                bucketing (Karimireddy et al., 2022) and nearest neighbour
    (∆− ∆+ ) +    ·s +       · sI0 + · sI+ = 0,
 n               n I−    n          n                                  mixing (NNM) (Allouah et al., 2023). However, both of the
                                                                       two techniques requires the prior knowledge of the maxi-
which is equivalent to that s2I− = s2I0 = s2I+ = 0 and                 mum number of Byzantine workers to mix the input vectors.
∆− ∆+ = 0. Without loss of generality, we assume that                  Less Byzantine workers can be tolerated if we want to make
∆+ = 0. Recall that s2I− , s2I0 and s2I+ are the within-group          the vectors more homogeneous after mixing.
variances of {xi }i∈I− , {xi }i∈I0 and {xi }i∈I+ , respectively.       From another perspective, an aggregator combined with
Therefore, we have                                                     NNM (or bucketing) can be considered as a new aggregator
                                                                       that can resist fewer Byzantine workers but have less aggre-
    x1 = x2 = . . . = xf     and xf +1 = . . . = xn .      (10)        gation error. Therefore, when using NNM or bucketing, we
                                                                       actually use the prior knowledge of the Byzantine worker
In summary, for 1-dimension case, in the case described                number to make a better trade-off between robustness and
by Equation (10), the aggregation error is the largest. For            accuracy. Please see Section 5 for the empirical results,
the general d-dimension case, the aggregation error is the             which will further support the theoretical findings in this
largest when Equation (10) holds for each dimension.                   section.
Moreover, please note that the condition described by Equa-
                                                                       3.5.3. S UMMARY OF T HEORETICAL R ESULTS
tion (10) indicates a large skewness among {x1 , . . . , xn }.
Thus, our theoretical results show that a large data skewness          In this section, we theoretically show that for any (f, κ)-
will lead to a large error of robust aggregation even if there         robust aggregator, when there are no Byzantine workers, it
is actually no Byzantine workers.                                      is inevitably to have an aggregation error in the order of

                                                                   5


===== PDF PAGE 6 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

     f                                                f
O( n−f  ) in the worst case. Moreover, the value of n−f               and
increases as f increases. It shows that to obtain robust-                                              nG
ness against more Byzantine workers, the worst-case per-                Ff +1 (w) = . . . = Fn (w) = p           (w2 − 2w).
                                                                                                    2 f (n − f )
formance in no-attack cases is inevitably degraded, which
we deem as the tension between Byzantine robustness and                                                    Pn
no-attack accuracy.                                                   It can be verified that F (w) = n1 i=1 Fi (w) has the
                                                                      unique global mimimum point w∗ = n−f       n and satisfies
                                                                      Assumptions 4.1, 4.2, 4.3 and 4.4. Moreover, the updating
4. Convergence
                                                                      rule of ByzGD for this case can be written as:
In this section, we theoretically analyze the convergence of                              "                   #
ByzGD with (f, κ)-robust aggregators when there are actu-                                           nGη
                                                                              wt+1 − 1 = 1 − p                  (wt − 1).
ally no Byzantine workers. Firstly, we list the assumptions                                        f (n − f )
below.
Assumption 4.1 (Bounded loss). ∃F ∗ ∈ R such that ∀w ∈                By
                                                                       √ separately analyzing√ the three cases where (i)√0 < η <
Rd , F (w) ≥ F ∗ .                                                    2 f (n−f )
                                                                                 ; (ii) η =
                                                                                            2 f (n−f )
                                                                                                       ; and (iii) η >
                                                                                                                       2 f (n−f )
                                                                                                                                  ,
                                                                         nG                    nG                          nG
Assumption 4.2 (L-smoothness). ∀w, w′                ∈     Rd ,       we can finally obtain the desired results. Please refer to
∥∇F (w) − ∇F (w′ )∥ ≤ L∥w − w′ ∥.                                     Appendix A for more proof details.
Assumption 4.3 (Bounded heterogeneity). There exists                  Theorem 4.5 indicates that whatever the initial point
G ≥ 0 such that ∀w ∈ Rd ,                                             w0 , the learning rate η and the iteration number T are,
               n                                                      ByzGD with a (f, κ)-robust aggregator cannot guarantee
           1X                                                            PT −1                                       f
                 ∥∇Fi (w) − ∇F (w)∥2 ≤ G2 .                           T
                                                                       1                    2                             2
                                                                            t=0 ∥∇F (wt )∥ to be smaller than n−f G for gen-
           n i=1
                                                                      eral non-convex loss functions that satisfy Assumptions 4.1,
Assumption 4.4 (Polyak-Łojasiewicz (PL) condition). Let               4.2 and 4.3. Similarly, [F (wT ) − F ∗ ] cannot be guaranteed
                                                                                            f      2

F ∗ denote the lower bound of F (w). ∃µ > 0 such that                 to be smaller than n−f    ·G2µ for loss functions that satisfy
∀w ∈ Rd , F (w) − F ∗ ≤ 2µ
                         1
                           ∥∇F (w)∥2 .                                Assumptions 4.1, 4.2, 4.3 and 4.4.
                                                                      In general cases where ∇Fi (w)’s are not all the same, we
The four assumptions above are common in distributed learn-
                                                                      have G > 0. Theorem 4.5 indicates that ByzGD with a
ing (Allouah et al., 2023; Blanchard et al., 2017; Farhad-
                                                                      (f, κ)-robust aggregator cannot guarantee the convergence
khani et al., 2022; Karimireddy et al., 2021; 2022; Xie et al.,                                  f
                                                                      to 0. Moreover, the term n−f  increases with the increase of
2019; 2020b). Specifically, the value of G measures the
                                                                      f , where f is the number of Byzantine workers that can be
heterogeneity of local gradients on workers. A larger G typ-
                                                                      tolerated. Therefore, the convergence lower bound will be
ically makes the distributed learning task more challenging.
                                                                      larger if more Byzantine workers can be tolerated, which we
Under the assumptions, we have the following convergence
                                                                      consider as the tension between Byzantine robustness and
result for ByzGD.
                                                                      no-attack accuracy. Then we show that the constant terms
Theorem 4.5 (Lower bound). For ByzGD (Algo-                             f    2       f    G2
                                                                       n−f G and n−f · 2µ are optimal and cannot be improved.
rithm 1) with any (f, κ)-robust aggregator, there exist
                                                                      Theorem 4.6 (Upper bound). For ByzGD (Algorithm 1),
n loss functions F1 (w), . . . , Fn (w) satisfying Assump-
                                                                      under Assumption 4.1, Assumption 4.2 and Assumption 4.3,
tions 4.1, 4.2, 4.3 and 4.4, and satisfying the following
                                                                      when ηt = L1 and Agg(·) is ϵ-accurate, we have that
condition: For any initial point w0 , any positive constant
                                                 f
learning rate ηt = η > 0, any constant C1 < n−f     G2 and                    T −1
                                                                            1 X                 2L[F ∗ − F (wT )]
any positive integer K > 0, there exists an integer T > K                         ∥∇F (wt )∥2 ≤                   + ϵG2 .
such that                                                                   T t=0                      T
                   T −1
                 1 X
                        ∥∇F (wt )∥2 > C1 ,                            Furthermore, when F (w) also satisfies the PL condition
                 T t=0                                                (Assumption 4.4), we have that
and                                                                                            µ T                    ϵG2
                                      C1                                 F (wT ) − F ∗ ≤ 1 −         [F (w0 ) − F ∗ ] +     .
                    F (wT ) − F ∗ >      .                                                      L                        2µ
                                      2µ
                                                                                      ∗
Due to the limited space, we only provide a proof sketch of           The terms 2L[F −F  T
                                                                                           (wT )]
                                                                                                  and (1 − L µ T
                                                                                                              ) [F (w0 ) − F ∗ ] in
Theorem 4.5 here. Consider the 1-dimension case where                 Theorem 4.6 approach 0 when T → ∞, while the constant
                                                                                        2                                f
                                    nG                                terms ϵG2 and ϵG2µ remain. Please note that ϵ ≥ n−f (Theo-
        F1 (w) = . . . = Ff (w) = p           w2
                                 2 f (n − f )                         rem 3.1) and that TMf /n is both (f, κ)-robust and ϵ-accurate

                                                                  6


===== PDF PAGE 7 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

            f                                       f
with ϵ = n−f   . It indicates that the lower bound n−f G2           BN layers have a poor performance with heterogeneous
for C1 in Theorem 4.5 cannot be improved. Therefore, the            data across workers (Wu & He, 2018). All algorithms are
constant terms in Theorem 4.5 and those in Theorem 4.6 are          implemented with PyTorch 1.3.
both tight.
                                                                    We use cross-entropy as the loss function, set the batch size
In this section, we mainly analyze the convergence of               on each worker to 16, and use the cosine annealing learning
ByzGD. In some large-scale problems, the computation                rates (Loshchilov & Hutter, 2017). Specifically, the learning
of local gradients is time-consuming. Some variants such as         rate at the p-th epoch is ηp = 1+cos(pπ/160) 2       η0 for p =
Byzantine-robust stochastic gradient descent (ByzSGD) has           0, 1, . . . , 159. The initial learning rate η0 is selected from
a much lower computation cost of each iteration and is more         {0.1, 0.2, 0.5, 1.0}, and the best final top-1 test accuracy is
widely used. We would like to point out that the lower bound        used as the final metrics. Local momentum is used with
in Theorem 4.5 can be directly applied to ByzSGD since              momentum hyper-parameter set to 0.9. We first test the
ByzGD can be considered as a special case of ByzSGD with            performance of using multi-Krum (Blanchard et al., 2017)
a zero variance. Local momentum (Allouah et al., 2023;              and coordinate-wise trimmed mean (Yin et al., 2018) when
Farhadkhani et al., 2022; Karimireddy et al., 2021) is also         hyper-parameter f , which is the number of the Byzantine
proposed to reduce the variance of stochastic gradients in          workers that can be tolerated, ranges from 0 to 7. It takes
                                                        2
ByzSGD. However, the constant terms ϵG2 and ϵG        2µ are
                                                                    about 1.5 hours to run each method for 160 epochs.
related to the aggregation accuracy ϵ and the heterogeneity
                                                                    As the results in Table 3 and Table 4 show, for both multi-
degree G while using stochastic gradients or local momen-
                                                                    Krum and coordinate-wise trimmed mean, the final top-1
tums does not help to reduce ϵ or G. Stochastic gradients
                                                                    test accuracy decreases as f increases. In other words, to
can reduce the computation cost of each iteration, but do
                                                                    make the BRDL method robust to more Byzantine workers,
not have a better worst-case convergence guarantee. There-
                                                                    the model accuracy under no attack will decrease. Further-
fore, for these variants, there are similar tensions between
                                                                    more, the final top-1 test accuracy decreases more rapidly
Byzantine robustness and no-attack accuracy, which we will
                                                                    with a smaller α. Please note that α is the hyper-parameter
verify by empirical results.
                                                                    related to the data distribution. A smaller α indicates a more
In real-world applications, the number of Byzantine workers         heterogeneous data distribution and a larger G (please refer
is usually unknown, and it is typically required to determine       to Assumption 4.3). Thus, the final top-1 test accuracy de-
in advance the number f of Byzantine workers that the dis-          creases more rapidly when G is larger, which is consistent
tributed learning system can tolerate. A too small f will           with the theoretical results in Theorem 4.5 and Theorem 4.6.
make the BRDL method easy to be foiled by Byzantine
                                                                    We also test the performance of multi-Krum and
workers. However, a too large f may also lead to a large ag-
                                                                    coordinate-wise trimmed mean with nearest neighbour mix-
gregation error, and thus degrade the model accuracy, even if
                                                                    ing (NNM) (Allouah et al., 2023). The NNM technique
there are actually no Byzantine workers. Thus, f should be
                                                                    can reduce the heterogeneity of vectors. Specifically, we
carefully estimated before designing the distributed learning
                                                                    fix f = 7 (the maximum number of Byzantine workers that
system in real-world applications.
                                                                    can be tolerated) for both of the two robust aggregators and
                                                                    let the hyper-parameter fNNM range from 1 to 7 for NNM.
5. Experiment                                                       A smaller fNNM makes the vectors after mixing more ho-
                                                                    mogeneous but will also decrease the number of Byzantine
In this section, we will empirically test the effect of using
                                                                    workers that the whole BRDL method can tolerate. Specifi-
robust aggregator when there are no Byzantine workers.
                                                                    cally, the whole BRDL method is robust to min{f, fNNM }
Specifically, we use ByzSGD with various robust aggrega-
                                                                    Byzantine workers. When fNNM = 0, the output vectors of
tors to train a ResNet-20 (He et al., 2016) deep learning
                                                                    NNM will be all the same and equal the mean of the input
model on the CIFAR-10 dataset (Krizhevsky et al., 2009)
                                                                    vectors. Thus, when fNNM = 0, robust aggregator combined
for 160 epochs without attacks. All the experiments are
                                                                    with NNM is equivalent to vanilla mean aggregator.
conducted on a distributed platform with 16 Docker con-
tainers serving as workers and an extra Docker container as         As the results in Table 5 and Table 6 show, using NNM
the server. Each Docker container is bound to an NVIDIA             alleviates the degrade of final top-1 test accuracy for both
TITAN Xp GPU. We test the performance of each method                multi-Krum and coordinate-wise trimmed mean. Moreover,
when the training instances are randomly distributed to the         using a smaller fNNM can lead to a higher final top-1 test
workers according to the Dirichlet distribution with hyper-         accuracy, but will also make the distributed learning method
parameters α = 0.1, 1.0 and 10.0, respectively. A smaller           robust to less Byzantine workers. Therefore, there is also a
α will lead to a more heterogeneous data distribution. More-        tension between Byzantine robustness and no-attack accu-
over, the batch normalization (BN) layers in the ResNet-20          racy when using the NNM technique.
model are replaced with group normalization layers since

                                                                7


===== PDF PAGE 8 =====
                On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning


Table 3. The final top-1 test accuracy of using multi-Krum with various hyper-parameter f to train the model for 160 epochs under
different data distributions when there are no Byzantine workers. Both of the two aggregators are equivalent to vanilla mean when f = 0.
The values in the parentheses are the differences compared to the case of f = 0.

                                                     Multi-Krum (Blanchard et al., 2017)
                               f
                                              α = 0.1            α = 1.0               α = 10.0
                          0 (=mean)           89.42%             89.36%                 89.55%
                              1           88.05% (-1.37%)    87.50% (-1.86%)       88.36% (-1.19 %)
                              3           83.50% (-5.92%)    84.49% (-4.87%)       87.02% (-2.53%)
                              5          69.86% (-19.56%) 80.40% (-8.96%)          84.64% (-4.91%)
                              7          40.31% (-49.11%) 68.54% (-20.82%) 73.69% (-15.86%)



Table 4. The final top-1 test accuracy of using coordinate-wise trimmed mean with various hyper-parameter f to train the model for 160
epochs under different data distributions when there are no Byzantine workers. Both of the two aggregators are equivalent to vanilla mean
when f = 0. The values in the parentheses are the differences compared to the case of f = 0.

                                               Coordinate-wise trimmed mean (Yin et al., 2018)
                                f
                                               α = 0.1             α = 1.0            α = 10.0
                           0 (=mean)           89.42%              89.36%              89.55%
                               1          50.13% (-39.29%) 66.18% (-23.18%) 88.71% (-0.84%)
                               3          24.95% (-64.47%) 48.32% (-41.04%) 87.51% (-2.04%)
                               5          10.00% (-79.42%) 42.86% (-46.50%) 86.68% (-2.87%)
                               7          10.00% (-79.42%) 40.54% (-48.82%) 83.15% (-6.40%)


Table 5. The final top-1 test accuracy of using multi-Krum with NNM to train the model for 160 epochs under different data distributions
when there are no Byzantine workers. Both of the two robust aggregators combined with NNM are equivalent to vanilla mean when
fNNM = 0. The values in the parentheses are the differences compared to the case of fNNM = 0.

                                                 Multi-Krum (Blanchard et al., 2017) with f = 7
                             fNNM
                                                α = 0.1           α = 1.0                α = 10.0
                         0 (=mean)              89.42%             89.36%                 89.55%
                             1              88.81% (-0.61%)   88.39% (-0.97%)        89.49% (-0.06%)
                             3              87.61% (-1.81%)   86.56% (-2.80%)        88.93% (-0.62%)
                             5              83.16% (-6.26%)   84.63% (-4.73%)        87.99% (-1.56%)
                             7             75.03% (-14.39%) 83.88% (-5.48%)          86.94% (-2.61%)
                        without NNM        40.31% (-49.11%) 68.54% (-20.82%) 73.69% (-15.86%)


Table 6. The final top-1 test accuracy of using coordinate-wise trimmed mean with NNM to train the model for 160 epochs under different
data distributions when there are no Byzantine workers. Both of the two robust aggregators combined with NNM are equivalent to vanilla
mean when fNNM = 0. The values in the parentheses are the differences compared to the case of fNNM = 0.

                                            Coordinate-wise trimmed mean (Yin et al., 2018) with f = 7
                             fNNM
                                                 α = 0.1            α = 1.0               α = 10.0
                          0 (=mean)              89.42%             89.36%                 89.55%
                              1              86.61% (-2.81%)    88.59% (-0.77%)       88.57% (-0.98%)
                              3              83.83% (-5.59%)    87.57% (-1.79%)       88.53% (-1.02%)
                              5              81.50% (-7.92%)    86.03% (-3.33%)       88.06% (-1.49%)
                              7             61.09% (-28.33%) 82.77% (-6.59%)          87.79% (-1.76%)
                         without NNM        10.00% (-79.42%) 40.54% (-48.82%) 83.15% (-6.40%)


                                                                   8


===== PDF PAGE 9 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

6. Conclusion                                                        Chen, L., Wang, H., Charles, Z., and Papailiopoulos, D.
                                                                       Draco: Byzantine-resilient distributed training via redun-
To the best of our knowledge, this is the first work that              dant gradients. In Proceedings of the International Con-
theoretically investigates the tension between Byzantine ro-           ference on Machine Learning, pp. 903–912, 2018.
bustness and no-attack accuracy in distributed learning. We
theoretically analyze the aggregation error of robust aggrega-       Chen, Y., Su, L., and Xu, J. Distributed statistical machine
tors and the convergence rate of using gradient descent with           learning in adversarial settings: Byzantine gradient de-
robust aggregators. The theoretical results show that making           scent. Proceedings of the ACM on Measurement and
the distributed learning method robust to more Byzantine               Analysis of Computing Systems, 1(2):1–25, 2017.
workers will degrade the worst-case performance under no
attack. Our theoretical findings are further supported by the        Damaskinos, G., Guerraoui, R., Patra, R., Taziki, M., et al.
empirical results.                                                     Asynchronous Byzantine machine learning (the case of
                                                                       SGD). In Proceedings of the International Conference
Acknowledgements                                                       on Machine Learning, pp. 1145–1154, 2018.

This work is supported by National Key R&D Pro-                      Diakonikolas, I. and Kane, D. M. Recent advances in algo-
gram of China (No.2020YFA0713900), NSFC Project                        rithmic high-dimensional robust statistics. arXiv preprint
(No.12326615), the Key Major Project of the Pengcheng                  arXiv:1911.05911, 2019.
Laboratory (No.PCL2024A06).
                                                                     Diakonikolas, I., Kamath, G., Kane, D. M., Li, J., Moitra,
                                                                       A., and Stewart, A. Being robust (in high dimensions)
Impact Statement                                                       can be practical. In Proceedings of the International
This paper mainly theoretically explores the tension be-               Conference on Machine Learning, pp. 999–1008, 2017.
tween Byzantine robustness and no-attack accuracy in dis-
                                                                     Farhadkhani, S., Guerraoui, R., Gupta, N., Pinot, R., and
tributed learning. There may be some potential societal
                                                                       Stephan, J. Byzantine machine learning made easy by
consequences of our work, none of which we feel must be
                                                                       resilient averaging of momentums. In Proceedings of
specifically highlighted here.
                                                                       the International Conference on Machine Learning, pp.
                                                                       6246–6283, 2022.
References
                                                                     Guerraoui, R., Rouault, S., et al. The hidden vulnerability
Allouah, Y., Farhadkhani, S., Guerraoui, R., Gupta, N.,
                                                                       of distributed learning in byzantium. In Proceedings of
  Pinot, R., and Stephan, J. Fixing by mixing: A recipe for
                                                                       the International Conference on Machine Learning, pp.
  optimal byzantine ml under heterogeneity. In Proceedings
                                                                       3521–3530, 2018.
  of the International Conference on Artificial Intelligence
  and Statistics, pp. 1232–1300. PMLR, 2023.                         Haddadpour, F., Kamani, M. M., Mahdavi, M., and
Baruch, G., Baruch, M., and Goldberg, Y. A little is enough:           Cadambe, V. Trading redundancy for communication:
  Circumventing defenses for distributed learning. In Ad-              Speeding up distributed SGD for non-convex optimiza-
  vances in Neural Information Processing Systems, pp.                 tion. In Proceedings of the International Conference on
  8635–8645, 2019.                                                    Machine Learning, pp. 2545–2554, 2019.

Bernstein, J., Zhao, J., Azizzadenesheli, K., and Anandku-           He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learn-
  mar, A. signSGD with majority vote is communication                  ing for image recognition. In Proceedings of the IEEE
  efficient and fault tolerant. In Proceedings of the Interna-         conference on Computer Vision and Pattern Recognition,
  tional Conference on Learning Representations, 2019.                 pp. 770–778, 2016.

Blanchard, P., Guerraoui, R., Stainer, J., et al. Machine            Jaggi, M., Smith, V., Takác, M., Terhorst, J., Krishnan, S.,
  learning with adversaries: Byzantine tolerant gradient               Hofmann, T., and Jordan, M. I. Communication-efficient
  descent. In Advances in Neural Information Processing                distributed dual coordinate ascent. In Advances in Neural
  Systems, pp. 119–129, 2017.                                          Information Processing Systems, pp. 3068–3076, 2014.

Bulusu, S., Khanduri, P., Kafle, S., Sharma, P., and Varsh-          Kairouz, P., McMahan, H. B., Avent, B., Bellet, A., Bennis,
  ney, P. K. Byzantine resilient non-convex scsg with dis-             M., Bhagoji, A. N., Bonawitz, K., Charles, Z., Cormode,
  tributed batch gradient computations. IEEE Transactions              G., Cummings, R., et al. Advances and open problems in
  on Signal and Information Processing over Networks, 7:               federated learning. Foundations and Trends® in Machine
  754–766, 2021.                                                       Learning, 14(1–2):1–210, 2021.

                                                                 9


===== PDF PAGE 10 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

Karimireddy, S. P., He, L., and Jaggi, M. Learning from                 Byzantine attacks. In Advances in Neural Information
  history for Byzantine robust optimization. In Proceedings             Processing Systems, pp. 14615–14625, 2020.
  of the International Conference on Machine Learning, pp.
  5311–5319, 2021.                                                    Sun, S., Chen, W., Bian, J., Liu, X., and Liu, T.-Y. Slim-
                                                                        dp: a multi-agent system for communication-efficient
Karimireddy, S. P., He, L., and Jaggi, M. Byzantine-robust              distributed deep learning. In Proceedings of the 17th In-
  learning on heterogeneous datasets via bucketing. In                  ternational Conference on Autonomous Agents and Mul-
  Proceedings of the International Conference on Learning               tiAgent Systems, pp. 721–729, 2018.
  Representations, 2022.
                                                                      Vardit, Y. and Zhang, C. H. The multivariate l1-median
Konstantinidis, K. and Ramamoorthy, A. Byzshield: An                    and associated data depth. Proceedings of the National
  efficient and robust system for distributed training. Pro-            Academy of Sciences of the United States of America, 97
  ceedings of Machine Learning and Systems, 3:812–828,                  (4):1423–1426, 2000.
  2021.
                                                                      Wu, Y. and He, K. Group normalization. In Proceedings of
Krizhevsky, A., Hinton, G., et al. Learning multiple layers
                                                                       the European Conference on Computer Vision, pp. 3–19,
  of features from tiny images. Technical report, 2009.
                                                                       2018.
Lamport, L., Shostak, R., and Pease, M. The byzantine
  generals problem. ACM Transactions on Programming                   Wu, Z., Ling, Q., Chen, T., and Giannakis, G. B. Federated
  Languages and Systems, 4(3):382–401, 1982.                           variance-reduced stochastic gradient descent with robust-
                                                                       ness to Byzantine attacks. IEEE Transactions on Signal
Lee, J. D., Lin, Q., Ma, T., and Yang, T. Distributed stochas-         Processing, 68:4583–4596, 2020.
  tic variance reduced gradient methods by sampling extra
  data with replacement. Journal of Machine Learning                  Xie, C., Koyejo, S., and Gupta, I. Zeno: Distributed stochas-
  Research, 18(1):4404–4446, 2017.                                      tic gradient descent with suspicion-based fault-tolerance.
                                                                        In Proceedings of the International Conference on Ma-
Lian, X., Zhang, C., Zhang, H., Hsieh, C.-J., Zhang, W., and            chine Learning, pp. 6893–6901, 2019.
  Liu, J. Can decentralized algorithms outperform central-
  ized algorithms? a case study for decentralized parallel            Xie, C., Koyejo, O., and Gupta, I. Fall of empires: Breaking
  stochastic gradient descent. In Advances in Neural Infor-             Byzantine-tolerant sgd by inner product manipulation. In
  mation Processing Systems, pp. 5330–5340, 2017.                       Proceedings of the Conference on Uncertainty in Artifi-
                                                                        cial Intelligence, pp. 261–270, 2020a.
Loshchilov, I. and Hutter, F. Sgdr: Stochastic gradient
  descent with warm restarts. In Proceedings of the Inter-            Xie, C., Koyejo, S., and Gupta, I. Zeno++: Robust fully
  national Conference on Learning Representations, 2017.                asynchronous SGD. In Proceedings of the International
                                                                        Conference on Machine Learning, pp. 10495–10503,
Ma, C., Smith, V., Jaggi, M., Jordan, M., Richtárik, P., and            2020b.
 Takác, M. Adding vs. averaging in distributed primal-
 dual optimization. In Proceedings of the International               Yang, T. Trading computation for communication: Dis-
 Conference on Machine Learning, pp. 1973–1982, 2015.                   tributed stochastic dual coordinate ascent. In Advances
                                                                        in Neural Information Processing Systems, pp. 629–637,
McMahan, B. and Ramage, D. Federated learning: Collabo-
                                                                        2013.
 rative machine learning without centralized training data.
 Google Research Blog, 3, 2017.                                       Yang, Y.-R. and Li, W.-J. BASGD: Buffered asynchronous
Rajput, S., Wang, H., Charles, Z., and Papailiopoulos, D.               SGD for Byzantine learning. In Proceedings of the In-
  Detox: A redundancy-based framework for faster and                    ternational Conference on Machine Learning, pp. 11751–
  more robust gradient aggregation. In Advances in Neural               11761, 2021.
  Information Processing Systems, pp. 10320–10330, 2019.
                                                                      Yang, Y.-R. and Li, W.-J. Buffered asynchronous SGD
Shamir, O., Srebro, N., and Zhang, T. Communication-                    for Byzantine learning. Journal of Machine Learning
  efficient distributed optimization using an approximate               Research, 24(204):1–62, 2023.
  newton-type method. In Proceedings of the International
  Conference on Machine Learning, pp. 1000–1008, 2014.                Yang, Y.-R., Shi, C.-W., and Li, W.-J. On the effect of
                                                                        batch size in byzantine-robust distributed learning. In
Sohn, J.-y., Han, D.-J., Choi, B., and Moon, J. Election cod-           Proceedings of the International Conference on Learning
  ing for distributed learning: Protecting signsgd against              Representations, 2024.

                                                                 10


===== PDF PAGE 11 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

Yang, Z., Gang, A., and Bajwa, W. U. Adversary-resilient
  distributed and decentralized statistical inference and ma-
  chine learning: An overview of recent advances under
  the Byzantine threat model. IEEE Signal Processing
  Magazine, 37(3):146–159, 2020.
Yin, D., Chen, Y., Kannan, R., and Bartlett, P. Byzantine-
  robust distributed learning: Towards optimal statistical
  rates. In Proceedings of the International Conference on
  Machine Learning, pp. 5650–5659, 2018.
Yin, D., Chen, Y., Kannan, R., and Bartlett, P. Defending
  against saddle point attack in Byzantine-robust distributed
  learning. In Proceedings of the International Conference
  on Machine Learning, pp. 7074–7084, 2019.
Yu, H., Jin, R., and Yang, S. On the linear speedup analy-
  sis of communication efficient momentum SGD for dis-
  tributed non-convex optimization. In Proceedings of the
  International Conference on Machine Learning, pp. 7184–
  7193, 2019a.
Yu, H., Yang, S., and Zhu, S. Parallel restarted SGD with
  faster convergence and less communication: Demystify-
  ing why model averaging works for deep learning. In
  Proceedings of the AAAI Conference on Artificial Intelli-
  gence, pp. 5693–5700, 2019b.
Zhao, S.-Y., Xiang, R., Shi, Y.-H., Gao, P., and Li, W.-J.
  SCOPE: scalable composite optimization for learning
  on spark. In Proceedings of the AAAI Conference on
  Artificial Intelligence, pp. 2928–2934, 2017.

Zhao, S.-Y., Zhang, G.-D., Li, M.-W., and Li, W.-J. Proxi-
  mal SCOPE for distributed sparse learning. In Advances
  in Neural Information Processing Systems, pp. 6551–
  6560, 2018.
Zhou, Y., Liang, Y., Yu, Y., Dai, W., and Xing, E. P. Dis-
  tributed proximal gradient algorithm for partially asyn-
  chronous computer clusters. Journal of Machine Learn-
  ing Research, 19(1):733–764, 2018.
Zinkevich, M., Weimer, M., Li, L., and Smola, A. J. Paral-
  lelized stochastic gradient descent. In Advances in Neural
  Information Processing Systems, pp. 2595–2603, 2010.




                                                                11


===== PDF PAGE 12 =====
                On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

A. Proof Details
A.1. Proof of Theorem 3.1
Proof. Let Agg(·) be a (f, κ)-robust aggregator. Assume that Agg(·) is ϵ-accurate. We consider the case where x1 =
. . . = xn−f = 0 and xn−f +1 = . . . = xn = A > 0. We have
                                                                   n
                                                          1X        f
                                                     x̄ =       xi = · A,                                     (11)
                                                          n i=1     n

and                                     "                              2 #
                      n                                   2   
                   1X                 1                f           f          f (n − f )
                         ∥xi − x̄∥2 =     (n − f ) ·     ·A +f · A− ·A      =            · A2 .               (12)
                   n i=1              n                n           n              n2
Let set S ′ = {1, . . . , n − f }. We have
                                                                1 X
                                                     x̄S ′ =            xi = 0,
                                                               |S ′ | ′    i∈S

and
                                                    1 X
                                                            ∥xi − x̄S ′ ∥2 = 0.
                                                   |S ′ | ′
                                                         i∈S

According to the definition of (f, κ)-robustness, we have
                                                                             "                #
                                                               2       1 X                  2
                               ∥Agg(x1 , . . . , xn ) − x̄S ′ ∥ ≤ κ ·          ∥xi − x̄S ′ ∥ = 0,
                                                                      |S ′ | ′        i∈S

which implies that
                                                 Agg(x1 , . . . , xn ) = x̄S ′ = 0.                           (13)
According to equations (11), (12) and (13),
                                                        2               " n               #
                                                           f2
                                                
                                             2      f           2   f     1X             2
                  ∥Agg(x1 , . . . , xn ) − x̄∥ = 0 − · A = 2 · A =     ·        ∥xi − x̄∥ .
                                                    n      n       n−f    n i=1

In addition, according to the definition of ϵ-accuracy,
                                                                           n
                                                                                  "      #
                                                                       21X             2
                                     ∥Agg(x1 , . . . , xn ) − x̄∥ ≤ ϵ ·       ∥xi − x̄∥ .
                                                                        n i=1

Therefore,             "                #                                     " n               #
                          n
                       1X             2                              2   f     1X             2
                    ϵ·       ∥xi − x̄∥ ≥ ∥Agg(x1 , . . . , xn ) − x̄∥ =     ·        ∥xi − x̄∥ .
                       n i=1                                            n−f    n i=1
Consequently, it is obtained that
                                                                        f
                                                             ϵ≥            .
                                                                       n−f



A.2. Proof of Theorem 3.2
Proof. Suppose that Agg(·) is an (f, κ)-robust aggregator. Let set

                                             U = {S|S ⊆ {1, . . . , n}, |S| = n − f }.

Therefore, we have                                                    
                                                              n                       n!
                                                 |U| =                      =                 .
                                                             n−f                 f !(n − f )!

                                                                       12


===== PDF PAGE 13 =====
                On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

For any S ∈ U and any n vectors x1 , . . . , xn ∈ Rd , we have
                       X                       X
                           ∥xi − x̄S ∥2 =          ∥xi ∥2 − 2xi · x̄S + ∥x̄S ∥2
                                                                                

                            i∈S                      i∈S
                                                     X
                                                 =          ∥xi ∥2 − 2|S|x̄S · x̄S + |S|∥x̄S ∥2
                                                     i∈S
                                                     X
                                                 =          ∥xi ∥2 − |S|∥x̄S ∥2
                                                     i∈S
                                                                                     2
                                                     X           1 X
                                                 =          ∥xi ∥2 −    xi
                                                                |S|
                                                   i∈S              i∈S
                                                   X             1 X            2                  X
                                                 =     ∥xi ∥2 −       ∥xi ∥2 −                              xi · xj
                                                                |S|            |S|
                                                     i∈S                       i∈S           i∈S,j∈S,i<j




Notice that |S| = n − f for all S ∈ U. Therefore,
                              X                        n−f −1X           2                     X
                                      ∥xi − x̄S ∥2 =           ∥xi ∥2 −                                  xi · xj .                  (14)
                                                        n−f             n−f
                                i∈S                                      i∈S                 i,j∈S,i<j

Take summation over all S ∈ U for both sides of (14), it is obtained that
                                   !                                   !                                                    
            X X                          n − f −  1 X X                    2  X   X
                       ∥xi − x̄S ∥2 =                            ∥xi ∥2 −                                            xi · xj  .
                                           n−f                            n−f
                S∈U   i∈S                                          S∈U     i∈S                     S∈U    i,j∈S,i<j

                                                                   n−1
                                                                       
For any element i ∈ {1, . . . , n}, there are totally n−f −1 sets S in U that contain i. Moreover, for any two different
                                                    n−2
                                                        
elements i, j ∈ {1, . . . , n}, there are totally n−f −2 sets S in U that contain both i and j. Therefore,
                                                    !
                            X X
                                       ∥xi − x̄S ∥2
                          S∈U     i∈S
                                           Xn                          n−1  n
                          n−f −1     n−1                    2     n−2      X X
                      =                          ∥xi ∥2 −                           xi · xj
                           n−f     n − f − 1 i=1          n − f n − f − 2 i=1 j=i+1
                                                   n                                   n−1   n
                           (n − f − 1)(n − 1)! X                     2(n − 2)!         X X
                      =                               ∥xi ∥2 −                                   xi · xj
                          (n − f )f !(n − f − 1)! i=1          (n − f )f !(n − f − 2)! i=1 j=i+1
                                               n                                n−1    n
                        (n − f − 1)(n − 1)! X              2(n − 2)!(n − f − 1) X X
                      =                           ∥xi ∥2 −                                 xi · xj
                             (n − f )!f !     i=1
                                                                (n − f )!f !    i=1 j=i+1
                                                                                         
                                                           n             n−1  n
                             n!        n − f − 1 n − 1 X             2  X X
                      =              ·                       ∥xi ∥2 −             xi · xj  .
                        f !(n − f )!     n−1         n i=1            n i=1 j=i+1

In (14), let S = {1, . . . , n}, and we have
                                      n                            n             n−1   n
                                      X                        n−1X            2X X
                                            ∥xi − x̄∥2 =              ∥xi ∥2 −             xi · xj ,                                (15)
                                      i=1
                                                                n i=1          n i=1 j=i+1
                Pn
where x̄ = n1    i=1 xi . Therefore,
                                                               !                               n
                              X         X
                                                           2                n!        n−f −1X
                                              ∥xi − x̄S ∥          =                ·            ∥xi − x̄∥2 .
                                                                       f !(n − f )!    n − 1 i=1
                             S∈U        i∈S


                                                                           13


===== PDF PAGE 14 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

                n!
Since |U| = f !(n−f )! and |S| = n − f for all S ∈ U, it is obtained that
                                                                !                                      n
                                                                                                                       !
                          1 X         1 X                              (n − f − 1)n               1X
                                          ∥xi − x̄S ∥2              =                                   ∥xi − x̄∥2
                         |U|         |S|                              (n − f )(n − 1)             n i=1
                             S∈U          i∈S
                                                                                                           n
                                                                                                                           !
                                                                       n2 − nf − n                    1X
                                                                    = 2                                     ∥xi − x̄∥2         .
                                                                     n − nf − n + f                   n i=1

Therefore,                                                                       !          n
                                       1 X          1 X                                  1X
                                                        ∥xi − x̄S ∥2                 ≤         ∥xi − x̄∥2 .                        (16)
                                      |U|          |S|                                   n i=1
                                           S∈U            i∈S

Meanwhile, by using Cauchy’s inequality and the fact that x̄ = |U1 |
                                                                                     P
                                                                                         S∈U x̄S , we have

                                                                                                                       2
                                                                1 X
                                                                2
                              ∥Agg(x1 , . . . , xn ) − x̄∥ =           [Agg(x1 , . . . , xn ) − x̄S ]
                                                               |U|
                                                                   S∈U
                                                              1 X
                                                           ≤         ∥Agg(x1 , . . . , xn ) − x̄S ∥2 .
                                                             |U|
                                                                           S∈U

According to the definition of (f, κ)-robustness,
                                                                                 "        #
                                                                      2  1 X            2
                                   ∥Agg(x1 , . . . , xn ) − x̄S ∥ ≤ κ ·      ∥xi − x̄S ∥ ,
                                                                        |S|
                                                                                          i∈S

Therefore,                                                                                                         !
                                                                2 1 X                      1 X
                              ∥Agg(x1 , . . . , xn ) − x̄∥ ≤ κ ·                               ∥xi − x̄S ∥2            .
                                                                 |U|                      |S|
                                                                               S∈U              i∈S

Using inequality (16), we finally obtained that
                                                                            n
                                                                                     "    #
                                                                      2  1X             2
                                      ∥Agg(x1 , . . . , xn ) − x̄∥ ≤ κ ·       ∥xi − x̄∥ ,                                         (17)
                                                                         n i=1

which implies that Agg(·) is κ-accurate.

A.3. Analysis for Coordinate-wise Trimmed Mean
Proof. We first proof the theorem for the case where the dimension d = 1. Let x1 , . . . , xn be any n real numbers. Without
loss of generality, we assume that x1 ≤ x2 ≤ . . . ≤ xn since the order does not affect the trimmed mean of the n values,
and the trimmed mean can be written as
                                                                                      n−f
                                                                                 1    X
                                              TMf /n (x1 , . . . , xn ) =                 xi .
                                                                               n − 2f
                                                                                           i=f +1

Therefore,

                         TMf /n (x1 , . . . , xn ) − x̄
                               n−f           n
                          1    X          1X
                     =               xi −       xi
                       n − 2f             n i=1
                              i=f +1
                                                                                                            
                                     n−f              " f   #                                  n
                            1      1  X              1  X      1                                X
                     =          −              xi  −       xi −                                          xi 
                         n − 2f    n                  n i=1     n
                                                 i=f +1                                      i=n−f +1


                                                                          14


===== PDF PAGE 15 =====
                On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning
                                                                                                          
                                           n−f                        f
                                                                 "               #                 n
                       2f  1              X    f            f 1     1X                            X
                      =                 xi  −           xi −             xi 
                        n n − 2f                n f i=1      n f
                                 i=f +1                           i=n−f +1
                                                                                                                           
                                 n−f            f                 n−f                                              n
                       f    1    X           1 X         f   1    X          1                                     X
                      =              xi −         xi  +            xi −                                                  xi  .
                       n n − 2f              f i=1       n n − 2f            f
                                      i=f +1                                                    i=f +1           i=n−f +1


Let sets I− = {1, 2, . . . , f }, I0 = {f + 1, . . . , n − f } and I+ = {n − f + 1, . . . , n}. We define
                                                                            f
                                                                1 X      1X
                                                   x̄I− =           xi =       xi ,
                                                              |I− |      f i=1
                                                                        i∈I−


                                                                          n−f
                                                         1 X         1    X
                                                 x̄I0 =       xi =            xi ,
                                                        |I0 |      n − 2f
                                                                 i∈I0                       i=f +1

and
                                                                                            n
                                                               1 X      1                   X
                                                 x̄I+ =            xi =                            xi .
                                                             |I+ |      f
                                                                     i∈I+              i=n−f +1

Therefore, we have
                                                                            f                 f
                                 TMf /n (x1 , . . . , xn ) − x̄ =             (x̄I0 − x̄I− ) + (x̄I0 − x̄I+ ).                       (18)
                                                                            n                 n
Meanwhile,
                             n
                          1X                 1 X              1X              1 X
                                (xi − x̄)2 =     (xi − x̄)2 +    (xi − x̄)2 +     (xi − x̄)2
                          n i=1              n                n               n
                                                      i∈I−                           i∈I0                  i∈I+
                                              1 X
                                            =     [(xi − x̄I− ) + (x̄I− − x̄)]2
                                              n
                                                      i∈I−
                                                    1X
                                                  +        [(xi − x̄I0 ) + (x̄I0 − x̄)]2
                                                    n
                                                      i∈I0
                                                    1 X
                                                  +         [(xi − x̄I+ ) + (x̄I+ − x̄)]2 .                                          (19)
                                                    n
                                                          i∈I+


Notice that
                           1 X
                               [(xi − x̄I− ) + (x̄I− − x̄)]2
                           n
                             i∈I−
                          1 X
                        =     [(xi − x̄I− )2 + (x̄I− − x̄)2 + 2(xi − x̄I− )(x̄I− − x̄)]
                          n
                             i∈I−
                          1 X                    1 X                    1 X
                        =        (xi − x̄I− )2 +         (x̄I− − x̄)2 +        [2(xi − x̄I− )(x̄I− − x̄)]
                          n                      n                      n
                            i∈I−                    i∈I−                  i∈I−
                                                  
                          f 1 X                        f                2(x̄I− − x̄) X
                        =            (xi − x̄I− )2  + (x̄I− − x̄)2 +                     (xi − x̄I− ).
                          n f                           n                     n
                                  i∈I−                                                                    i∈I−

        P
Since    i∈I− (xi − x̄I− ) = 0, we have

                                 1 X                                f
                                     [(xi − x̄I− ) + (x̄I− − x̄)]2 = · [s2I− + (x̄I− − x̄)2 ],                                       (20)
                                 n                                  n
                                    i∈I−


                                                                            15


===== PDF PAGE 16 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

where s2I− = f1                      2
                  P
                    i∈I− (xi − x̄I− ) . Similarly,

                                   1X                                 n − 2f
                                      [(xi − x̄I0 ) + (x̄I0 − x̄)]2 =        · [s2I0 + (x̄I0 − x̄)2 ],                             (21)
                                   n                                    n
                                     i∈I0

                                    1 X                                f
                                        [(xi − x̄I+ ) + (x̄I+ − x̄)]2 = · [s2I+ + (x̄I+ − x̄)2 ],                                  (22)
                                    n                                  n
                                        i∈I+

              1                                       1
where s2I0 = n−2f                          2     2                                2
                      P                                      P
                          i∈I0 (xi − x̄I0 ) and sI+ = f          i∈I+ (xi − x̄I+ ) . Substituting (20), (21) and (22) into (19), we have

                             n                                                        
                          1X                        f 2   n − 2f 2     f
                                (xi − x̄)2 =         ·s +       · sI0 + · s2I+
                          n i=1                     n I−    n          n
                                                     f                  n − 2f                 f
                                                 +     · (x̄I− − x̄)2 +        · (x̄I0 − x̄)2 + · (x̄I+ − x̄)2 .
                                                     n                    n                    n

Notice that x̄ = nf x̄I− + n−2f      f
                            n x̄I0 + n x̄I+ , and we have

                                    n                                                       
                                 1X                     f 2         n − 2f 2          f
                                       (xi − x̄)2 =       · sI− +             · sI0 + · s2I+
                                 n i=1                  n              n              n
                                                                                                        2
                                                         f     n − 2f                    f
                                                       + ·              (x̄I− − x̄I0 ) + (x̄I− − x̄I+ )
                                                         n        n                      n
                                                                                                        2
                                                         n − 2f       f                  f
                                                       +          ·     (x̄I0 − x̄I− ) + (x̄I0 − x̄I+ )
                                                             n        n                  n
                                                                                                        2
                                                         f     f                    n − 2f
                                                       + ·       (x̄I − x̄I− ) +           (x̄I+ − x̄I0 ) .
                                                         n n +                         n

For simplicity, we let
                                                f 2        n − 2f 2        f
                                               s̃2 =·s +           · sI0 + · s2I+ ≥ 0,
                                                n I−         n             n
                                     ∆− = x̄I0 − x̄I− ≥ 0,     and       ∆+ = x̄I+ − x̄I0 ≥ 0.
Therefore, we have
                                    n                                                       2
                                 1X             2    2   f      n − 2f           f
                                       (xi − x̄) = s̃ + ·               (−∆− ) + (−∆− − ∆+ )
                                 n i=1                   n         n             n
                                                                                     2
                                                       n − 2f       f        f
                                                    +           ·     (∆− ) + (−∆+ )
                                                         n          n        n
                                                                                         2
                                                       f     f                n − 2f
                                                    + ·        (∆− + ∆+ ) +          (∆+ ) .
                                                       n n                      n

By expanding the square terms, it is obtained that
                      n
               1X
                     (xi − x̄)2
               n i=1
                                       2                        2                          2
               f n−f             f           n − 2f f          f          f f        n−f
             =            ∆− + ∆ + +                     ∆− − ∆ + +             ∆− +        ∆+ + s̃2
               n      n          n             n       n       n          n n          n
                 f (n − f )2    f 2 (n − 2f ) f 3
                                                               3
                                                                    f 2 (n − 2f ) f (n − f )2
                                                                                            
                                                          2    f
             =               +               +      (∆ − )  +     +              +              (∆+ )2
                     n3               n3       n3              n3         n3          n3
                  2
                    2f (n − f ) 2f 2 (n − 2f ) 2f 2 (n − f )
                                                               
               +                 −               +               (∆− ∆+ ) + s̃2
                         n3               n3             n3

                                                                      16


===== PDF PAGE 17 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

                f (n − f )       2   f (n − f )        2   2f 2
              =            (∆− )   +            (∆ + )   +      (∆− ∆+ ) + s̃2
                    n2                   n2                n2
                                        2
                n−f f              f            2f
              =             ∆− − ∆ + +             (∆− ∆+ ) + s̃2 .
                   f     n         n             n
Meanwhile, according to (18) and the definition of ∆− and ∆+ , we have
                                          f     f
                                            ∆− − ∆+ = TMf /n (x1 , . . . , xn ) − x̄.
                                          n     n
Therefore,
                           n
                        1X                 n−f                               2 2f
                              (xi − x̄)2 =      TMf /n (x1 , . . . , xn ) − x̄ +    (∆− ∆+ ) + s̃2 .
                        n i=1               f                                    n
Notice that s̃2 ≥ 0, ∆− ≥ 0 and ∆+ ≥ 0, and we finally obtain that
                                      n
                                   1X                 n−f                               2
                                         (xi − x̄)2 ≥      TMf /n (x1 , . . . , xn ) − x̄ ,
                                   n i=1               f
or, equivalently,                                                           " n               #
                                                              2      f     1X             2
                                 TMf /n (x1 , . . . , xn ) − x̄ ≤         ·        (xi − x̄) .                            (23)
                                                                      n−f    n i=1
Moreover, the equality in (23) holds if and only if s̃2 = 0 and ∆− ∆+ = 0, which is equivalent to that s2I− = s2I0 = s2I+ = 0
and ∆− ∆+ = 0.
We have finished the proof for the 1-dimension case. For the general d-dimension case,
                                                          d
                                                  2
                                                          X                                         2
                     ∥TMf /n (x1 , . . . , xn ) − x̄∥ =         [TMf /n (x1 , . . . , xn ) − x̄]j
                                                          j=1
                                                          d
                                                          X                                              2
                                                      =         [TMf /n (x1 , . . . , xn )]j − [x̄]j
                                                          j=1
                                                          d                                                   n
                                                                                                                  !2
                                                          X                                       1X
                                                      =       TMf /n ([x1 ]j , . . . , [xn ]j ) −       [xi ]j
                                                          j=1
                                                                                                  n i=1
                                                           d               n
                                                                                                    !
                                                (by (23)) X     f      1X                         2
                                                   ≤                ·          ([xi ]j − [x̄]j )
                                                          j=1
                                                              n − f n i=1
                                                           d               n
                                                                                              !
                                                          X     f      1X                   2
                                                      =             ·          [xi − x̄]j
                                                          j=1
                                                              n − f n i=1
                                                                   n
                                                            f    1X
                                                      =        ·      ∥xi − x̄∥2 .
                                                          n − f n i=1
Namely,                                                                  " n              #
                                                                    f     1 X
                               ∥TMf /n (x1 , . . . , xn ) − x̄∥2 ≤     ·        ∥xi − x̄∥2 .
                                                                   n−f    n i=1



A.4. Analysis for Coordinate-wise Median
                                                                              ⌊ n−1 ⌋
Theorem A.1. Coordinate-wise median is ϵn -accurate where ϵn = n−⌊ 2n−1 ⌋ .
                                                                                  2


                                                                      ⌊ n−1
                                                                         2 ⌋
Proof. Notice that coordinate-wise median can be deemed as               n -TM. The desired result can be directly obtained by
applying Theorem 3.6.

                                                                 17


===== PDF PAGE 18 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

A.5. Analysis for Geometric Median


Theorem A.2. The geometric median is 1-accurate.

Proof. We use xGM to denote the geometric median of x1 , . . . , xn . According to the definition, we have the following
inequality:
                                        Xn                    X  n
                                           ∥xGM − xi ∥ ≤           ∥x̄ − xi ∥.                                       (24)
                                             i=1                        i=1
According to the Triangle Inequality,
                                              n         2           n                   2      "     n
                                                                                                                  #2
                                    1X                        1X                              1X
                ∥xGM − x̄∥2 = xGM −       xi                =       (xGM − xi )             ≤       ∥xGM − xi ∥        .   (25)
                                    n i=1                     n i=1                           n i=1

Combining (24) and (25), we have
                                               "
                                               n
                                                            #2   " n           #2
                                            1 X                1  X
                              ∥xGM − x̄∥2 ≤       ∥x̄ − xi ∥ = 2     ∥x̄ − xi ∥ .                                          (26)
                                            n i=1              n i=1

According to Cauchy-Schwarz inequality, we have
                                n
                                       !     n
                                                            !                 n
                                                                                                   !2
                               X            X                                 X
                                     2                    2
                                   1 ·          ∥x̄ − xi ∥    ≥                     1 · ∥x̄ − xi ∥       ,
                                   i=1            i=1                         i=1

Namely,
                                          " n                 #2         n
                                           X                             X
                                                  ∥x̄ − xi ∥       ≤n·         ∥x̄ − xi ∥2 .                               (27)
                                            i=1                          i=1
Combining (26) and (27), we finally obtain that
                                              "  n
                                                                #    " n                #
                                     2     1    X
                                                              2       1X              2
                         ∥xGM − x̄∥ ≤ 2 n ·         ∥x̄ − xi ∥ = 1 ·        ∥x̄ − xi ∥ .
                                          n     i=1
                                                                      n i=1

It implies that geometric median is 1-accurate.

A.6. Proof of Theorem 4.5
Proof. We first consider the 1-dimension case where
                                                                     nG
                                         F1 (w) = . . . = Ff (w) = p           w2
                                                                  2 f (n − f )
and
                                                            nG                nG
                             Ff +1 (w) = . . . = Fn (w) = p           w2 − p           w.
                                                         2 f (n − f )       f (n − f )
Therefore,
                        n
                                                                "                               #
                     1X            f       nG       2    n−f          nG        2    nG
             F (w) =       Fi (w) = × p            w +        × p              w −p           w
                     n i=1         n 2 f (n − f )         n       2 f (n − f )     f (n − f )
                                                    √
                                      nG         2    n−f
                                  = p           w − √      Gw
                                   2 f (n − f )         f
                                                         2            3
                                      nG             n−f       (n − f ) 2 G
                                  = p            w−          −      √       ,
                                   2 f (n − f )        n          2n f

                                                                   18


===== PDF PAGE 19 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

which indicates that F (w) satisfies Assumptions 4.1 and 4.2 and has the unique global mimimum point

                                                                           n−f
                                                                    w∗ =       .
                                                                            n
Moreover,

                   n                                    √          2                                                √        !2
               1X ′                       f                    n−f     n−f                              nG                n−f
                     [Fi (w) − F ′ (w)]2 = ×                   √   G +     ×                     p                −       √   G
               n i=1                      n                      f      n                            f (n − f )             f
                                                 n−f 2 f 2
                                                =    G + G
                                                   n    n
                                                  2
                                                =G .

Therefore, F (w) satisfies Assumptions 4.3. Furthermore, F (w) also satisfies Assumption 4.4 with µ = √ nG                                     since
                                                                                                                                    f (n−f )
F (w) is a quadratic function. Let the set S = {f + 1, . . . , n} and

                                                        1 X ′          nG
                                           FS′ (w) =       Fi (w) = p           (w − 1).
                                                       |S|           f (n − f )
                                                            i∈S

Since Agg(·) is (f, κ)-robust and Ff′ +1 (w) = . . . = Fn′ (w), we have
                                                                               "                          #
                                                                2                   1 X ′
                       [Agg(F1′ (w), . . . , Fn′ (w)) − FS′ (w)] ≤ κ ·                            ′     2
                                                                                       (Fi (w) − FS (w)) = 0.
                                                                                   |S|
                                                                                        i∈S

Therefore, we have
                                                                           nG
                                        Agg(F1′ (w), . . . , Fn′ (w)) = p           (w − 1).
                                                                         f (n − f )
Let {wt }∞
         t=0 be the sequence obtained by ByzGD (Algorithm 1) with initial point w0 ∈ R and learning rate ηt = η > 0. We
have
                                                                                   nGη
                       wt+1 = wt − η · Agg(F1′ (wt ), . . . , Fn′ (wt )) = wt − p            (wt − 1).
                                                                                  f (n − f )
Therefore,                                                      "                       #
                                                                             nGη
                                                wt+1 − 1 = 1 − p                            (wt − 1).
                                                                           f (n − f )
Then we consider the following three cases.
                                  √
                                 2    f (n−f )
   • Case (i). When 0 < η <           nG       , we have 1 − √ nGη ∈ (−1, 1).
                                                              f (n−f )
                                          t
     Thus, wt − 1 = 1 − √ nGη              (w0 − 1) converges to 0. Consequently, wt converges to 1. Since F (w) is L-smooth,
                               f (n−f )
                                                                2
     [F ′ (wt )]2 converges to [F ′ (1)]2 = √ nG (1 − n−f    n  )       f
                                                                     = n−f G2 . Thus, for any C1 < n−ff
                                                                                                         G2 and any positive
                                                    f (n−f )
     K, there exists T1 > K such that
                                                                  T1 −1
                                                               1 X
                                                                        [F ′ (wt )]2 > C1 .
                                                               T1 t=0

     Similarly, we have that [F (wt ) − F (w∗ )] converges to
                                                             2
                                                                    f 2G                G2
                                                     
                                       ∗               nGn−f                       f
                        F (1) − F (w ) = p            1−        = p            =      ·
                                        2 f (n − f )      n      2n f (n − f )   n − f 2µ

                                                                        19


===== PDF PAGE 20 =====
           On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

                                                            f
 by noticing that µ = √ nG            . Thus, for any C1 < n−f G2 and any positive K, there exists T2 > K such that
                           f (n−f )

                                                                               C1
                                                    F (wT2 ) − F (w∗ ) >          .
                                                                               2µ
  Let T = max{T1 , T2 } and we obtain the desired result.
                       √
                      2 f (n−f )
• Case (ii). When η =    nG      , we have 1 − √ nGη = −1. Thus, wt+1 − 1 = −(wt − 1). For any positive K, we
                                                      f (n−f )
 have that w⌊K⌋+2 − 1 = −(w⌊K⌋+2 − 1), which is equivalent to that w⌊K⌋+1 + w⌊K⌋+2 = 2. Let

                                                    T1 =         arg max        wt .
                                                           t∈{⌊K⌋+1,⌊K⌋+2}

 We have that wT1 = max{w⌊K⌋+1 , w⌊K⌋+2 } ≥ 1. Since F (w) is monotonically increasing when w ≥ 1, we have that

                                                                                   f    G2   C1
                                   F (wT1 ) − F (w∗ ) ≥ F (1) − F (w∗ ) =             ·    >    .
                                                                                 n − f 2µ    2µ
               PT1 −1
 Let H = T11     t=0    [F ′ (wt )]2 . If H > C1 , we directly obtain the desired result by letting T = T1 . If H ≤ C1 , let
                                                                                     
                                                          (n − f )(T C1 − T1 H)
                                            T = T1 + 2                             +1 ,
                                                                   2f G2

 where ⌊·⌋ is the floor function. Therefore,
                                                                   j                       k
                                                                     (n−f )(T C1 −T1 H)
                                                                  2                     +1
                               wT − 1 = (wT1 − 1) × (−1)                    2f G2              = wT1 − 1.

 Namely, wT = wT1 . Therefore,
                                                                                               C1
                                          F (wT ) − F (w∗ ) = F (wT1 ) − F (w∗ ) >                .
                                                                                               2µ
                                                                                                            2
 Moreover, using the equation that wt + wt+1 = 2 and the inequality that x2 + y 2 ≥ (x+y)
                                                                                      2   ,

                          [F ′ (wt )]2 + [F ′ (wt+1 )]2
                           "                             # 2 "                              #2
                                  nG                n−f                  nG                n−f
                        = p                    wt −           + p                   wt+1 −
                                f (n − f )             n               f (n − f )           n
                                       "               2                    2 #
                             n2 G2                n−f                    n−f
                        =                 wt −             + wt+1 −
                          f (n − f )                n                      n
                                                                     2
                              n2 G2
                                                                  
                                                         2(n − f )
                        ≥                 wt + wt+1 −
                          2f (n − f )                       n
                                2 2
                                                    2
                            2n G               n−f
                        =                1−
                          f (n − f )             n
                             2f
                        =         G2 .
                          n−f

 Thus,
                            T −1                1  T −1                     T −1
                          1 X ′              1 X                  1 X ′
                                [F (wt )]2 =       [F ′ (wt )]2 +    [F (wt )]2
                          T t=0              T t=0                T
                                                                            t=T1
                                                  T1     1 T − T1    2f
                                              =      ·H + ·       ·     G2
                                                  T      T   2      n−f

                                                                 20


===== PDF PAGE 21 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning
                                                                                     
                                                 T1 H   1    (n − f )(T C1 − T1 H)       2f
                                               =      + ·                 2
                                                                                   +1       G2
                                                  T     T            2f G               n−f
                                                 T1 H   1 (n − f )(T C1 − T1 H)     2f
                                               >      + ·               2
                                                                                 ·      G2
                                                  T     T           2f G           n−f
                                                 T1 H   T C1 − T1 H
                                               =      +
                                                  T          T
                                               = C1 .

     Therefore, the positive integer T ≥ T1 > K satisfies the two desired conditions.
                             √
                            2 f (n−f )
   • Case (iii). When η >       nG     , we have 1 − √ nGη < −1. In this case, wt → ∞. Since F (w) is L-smooth, and
                                                        f (n−f )
     both [F ′ (w)]2 and F (w) diverge to +∞ when w → ∞. We can directly obtain the desired result.

In summary, the desired result can be obtained in all of the three cases, and the proof for the 1-dimension case is finished.
For general d-dimension cases where w ∈ Rd , we can simply choose Fi (w) = F̃i (w[1] ) for all i ∈ {1, 2, . . . , n} where
w[1] is the first coordinate of vector w. Thus, we have that ∥∇F (w)∥2 = [F̃ ′ (w[1] )]2 . Therefore, we can use the result for
the 1-dimension case above, and obtain the desired result for general d-dimension cases.

A.7. Proof of Theorem 4.6
Proof. Let Gt = Agg(∇F1 (wt ), . . . , ∇Fn (wt )). Since F (w) is L-smooth,
                   F (wt+1 ) =F (wt − ηt Gt )
                                                      L(ηt )2
                              ≤F (wt ) − ηt ∇F (wt )T Gt +    ∥Gt ∥2
                                                         2
                                        ηt            ηt                  ηt (1 − Lηt )
                              =F (wt ) − ∥∇F (wt )∥2 + ∥Gt − ∇F (wt )∥2 −               ∥Gt ∥2 ,                          (28)
                                        2             2                         2
where the last equation can be quickly checked by expanding the squares. Moreover, using Assumption 4.3 and that Agg(·)
is ϵ-accurate, we have that
                                                     " n                           #
                                                      1 X
                             ∥Gt − ∇F (wt )∥2 ≤ ϵ ·         ∥∇Fi (w) − ∇F (w)∥2 ≤ ϵG2 .                            (29)
                                                      n i=1

Since ηt = L1 , we have that 1 − Lηt = 0. Substituting (29) into (28), we have that
                                               ηt              ηt       1              1
                    F (wt+1 ) − F (wt ) ≤ −       ∥∇F (wt )∥2 + ϵG2 = − ∥∇F (wt )∥2 +    ϵG2 .                            (30)
                                               2               2       2L             2L
Taking summation over t, it is obtained that
                                      T −1
                                   1 X                 2L[F (w0 ) − F (wT )]
                                         ∥∇F (wt )∥2 ≤                       + ϵG2 .
                                   T t=0                        T

According to Assumption 4.1, we have that F (wT ) ≥ F ∗ and obtain the first desired result. Furthermore, when F (w)
satisfies the PL condition, we have that
                                         ∥∇F (wt )∥2 ≥ 2µ[F (wt ) − F ∗ ].                                      (31)
Substituting (31) into (30), we have that
                                                            µ                   ϵG2
                                     F (wt+1 ) − F (wt ) ≤ − [F (wt ) − F ∗ ] +     ,
                                                            L                    2L
which is equivalent to that
                                                 ϵG2                           ϵG2
                                                                               
                                                           µ
                               F (wt+1 ) − F ∗ −      ≤ 1−     F (wt ) − F ∗ −       .
                                                  2µ       L                    2µ

                                                              21


===== PDF PAGE 22 =====
               On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning

Recursively using the inequality, we have that

                                             ϵG2                          ϵG2
                                                                             
                                           ∗
                                                     µ T             ∗
                               F (wT ) − F −     ≤ 1−       F (w0 ) − F −       .
                                              2µ      L                    2µ

Therefore, we finally obtain that
                                                       µ T                    ϵG2
                                    F (wT ) − F ∗ ≤ 1 −      [F (w0 ) − F ∗ ] +     .
                                                        L                        2µ




                                                           22
