FedBN (Federated Batch Normalization) is a federated averaging variant where the batch normalization (BN) layers within a neural network are excluded from server aggregation. During each communication round, clients train locally, but only share updates for non-BN parameters (e.g., convolutional or linear layer weights) with the server. The BN statistics—the mean and variance used to normalize activations—are calculated from and remain specific to each client's local data distribution. This method directly addresses feature distribution shift, a core challenge of non-IID data in federated systems.
Glossary
FedBN

What is FedBN?
FedBN (Federated Batch Normalization) is a specialized federated learning algorithm designed to improve model performance on statistically heterogeneous (non-IID) client data by localizing batch normalization parameters.
By keeping batch normalization local, FedBN prevents the aggregation of mismatched statistics that would otherwise degrade model performance. The global model converges with a set of shared feature extractors, while each client's BN layers adapt to its unique data environment. This approach is particularly effective for personalized federated learning and vision tasks, often outperforming standard FedAvg on heterogeneous datasets without adding significant communication or computational overhead. It is a foundational technique within the broader Federated Edge Learning pillar.
Key Features of FedBN
FedBN (Federated Batch Normalization) is a specialized federated learning algorithm designed to handle feature distribution shift across clients by localizing batch normalization statistics.
Local Batch Normalization Statistics
The core mechanism of FedBN is that batch normalization (BN) layers are not aggregated. Each client maintains its own local running mean and variance statistics for its BN layers. During local training, a client uses its own stored statistics for normalization. This allows the model to adapt to the unique feature distribution (e.g., lighting, style, sensor calibration) of each client's data without forcing a harmful consensus on these statistics.
Mitigation of Feature-Shift Non-IID Data
FedBN specifically addresses covariate shift and feature distribution shift, a common form of non-IID data in real-world federated settings. Examples include:
- Medical imaging from different hospitals with varying scanner protocols.
- Autonomous vehicles operating in distinct geographic regions with different weather and lighting.
- Mobile keyboards used by populations with different linguistic styles. By not averaging BN statistics, the model's feature normalization is tailored to each client's environment, preventing performance degradation caused by conflicting statistical signals.
Selective Parameter Aggregation
The server aggregation step in FedBN is modified. Only non-BN parameters (e.g., weights from convolutional or linear layers) are averaged using standard Federated Averaging (FedAvg). The parameters of the BN layers (scale gamma and shift beta) are also typically aggregated, as they represent learned affine transformations. However, the critical statistical moments (mean, variance) remain exclusively local, decoupling the collaborative learning of features from the client-specific normalization of activations.
Improved Convergence & Final Accuracy
On tasks with significant feature shift, FedBN demonstrates:
- Faster convergence compared to vanilla FedAvg, as clients aren't fighting over divergent BN statistics.
- Higher final test accuracy on both local client data and global test sets.
- Reduced client drift, because the local optimization landscape is stabilized by client-appropriate normalization. Empirical results on benchmark datasets like DomainNet show accuracy improvements of over 10% in some domains compared to FedAvg.
Architectural Assumption & Limitation
FedBN assumes the neural network architecture contains batch normalization layers. Its benefits are most pronounced in architectures like CNNs and Vision Transformers where BN is standard. A key limitation is that it does not directly address label distribution skew (concept shift), which requires other personalization techniques. The method also introduces slight additional client-side memory overhead to store local BN statistics.
Foundation for Personalized FL
FedBN is a precursor to many personalized federated learning methods. Its principle—keeping certain parameters client-specific—inspires approaches like FedPer (personalized classifier heads) and FedRep (personalized representations). It establishes a hybrid model where a global feature extractor is shared, but the interface to client-specific data distributions is localized, balancing collaboration with adaptation.
FedBN vs. Standard FedAvg
A technical comparison of the Federated Batch Normalization (FedBN) algorithm against the foundational Federated Averaging (FedAvg) protocol, focusing on architectural differences and performance under data heterogeneity.
| Feature / Metric | Standard FedAvg | FedBN (Federated Batch Normalization) |
|---|---|---|
Core Aggregation Method | Weighted averaging of all model parameters | Weighted averaging of all parameters except batch norm statistics |
Batch Normalization Handling | Statistics (mean, variance) are aggregated globally | Statistics (mean, variance) remain strictly local per client |
Primary Design Goal | Learn a single, globally optimal model | Improve global model performance on non-IID (statistically heterogeneous) data |
Mitigates Client Drift via | Proximal terms (FedProx), control variates (SCAFFOLD), normalized averaging (FedNova) | Local feature distribution alignment via un-aggregated batch norm layers |
Communication Cost per Round | Identical (transmits full model delta) | Identical (transmits full model delta, excluding local stats) |
Server Computation Overhead | Standard weighted average | Standard weighted average (with parameter masking for BN layers) |
Client-Side Computation Overhead | Standard local SGD | Standard local SGD with local batch norm stat calculation |
Typical Accuracy Gain on Non-IID Data | 3-10% (domain-dependent) | |
Model Personalization Capability | Requires separate algorithms (e.g., FedPer, FedRep) | Provides implicit personalization via local feature normalization |
Compatibility with Other FedOpt Techniques | True (can be combined with FedProx, SCAFFOLD, etc.) |
Frequently Asked Questions
FedBN addresses a core challenge in federated learning: training on statistically heterogeneous (non-IID) client data. These questions clarify its mechanism, advantages, and implementation.
FedBN (Federated Batch Normalization) is a federated learning algorithm where the batch normalization (BN) layers within a neural network are not aggregated by the central server but remain local to each client. In standard federated averaging, all model parameters, including BN statistics (mean and variance), are averaged. FedBN decouples these statistics, allowing each client to maintain and use its own feature distribution estimates during local inference, which significantly improves performance on non-IID data.
Mechanism:
- The server initializes a global model with BN layers.
- During each communication round, clients receive the global model but freeze and do not transmit the parameters of their local BN layers.
- Clients train locally, updating all other parameters (e.g., convolutional weights) while also updating their local BN statistics based on their private data.
- Clients send back updates for all non-BN parameters.
- The server aggregates these updates (e.g., via weighted averaging) to form a new global model, while the BN parameters remain untouched and distinct on each device.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
FedBN operates within the broader ecosystem of federated optimization algorithms. These related terms define the specific challenges it addresses and the alternative methods developed for robust decentralized training.
Statistical Heterogeneity (Non-IID Data)
The core challenge FedBN is designed to address. In federated learning, statistical heterogeneity means the data distributions across clients are not Independent and Identically Distributed (non-IID). This manifests as:
- Feature distribution shift: The same feature (e.g., pixel brightness in images) has different statistical properties (mean, variance) per client.
- Label distribution skew: The prevalence of certain classes varies drastically between clients.
- Concept shift: The relationship between features and labels differs. FedBN mitigates the effects of feature distribution shift by localizing batch normalization statistics.
Client Drift
A direct consequence of statistical heterogeneity where local client models diverge from the global objective during local training. This occurs because each client's SGD updates point toward the optimum of its local data distribution, not the global one. Effects include:
- Slowed or unstable convergence of the global model.
- Final model performance degradation.
- FedBN reduces client drift caused by feature distribution shifts by preventing the aggregation of local normalization parameters, which would otherwise pull the global model in conflicting directions.
Personalized Federated Learning (PFL)
A family of techniques aiming to produce models tailored to individual clients' data distributions, rather than a single global model. FedBN is considered a lightweight PFL method. Key approaches include:
- Personalization Layers: Methods like FedPer keep final model layers local.
- Meta-Learning: Framing FL as a meta-learning problem to learn easily adaptable models.
- Model Interpolation: Training a global model alongside local fine-tuned models. FedBN provides personalization implicitly through local batch norm stats, adapting the feature representation per client without changing the core model architecture.
FedProx
A federated optimization algorithm that mitigates client drift by adding a proximal term to the local client loss function. The modified objective is: L_local(w) + (μ/2) * ||w - w_global||^2.
- Mechanism: The proximal term penalizes local updates that stray too far from the global model, acting as a regularizer.
- Contrast with FedBN: FedProx operates on the entire parameter vector via a regularization penalty. FedBN addresses a specific source of drift (feature shift) by architectural modification, leaving other parameters unconstrained. They can be complementary techniques.
SCAFFOLD
Stochastic Controlled Averaging for Federated Learning uses control variates (correction terms) to correct for client drift. Each client maintains a control variate estimating the difference between its local and global gradient direction.
- Update Correction: Clients use their control variate to adjust their local gradient steps before sending updates.
- Server Correction: The server also maintains a global control variate.
- Comparison: SCAFFOLD corrects drift in the update direction. FedBN corrects drift in the feature representation space. SCAFFOLD is algorithm-centric; FedBN is architecture-centric.
Batch Normalization (BatchNorm)
The standard layer FedBN modifies. BatchNorm normalizes the activations of a layer for each mini-batch during training using the batch's mean and variance, then applies a learned affine transformation (scale γ and shift β).
- Standard Practice: In centralized training,
γandβare learned; the running mean/variance are global. - FedBN Modification: In federated learning, FedBN keeps all BatchNorm parameters (
γ,β, running mean, running variance) local and non-aggregated. Only non-BatchNorm parameters are averaged by the server. This simple change provides robustness to feature shift.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us