FAGH: Accelerating Federated Learning with Approximated Global Hessian

Mrinmay Sen, A. Kai Qin, Krishna Mohan CarXiv 2024 · DOI

Introduction

In the landscape of Federated Learning (FL), communication remains the primary bottleneck. Training robust models across thousands of distributed edge devices typically necessitates hundreds of communication rounds to synchronize model updates. While first-order optimization methods like FedAvg are widely adopted for their simplicity and low per-round overhead, they often suffer from slow convergence, particularly when faced with highly heterogeneous (non-IID) data distributions across clients.

A new approach, "FAGH: Accelerating Federated Learning with Approximated Global Hessian," introduces a method to leverage second-order optimization—which accounts for the "curvature" of the loss landscape—to achieve significantly faster convergence. Crucially, FAGH avoids the prohibitive computational and memory costs traditionally associated with Hessian-based methods, making it viable for resource-constrained edge environments.

The Challenge of Second-Order FL

Standard FL algorithms rely on Stochastic Gradient Descent (SGD), a first-order method that only utilizes the gradient (the direction of steepest descent). In contrast, Newton’s method uses the Hessian matrix (the second derivative) to understand the landscape's curvature, allowing for larger, more precise steps toward the optimum.

However, for a model with $d$ parameters, the Hessian is a $d \times d$ matrix. For modern deep learning models with millions of parameters, calculating, storing, and inverting such a matrix is computationally impossible for mobile devices. Previous attempts to adapt Newton's method for FL have either required excessive communication or remained too computationally heavy for edge clients.

The FAGH Methodology

The core innovation of FAGH (Federated learning with Approximated Global Hessian) is a mathematical shortcut that reduces the complexity of second-order optimization to that of first-order methods. The authors demonstrate that for non-linear, twice-differentiable loss functions (such as cross-entropy), the global Hessian can be effectively approximated using only its first row.

The FAGH Workflow

  1. Local Computation: Each client computes the gradient and the first row of the local Hessian. This maintains a local complexity of $O(d)$, identical to standard SGD.
  2. Server Aggregation: The server aggregates these first rows and gradients, utilizing an exponential moving average (momentum) to maintain stability despite partial client participation.
  3. The Sherman-Morrison Trick: To update the model, the server must multiply the gradient by the inverse of the approximated Hessian. While inverting a $d \times d$ matrix is typically an $O(d^3)$ operation, the rank-1 structure of the FAGH approximation allows the server to use the Sherman-Morrison formula to compute the inverse in linear $O(d)$ time.
  4. Global Update: The server broadcasts the updated global model back to the participating clients.

Experimental Evaluation

The authors validated FAGH against several state-of-the-art baselines, including SCAFFOLD, FedGA, and FedExP, across three standard benchmarks: CIFAR-10 (LeNet5), FashionMNIST (5-layer CNN), and EMNIST-letters (Multinomial Logistic Regression). To simulate real-world conditions, data was partitioned using a Dirichlet distribution ($\alpha=0.2$) to ensure high heterogeneity.

Training and test performance on CIFAR-10 over 100 communication rounds. FAGH (red) demonstrates superior convergence speed and final accuracy compared to SCAFFOLD, FedGA, and FedExP.

Results and Discussion

FAGH consistently outperformed both first-order and existing second-order baselines across multiple metrics:

  • Communication Efficiency: On the CIFAR-10 dataset, FAGH reached 45% test accuracy in just 78 rounds. Competing methods like SCAFFOLD and FedExP failed to reach this threshold within the 100-round experimental limit.
  • Wall-Clock Time: A common criticism of second-order methods is that their per-round computation negates their round-based efficiency. However, FAGH's $O(d)$ complexity ensures that its total training time is significantly lower. For EMNIST, FAGH reached target loss levels nearly twice as fast as second-order competitors like GIANT.
  • Robustness to Heterogeneity: In non-IID settings, FAGH achieved higher peak test accuracy, suggesting that the curvature information provided by the approximated Hessian helps the model navigate the "data drift" inherent in federated environments.
Test accuracy relative to wall-clock time. FAGH achieves higher accuracy in less total training time, proving the computational efficiency of the first-row Hessian approximation.

Conclusion and Future Work

FAGH represents a significant step forward in making second-order optimization practical for Federated Learning. By approximating the Hessian with a single row, it captures essential curvature information while maintaining linear complexity.

Future research directions include addressing the increased communication volume (as FAGH sends $2d$ parameters per round) through compression techniques and exploring the privacy implications of sharing Hessian rows. Integrating Differential Privacy (DP) or Secure Multi-Party Computation (SMPC) will be critical for deploying FAGH in privacy-sensitive applications.

Summary updated

BibTeX
@misc{sen2024fagh,
  author = {Mrinmay Sen and A. Kai Qin and Krishna Mohan C},
  title = {{FAGH: Accelerating Federated Learning with Approximated Global Hessian}},
  year = {2024},
  eprint = {2403.11041},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.11041},
}
Figure