From 6d807c94ee4905edf82766abf49a569f735e5828 Mon Sep 17 00:00:00 2001 From: Nurbek Tastan <47779789+tnurbek@users.noreply.github.com> Date: Tue, 14 May 2024 17:20:48 +0400 Subject: [PATCH] Add files via upload --- index.md | 245 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 index.md diff --git a/index.md b/index.md new file mode 100644 index 0000000..4054998 --- /dev/null +++ b/index.md @@ -0,0 +1,245 @@ + +
+ +

+ +

+ +
+ + +![main figure](docs/ShapFed.png) +

**Overview of our proposed ShapFed algorithm:** Each participant $i$ transmits their locally computed iterates $w_i$ to the server. The server then, (i) computes class-specific Shapley values (CSSVs) using the last layer parameters (gradients) $\hat{w}$ (ii) aggregates the weights by employing normalized contribution assessment values $\tilde{\gamma}_i$ for each participant $i$, and (iii) broadcasts the personalized weights $\bar{w}_i$ to each participant, using their individual, not-normalized contribution values $\gamma_i$. +

+ + +## Abstract +

+Federated learning (FL) has emerged as a pivotal approach in machine learning, enabling multiple participants to collaboratively train a global model without sharing raw data. While FL finds applications in various domains such as healthcare and finance, it is challenging to ensure global model convergence when participants do not contribute equally and/or honestly. To overcome this challenge, principled mechanisms are required to evaluate the contributions made by individual participants in the FL setting. Existing solutions for contribution assessment rely on general accuracy evaluation, often failing to capture nuanced dynamics and class-specific influences. This paper proposes a novel contribution assessment method called ShapFed for fine-grained evaluation of participant contributions in FL. Our approach uses Shapley values from cooperative game theory to provide a granular understanding of class-specific influences. Based on ShapFed, we introduce a weighted aggregation method called ShapFed-WA, which outperforms conventional federated averaging, especially in class-imbalanced scenarios. Personalizing participant updates based on their contributions further enhances collaborative fairness by delivering differentiated models commensurate with the participant contributions. Experiments on CIFAR-10, Chest X-Ray, and Fed-ISIC2019 datasets demonstrate the effectiveness of our approach in improving utility, efficiency, and fairness in FL systems. The code can be found at https://github.com/tnurbek/shapfed.

+ + +## ShapFed Main Algorithm +![Pseudocode](docs/pseudo.png) + +

**Weighted Aggregation:** The optimal weights $w_s^{\star}$ are derived using Equation 7 from the paper, while $w_s$ represents the result of applying equal weights (FedAvg). **Personalization:** Rather than distributing a uniform global model to all users, we provide personalized weights $\bar{w}_i$, which are $\gamma_i$ combinations of individual user weights $w_i$ and the optimally aggregated weight $w_s^{\star}$.

+ +![Weighted ShapFed and Personalized ShapFed](docs/alignment.png) + +## Results: Contribution Assessment of Our Approach +

1. Comparison of our proposed contribution assessment algorithm (CSSV) with CGSV and true Shapley value computations using ResNet-34 architecture on Chest X-Ray dataset.

+ +![CSSV vs CGSV](docs/contribution_comparison2.png) + +

2. Heatmap visualization of class-specific Shapley values for heterogeneous setting (explained in Section 5.2 in the paper) evaluated on CIFAR-10 dataset.

+ +![Heatmap](docs/cifar10-skew.png) + +## Results: Weighted Aggregation +

1. Comparing FedAvg and ShapFed-WA on CIFAR10 under an imbalanced split scenario: insights into the balanced accuracy of four individual participants.

+ +![ShapFed vs FedAvg - CIFAR10](docs/imbalanced_cifar.png) + +

2. (**Left**) The balanced accuracy of our methods (ShapFed-WA & ShapFed) vs FedAvg. (**Right**) Per-participant accuracy using all methods evaluated on Fed-ISIC2019 dataset.

+ +![ShapFed vs FedAvg - FEDISIC](docs/fedisic-plot.png) + + +## Results: Personalization + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
1. Performance and fairness comparison with our method and FedAvg. We use Pearson's correlation (↑) as a fairness metric on CIFAR-10. The red highlight indicates a negative gain from collaboration.
Dataset / PartitionSettingP1P2P3P4P5Corr.
ChestXRayHetero.Individual50.064.762.053.750.0---
FedAvg50.055.861.954.250.00.82
ShapFed50.065.269.558.550.00.93
CIFAR-10Imb.Individual75.845.448.631.6------
FedAvg56.656.863.864.2----0.60
CGSV57.259.058.860.4----0.98
ShapFed81.478.271.873.6---0.74
Hetero.Individual75.268.866.869.0------
FedAvg74.670.270.276.0---0.53
CGSV55.055.857.252.6----0.26
ShapFed79.875.469.075.0---0.90
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
2. Performance and fairness comparison using Pearson's correlation (↑) as a fairness metric on Fed-ISIC2019. The red highlight indicates a negative gain from collaboration.
SettingP1P2P3P4P5P6Corr.
Individual67.225.742.331.018.515.6---
FedAvg65.440.957.259.351.556.20.63
ShapFed-WA69.344.365.063.154.861.20.62
ShapFed68.544.461.960.440.653.20.84
+ + +## Summary + +

This work proposes Class-Specific Shapley Values (CSSVs) to quantify participant contributions at a granular level. The contributions of this work include a novel method to deepen the understanding of participant impact and improve fairness analysis. Evaluation against FedAvg shows superior performance and additional experiments reveal enhanced fairness by personalizing client updates based on contributions. Overall, the approach aims to achieve a more equitable distribution of benefits in FL. In future, we plan to conduct an in-depth theoretical analysis aimed at identifying the specific characteristics that contribute to an effective estimation of Shapley values. This analysis will enhance our understanding of the factors that influence the accuracy and reliability of Shapley value approximations. Furthermore, an investigation into what makes our approximation of cosine similarity from the last layer a robust indicator of contributions will be explored.

+ + + +## BibTeX +If you like our work, please consider citing us. +``` +@article{Tastan2024ShapFed, + title={Redefining Contributions: Shapley-Driven Federated Learning}, + author={Tastan, Nurbek and Fares, Samar and Aremu, Toluwani and Horvarth, Samuel and Nandakumar, Karthik}, + journal={https://arxiv.org/abs/}, + year={2024} +} +```