Composite federated learning with heterogeneous data

Jiaojiao Zhang, Jiang Hu, Mikael Johansson · DOI

Abstract

Federated Learning (FL) faces significant hurdles when applied to composite optimization problems involving non-smooth regularizers, particularly under conditions of high data heterogeneity. Standard approaches often suffer from "client drift" and the "curse of primal averaging," where local updates pull the global model away from the true optimum or destroy desired properties like sparsity. This paper introduces a novel FL algorithm that addresses these issues by decoupling communication from the proximal operator and implementing a strategic drift correction mechanism. We prove that the proposed method achieves linear convergence to a neighborhood of the optimal solution without requiring data similarity assumptions. Empirical evaluations on sparse logistic regression demonstrate superior performance compared to state-of-the-art methods such as FedMid and FedDA.

Introduction

Federated Learning enables collaborative model training across decentralized workers while maintaining data privacy. However, real-world applications often involve composite objectives—combining a smooth loss function with a non-smooth regularizer (e.g., $L_1$ norm for sparsity). Traditional algorithms like Federated Averaging (FedAvg) struggle in this setting due to two primary factors:

  1. The Curse of Primal Averaging: Averaging locally sparse models often results in a dense global model, negating the benefits of regularization.
  2. Client Drift: Heterogeneous local data causes local updates to diverge, a problem worsened by the non-linearity of proximal operators which prevents the server from accurately aggregating local gradient information.

Methodology

The proposed algorithm introduces three key technical innovations to overcome these challenges:

  • Decoupling Communication and Proximal Steps: Workers maintain separate "pre-proximal" and "post-proximal" states. By communicating the pre-proximal state, the server can effectively recover the average of local gradients, bypassing the non-linearity of the proximal mapping.
  • Strategic Client Drift Correction: A correction term ($c_i^r$) is integrated into local updates, utilizing global model history to align local update directions with the global objective, even under extreme data heterogeneity.
  • Time-Varying Proximal Parameters: The use of a $(t+1)\eta$ parameter for local proximal updates allows the algorithm to achieve exact convergence in deterministic settings, a property lacking in many existing FL frameworks.

Experimental Results

The algorithm was evaluated using a synthetic sparse logistic regression benchmark. The dataset consisted of feature-label pairs generated to control heterogeneity, distributed across $n=30$ workers, each holding $m=2000$ data points.

Comparison with Baselines

As shown in Figure 1, the proposed method significantly outperforms existing baselines. In the full-gradient (deterministic) setting, it achieves exact convergence to the optimum (reaching an optimality gap of $10^{-15}$), whereas competitors like FedMid and FedDA plateau at a neighborhood. In stochastic settings using mini-batch gradients, it reaches a lower optimality gap more rapidly than Fast-FedDA.

Comparison of the proposed algorithm with state-of-the-art baselines in full-gradient (left) and stochastic (right) settings.

Communication Efficiency

A critical advantage of the proposed framework is its robustness to the number of local updates ($\tau$). Figure 2 illustrates that increasing $\tau$ accelerates the initial convergence rate without sacrificing the final solution quality. This confirms that the algorithm can effectively reduce communication frequency while maintaining high accuracy.

Impact of the number of local updates ($\tau$) on convergence speed and accuracy.

Conclusion

This work presents a robust framework for composite federated learning that effectively mitigates client drift without restrictive data similarity assumptions. By decoupling communication from proximal operations, the algorithm achieves superior convergence rates and accuracy. While the algorithm demonstrates linear convergence, theoretical bounds still include a residual error term influenced by stochastic variance. Interestingly, empirical results often showed exact convergence where theory predicted a neighborhood, suggesting potential for tighter analysis. Future research will explore extending this architecture to non-convex objectives typical of deep neural networks.

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