Federated Composite Optimization

Honglin Yuan, Manzil Zaheer, Sashank J. Reddi

Standard Federated Learning (FL) algorithms, such as FedAvg, are primarily designed for smooth, unconstrained optimization problems. However, real-world applications frequently require non-smooth regularizers to enforce structural constraints like sparsity or low-rank matrices. This paper introduces Federated Dual Averaging (FedDualAvg), a novel algorithm designed to overcome the limitations of standard FL techniques when applied to complex, non-smooth objectives.

The Problem: The "Curse of Primal Averaging"

Federated Learning is the standard paradigm for training models on decentralized data (e.g., mobile devices or hospital servers) without compromising privacy. While most FL research focuses on "smooth" optimization, practical applications often demand Federated Composite Optimization (FCO). FCO involves minimizing a loss function alongside a non-smooth regularizer, such as $L_1$ regularization for sparsity (crucial for high-dimensional medical data like fMRI scans) or nuclear-norm regularization for low-rank matrix estimation.

The authors identify a fundamental flaw when applying standard FL techniques to FCO problems: the "curse of primal averaging." In standard FL, clients compute local updates, and the server averages these updates in the "primal" space (the model weights themselves). If each client discovers a different sparse solution based on its local data, averaging these distinct sparse models results in a dense, non-sparse global model. This effectively destroys the structural benefits the regularizer was meant to enforce.

Illustration of the "curse of primal averaging": averaging sparse client models leads to a dense server model.

The Solution: Federated Dual Averaging (FedDualAvg)

To address this, the paper explores extensions of Federated Averaging for composite problems, focusing on two main approaches:

  1. Federated Mirror Descent (FedMiD): A straightforward extension where clients perform local proximal gradient steps. While intuitive, FedMiD still averages model states in the primal space at the server, meaning it remains vulnerable to the curse of primal averaging.
  2. Federated Dual Averaging (FedDualAvg): The authors' primary contribution. Instead of averaging model weights, FedDualAvg maintains and averages dual states.

The effectiveness of FedDualAvg stems from its double averaging procedure:

  • Locally: Each client runs a dual averaging algorithm, tracking a pair of primal and dual states.
  • Globally: The server averages the dual updates from the clients, rather than the primal weights.

By keeping the aggregation in the dual space, the algorithm pools gradient information before the non-smooth mapping (such as soft-thresholding for sparsity) is applied. This alignment ensures that the final global model respects the desired structural constraints much better than primal-averaging methods.

Experiments and Key Results

The authors evaluated FedDualAvg across three distinct tasks, demonstrating significant improvements in structure preservation and convergence speed.

1. Synthetic LASSO (Sparsity Recovery)

In a sparse feature recovery problem where the ground truth is 50% sparse, FedDualAvg identified the correct sparsity pattern significantly faster and more accurately than FedMiD. Because of the primal averaging curse, FedMiD's solutions were consistently too dense, whereas FedDualAvg maintained the correct density and achieved a high F1-score almost immediately.

Sparsity recovery results: FedDualAvg reaches high F1-score and correct density much faster than baselines.

2. Low-Rank Matrix Estimation

For a task aimed at recovering a rank-16 matrix from noisy observations using nuclear-norm regularization, FedDualAvg found the exact rank-16 solution in fewer than 100 communication rounds. In contrast, FedMiD converged much slower in both overall loss and rank recovery.

3. Real-World fMRI Classification

The algorithms were also tested on a real-world cross-silo FL task using the Haxby (2001) fMRI dataset. The objective was to learn a sparse binary classifier to distinguish brain stimuli based on nearly 40,000 voxels. FedDualAvg achieved a validation accuracy of ~78%, comparable to a centralized baseline where all data is pooled. It significantly outperformed local training (~55%) and standard FedAvg with subgradients (~65%), all while maintaining the high sparsity vital for interpretable brain mapping.

Insights and Future Directions

  • Theoretical Robustness: The authors prove that FedDualAvg can tolerate much larger client learning rates than FedMiD. In federated settings, larger local steps translate to fewer required communication rounds, making the training process highly efficient.
  • Structure Preservation: FedDualAvg does not just converge to an accurate model; it maintains the properties of the solution (like sparsity or low rank) throughout the entire training process. This is a critical requirement for interpretability in fields like biomedicine.
  • Future Work: While current theoretical analysis focuses on convex problems, extending these guarantees to non-convex FCO remains an open challenge. Additionally, combining FedDualAvg with variance reduction techniques (like SCAFFOLD) or applying it to personalized FL are promising avenues for future research.

Summary updated

BibTeX
@inproceedings{yuan2021federated,
  author = {Honglin Yuan and Manzil Zaheer and Sashank J. Reddi},
  title = {{Federated Composite Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=uXOjwDvyYc},
}
Figure