Skip to content

Robust Heterogeneous Federated Learning under Data Corruption

Notifications You must be signed in to change notification settings

FangXiuwen/AugHFL

Repository files navigation

AugHFL

This repository provides resources for the following paper:

[Robust Heterogeneous Federated Learning under Data Corruption](ICCV 2023 Open Access Repository)
Xiuwen Fang, Mang Ye, Xiyuan Yang ICCV 2023

AugHFL(Augmented Heterogeneous Federated Learning) is a federated learning framework to investigate the problem of data corruption in the model heterogeneous federated learning:

  1. Local Learning with Data Corruption.

  2. Robust Corrupted Clients Communication.

Our experiments are conducted on two datasets, Cifar-10-C and Cifar-100. We set public dataset on the server as a subset of Cifar-100, and randomly divide Cifar-10-C to different clients as private datasets.

Dataset used: CIFAR-10-CCIFAR-100

Note: Cifar-10-C can be genearetd by make_cifar_c.py. Data will be processed in init_data.py.

You can start training and evaluation as follows:

pip install -r requirements.txt
# Download the cifar10 and cifar100 datasets to cifar_10 and cifar_100 folders in Dataset
# init public data and local data
cd Dataset
python make_cifar_c.py
# pretrain local models
cd Network
python pretrain.py
# AugHFL
cd HHF
python AugHFL.py
├── Robust_FL
    ├── Dataset
        ├── __init__.py
        ├── augmentations.py
        ├── cifar.py
        ├── dataaug.py
        ├── init_dataset.py
        ├── make_cifar_c.py
        ├── utils.py
        ├── visual_test.py
    ├── Network
        ├── Models_Def
            ├── mobilnet_v2.py
            ├── resnet.py
            ├── shufflenet.py
        ├── pretrain.py
    ├── HHF
        ├── AugHFL.py
    ├── loss.py
    ├── README.md
    ├── requirements.txt

In the heterogeneous model scenario, we assign four different networks:ResNet10,ResNet12,ShuffleNet,Mobilenetv2

@inproceedings{fang2023robust,
  title={Robust heterogeneous federated learning under data corruption},
  author={Fang, Xiuwen and Ye, Mang and Yang, Xiyuan},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={5020--5030},
  year={2023}
}

About

Robust Heterogeneous Federated Learning under Data Corruption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages