Composite Federated Learning with Heterogeneous Data

Jiaojiao Zhang, Jiang Hu, Mikael Johansson

Federated Learning (FL) has revolutionized how we train models on decentralized data, but it still hits major roadblocks when dealing with non-smooth objectives—like those used for sparsity or low-rank constraints—and highly heterogeneous data. A new paper, "Composite Federated Learning with Heterogeneous Data," introduces a clever algorithmic fix that decouples optimization from communication to overcome these hurdles.

TL;DR

The authors propose a novel Federated Learning algorithm that solves composite (smooth + non-smooth) optimization problems by strategically decoupling proximal operator evaluations from server communication. This approach effectively eliminates "client drift" and the "curse of primal averaging," achieving linear convergence to a neighborhood of the optimal solution while remaining communication-efficient.

What Problem Does This Paper Address?

Standard FL algorithms like Federated Averaging (FedAvg) struggle with two main issues:

  1. Client Drift: When data across different devices (workers) is very different (heterogeneous), local updates tend to pull models toward local optima rather than the global one.
  2. The Curse of Primal Averaging: In "composite" problems—where you have a smooth loss function plus a non-smooth regularizer like the $\ell_1$-norm for sparsity—averaging local models at the server destroys the desired properties. For example, if every worker finds a sparse local model, their average is almost certainly not sparse.

Furthermore, the nonlinearity of proximal operators (used to handle non-smooth terms) makes it mathematically difficult to aggregate gradients after multiple local steps. Most existing solutions either ignore non-smoothness or require excessive communication.

Methods

The core innovation is a new algorithm (Algorithm 1) that manages two versions of the local model: a pre-proximal state ($\hat{z}$) and a post-proximal state ($z$).

  • Decoupled Communication: Instead of sending the final sparse model, workers send their pre-proximal models to the server. This allows the server to effectively "average the gradients" across workers, bypassing the nonlinearity of the proximal operator.
  • Client-Drift Correction: Each worker maintains a correction term ($c_i^r$) that incorporates global gradient information from previous rounds. This ensures that even with heterogeneous data, local updates stay aligned with the global objective.
  • Adaptive Proximal Scaling: During local updates, the algorithm uses a scaling factor $(t+1)\eta$ for the proximal operator. This ensures that if the model reaches the global optimum, it stays there—a property many other FL algorithms lack.
  • Efficiency: Each worker only transmits a single $d$-dimensional vector per round, keeping the communication overhead minimal.

Datasets

The authors evaluated their algorithm using a sparse logistic regression problem.

  • Data Generation: They used a synthetic data generation method that allows for precise control over data heterogeneity using two parameters ($\alpha, \beta$).
  • Setup: The experiments involved 30 workers, each with 2,000 data points, aiming to find a sparse model in a high-dimensional space.

Key Insights and Ideas

  • Averaging in the "Right" Space: The "aha moment" here is realizing that averaging sparse models is a bad idea. By communicating the pre-proximal state, the server can maintain a global state that behaves like a centralized proximal SGD, preserving the benefits of the regularizer.
  • No Similarity Assumptions: Unlike many previous works, this algorithm does not assume that data across workers is "similar enough." The correction terms handle the divergence mathematically.
  • Linear Convergence: The authors provide a rigorous proof that the algorithm converges linearly to a neighborhood of the optimal solution, providing a solid theoretical foundation for its empirical success.

Key Results

The proposed algorithm significantly outperforms state-of-the-art methods like FedMid, FedDA, and Fast-FedDA.

Comparison with existing methods using full gradients (left) and stochastic gradients (right).

As shown in Figure 1, when using full gradients, the proposed method achieves exact convergence, while competitors plateau due to client drift. With stochastic gradients, it reaches a much higher level of optimality (lower error) than other methods.

Impact of step size η (left) and number of local updates τ (right) on the algorithm's performance.

Figure 2 demonstrates the algorithm's robustness: smaller step sizes lead to higher accuracy (at the cost of speed), and increasing the number of local updates ($\tau$) speeds up convergence without sacrificing final accuracy, proving its communication efficiency.

Limitations and Future Work

  • Subgradient Bound: The current theoretical analysis relies on a constant bound ($B_g$) for the subgradients of the regularizer. While the experiments show the algorithm can achieve exact convergence in some cases, the theory currently only guarantees convergence to a "neighborhood."
  • Hyperparameter Tuning: Like most FL methods, performance depends on tuning the step sizes ($\eta, \eta_g$).
  • Scaling to Deep Learning: The experiments focused on convex sparse logistic regression. Testing this decoupling strategy on non-convex deep learning problems (e.g., training sparse neural networks) is a natural next step.

Summary updated

BibTeX
@inproceedings{zhang2024composite,
  author = {Jiaojiao Zhang and Jiang Hu and Mikael Johansson},
  title = {{Composite Federated Learning with Heterogeneous Data}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=0mdWHqXZ5T},
}
Figure