Federated Frank-Wolfe Algorithm

Ali Dadras, Sourasekhar Banerjee, Karthik Prakhya, Alp Yurtsever · DOI

Introduction

Federated Learning (FL) has emerged as a critical paradigm for training machine learning models across decentralized data sources, such as mobile devices or medical institutions, while preserving data privacy. However, most existing FL frameworks are optimized for unconstrained problems. When models require specific structural properties—such as sparsity (via $\ell_1$-norm constraints) or low-rank structures (via nuclear-norm constraints)—standard optimization techniques necessitate a projection step.

In large-scale or high-dimensional settings, these projections are often computationally prohibitive. For instance, projecting onto a nuclear-norm ball requires a full Singular Value Decomposition (SVD) at every iteration. This paper introduces the Federated Frank-Wolfe (FedFW) algorithm, a projection-free approach that replaces expensive projections with a simpler Linear Minimization Oracle (LMO), significantly reducing the computational burden on both the server and the clients.

Problem Formulation and the Frank-Wolfe Advantage

In a typical FL setting, the goal is to minimize a global objective function $f(w) = \frac{1}{K} \sum_{k=1}^K f_k(w)$ subject to a constraint $w \in \mathcal{C}$. Traditional gradient-based methods use a projection operator $P_{\mathcal{C}}(w) = \text{argmin}_{v \in \mathcal{C}} \|v - w\|^2$.

The Frank-Wolfe (FW) algorithm, also known as the conditional gradient method, avoids this by utilizing an LMO: $$s_t = \text{argmin}_{s \in \mathcal{C}} \langle s, \nabla f(w_t) \rangle$$ The update then moves toward this extreme point $s_t$. For many constraints of interest in machine learning, the LMO is significantly faster than a projection. For example, in nuclear-norm constrained problems, the LMO only requires computing the top singular vector rather than a full SVD.

The FedFW Algorithm

Adapting FW to the federated setting presents a unique challenge: consensus. Simply averaging local FW steps does not guarantee convergence to the global optimum. FedFW addresses this through several key innovations:

1. Quadratic Penalty Strategy

To ensure all clients converge to a global model without raw data sharing, FedFW transforms the hard consensus constraint into a smooth quadratic penalty function. This penalty grows in stringency as the algorithm progresses, forcing the local models to align while maintaining the projection-free nature of the updates.

2. Algorithmic Variants

  • FedFW-sto: A stochastic version designed for practical deep learning. It incorporates mini-batch sampling and variance-reduction techniques to mitigate the noise inherent in stochastic gradients.
  • FedFW+: An optimized variant based on the Augmented Lagrangian method. Empirically, FedFW+ demonstrates faster convergence and higher stability in heterogeneous data environments.

Theoretical Contributions

Unlike many constrained FL algorithms that focus solely on convex problems, the authors provide convergence guarantees for non-convex objectives, which are standard in deep neural networks. The analysis shows that FedFW reaches a stationary point at a rate of $O(T^{-1/3})$. While this theoretical rate is slower than the $O(T^{-1})$ rate of some projection-based methods, the significantly lower per-iteration cost often results in faster total wall-clock time in practice.

Experimental Evaluation

The authors evaluated FedFW against FedDR (a projection-based baseline) across several benchmarks, including MNIST, CIFAR-10, and EMNIST (10 and 62 classes). These tests were conducted in both IID and non-IID (heterogeneous) data distributions.

Key Performance Metrics

  • Accuracy: On non-IID MNIST with an $\ell_1$ constraint, FedFW achieved approximately 80.5% test accuracy, significantly outperforming FedDR’s 74.3%.
  • Robustness: The algorithm maintained stable performance across various levels of data heterogeneity, a common failure point for decentralized optimization.

Privacy and Communication Efficiency

Beyond computational savings, FedFW offers two distinct advantages for federated systems:

  1. Enhanced Privacy: Standard FL communicates gradients, which are susceptible to "Deep Leakage" attacks that can reconstruct private training images. Because FedFW communicates the output of an LMO (often an extreme, sparse point of the constraint set), the transmitted information is much coarser. In attacks using "Deep Leakage from Gradients," the LMO outputs resulted in unrecognizable noise, providing a layer of inherent privacy.
  2. Communication Sparsity: Under $\ell_1$ constraints, the updates sent to the server are often "1-sparse" (containing only one non-zero entry). This drastically reduces the communication overhead, making it ideal for bandwidth-constrained environments.

Conclusion and Future Directions

FedFW provides a robust, projection-free framework for constrained Federated Learning. By leveraging the Linear Minimization Oracle, it bypasses the computational bottlenecks of SVD and other complex projections while offering improved privacy and communication efficiency.

Future research directions include extending the theoretical analysis to support multiple local steps per communication round—a common practice in FL to reduce synchronization frequency—and investigating the algorithm's resilience to asynchronous client updates or "stragglers" in the network.

Summary updated

BibTeX
@inproceedings{dadras2024federated,
  author = {Ali Dadras and Sourasekhar Banerjee and Karthik Prakhya and Alp Yurtsever},
  title = {{Federated Frank-Wolfe Algorithm}},
  booktitle = {ECML/PKDD},
  year = {2024},
  doi = {10.1007/978-3-031-70352-2\_4},
}
Figure