Machine Learning
New Method Improves Federated Learning by Correcting Gradients Before Optimization
Researchers propose a gradient correction approach that addresses data diversity challenges in distributed machine learning by treating adaptive optimizers differently than standard gradient descent methods.
Federated learning trains machine learning models across multiple devices without centralizing data, but data variations across clients create optimization challenges. A new research paper addresses how to handle these variations when using advanced adaptive optimizers like Adam.
The Core Challenge#
When data differs across federated learning participants, clients can drift away from each other's learning objectives, degrading overall model quality. Researchers have long used drift correction methods with standard gradient descent, but applying the same approach to adaptive optimizers—which maintain running averages of past gradients—proved problematic. Correcting only the final update direction leaves the underlying gradient averages unchanged, meaning the drift problem persists in the internal calculations.
The Proposed Solution#
The team introduces Federated Adaptive Gradient Correction (FA-GC), which applies corrections at an earlier stage: before gradients feed into the running averages rather than after. They contrast this with Federated Adaptive Naive Tracking (FA-NT), which adds corrections to the final output direction. Theoretical analysis shows FA-GC keeps the optimizer moving toward genuine stationary points of the global objective, whereas FA-NT can stall prematurely when using nonlinear optimizers.
Experimental Performance#
Testing across seven image and language tasks demonstrates FA-GC's practical benefits. Compared to uncorrected local Adam and FA-NT, FA-GC typically requires fewer training rounds to achieve target accuracy. On image classification tasks, it also consumes less total communication bandwidth. Performance particularly improves on challenging datasets with strong data heterogeneity—for instance, on the QNLI question-entailment benchmark using advanced optimizers like Muon, FA-GC achieves higher accuracy while FA-NT falls below uncorrected baselines.
Broader Implications#
This work refines how adaptive optimization methods handle federated learning's central tension: coordinating learning across diverse data sources without centralizing information. By targeting the internal mechanics of gradient averaging, the approach may benefit any adaptive optimizer that accumulates gradient history.