
===== PDF PAGE 1 =====
                    Hybrid Batch Normalisation: Resolving the Dilemma of
                         Batch Normalisation in Federated Learning


                             Hongyao Chen 1 Tianyang XuB 1 Xiao-jun Wu 1 Josef Kittler 2


                           Abstract
       Batch Normalisation (BN) is widely used in con-
       ventional deep neural network training to har-
       monise the input-output distributions for each
       batch of data. However, federated learning, a
       distributed learning paradigm, faces the challenge
       of dealing with non-independent and identically
       distributed data among the client nodes. Due to
       the lack of a coherent methodology for updating
       BN statistical parameters, standard BN degrades
       the federated learning performance. To this end,
       it is urgent to explore an alternative normalisa-           Figure 1: A comparison of our Hybrid Batch Normalisation
       tion solution for federated learning. In this work,         (HBN) with standard Batch Normalisation (BN) and Group
       we resolve the dilemma of the BN layer in fed-              Normalisation (GN) in the federated learning settings. (a)
       erated learning by developing a customised nor-             Classification error rate of Simple-CNN on CIFAR-100
       malisation approach, Hybrid Batch Normalisation             vs Data heterogeneity (controlled by a Dirichlet distribu-
       (HBN). HBN separates the update of statistical pa-          tion coefficient). The batch size is 16. (b) Classification
       rameters (i.e., means and variances used for eval-          error rate of Simple-CNN on CIFAR-100 vs Batch size.
       uation) from that of learnable parameters (i.e., pa-        The Dirichlet distribution coefficient is 0.6. For other imple-
       rameters that require gradient updates), obtaining          mentation details, please refer to Section 4.1.
       unbiased estimates of global statistical parameters
       in distributed scenarios. In contrast with the exist-
       ing solutions, we emphasise the supportive power
                                                                   1. Introduction
       of global statistics for federated learning. The
       HBN layer introduces a learnable hybrid distribu-           Federated learning (FL) is a distributed machine learning
       tion factor, allowing each computing node to adap-          paradigm that trains a global model on a central server,
       tively mix the statistical parameters of the current        while protecting the raw data of each client node (Yang et al.,
       batch with the global statistics. Our HBN can               2019; Bharati et al., 2022). Different from data-centralised
       serve as a powerful plugin to advance federated             training, in FL, data across client nodes may be non-
       learning performance. It reflects promising merits          independently and identically distributed (Non-IID) (Zhao
       across a wide range of federated learning settings,         et al., 2018; Li et al., 2019; 2022), which has sparked a
       especially for small batch sizes and heterogeneous          widespread interest in how to achieve the system-centralised
       data. Code is available at https://github.                  performance during distributed training.
       com/Hongyao-Chen/HybridBN.
                                                                   To guarantee data privacy, only the model parameters, rather
   1
     School of Artificial Intelligence and Computer Science,       than data, are allowed to be transferred between the central
Jiangnan University, Wuxi, China. 2 School of Computer Sci-        server and local clients. Specifically, the classic Feder-
ence and Electronic Engineering and the Centre for Vision,         ated Averaging (FedAvg) family (McMahan et al., 2017)
Speech and Signal Processing (CVSSP), University of Surrey,
Guildford, GU2 7XH, UK.. Correspondence to: Tianyang Xu            performs multiple mini-batch stochastic gradient descent
<tianyang.xu@jiangnan.edu.cn>.                                     (SGD) on several local clients, and then aggregates the
                                                                   model parameters on the server in each communication
Proceedings of the 42 nd International Conference on Machine       round.
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                  To harmonise the use of global model parameters in con-

                                                               1


===== PDF PAGE 2 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

junction with client specific data distributions, a suitable           the global statistical parameters. While the use of historical
Batch Normalisation (BN) (Ioffe, 2015) is required. In the             global statistical parameters for BN in decentralised training
case of centralised training, samples from different batches           is precarious, we suggest using them to recognise heteroge-
are rescaled and shifted to a predefined range by the BN               neous nodes instead. Our approach demonstrates that this
layer, reducing potential supervision conflicts. In general,           idea leads to an efficient solution for adapting the global
the function of BN is to accelerate convergence (Bjorck                statistical parameters of BN, so as to mitigate the negative
et al., 2018; Karakida et al., 2019), to smooth the optimi-            impact of the distribution heterogeneity.
sation landscape (Santurkar et al., 2018; Yong et al., 2020;
                                                                       Recognising that the negative impact is produced during
Peng et al., 2023), and to improve generalisation (Luo et al.,
                                                                       the update stage of statistics, where the local statistical pa-
2018; Lubana et al., 2021), etc. However, (Hsieh et al.,
                                                                       rameters and learnable parameters are jointly updated, we
2020) and (Du et al., 2022) found that the BN layer does
                                                                       propose to separate the update stage into sequential steps,
not maintain its expected merits in the FL scheme. The
                                                                       i.e., collecting the local statistical parameters, followed by
underlying reason is that each local client works with a spe-
                                                                       updating the learnable parameters. In this way, our sequen-
cific data distribution, resulting in heterogeneity from the
                                                                       tial update strategy recovers unbiased estimates of the last
global perspective. The difference between the local statis-
                                                                       round’s global statistics, without explicitly changing the
tics (for training) pertaining to each client and the global
                                                                       communication transmission process. In the subsequent nor-
statistics (for evaluation) compromises the effectiveness of
                                                                       malisation stage, we perform Hybrid Batch Normalisation
the standard BN layer.
                                                                       (HBN) to balance the global statistical parameters and the
To effectively avoid collecting the statistics from each batch         statistical parameters from the current batch. In Figure 1,
in FL, (Hsieh et al., 2020) suggests replacing BN with Group           we compare HBN with standard BN and GN configured
Normalisation (GN) (Wu & He, 2018), which performs a                   with the FedAvg baseline. Intuitively, HBN outperforms its
normalisation along the channel dimension. (Du et al.,                 contenders regardless of the actual degree of heterogeneity
2022) suggests using LN (Ba, 2016). Besides, (Kim et al.,              and batch size, achieving consistent normalisation for fed-
2023; Zhang et al., 2024) identifies that Feature Normali-             erated learning in diverse scenarios. We demonstrate that
sation(FN) can be helpful for federated training. Similar              the proposed HBN can be used effectively in conjunction
to GN, FN and LN both use the statistical information of a             with several federated learning frameworks, resolving the
single sample for normalisation, ignoring the dependency               dilemma of batch normalisation, and delivering consistently
relationships among samples. Although these normalisation              outstanding performance.
methods avoid batch dependence by relying on individual
                                                                       The main contributions of our work are as follows:
samples, they fail to incorporate global information, which
may further exacerbate data distribution heterogeneity.
                                                                          • We address the dilemma of batch normalisation for the
Many studies (Ioffe, 2017; Yao et al., 2021; Pham et al.,                   federated learning framework, and show how to derive
2022) have found that the degree of heterogeneity and                       unbiased global statistical parameters from inconsistent
the batch size are the two dominant factors causing the                     local distributions.
global/local discrepancy for BN. As shown in Figure 1,
when the heterogeneity of the data distribution is severe                 • We develop a hybrid batch normalisation (HBN) layer,
(with a smaller Dirichlet distribution coefficient) or the batch            harmonising local batch statistics and global statistical
size is tiny, BN deteriorates because of the lack of confi-                 parameters for each local client.
dence in the local statistics. In the decentralised training
scenario, global statistical information is crucial for ensur-            • We demonstrate the superiority of HBN by extensive
ing local consistency and synchronisation. At this point,                   experimental comparisons with several existing FL nor-
normalisation based on global statistics is more appropriate.               malisation solutions. The experimental results show
However, obtaining real-time global statistics is difficult in              that HBN exhibits excellent merits under heteroge-
FL. Drawing on this, FedTAN (Wang et al., 2023) proposes                    neous and small batch sizes scenarios.
to correct the potentially unreliable statistical parameters              • We verify the consistent compatibility of HBN with
of BN. However, FedTAN requires more client-server com-                     existing federated learning schemes and classic deep
munications to rectify the statistics, sacrificing ×3 times as              neural network architectures.
many BN layers in the communication rounds, compared to
FedAvg.
                                                                       2. Related Work
To date, the potential of BN in handling FL tasks has not
been sufficiently investigated. One challenging issue is how           Learning Model Parameters in Federated Setting. Com-
to gauge the client distribution heterogeneity, in relation to         pared to traditional distributed training, data heterogeneity
                                                                       among various local clients is a fundamental challenge in

                                                                   2


===== PDF PAGE 3 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

federated learning (Kairouz et al., 2021; Vahidian et al.,            SiloBN (Andreux et al., 2020) limit certain BN parameters
2023; Mendieta et al., 2022). Due to privacy constraints,             on each local client. The above approaches avoid relying
local clients cannot address this challenge by sharing data.          on server-side statistical parameters and focus exclusively
                                                                      on local client normalisation, which are suitable for person-
Since FedAvg (McMahan et al., 2017) was proposed to
                                                                      alised federated learning but incapable of obtaining a global
aggregate model parameters from multiple local clients,
                                                                      model.
setting up a baseline for federated learning, recent stud-
ies typically focus on handling heterogeneous client data             To achieve server-client statistical parameters interaction
distributions. For instance, to alleviate oscillated aggrega-         and aggregation within the batch scope, recent studies
tion at the central server end across different iterations, Fe-       have explored how to optimise BN in the FL setting.
dAvgM (Hsu et al., 2019) proposes to introduce momentum               FixBN (Zhong et al., 2023), exploiting a straightforward
in the aggregation stage, aligning the entire model param-            strategy, proposes a two-stage training approach, where
eters. To achieve adaptive moment estimation (Kingma,                 the statistical parameters are updated in the first stage and
2014), FedAdam (Reddi et al., 2020) was developed to as-              frozen to replace batch statistics during normalisation in
sign a suitable combination ratio between the previous and            the second stage. To involve historical statistics, Feder-
current parameters. To stabilise the local training phase, Fed-       ated Batch Normalisation (FBN) (Guerraoui et al., 2024)
Prox (Li et al., 2020) adds a proximal regularization term to         proposes to normalise batch data using running average.
local models. In terms of explicit anti-heterogeneous mod-            However, FixBN and FBN neglect the diversity of statistics
elling, Scaffold (Karimireddy et al., 2020) reduces the vari-         in each local client, which is a challenging issue in Non-IID
ance of local updates by introducing a correction term for            scenarios. To simultaneously maintain the local data char-
local gradients. In order to further collectorate the local and       acteristics, FedTAN (Wang et al., 2023) uploads the local
global models, FedCM (Xu et al., 2021) and FedSAM (Qu                 means and variances layer by layer to the server. Then, the
et al., 2022) introduce client-level momentum and client-             global statistical parameters are sent to each client to update
level optimiser to enhance the generalisation power at the            the local learnable parameters. Despite the improved ac-
local end.                                                            curacy in collecting statistics, FedTAN sacrifices 3× times
                                                                      the communication cost for each BN layer compared to
The above solutions harmonise the server-client parame-
                                                                      FedAvg.
ters from the updating perspective of learnable parameters,
achieving promising performance against heterogeneous                 Although existing attempts optimise the normalisation al-
distributions. On the contrary, in this paper, we focus on            gorithms for FL, the potential value of BN statistics is not
alleviating the negative impact of heterogeneity by design-           sufficiently explored during training. On the contrary, in
ing a hybrid batch normalisation module, emphasising the              this paper, we propose to harmonise the BN statistics with
update of statistical parameters, which can further boost the         an unbiased estimator at the global server, which can endow
performance accompanied by the above solutions parallelly.            a global perspective to each local training phase, unifying
                                                                      the task supervision thereby.
Updating Statistical Parameters in Federated Setting.
Normalisation based on input statistics has been widely
studied in deep learning, e.g., batch normalisation, layer nor-       3. Approach
malisation, and group normalisation. However, endowing
                                                                      3.1. Formulation
federated learning solutions with the above normalisation ap-
proaches cannot deliver the expected improvement, remain-             Batch Normalisation. Batch Normalisation is widely
ing a concern on how to collect and update the statistical            used in deep neural networks to reduce internal covariate
parameters in federated learning. For instance, batch normal-         shift (Ioffe, 2015). Given an input feature {xi }B
                                                                                                                       i=1 of batch
isation relies on batch statistics to normalise data, which can       size B, BN calculates the means µb and variances σb2 of the
be easily misled by the Non-IID clients’ data (Ioffe, 2017).          current batch and normalises them.
Drawing on this, Group Normalisation and Layer Normali-                                  B                B
sation are used for federated learning, avoiding collecting                           1 X              1 X
                                                                               µb =         xi ; σb2 =       (xi − µb )2 .       (1)
statistics across the batch dimension. Feature Normalisa-                             B i=1            B i=1
tion alleviates the representation norm differences between
federated learning clients, which is functionally similar to          In general, BN estimates global statistical parameters for
LN. However, GN, LN, and FN rely only on the statistics of            evaluation by employing the exponential moving average to
each individual sample, representing significant difference           update the running statistics.
compared to global statistics, which cannot maintain their
advantages in heterogeneous FL. To preserve the statisti-             In the current deep learning community, the estimated sta-
cal stability at the client end, FedBN (Li et al., 2021b) and         tistical parameters from the training phase are frozen in the
                                                                      evaluation phase. The vitality of these statistical parameters

                                                                  3


===== PDF PAGE 4 =====
                Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

holds only if the data share a similar distribution. Intu-                 Algorithm 1 Workflow of Federated Learning with HBN
itively, independent and identically distributed (IID) data is               Input: the number of communication rounds T ; the num-
expected. However, this assumption always conflicts with                     ber of clients K; the datasets of clients {Dk }k∈[K] ; the
the federated learning setting, where heterogeneous data                     datasize of clients {Nk }k∈[K] ; the initial global model
distributions are assigned to different local clients.                       parameters {ωg , µg ,σg2 }0 for the server; the initial hybrid
Federated Learning with Batch Normalisation. In the                          distribution factor {αk = 0}0 for each client k;
context of federated learning, handling non-IID data among                   for t = 1 → T + 1 do
local clients is a typical challenging issue. A direct solution                 for each client k in parallel do
is passing data, which is forbidden in the federated learning                      download {ωg , µg , σg2 }t−1 from server;
setting. Therefore, other local clients can access only model                      // without backpropagation
parameters to protect data privacy. Taking the classic Fe-                         compute µtk , (σ 2 )tk according to Equation (7);
dAvg as an example, the goal of FL is to learn a global model                      // with backpropagation
that can perform well on all clients. Specifically, assuming                       ωkt , αkt ← SGD({ωg , µg , σg2 , αk }t−1 , Dk );
that set Dg = {Dk }k∈[K] contains the datasets distributed                         upload {ωk , µk , σk2 }t to server;
across all K clients. Considering a deep neural network                         end for
with the BN layer, the model parameters include learnable                       compute µtg , (σ 2 )tg according to Equation (8);
parameters ω and BN’s statistical parameters, which are                         if t == T + 1 then
means µ and variances σ 2 . FL aims to minimise the follow-                        set ωgT +1 = ωgT ;
ing empirical risk:                                                             else             PK
                                   K                                               update ωgt = k=1 NNk ωkt ;
                                   X Nk                                         end if
         min2 L(ω, µ, σ 2 ) =                 Lk (ω, µ, σ 2 ),   (2)
        ω,µ,σ                             N                                  end for
                                   k=1
                                                                             Output: {ωg , µg , σg2 }T +1
where Nk is the size of the k-th client dataset Dk , N is the
total size of data and Lk (·) is the empirical risk of the k-th
client. However, the above Equation (2) cannot be directly
optimised because the central server cannot access the client              This method obviously cannot accurately approximate ideal
data. For this purpose, FL iteratively aggregates the model                global statistical parameters. We provide a more detailed
parameters trained locally by the clients. On both global                  derivation in Appendix A.1. Firstly, the main reason is that
learnable parameters ωg and global statistical parameters                  the calculation of local statistical parameters is not based
µg , σg2 , FedAvg performs the following operations:                       on the same global model, but on each local models, which
                                                                           would lead to external covariate shift (Du et al., 2022). Sec-
                                K
                                X Nk                                       ondly, the direct average local variance may deviate from
           {ωg , µg , σg2 } =             {ωk , µk , σk2 },      (3)       the actual global variance, and this error may accumulate
                                      N
                                k=1
                                                                           during the forward propagation of deep neural networks.
where ωk , µk and σk2 are all updated by the k-th client on                Furthermore, even if we restore the ideal statistical param-
local data.                                                                eter estimation of BN, these statistical parameters cannot
                                                                           guarantee a positive impact on federated training. During lo-
The Dilemma of Batch Normalisation. Next, we focus on
                                                                           cal training, they still use batch data statistical parameters to
analysing the statistical parameters µ, σ 2 . We use
                                                                           normalise the input, losing awareness of global distribution.
                       µ, σ 2 = S(ω; D),                         (4)       Driven by these issues, we propose a novel BN solution,
to represent the statistical parameters µ, σ 2 obtained by the             Hybrid Batch Normalisation (HBN), for federated learning.
model parameters ω on input data D.
                                                                           3.2. Global Server End: Obtaining Unbiased Statistical
The dilemma of BN layer in federated learning mainly lies                       Parameters
in our expectation of obtaining ideal global statistical param-
eters µ̂g , σ̂g2 during the training phase, which can be used              To harmonise the distribution, obtaining an ideal global sta-
for evaluation, i.e.,                                                      tistical estimation is a prerequisite for our hybrid batch nor-
                                                                           malisation. In order to ensure that the statistical parameters
                      µ̂g , σ̂g2 = S(ωg ; Dg ).                  (5)       are not affected by the model (learnable parameters) trans-
Unfortunately, previous methods approximate this process                   formation during each client training process, we propose
by averaging the local statistical parameters, i.e.,                       an update strategy that separates the statistical parameters
                     K                                                     from the learnable parameters. As shown in Algorithm 1,
                     X Nk                                                  after downloading the global model from the server, the
        µg , σg2 =             S(ωk ; Dk ) ̸= S(ωg ; Dg ).       (6)
                           N                                               local client calculates the statistical parameters of the local
                     k=1

                                                                       4


===== PDF PAGE 5 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning




                                    Figure 2: Normalisation methods for two toy FL clusters.


data based on the current global learnable parameters before           each cluster separately using local statistics, the normalised
starting training. So in the t-th round, client-k can get:             data exhibits indistinguishable overlap compared to globally
                                                                       normalised data. Most local normalisation methods (BN,
                 µtk , (σ 2 )tk = S(ωgt−1 ; Dk ).           (7)        GN, LN, etc.) cannot produce satisfactory results in such
                                                                       cases. Compared to local normalisation, global normalisa-
After obtaining the statistical parameters of the last global          tion can better maintain consistency among local clients.
model, each client optimises the local learnable parameters            However, real-time global normalisation is impractical, par-
based on standard stochastic gradient descent (SGD) with               ticularly in federated learning, where models undergo mul-
mini-batch. Usually, if local statistics are independent and           tiple local updates before communication. This means the
randomly sampled from the entire data, then averaging them             ideal global statistics are inherently dynamic. We usually
is reasonable, but in federated learning, this assumption              only have access to historical global statistics, whose time-
does not hold. Drawing on this, we consider client data                liness is constrained by intermittent communication and
as a certain group of the entire population. According to              partial client participation. Using only historical global
distributed statistical analysis, we can use the following             statistics will yield a suboptimal result. But historical global
approach to calculate unbiased estimates of the population             statistics still retain valuable global structural information.
mean and variance:                                                     Especially since we have addressed the dilemma of global
                                                                      statistical parameter bias for BN, we can use these ready
                      K
              t
                     X   Nk t                                          parameters more efficiently. Therefore, we propose a hybrid
              µ  =           µ ;
        
        
        
        
              g
                         N k                                           normalisation method that is more suitable for handling fed-
                     k=1
                                                          (8)          erated learning tasks, coined as hybrid batch normalisation
                      K       2 t        t     t 2
                                                    
        
            2 t
                     X   N k  (σ  ) k + (µk −  µg )                    (HBN). As shown in Figure 2 (d), this hybrid normalisation
        (σ )g =                                      .
        
        
        
                                    N −1                               combines global statistics with local statistics, which can
                    k=1
                                                                       standardise the size of two clusters while maintaining the
By separately calculating local statistical parameters,                global structure.
the server can obtain ideal global statistical parameters              Specifically, HBN adds a hybrid distribution factor α in the
S(ωgt−1 ; Dg ). We provide the detailed derivation in Ap-              base BN layer to adaptively learn the balance between batch
pendix A.2. It should be noted that after using this asyn-             and global normalisation. Typically, the hybrid distribution
chronous strategy to update between the statistical param-             factor α is a learnable parameter with the same size as the
eters and the learnable parameters, we need to perform an              number of input channels. For a layer input {xi }Bi=1 over a
additional round of statistical parameters update for syn-             mini-batch, we calculate the normalisation parameters for
chronisation at the end.                                               each input as follows:

3.3. Local Client End: Performing Hybrid Batch                                               e−α            1
                                                                                      µ̂ =         µb +          µg ;
     Normalisation                                                                         1 + e−α       1 + e−α
                                                                                                                                   (9)
                                                                                             e−α            1
In heterogeneous FL, local mini-batches sampled by each                             σ̂ 2 =         σb2 +         σ2 ,
                                                                                           1+e  −α       1 + e−α g
client reflect only their local data distribution, often differ-
ing substantially from the global distribution. As shown               where µb , σb2 are the current batch statistics calculated ac-
in Figure 2, two toy clusters follow Gaussian distributions,           cording to Equation (1), and µg , σg2 are the global statistics
simulating the activation output of two clients in federated           stored in HBN according to Equation (8). In particular, the
learning. Intuitively, after applying local normalisation to           global statistic is frozen during the gradient update process.

                                                                   5


===== PDF PAGE 6 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

Like other normalisation methods, HBN also learns a per-
channel linear transform to compensate for the possible loss
of representative power:

                xi − µ̂
         yi = γ √          + β ≡ HBNα,γ,β (xi ),          (10)
                  σ̂ 2 + ϵ

where ϵ is a small positive constant that prevents the de-
nominator from being zero and γ, β are trainable scale and
offset.                                                               Figure 3: Different Dirichlet coefficients ϕ(0.6, 0.1) to label
                                                                      distribution on CIFAR-10 with 100 clients.
Due to the varying degrees of distribution differences be-
tween clients and the global server, the hybrid distribution
factor is configured for each local client, which does not
participate in communication. To clarify this process, in             (GN), Layer Normalisation (LN), FedFN, FixBN, and Fed-
Algorithm 1, we distinguish the hybrid distribution factor            erated Batch Normalisation (FBN), For fairness, we default
α from other learnable parameters ω. In the training phase,           to combining all normalisation methods with the baseline
the learnable parameters and local statistical parameters are         FedAvg.
updated separately and do not affect each other. In the eval-         Benchmark. All experiments are conducted on the classic
uation phase, normalisation parameters use global statistical         image classification datasets, including CIFAR-10/CIFAR-
parameters {µg , σg2 } and do not require the participation of        100 (Krizhevsky, 2009) and Tiny-ImageNet (100K images
hybrid factor.                                                        with 200 classes) (Chrabaszcz et al., 2017), which are widely
                                                                      adopted in FL research (Chen & Zhang, 2024). We use a
3.4. Implementation                                                   customised Simple-CNN network on CIFAR-10/CIFAR-
                                                                      100, which has a representativeness in computer vision do-
Comparison of parameters with BN. For HBN, we can
                                                                      main. Simple-CNN mainly consists of three convolutional
easily implement programming codes based on BN. HBN
                                                                      blocks and two fully connected layers. Each convolutional
needs to store both local and global statistical parameters,
                                                                      block contains a convolutional layer, a normalisation layer,
but only one of them needs to participate in each communi-
                                                                      a ReLU activation layer, and a max-pooling layer (LeCun
cation round. Local statistics can be directly calculated on
                                                                      et al., 1998; Maas et al., 2013; Ioffe, 2015). We replace the
each client, while global statistics are obtained by aggregat-
                                                                      normalisation layer with different normalisation methods,
ing local statistics on the server. In addition, we need to add
                                                                      except for FN, which is added before the input of the classi-
trainable hybrid distribution factor parameters per channel
                                                                      fication head. We also use the classic ResNet-18 (He et al.,
and discard the moving average momentum. In the forward
                                                                      2016) on the large-scale dataset Tiny-ImageNet.
passing, HBN normalises the batch input in the order of
Equations (1), (9) and (10).                                          Similar to existing works (Wang et al., 2024; Tian et al.,
                                                                      2024; Zhuang et al., 2024), we use Dirichlet distribu-
Communication with stragglers. In situations where there
                                                                      tion (Hsu et al., 2019) to model the data distribution, which
are a large number of stragglers, inevitably, we are unable
                                                                      controls the degree of statistical heterogeneity through a
to calculate statistical measures for all data. We empirically
                                                                      coefficient ϕ. The smaller the ϕ, the more severe the label
recommend using the moving average to update the global
                                                                      distribution heterogeneity across clients becomes. As shown
statistical parameters for each server stage:
                                                                      in Figure 3, we visualise the label distribution of 100 clients
                                                                      on the CIFAR-10 with different ϕ(0.6, 0.1).
               µtg = (1 − λ)µt−1
                             g   + λµtg ;
                                                          (11)        Hyper-parameters.        For CIFAR-10/CIFAR-100/Tiny-
            (σ 2 )tg = (1 − λ)(σ 2 )t−1
                                    g   + λ(σ 2 )tg ,
                                                                      ImageNet, unless otherwise specifie, we set the total num-
                                                                      ber of clients K = 100/100/500, the activation rate of each
where λ ∈ (0, 1] is the moving average momentum. For
                                                                      round of clients C = 0.1/0.1/0.02 (i.e., 10 clients partic-
more stragglers, small momentum can provide more smooth
                                                                      ipate in per round), the local training epoch E = 1, the
estimates which is beneficial for training.
                                                                      optimiser is SGD optimiser with a momentum of 0.9. The
                                                                      communication rounds T for CIFAR-10/CIFAR-100/Tiny-
4. Experiments                                                        ImageNet are 500/1000/1000, respectively. For all algo-
                                                                      rithms, we select the appropriate initial learning rate from
4.1. Implementation Details
                                                                      {0.02, 0.01, 0.005, 0.002, 0.001} when batchsize is 4. The
Baselines. Six normalisation baselines are considered, in-            learning rates decay quadratically with 0.998. In particular,
cluding Batch Normalisation (BN), Group Normalisation                 we adopt the linear learning rate scaling rule (Krizhevsky,

                                                                  6


===== PDF PAGE 7 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

Table 1: Top-1 Test Accuracy (%) of different FL normalisation solutions on CIFAR-10/CIFAR-100/Tiny-ImageNet with
batchsize 4/4/64.

               Setting                          CIFAR-10                           CIFAR-100                 Tiny-ImageNet
             (FedAvg+)               ϕ = 0.6     ϕ = 0.3 ϕ = 0.1         ϕ = 0.6    ϕ = 0.3 ϕ = 0.1       ϕ = 0.1 ϕ = 0.05
          BN (Ioffe, 2015)            75.82       73.85   69.61           45.84      45.15   43.40         23.95      21.55
         GN (Wu & He, 2018)           75.74       74.10   68.76           47.11      46.33   43.38         19.71      14.89
           LN (Ba, 2016)              74.08       72.50   66.22           46.90      45.65   42.08         19.72      14.84
       FedFN (Kim et al., 2023)       75.51       74.30   67.96           46.29      45.15   43.80         20.05      17.30
      FixBN (Zhong et al., 2023)      77.34       74.51   70.36           46.05      45.54   42.15         24.71      23.42
     FBN (Guerraoui et al., 2024)     73.91       71.94   66.13           45.35      43.72   41.61          4.90       3.76
             HBN (ours)               78.22       76.53   71.56           49.88      48.93   46.52         25.59      24.69




 Figure 4: The sensitivity of different normalisation methods to batch size on CIFAR-100 with ϕ = 0.6 by Simple-CNN.


Table 2: Test Accuracy (%) of different normalisation meth-           4.2. Performance Comparison
ods to batch size on CIFAR-100 with ϕ = 0.6/0.3 by
Simple-CNN.                                                           Influence of Data Heterogeneity. Table 1 reports the
                                                                      test accuracy of all compared FL normalisation methods
                   ϕ = 0.6                     ϕ = 0.3                on CIFAR-10, CIFAR-100 and Tiny-ImageNet with var-
            BN       GN      HBN      BN         GN      HBN          ious heterogeneous settings. We conduct experiments in
  B=32     49.63    45.82    51.05   48.33      44.66    49.83        two computing resource scenarios, Simple-CNN with batch
  B=16     48.30    46.84    50.75   49.52      45.65    49.84        size 4 on CIFAR-10/CIFAR-100 and ResNet-18 with batch
  B=8      46.86    46.33    50.06   48.54      45.39    49.79        size 64 on Tiny-ImageNet. Accordingly, although GN, LN
  B=4      45.84    47.11    49.88   45.15      46.33    48.93
  B=2      43.89    45.72    48.86   42.97      45.32    48.75        and FN avoid dependence on global statistical parameters,
           46.90    46.36    50.12   46.90      45.46    49.42        they do not demonstrate outstanding performance in deal-
  Avg.                                                                ing with data heterogeneity. We find that traditional BN
           ±2.21    ±0.61    ±0.85   ±2.74      ±0.60    ±0.54
                                                                      remains competitive in most scenarios. We believe that
                                                                      this is due to the moving average mechanism of BN, which
                                                                      prevents the locally obtained statistics from deviating too
2014; Goyal et al., 2019) to adapt to batch size changes. For         much from the population. FixBN and FBN employ shared
specific learning rate settings, please refer to the Appendix.        global statistics for normalisation at different stages. When
The batch size B and Dirichlet distribution coefficient ϕ             these global statistics are reliable, they benefit local train-
will be specified in each experiment. For the moving aver-            ing. Conversely, when the global statistics are unreliable,
age momentum in BN and FBN, we set it to 0.9. For GN,                 they exhibit detrimental effects. Our experimental scenario
we set the number of groups to 2. For FixBN, we set the               in Table 1 is deliberately challenging——featuring strong
first half of the total number of rounds as the first stage and       heterogeneity, numerous clients, restricted batchsize and
the rest as the second stage. For HBN, we set λ to 0.01 in            frequent stragglers. In such conditions, FixBN and FBN fail
Equation (11).                                                        to judge whether the local statistics, which are derived from
                                                                      diverse local models, can directly be aggregated, resulting
Due to the mismatch between the statistical parameters and            in unreliable global statistics. Our proposed hybrid batch
the learnable parameters of HBN in each communication                 normalisation adaptively combines historical global statis-
round, we test the statistical parameters of the same client          tics with real-time local statistics. Analogous to augmenting
subset for accuracy evaluation.

                                                                  7


===== PDF PAGE 8 =====
              Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

Table 3: Experiments on CIFAR-10 across varying client                  Table 4: Test Accuracy (%) of different advanced FL solu-
numbers with B = 4 and ϕ = 0.6 by Simple-CNN.                           tions combined with HBN. The experiments are conducted
                                                                        on CIFAR-10 with B = 4 and ϕ = 0.6 by Simple-CNN.
                 K=100     K=200      K=500     K=1000
      BN         75.82     73.88      68.94      61.25                                 Method                   +BN/GN/-     +HBN
      GN         75.74     67.93      60.31      52.24                     FedAvg (McMahan et al., 2017)          75.82      78.22
      LN         74.08     69.08      61.22      51.55                         FedProx (Li et al., 2020)          76.08      78.44
      FedFN      75.51     70.71      62.02      53.75                      FedAdam (Reddi et al., 2020)          75.67      78.17
      FixBN      75.65     71.67      69.07      63.08                    Scafflod (Karimireddy et al., 2020)     77.63      78.65
      FBN        73.91     68.21      59.22      50.73                          Moon (Li et al., 2021a)           75.77      78.48
      HBN        78.22     75.76      72.49      64.95                        FedSAM (Qu et al., 2022)            76.39      78.40
                                                                             FedACG (Kim et al., 2024)            76.01      79.19
                                                                           Fedwon (Zhuang & Lyu, 2024)            78.85      79.93
local client training with global statistics, HBN dynami-
cally integrates global information into the normalisation of
current batches, achieving more effective normalisation.                learning. FedSAM performs Sharpness Aware Minimisa-
                                                                        tion local optimiser for local training. FedACG initialises
Sensitivity to Batch Sizes. We collect the experimental                 local models using global momentum. Fedwon modifies the
results in terms of batch size in Table 2. We find that GN              convolution layers directly to adjust the distribution, without
can alleviate the impact of batch size in federated learning            using the standard normalisation layer. Because the update
as expected, but its generalisation power is worse than BN              stage of FedAdam and FedACG conflicts with the statisti-
in large batch sizes. A larger batch size does not necessarily          cal parameters in BN, resulting in a performance crash, we
deliver better performance for GN, as it reduces the number             use GN for these two methods. We have not equipped any
of local updates. When the batch size is small, the perfor-             normalisation layer for Fedwon. For other methods, BN
mance of BN is greatly affected. For example, when the                  is used. Table 4 lists their basic test accuracy (+BN/GN/-)
batch size is reduced from 32 to 2, the accuracy of BN drops            of Simple-CNN on CIFAR-10 with B = 4 and ϕ = 0.6,
by 5.74 percentage points, whereas HBN shows a smaller                  as well as the test accuracy combined with HBN (+HBN).
drop of only 2.19 percentage points. It is worth noting that            HBN obtains consistent gains in performance regardless of
even with a batch size of 2, the accuracy of HBN exceeds                the federated learning approaches. The results demonstrate
BN with a batch size of 32 and the optimal GN. Because                  the potential of our HBN in delivering additional boosting
HBN adaptively coordinate the global normalisation and                  power for the federated learning community.
the batch normalisation, HBN not only maintains the con-
vergence speed of BN at appropriate batch sizes, but also               Table 5: Test accuracy (%) of different model architectures
reduces the sensitivity to small batch size. We provide a               with different normalisation layers on CIFAR-100 with ϕ =
more intuitive visualisation in Figure 4.                               0.1 and B = 64.
Different Number of Clients. When the number of clients
increases, methods based on local statistics are difficult to                         Model        +BN      +GN     +HBN
reflect the distribution of global data, and methods based on                      MobilenetV2     40.19    41.50   44.40
                                                                                    ResNet-18      51.51    52.38   55.69
global statistics are difficult to obtain reliable global statis-                   ResNet-50      54.97    55.37   60.74
tics under communication limitations. We conduct compar-                             VGG-11        62.74    59.47   63.45
ative experiments on CIFAR-10 (β = 0.6, B = 4) across                                VGG-19        64.09    61.39   64.56
varying client numbers (10 clients sampled per round). As
shown in Table 3, HBN consistently outperforms baselines
                                                                        Consistent Compatibility with Classical Deep Networks
on all scales (K = 100 to K = 1000) through adaptive bal-
                                                                        Architectures. In heterogeneous federated learning sce-
ance of these two factors.
                                                                        narios, deeper networks are more challenging in terms of
Consistent Boosting Power with Advanced FL Solutions.                   training and convergence. Moreover, for vanilla BN statisti-
As HBN belongs to the normalisation paradigm, it should                 cal parameters, the variance obtained by directly weighted
act as a plug-in layer to other advanced FL solutions. We               averaging is smaller than the true variance. For networks
attempt to configure HBN on several advanced FL solu-                   with more BN layers, this will result in more offset in the
tions, including FedProx, FedAdam, Moon, Scaffold, Fed-                 model output. We assemble HBN into deeper networks to
SAM, FedACG and Fedwon. FedAdam adds first-order                        verify its compatibility. We conduct experiments on CIFAR-
and second-order moment estimates during global updates.                100 with ϕ = 0.1, adjusting the batch size to 64 while
FedProx and Scaffold alleviate local model bias by intro-               keeping all other settings the same as before. We mainly
ducing additional constraint terms in local updates. Moon               verify the compatibility of HBN in five pretrained network
optimises local feature representation based on contrastive             architectures, including MobilenetV2 (Sandler et al., 2018),

                                                                    8


===== PDF PAGE 9 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

ResNet-18/50 (He et al., 2016) and VGG-11/19 (Simonyan
& Zisserman, 2014). Usually, their original networks are
assembled with BN. We replace BN with GN and HBN, and
remove the dropout layer from the original network, which
had no positive effect in our experiment. As shown in Ta-
ble 5, HBN is suitable for most classic deep convolutional
neural network architectures, achieving significant perfor-           Figure 5: Impact of the hyper-parameter λ under different
mance improvements in heterogeneous federated learning                client activation ratios C.
scenarios compared to BN and GN.

                                                                      CIFAR-10 with ϕ = 0.6, using Simple-CNN with a batch
4.3. Ablation Study
                                                                      size of 32. We keep other settings consistent with those in
Component Analysis. Compared with the vanilla BN,                     Section 4.1. When the client activation rate is low, adding a
HBN modifies the operation in two aspects, calculating                moving average can alleviate the oscillation of global statis-
accurate statistical parameters (Equations (7) and (8)) and           tics and improve the performance of HBN. When the client
achieving adaptive normalisation (Equation (9)).                      activation rate is high, it is not sensitive to the selection of
                                                                      λ. According to our experiments, we recommend using a
Table 6: Test Accuracy (%) of different configurations for            smaller λ, which usually performs satisfactorily.
HBN’s each component. The experiments are conducted on
CIFAR-10 with B = 4 and ϕ = 0.6 by Simple-CNN.                        5. Discussion
   Index              Ablation Setting              Acc (%)           Communication and Computation Overhead. For feder-
    (1)       Equation (7) ← moving average          72.25            ated learning, communication overhead is worth considering
    (2)      Equation (8) ← weighted average         77.90            and is proportional to the parameter quantity. Compared to
    (3)     Equation (9) ← only global statistics    76.87            other methods, HBN only increases the communication cost
    (4)     Equation (9) ← only batch statistics     76.33
    (5)        Equation (9) ← fix ratio at 1:1       77.49            for one round, which is negligible compared to the large
                       FedAvg+HBN                    78.22            number of communication rounds required for training. In
                                                                      terms of computational cost, HBN requires additional cal-
                                                                      culation of local statistics on the clients, but this part is
Table 6 displays the performance of using other candidates            much lower than the cost of model training. In addition, we
to replace each of our designed components. In principle,             find that using partial data to calculate local statistics on
we freeze the other parts and only modify the following               the client produces a marginally negative impact on model
for each ablation experiment: (1) update local statistics             performance, as the client’s local data usually follows the
based on moving average without separation, (2) summarise             same distribution. For example, when we compute local
local statistics based on weighted average, (3) normalise             statistics from randomly sampled 128 images per client, the
only using global statistics, (4) normalise only using batch          final model performance decreases by only 0.13 percentage
statistics, and (5) fix an equal hybridization ratio for global       points.
statistics and batch statistics.
We can see that replacing any component causes a negative             6. Conclusion
impact on the performance of HBN. It is worth mention-
ing that in experiment (1), we do not separate the updates            In this work, we propose a targeted improvement for batch
of the statistical parameters and the learnable parameters,           normalisation in federated learning, Hybrid Batch Nor-
which results in HBN being unable to benefit from unstable            malisation. The Hybrid Batch Normalisation resolve the
global statistical parameters and potentially exacerbating            dilemma of batch normalisation statistical parameter mis-
the shift of local statistics. In experiment (4), we only use         match in Federated Learning. In order to leverage the po-
batch statistics for normalisation, which is consistent with          tential of global statistical parameters in solving Non-IID
the vanilla BN. The improved performance indicates that               problems, Hybrid Batch Normalisation combines global nor-
separating the calculation of statistical parameters can com-         malisation and batch normalisation adaptively, alleviating
pensate for the accuracy loss caused by the deviation of the          vanilla batch normalisation limitations in small batch size
vanilla BN statistical parameters.                                    and heterogeneous data. Extensive experiments validate the
                                                                      effectiveness of Hybrid Batch Normalisation. Our HBN
Selection of Hyper-parameters. Figure 5 measures the                  extends the current batch normalisation scope in terms of
impact of the choice of λ in Equation (11) under different            the federated learning tasks.
client activation ratios C. We select C from [1, 0.7, 0.4, 0.1]
and λ from [1, 0.1, 0.01]. We conduct this experiment on

                                                                  9


===== PDF PAGE 10 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

Acknowledgements                                                       He, K., Zhang, X., Ren, S., and Sun, J. Deep residual
                                                                         learning for image recognition. In CVPR, pp. 770–778,
This work was supported in part by the National Key Re-                  2016.
search and Development Program of China under Grant
No.2023YFE0116300, the National Natural Science Foun-                  Hsieh, K., Phanishayee, A., Mutlu, O., and Gibbons, P. The
dation of China (62020106012, 62332008, 62336004,                        non-iid data quagmire of decentralized machine learning.
62106089), the Fundamental Research Funds for the Central                In ICML, pp. 4387–4398. PMLR, 2020.
Universities (JUSRP202504007).
                                                                       Hsu, T.-M. H., Qi, H., and Brown, M. Measuring the effects
                                                                         of non-identical data distribution for federated visual clas-
Impact Statement                                                         sification. arXiv preprint arXiv:1909.06335, 2019.
This paper presents work whose goal is to advance the field            Ioffe, S. Batch normalization: Accelerating deep net-
of Machine Learning. There are many potential societal                   work training by reducing internal covariate shift. arXiv
consequences of our work, none which we feel must be                     preprint arXiv:1502.03167, 2015.
specifically highlighted here.
                                                                       Ioffe, S. Batch renormalization: Towards reducing mini-
References                                                               batch dependence in batch-normalized models. NeurIPS,
                                                                         30, 2017.
Andreux, M., du Terrail, J. O., Beguier, C., and Tramel,
  E. W. Siloed federated learning for multi-centric                    Kairouz, P., McMahan, H. B., Avent, B., Bellet, A., Bennis,
  histopathology datasets. In Domain Adaptation and Rep-                 M., Bhagoji, A. N., Bonawitz, K., Charles, Z., Cormode,
  resentation Transfer, and Distributed and Collaborative                G., Cummings, R., et al. Advances and open problems in
 Learning, pp. 129–139. Springer, 2020.                                  federated learning. Foundations and trends® in machine
                                                                         learning, 14(1–2):1–210, 2021.
Ba, J. L.     Layer normalization.           arXiv preprint
  arXiv:1607.06450, 2016.                                              Karakida, R., Akaho, S., and Amari, S.-i. The normalization
                                                                         method for alleviating pathological sharpness in wide
Bharati, S., Mondal, M., Podder, P., and Prasath, V. Feder-              neural networks. NeurIPS, 32, 2019.
  ated learning: Applications, challenges and future direc-
  tions. International Journal of Hybrid Intelligent Systems,          Karimireddy, S. P., Kale, S., Mohri, M., Reddi, S., Stich,
 18(1-2):19–35, 2022.                                                    S., and Suresh, A. T. Scaffold: Stochastic controlled
                                                                         averaging for federated learning. In ICML, pp. 5132–
Bjorck, N., Gomes, C. P., Selman, B., and Weinberger, K. Q.              5143. PMLR, 2020.
  Understanding batch normalization. NeurIPS, 31, 2018.
                                                                       Kim, G., Kim, J., and Han, B. Communication-efficient
Chen, J. and Zhang, A. FedMBridge: Bridgeable multi-                     federated learning with accelerated client gradient. In
  modal federated learning. In ICML, 2024.                               CVPR, pp. 12385–12394, 2024.

Chrabaszcz, P., Loshchilov, I., and Hutter, F. A downsam-              Kim, S., Lee, G., Oh, J., and Yun, S.-Y. Fedfn: Feature
  pled variant of imagenet as an alternative to the cifar                normalization for alleviating data heterogeneity problem
  datasets. ArXiv, abs/1707.08819, 2017.                                 in federated learning. In NeurIPS Workshop, 2023.

Du, Z., Sun, J., Li, A., Chen, P.-Y., Zhang, J., Li, H. H., and        Kingma, D. P. Adam: A method for stochastic optimization.
  Chen, Y. Rethinking normalization methods in federated                 arXiv preprint arXiv:1412.6980, 2014.
  learning. In Distributed Machine Learning Workshop, pp.
                                                                       Krizhevsky, A. Learning multiple layers of features from
 16–22, 2022.
                                                                         tiny images. Master’s thesis, University of Tront, 2009.
Goyal, P., Dollár, P., Girshick, R., Noordhuis, P.,                   Krizhevsky, A. One weird trick for parallelizing convolu-
 Wesolowski, L., Kyrola, A., Tulloch, A., Jia, Y., and                   tional neural networks. arXiv preprint arXiv:1404.5997,
  He, K. Accurate, large minibatch sgd: Training imagenet                2014.
  in 1 hour. arxiv 2017. arXiv preprint arXiv:1706.02677,
  2019.                                                                LeCun, Y., Bottou, L., Bengio, Y., and Haffner, P. Gradient-
                                                                         based learning applied to document recognition. Proceed-
Guerraoui, R., Pinot, R., Rizk, G., Stephan, J., and Taiani,             ings of the IEEE, 86(11):2278–2324, 1998.
  F. Overcoming the challenges of batch normalization
  in federated learning. arXiv preprint arXiv:2405.14670,              Li, Q., He, B., and Song, D. Model-contrastive federated
  2024.                                                                  learning. In CVPR, pp. 10713–10722, June 2021a.

                                                                  10


===== PDF PAGE 11 =====
             Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

Li, Q., Diao, Y., Chen, Q., and He, B. Federated learning           Santurkar, S., Tsipras, D., Ilyas, A., and Madry, A. How
  on non-iid data silos: An experimental study. In ICDE,              does batch normalization help optimization? NeurIPS,
  pp. 965–978. IEEE, 2022.                                            31, 2018.

Li, T., Sahu, A. K., Zaheer, M., Sanjabi, M., Talwalkar, A.,        Simonyan, K. and Zisserman, A. Very deep convolu-
  and Smith, V. Federated optimization in heterogeneous               tional networks for large-scale image recognition. arXiv
  networks. MLsys, 2:429–450, 2020.                                   preprint arXiv:1409.1556, 2014.

Li, X., Huang, K., Yang, W., Wang, S., and Zhang, Z. On             Tian, C., Shi, Z., Xinpengqin, Li, L., and zhong Xu, C.
  the convergence of fedavg on non-iid data. arXiv preprint           Ranking-based client imitation selection for efficient fed-
  arXiv:1907.02189, 2019.                                             erated learning. In ICML, 2024.

Li, X., Jiang, M., Zhang, X., Kamp, M., and Dou, Q. Fedbn:          Vahidian, S., Morafah, M., Chen, C., Shah, M., and Lin,
   Federated learning on non-iid features via local batch             B. Rethinking data heterogeneity in federated learning:
   normalization. arXiv preprint arXiv:2102.07623, 2021b.             Introducing a new notion and standard benchmarks. TAI,
                                                                      5(3):1386–1397, 2023.
Lubana, E. S., Dick, R., and Tanaka, H. Beyond batchnorm:
  Towards a unified understanding of normalization in deep          Wang, Y., Shi, Q., and Chang, T.-H. Why batch normaliza-
  learning. NeurIPS, 34:4778–4791, 2021.                             tion damage federated learning on non-iid data? TNNLS,
                                                                     2023.
Luo, P., Wang, X., Shao, W., and Peng, Z. Towards un-
  derstanding regularization in batch normalization. arXiv          Wang, Y., Wang, S., Lu, S., and Chen, J. FADAS: Towards
  preprint arXiv:1809.00846, 2018.                                   federated adaptive asynchronous optimization. In ICML,
                                                                     2024.
Maas, A. L., Hannun, A. Y., Ng, A. Y., et al. Rectifier
 nonlinearities improve neural network acoustic models.             Wu, Y. and He, K. Group normalization. In ECCV, pp.
 In ICML, pp. 3. Atlanta, GA, 2013.                                  3–19, 2018.

McMahan, B., Moore, E., Ramage, D., Hampson, S., and                Xu, J., Wang, S., Wang, L., and Yao, A. C.-C. Fedcm:
 y Arcas, B. A. Communication-efficient learning of deep              Federated learning with client-level momentum. arXiv
 networks from decentralized data. In Artificial intelli-             preprint arXiv:2106.10874, 2021.
 gence and statistics, pp. 1273–1282. PMLR, 2017.                   Yang, Q., Liu, Y., Chen, T., and Tong, Y. Federated machine
                                                                      learning: Concept and applications. TITS, 10(2):1–19,
Mendieta, M., Yang, T., Wang, P., Lee, M., Ding, Z., and
                                                                      2019.
 Chen, C. Local learning matters: Rethinking data hetero-
 geneity in federated learning. In CVPR, pp. 8397–8406,             Yao, Z., Cao, Y., Zheng, S., Huang, G., and Lin, S. Cross-
 2022.                                                                iteration batch normalization. In CVPR, pp. 12331–
                                                                      12340, 2021.
Peng, H., Yu, Y., and Yu, S. Re-thinking the effectiveness
  of batch normalization and beyond. TPAMI, 2023.                   Yong, H., Huang, J., Hua, X., and Zhang, L. Gradient
                                                                      centralization: A new optimization technique for deep
Pham, Q., Liu, C., and Hoi, S. Continual normalization:
                                                                      neural networks. In ECCV, pp. 635–652. Springer, 2020.
  Rethinking batch normalization for online continual learn-
  ing. arXiv preprint arXiv:2203.16102, 2022.                       Zhang, G., Beitollahi, M., Bie, A., and Chen, X. Under-
                                                                      standing the role of layer normalization in label-skewed
Qu, Z., Li, X., Duan, R., Liu, Y., Tang, B., and Lu, Z.               federated learning. TMLR, 2024.
  Generalized federated learning via sharpness aware mini-
  mization. In ICML, pp. 18250–18280. PMLR, 2022.                   Zhao, Y., Li, M., Lai, L., Suda, N., Civin, D., and Chandra,
                                                                      V. Federated learning with non-iid data. arXiv preprint
Reddi, S., Charles, Z., Zaheer, M., Garrett, Z., Rush, K.,            arXiv:1806.00582, 2018.
  Konečnỳ, J., Kumar, S., and McMahan, H. B. Adaptive
  federated optimization. arXiv preprint arXiv:2003.00295,          Zhong, J., Chen, H.-Y., and Chao, W.-L. Making batch nor-
  2020.                                                               malization great in federated deep learning. In NeurIPS
                                                                      Workshop, 2023.
Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., and
  Chen, L.-C. Mobilenetv2: Inverted residuals and linear            Zhuang, W. and Lyu, L. Fedwon: Triumphing multi-domain
  bottlenecks. In CVPR, pp. 4510–4520, 2018.                          federated learning without normalization. In ICLR, 2024.

                                                               11


===== PDF PAGE 12 =====
            Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

Zhuang, W., Xu, J., Chen, C., Li, J., and Lyu, L. COALA: A
  practical and vision-centric federated learning platform.
  In ICML, 2024.




                                                              12


===== PDF PAGE 13 =====
              Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

A. Problem Formulation
A.1. Statistical Bias of Vanilla BN in FL
In centralised training scenarios, internal covariate shift (Ioffe, 2015) refers to the change in the input distribution of each
layer during the training of deep neural networks due to updates in model parameters. BN can effectively solve this problem
under centralised training. However, in the context of federated learning, the changes in model parameters also occurs
during the global aggregation stage. This results in the statistical measures obtained locally no longer being applicable
globally, a phenomenon known as external covariate shift (Du et al., 2022). We can deduce that this statistical bias is caused
by the heterogeneity of the distribution.
Let us consider the statistical bias of BN during one server-client communication caused by FedAvg. Assuming ωgt−1 is
the initial model of the server in round t − 1. Each client k ∈ [K] downloads the global model as the initialisation of the
local model, and trains it on local dataset Dk . Due to the fact that the statistical parameters in vanilla BN are updated
synchronously with the learnable parameters, the statistical parameters obtained in each locality are approximate estimates
of ωkt = ωgt−1 − η∇L(ωgt−1 , Dk ) on Dk , i.e.,

                                                                          kN
                                                                     1 X
                                                            µtk =           f (ωkt , xik );
                                                                     Nk i=1
                                                                                                                             (12)
                                                                          kN
                                                                     1 X
                                                        (σ 2 )tk =          (f (ωkt , xik ) − µtk )2 ,
                                                                     Nk i=1

where f (·) is the output of model ω before normalising all layers of the sample x.
Then, the server aggregates the parameters of each client model, including the statistical parameters of BN. Ideally, we
would like to obtain the following global statistics:
                                                                     K
                                                                     k     N
                                                                1 XX
                                                       µ̂tg =          f (ωgt , xik );
                                                                N  i=1
                                                                     k=1
                                                                                                                             (13)
                                                                      k    K     N
                                                                 1 XX
                                                   (σ̂ 2 )tg =          (f (ωgt , xik ) − µ̂tg )2 ,
                                                               N −1 i=1    k=1

              Nk PK
where ωgt = N             t
                     k=1 ωk .

                             between the average of local statistics and the ideal global statistics. We consider the difference
However, there is a deviationP
                               K
between the mean µtg = NNk k=1 µtk and the ideal mean µ̂tg :
                                     K
                               Nk X t
           |µtg − µ̂tg | = |       µk − µ̂tg |
                               N
                                    k=1
                                     Nk
                                   K X                               K
                                                                     k     N
                               1   X                            1 XX
                       =|                    f (ωkt , xik ) −          f (ωgt , xik )|
                               N                                N
                                   k=1 i=1                         i=1
                                                                     k=1
                                                                                                                             (14)
                                     Nk
                                   K X
                         1         X
                       =                     |f (ωkt , xik ) − f (ωgt , xik )|
                         N
                                   k=1 i=1
                                k  K     N                                                               K
                           1 XX                                                      Nk X
                       =          |f (ωgt−1 − η∇L(ωgt−1 , Dk ), xik ) − f (ωgt−1 − η      ∇L(ωgt−1 , Dk ), xik )|.
                           N  i=1
                                                                                     N
                                   k=1                                                                   k=1

It can be seen that the deviation of the mean is caused by the inconsistency between the local updates (∇L(ωgt−1 , Dk )) and
                         PK
the global updates ( NNk k=1 ∇L(ωgt−1 , Dk )). Only when the data of each local client follows the same distribution will
the local updates be consistent with the global updates, which contradicts the non-independent and identically distributed
(Non-IID) in federated learning. Therefore, the greater the difference in data distribution, the greater the offset of statistical
parameters.

                                                                                 13


===== PDF PAGE 14 =====
                Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

A.2. Obtain Unbiased Global Statistics
Recognising that statistical bias is produced during the update stage, where the local statistical parameters and learnable
parameters are jointly updated, we have sufficient motivation to separate their updates. In the stage of calculating local
statistics, we freeze the learnable parameters to get:
                                                                       N
                                                                       k
                                                                  1 X
                                                          µtk =          f (ωgt−1 , xik );
                                                                  Nk i=1
                                                                                                                         (15)
                                                                       N
                                                                       k
                                                                  1 X
                                                       (σ 2 )tk =        (f (ωgt−1 , xik ) − µtk )2 .
                                                                  Nk i=1

Then in the server stage, we can use distributed methods to aggregate these statistics to obtain an unbiased estimate of the
population according to Equation (8):
                K
                X Nk
      µtg =               µtk
                      N
                k=1
                K    Nk
                X Nk X  1
          =                         f (ωgt−1 , xik )
                      N i=1 Nk
                k=1
                     kK   N
                1 XX
          =            f (ωgt−1 , xik )
                N  i=1
                   k=1
          = µ̂t−1
              g ;
                          K
                 Nk X  2 t
   (σ 2 )tg =          (σ )k + (µtk − µtg )2
                                             
                N −1
                          k=1
                        k K     N
                  1 XX
          =          [ (f (ωgt−1 , xik ) − µtk )2 + Nk (µtk − µtg )2 ]                                                   (16)
                N −1  i=1 k=1
                        k K     N
                  1 XX
          =          [ (f 2 (ωgt−1 , xik ) − 2f (ωgt−1 , xik )µtk + (µtk )2 ) + Nk ((µtk )2 − 2µtk µtg + (µtg )2 )]
                N −1  i=1 k=1
                 K Nk                  Nk
              1 XX       2  t−1  i
                                       X
          =       [     f (ωg , xk ) −     2f (ωgt−1 , xik )µtk + Nk (µtk )2 + Nk (µtk )2 − 2Nk µtk µtg + Nk (µtg )2 ]
            N −1    i=1                i=1
                          k=1
                         kK     N
                  1 XX
          =          [     f 2 (ωgt−1 , xik ) − 2Nk µtk µtg + Nk (µtg )2 ]
                N −1   i=1k=1
                       k  K     N
                  1 XX
          =              (f (ωgt−1 , xik ) − µtg )2
                N −1 i=1
                    k=1
               2 t−1
          = (σ̂ )g .

Therefore, we can obtain unbiased estimates of model ωgt−1 on the overall data without being affected by heterogeneous
data distributions.

B. More Experiments
B.1. Model architecture of Simple-CNN
As shown in Table 7, Simple-CNN mainly consists of three convolutional blocks and two fully connected layers. Each
convolutional block contains a convolutional layer, a norm layer, a ReLU activation layer, and a max-pooling layer. We
replace the norm layer with different normalisation methods, except for FedFN. For FedFN, we normalise the input before
the fully connected layer according to (Zhang et al., 2024).

                                                                            14


===== PDF PAGE 15 =====
            Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

Table 7: Model architecture of Simple-CNN with different normalisation layers (BN/GN/LN/FixBN/FBN/FedFN/HBN).

                        Simple-CNN    +BN     +GN    +LN   +FixBN +FBN         +FedFN   +HBN
                                                         Conv2D(3,16,3,1,1)
                                       BN     GN      LN    FixBN     FBN        -       HBN
                          Block 1
                                                                ReLU
                                                          MaxPool2D(2,2)
                                                         Conv2D(16,32,3,1,1)
                          Block 2      BN     GN      LN    FixBN     FBN        -       HBN
                                                                ReLU
                                                          MaxPool2D(2,2)
                                                         Conv2D(32,64,3,1,1)
                                       BN     GN      LN    FixBN     FBN        -       HBN
                          Block 3
                                                                ReLU
                                                          MaxPool2D(2,2)
                                        -       -      -       -        -      FedFN       -
                                                            FC(1024,128)
                          Block 4
                                                                ReLU
                          Block 5                            FC(128,n)

B.2. Datasets
We mainly evaluate our algorithm on three image classification datasets:

  • CIFAR-10: CIFAR-10 It consists of 60,000 32x32 color images, divided into 10 classes with 6,000 images per class.
  • CIFAR-100: CIFAR-100 consists of 60,000 32x32 color images, divided into 100 classes with 6,00 images per class.
  • Tiny-ImageNet: A smaller version of the ImageNet dataset. Tiny-ImageNet consists of 100,000 64x64 color images,
    divided into 200 classes with 5,00 images per class.

B.3. Convergence Curves of Different Model Architectures




  Figure 6: Convergence curves of HBN under different model architectures on CIFAR-100 with ϕ = 0.1 and B = 64.

As shown in Figure 6, we plot the convergence curves of the above three normalisation methods under different model
architectures, and HBN is significantly better than the other two normalisation methods in terms of convergence.

                                                           15


===== PDF PAGE 16 =====
            Hybrid Batch Normalisation: Resolving the Dilemma of Batch Normalisation in Federated Learning

B.4. Learning Rate Grid Search
Since different normalisation techniques operate on distinct dimensions (e.g., batch, layer, or group), they induce varying
scale transformations in the data. This necessitates tuning of learning rates to match their respective normalisation. We
present the learning rate grid search results on three datasets in Table 8.

                                Table 8: Learning rate grid search results on three datasets

                                               CIFAR-10 (β = 0.6, B = 4)
             Methods     Search range                              Accuracy
             BN          [0.02, 0.01, 0.005, 0.001]                [75.36, 75.83, 74.29, 73.37]
             GN          [0.01, 0.005, 0.002, 0.001, 0.0005]       [74.08, 75.74, 73.47, 73.10, 70.01]
             LN          [0.01, 0.005, 0.002, 0.001]               [N/A, 74.55, 74.34, 74.0]
             FedFN       [0.01, 0.005, 0.002, 0.001, 0.0005]       [75.33, 75.51, 75.49, 75.44, 74.30]
             FixBN       [0.01, 0.005, 0.002, 0.001]               [75.65, 76.91, 77.34, 75.30]
             FBN         [0.01, 0.005, 0.002, 0.001]               [73.91, 73.05, 72.44, 68.16]
             HBN         [0.02, 0.01, 0.005, 0.001]                [78.08, 78.22, 77.90, 69.30]
                                               CIFAR-100 (β = 0.6, B = 4)
             Methods     Search range                              Accuracy
             BN          [0.05, 0.02, 0.01, 0.005, 0.001]          [N/A, 45.77, 45.84, 45.54, 45.13]
             GN          [0.02, 0.01, 0.005, 0.002, 0.001, 0.0005] [N/A, 44.47, 46.70, 46.99, 47.11, 39.25]
             LN          [0.01, 0.005, 0.002, 0.001, 0.0005]       [N/A, 42.43, 46.90, 45.04, 31.48]
             FedFN       [0.01, 0.005, 0.002, 0.001, 0.0005]       [N/A, 43.75, 44.15, 46.29, 35.15]
             FixBN       [0.01, 0.005, 0.002, 0.001, 0.0005]       [43.72, 46.05, 43.90, 32.47, 32.48]
             FBN         [0.02, 0.01, 0.005, 0.002, 0.001]         [45.35, 43.68, 43.33, 39.11, 35.47]
             HBN         [0.02, 0.01, 0.005, 0.001]                [44.93, 49.88, 49.36, 49.11]
                                             Tiny-ImageNet (β = 0.1, B = 64)
             Methods     Search range                              Accuracy
             BN          [0.32, 0.16, 0.08, 0.032, 0.016]          [23.45, 23.95, 21.92, 20.07, 15.39]
             GN          [0.32, 0.16, 0.08, 0.032, 0.016]          [16.56, 18.43, 19.71, 18.40, 15.71]
             LN          [0.32, 0.16, 0.08, 0.032, 0.016]          [16.28, 18.07, 19.72, 18.53, 15.31]
             FedFN       [0.32, 0.16, 0.08, 0.032, 0.016]          [14.92, 20.05, 19.38, 18.61, 16.17]
             FixBN       [0.32, 0.16, 0.08, 0.032, 0.016]          [24.71, 24.62, 22.95, 20.38, 15.65]
             FBN         [0.32, 0.16, 0.08, 0.032, 0.016]          [N/A, N/A, 4.90, 3.40, 2.32]
             HBN         [0.32, 0.16, 0.08, 0.032, 0.016]          [25.59, 24.79, 23.76, 22.0, 17.21]




         Figure 7: Experiments on CIFAR-100 (β = 0.6, B = 32) across varying local epochs by Simple-CNN.


B.5. Different local training epochs
Figure 7 shows the changes in model accuracy with increasing local epochs for three normalisation methods. HBN maintains
its advantage within an appropriate range of local epochs. When the number of epochs reaches 10, different normalisation
methods no longer have a significant impact on model performance, as the primary limiting factor at this stage becomes the
excessive divergence among local model parameters.

                                                            16
