FLECS-CGD: A Federated Learning Second-Order Framework via Compression and Sketching with Compressed Gradient Differences

Artem Agafonov, Brahim Erraji, Martin Takác

TL;DR

This paper introduces FLECS-CGD, a novel second-order optimization framework for federated learning that significantly reduces communication costs by compressing not only Hessian approximations but also gradients. This advancement makes FLECS more practical for large-scale distributed optimization problems, offering theoretical convergence guarantees in both strongly convex and nonconvex settings.

What Problem Does This Paper Address?

Federated learning (FL) enables training machine learning models across decentralized devices without sharing raw data. However, communication between devices and the central server is a major bottleneck, especially for complex models. Existing second-order methods in FL, like FLECS, address this by compressing Hessian information. Yet, they still suffer from high communication costs due to uncompressed gradient updates. This paper tackles the challenge of further reducing communication overhead in FL by proposing a method that compresses both Hessian approximations and gradients, making second-order optimization more feasible in practical FL scenarios.

Methods

The core contribution is the FLECS-CGD (FLECS with Compressed Gradient Differences) algorithm. It builds upon the existing FLECS framework, which uses sketching and compression for Hessian approximations. The key innovation here is the addition of gradient compression.

Here's a breakdown of the approach:

  • Second-Order Optimization: The method utilizes second-order information (Hessian approximations) to guide the optimization process, which generally leads to faster convergence than first-order methods.
  • Sketching and Compression (Hessian): Similar to the original FLECS, this framework employs sketching techniques to reduce the dimensionality of Hessian approximations and then compresses these sketched Hessians. This significantly lowers the communication burden for Hessian-related information.
  • Gradient Compression: The novel aspect is the compression of the gradient differences computed locally on each worker. This is achieved using a compression operator $Q$ that satisfies specific properties related to unbiasedness and variance control.
  • Error Feedback: To mitigate the impact of compression errors, an error-feedback mechanism is incorporated, which helps to recover accuracy.
  • Convergence Analysis: The paper provides theoretical convergence guarantees for FLECS-CGD in both the strongly convex and nonconvex settings, demonstrating its robustness.

Datasets

The paper evaluates FLECS-CGD on three standard datasets from the LIBSVM library:

  • gisette-scale: A dataset with 5000 features.
  • real-sim: A dataset with 20958 features.
  • a9a: A dataset with 123 features.

These datasets are used for the regularized logistic regression problem.

Key Insights and Ideas

  • Gradient Compression is Crucial for Second-Order FL: The most significant insight is that compressing gradients, in addition to Hessian approximations, is essential for making second-order methods truly practical in federated learning. Without it, the communication cost of gradients can still dominate.
  • FLECS-CGD Outperforms FLECS with Low Memory: The experiments show that FLECS-CGD achieves better performance than the original FLECS, especially in low memory-size setups (small $m$). This highlights the effectiveness of gradient compression when resources are limited.
  • Theoretical Guarantees are Key: Providing strong theoretical convergence guarantees for both convex and nonconvex cases builds confidence in the method's reliability and scalability.
  • Trade-off Between Compression and Convergence: The paper implicitly demonstrates the trade-off between the level of compression (controlled by parameters like $c$ and $m$) and the convergence speed. The goal is to find an optimal balance.

Key Results

  • Reduced Communication Complexity: FLECS-CGD reduces the communication complexity from $O(cmd + 32d + 32m^2)$ for FLECS to $O(cmd + cd + 32m^2)$, where $c$ is the number of bits per compressed value. This is a substantial improvement, especially for small memory sizes ($m=1$).
  • Improved Performance in Experiments: Figures 1, 2, and 3 illustrate that FLECS-CGD generally outperforms FLECS in terms of objective function value and gradient norm convergence, especially when considering communicated bits per node. This is particularly evident in low memory scenarios.
  • Practical Benefit Demonstrated: The experiments on logistic regression datasets show that the proposed approach offers practical benefits by achieving faster convergence with less communication.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper provides theoretical bounds for step sizes and other parameters, practical performance might still be sensitive to hyperparameter tuning.
  • Assumptions: The convergence proofs rely on certain assumptions about the functions (e.g., strong convexity, L-smoothness) and the compression operator. The performance in scenarios violating these assumptions might differ.
  • Future Work: The authors suggest that further research could explore more advanced compression techniques or investigate the application of FLECS-CGD to other types of machine learning models and distributed optimization problems. The paper also implicitly points towards exploring adaptive compression strategies.

Summary updated

BibTeX
@misc{agafonov2022flecs,
  author = {Artem Agafonov and Brahim Erraji and Martin Takác},
  title = {{FLECS-CGD: A Federated Learning Second-Order Framework via Compression and Sketching with Compressed Gradient Differences}},
  year = {2022},
  eprint = {2210.09626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.09626},
}
Figure