Summary
This work proposes an optimal transport preprocessing step for federated learning in order to align the data distributions between the clients. The main idea is to treat the alignment as a hierarchical Wasserstein barycenters problem, where each client first summarizes their local data into an “average image” by computing a Wasserstein barycentre per image channel. These local barycenters are then communicated to the server, where new Wasserstein barycentres are computed across the local ones. These “global” barycenters are then communicated back to the clients and each one projects their data distribution onto them. After this preprocessing step, a standard federated learning algorithm such as FedAvg can be applied on top of these new input representations. The authors evaluate their method on CIFAR 10, showing improvements upon vanilla FedAvg and other baselines.
Strengths
The main strength of this work is the simplicity of the proposed method. As it is a straightforward preprocessing step, it can be orthogonal to various other methods proposed for non-i.i.d. data in federated learning, potentially improving them even more.
Weaknesses
I believe that this work has several axes for improvement.
# Clarity
There are quite a few instances where the manuscript is unclear and could be written better. More specifically:
- Important implementation details of the method are missing, i.e., what transport cost is used, what is the algorithm used for OT (e.g., is it Sinkhorn iterations?), what are its hyper parameters (if it is Sinkhorn iterations, what is the regularization parameter? This is important as it relates to the complexity analysis) and how is the projection to the global barycenters done. These need to be either in the main paper or in an appendix.
- The authors do not mention the dataset details in the experimental section (there is just a single mention of CIFAR-10 in the abstract) and what optimization hyper parameters where used for FedAvg. These are important for reproducibility and need to also be either in the main paper or the appendix.
- The notation in equations is a bit sloppy and needs to be improved. More specifically:
- In Eq. 2 there is a $\sum_i$ but no index $i$ is present in the summand
- Above Eq. 4 the definition of $(D^p_{i,j})_{i,j} \in R^{n\times n}$ is unclear; does this mean that each entry of the distance / cost matrix is itself an $n\times n$ matrix? Furthermore, there is a $diag(A) = 0$ introduced, but no mention of what $A$ is, and it is not clear what $\forall (i,j,k) [[n]]^3$ means and why it is important.
- After Eq. 5 the authors optimise the Wasserstein barycentre $a \in \Sigma_n$ but there is no mention of what $\Sigma_n$ is. Also it seems that also $\lambda_s \in \Sigma_n$ later on (after Eq. 7) which is a bit counterintuitive as one is a vector and the other is a scalar.
- After Eq. 7 the authors mention $WB(B)$ but there is no mention of what $B$ is.
# Evaluation
In my opinion, there are quite a few ways that the evaluation can be improved:
- There seems to be only one dataset (assuming CIFAR-10 from the abstract?) and architecture used. This is not enough to get a strong signal for the usefulness of this method. Other datasets (such as TinyImagenet and CIFAR 100) and architectures (such as ResNets and ViTs) are important to provide a broader picture.
- It is not clear what the non-i.i.d.-ness is the data is. Uniform sampling without replacement should intuitively lead to more or less i.i.d. data across the clients, thus making OT-alignment not important. Prior works (such as McMahan et al. 2017) have more elaborate ways to generate non-i.i.d. data (by e.g., having each client only observe a subset of the classes). Furthermore, as the main premise of this work is domain alignment, I would also have expected a more elaborate evaluation of various non-i.i.d. settings, ranging from covariate shift (same $p(y)$ but different $p(x|y)$), to label skew (different $p(y)$ but same $p(x|y)$) or any mixture of the two. Intuitively, preprocessing the data should mainly help for the first setting as opposed to the second, so it would be beneficial if the authors update the manuscript with such cases.
- The final performance improvement is a bit hard to believe. The authors argue that their OT alignment step leads to ~ +28% better accuracy on their dataset against vanilla FedAvg (which is a very big improvement). If we take this claim at face value, then this would imply that this small architecture gets SoTA on CIFAR-10 (if I compare it with results shown in https://paperswithcode.com/sota/image-classification-on-cifar-10 where a much larger/deeper ViT-H/14 model gets 99.5%), which is also a bit hard to believe.
# Novelty
While the authors do discuss quite a few related works in the related work section, they unfortunately missed what seems to be a crucial related work, FedOT [1]. There the authors do also discuss about projecting the data distributions of each of the clients to a common space and they perform this step with optimal transport. Therefore, this weakens the novelty of this work.
[1] An Optimal Transport Approach to Personalized Federated Learning, Farnia et al., 2022, https://arxiv.org/abs/2206.02468
Questions
The questions stem from the prior discussion of the weaknesses of this work. To reiterate:
# Clarity
- The authors should elaborate and extensively discuss the implementation details of the their method. Questions such as what transport cost are important and relevant for reproduction.
- The notation should be improved upon, with clear explanation of symbols.
# Evaluation
- The authors should increase the breadth and depth of the evaluation of their method, especially given its simplicity. Some recommendations are
- OT-alignment combined with other federated learning methods
- Evaluation on other datasets and architectures
- More involved client data distribution shifts and how OT alignment improves performance
- Perhaps a visual interpretation of what the Wasserstein barycenters look like
- Clarification of how such a big performance improvement is possible with OT alignment. Maybe a relevant baseline is FedAvg on i.i.d. data splits, as that would highlight what is the best possible performance of OT alignment. Furthermore, are the numbers of the other baselines discussed at Table 2 taken from the respective papers or reimplemented? This is important, as hyperparameter details (especially with how the data are partitioned between the clients) can have a big impact on model behaviour.
- The privacy claims are a bit vacuous, given that without formal privacy guarantees, FedAvg can break (e.g., see the work at [2]). I would encourage the authors to either substantiate the privacy claims (by e.g., an empirical evaluation) or removing them from the paper altogether.
[2] Inverting Gradients — How easy is it to break privacy in federated learning? Geiping et al., 2020, https://arxiv.org/abs/2003.14053