In standard centralized machine learning, we assume that training data is independent and identically distributed (IID). When we transition to federated learning (FL), this assumption completely breaks down. Because devices belong to different users with unique habits, geographic locations, and environments, the data generated across the network is highly skewed. This phenomenon is known as data heterogeneity (or non-IID data).
To understand why data heterogeneity breaks standard federated learning algorithms like Federated Averaging (FedAvg), imagine two edge devices training a model to classify images. Client A has only pictures of cats, while Client B has only pictures of dogs. If both clients run local Stochastic Gradient Descent (SGD) for several steps before synchronizing, Client A’s model parameters will drift deep into a region of the loss surface that optimizes solely for cats. Meanwhile, Client B’s model drifts entirely toward dogs. When the central server averages these two highly specialized models, the resulting global model often lands in a sub-optimal middle ground that fails to perform well on either animal.
As shown by Ahmed Khaled et al. in Tighter Theory for Local SGD on Identical and Heterogeneous Data, this diversity across local datasets introduces a persistent gradient variance that slows down or completely destabilizes convergence. In fact, Hao Yu et al. demonstrated in Parallel Restarted SGD with Faster Convergence and Less Communication: Demystifying Why Model Averaging Works for Deep Learning that while periodic model averaging works exceptionally well under IID assumptions, non-IID data invalidates standard parallel optimization guarantees.
To make federated learning viable in the real world, researchers have developed several core strategies to mitigate client drift.
Differentiating Aggregation Across Layers
One powerful intuition for tackling data heterogeneity is recognizing that a neural network is not a monolithic block; different layers capture different types of information. The early layers (the representation extractor) learn general features like edges, textures, or linguistic syntax, which are largely invariant across clients. The final layers (the head) map these features to specific labels, which are highly client-dependent.
Instead of averaging the entire model at a uniform frequency, we can decouple how different layers are aggregated. In Communication Efficient Federated Learning with Differentiated Aggregation, Peyman Gholami et al. proposed a framework (FedALS) that aggregates the representation extractor layers less frequently and the decision head layers more frequently. By allowing local feature extractors more time to stabilize while tightly synchronizing the decision heads, the framework prevents client drift from destroying the shared representation space.
Taking architectural flexibility even further, some approaches abandon the idea of a uniform global model entirely. For instance, Yuxuan Zhu et al. introduced FedTrans: Efficient Federated Learning via Multi-Model Transformation, which dynamically widens or deepens local models to fit both the hardware constraints and the severe data heterogeneity of individual edge devices. Similarly, Wenke Huang et al. developed an adaptive framework in Adaptive heterogeneous federated learning that uses random noise as a communication medium to distill knowledge across completely different client architectures, bypassing the need for a rigid, shared global model structure.
Intelligent Client Selection and Data Valuation
If clients have wildly conflicting data distributions, blindly aggregating updates from every available device can introduce massive gradient variance. A more strategic approach treats client aggregation as a curated selection problem: which clients actually provide constructive updates to the global model at any given time?
To address this, Chunlin Tian et al. proposed FedRank in Ranking-based Client Imitation Selection for Efficient Federated Learning. Instead of scoring clients in isolation, the authors frame client selection as a pairwise ranking problem using imitation learning. By identifying and prioritizing clients whose local data distributions offer the highest-quality, non-redundant information, they prevent low-quality or conflicting updates from destabilizing the global model's trajectory.
From a data-marketplace perspective, Wenqian Li et al. developed a privacy-preserving valuation mechanism called CombineWad in Data Valuation and Selection in a Federated Model Marketplace. By utilizing a Wasserstein-based estimator on small-scale pilot runs, the server can predict how a specific mixture of heterogeneous data providers will impact final model performance without ever inspecting the raw, sensitive data.
Alternatively, rather than filtering clients at the server level, clients can fix their own internal distribution imbalances. In ISFL: Federated Learning for Non-i.i.d. Data With Local Importance Sampling, Zheqi Zhu et al. introduced local importance sampling. By dynamically re-weighting local training samples during local SGD, clients can artificially counteract their own non-IID skew, ensuring that local optimization trajectories align more closely with a balanced global distribution.
Constraining the Optimization Space
Another intuitive angle is to force local updates to remain within a well-behaved, shared optimization landscape, preventing them from drifting too far apart in high-dimensional space.
In Personalized Federated Learning towards Communication Efficiency, Robustness and Fairness, Shiyun Lin et al. introduced a projection framework (lp-proj) that maps local model updates into a shared, fixed, low-dimensional random subspace. Because all clients are forced to optimize within the same restricted subspace, the geometric divergence caused by non-IID data is fundamentally bounded, which simultaneously reduces communication overhead and improves performance fairness across heterogeneous users.
Finally, the order in which data is introduced across the federation matters. In Fisher Information-based Efficient Curriculum Federated Learning with Large Language Models, Ji Liu et al. leveraged Fisher Information to design an "easy-to-hard" data curriculum across decentralized clients (FibecFed). By scheduling updates based on the informational difficulty and quality of each client's heterogeneous data, the global model converges smoothly, avoiding the training instabilities that typically occur when a model is suddenly exposed to highly skewed local distributions.