Federated Learning (FL) allows a central server to train a global machine learning model across thousands of decentralized edge devices—such as smartphones or medical imaging servers—without ever collecting their raw data. In an ideal world, every device would have access to data drawn from the exact same distribution. In reality, however, edge data is highly heterogeneous (non-IID). A smartphone user in Japan types differently than a user in Brazil; one hospital's MRI machine uses a different protocol than another's.
To minimize the massive communication overhead of sending model updates back and forth across the network, standard FL algorithms like Federated Averaging (FedAvg) allow clients to perform multiple local optimization steps (epochs) on their private data before sending their updates back to the server. However, when combined with data heterogeneity, this optimization strategy introduces a fundamental failure mode known as client drift.
The Geometry of Client Drift
To understand why client drift occurs, we have to look at the geometry of the loss landscapes. Every client $i$ has its own local objective function $f_i(\theta)$ based on its local data. The ultimate goal of the central server is to minimize the global objective function, which is the average of all local objectives:
$$F(\theta) = \frac{1}{N} \sum_{i=1}^N f_i(\theta)$$
If we only perform a single step of Stochastic Gradient Descent (SGD) on each client before averaging their updates at the server, the process behaves exactly like standard Distributed SGD. The variance between client gradients acts as random noise, which cancels out when averaged over a large enough batch of clients.
But when clients perform multiple local steps, the situation changes dramatically. Instead of just computing a gradient at the current global model position, each client actively optimizes its local model toward its own local optimum.
As Sai Praneeth Karimireddy et al. demonstrate in SCAFFOLD: Stochastic Controlled Averaging for On-Device Federated Learning, data heterogeneity acts as a systematic bias rather than zero-mean noise. Because the local gradient $\nabla f_i(\theta)$ is a biased estimator of the global gradient $\nabla F(\theta)$, every consecutive local step compounds this bias. The local models "drift" away from the global trajectory, overfitting to their specific client-side distributions.
When the server averages these drifted weights, the resulting global model often lands in a region of high loss for all participants. This weight divergence severely degrades convergence speed, causes training instability, and hurts final model accuracy.
Standard Distributed SGD (1 step):
Global Model ──> Client Gradients (Noise cancels out) ──> Optimal Global Step
Multi-step FedAvg (with Heterogeneous Data):
Global Model ──> Client A optimizes to Local Optimum A ┐
└──> Client B optimizes to Local Optimum B ┴─> Averaged Model (Suboptimal/Drifted)
Correcting Trajectories via Control Variates
If client drift is caused by a systematic bias in local gradients, the most direct solution is to estimate and subtract that bias. This is the core mechanism behind variance-reduction frameworks.
In SCAFFOLD, the authors introduce state variables called control variates to track the drift. The server maintains a global control variate $c$, while each client $i$ maintains a local control variate $c_i$. The difference $(c - c_i)$ serves as an explicit estimate of the bias between the global gradient and the client's local gradient.
During local training, instead of updating weights using the raw local gradient $\nabla f_i(\theta)$, the client uses a corrected gradient:
$$g_i(\theta) = \nabla f_i(\theta) - c_i + c$$
This correction dynamically nudges the client's optimization trajectory back toward the global objective, ensuring that even after multiple local steps, the model does not wander off toward the local optimum. Emre Ozfatura et al. build upon this intuition in FedADC: Accelerated Federated Learning with Drift Control, demonstrating that combining drift-correcting control variates with acceleration techniques can significantly stabilize the global aggregation path.
Server-Side Adaptivity and Pseudo-Gradients
An alternative perspective shifts the responsibility of drift mitigation from the clients to the central server. If clients are bound to produce drifted updates due to their heterogeneous data, how can the server aggregate them more intelligently than simple weight averaging?
Sashank J. Reddi et al. address this in Adaptive Federated Optimization (FedOpt). They propose that the server should treat the aggregated client update not as a direct replacement for the global weights, but as a pseudo-gradient.
If $\theta_t$ is the global model at round $t$, and $\Delta_t$ is the average of the client updates after their local training, the server treats $-\Delta_t$ as the direction of the global gradient. The server can then pass this pseudo-gradient into an adaptive optimization algorithm—such as Adam, Adagrad, or Yogi—maintained entirely at the server level. By using historical update momentum and adaptive learning rates, the server smooths out the erratic, drifted trajectories sent by individual clients, stabilizing global convergence without increasing the computational or storage burden on the edge devices.
Altering the Loss Landscape and Model Fusion
Rather than trying to correct the optimization paths mathematically, some researchers focus on changing the underlying geometry of the problem or bypassing weight averaging entirely.
Seeking Flat Minima
Client drift is particularly destructive when the local loss landscapes contain sharp, narrow valleys. If a client model drifts into a sharp local minimum, its weights change drastically, making parameter averaging highly destructive.
To counter this, Barbara Caputo et al. propose a geometric intervention in Improving Generalization in Federated Learning by Seeking Flat Minima. By utilizing Sharpness-Aware Minimization (SAM) on the client side, local models are forced to look for "flat minima"—regions where the loss remains low even if the weights are slightly perturbed. When the server aggregates these models using Stochastic Weight Averaging (SWA), the flat regions overlap more gracefully, rendering the global model highly resilient to the weight divergence caused by non-IID data.
Feature Alignment and Generalization
Instead of forcing local model weights to remain strictly close to the global model, some approaches focus on aligning the underlying representations. Matías Mendieta et al. argue in Local Learning Matters: Rethinking Data Heterogeneity in Federated Learning that strict weight constraints can harm local learning. They introduce FedAlign, a method that uses lightweight regularization to align feature representations across clients, allowing local models to adapt to local data distributions while maintaining strong global generalization properties.
Prediction-Based Fusion
When data heterogeneity is extreme, local updates can drift into entirely different valleys of the loss landscape. In this scenario, averaging the parameters of two good models can yield a global model that performs worse than either individual model.
To solve this, Tao Lin et al. introduce Ensemble Distillation for Robust Model Fusion in Federated Learning (FedDF). Instead of averaging model weights, the server treats the drifted client models as an ensemble. The server passes an auxiliary, unlabeled dataset through this ensemble to aggregate their predictions, and then trains the new global model via knowledge distillation. By fusing models in the prediction space rather than the weight space, FedDF completely sidesteps the destructive interference caused by parameter-level client drift.