Giter Club home page Giter Club logo

robust_fl's Introduction

Robust Federated Learning with Noisy and Heterogeneous Clients

This repository provides resources for the following paper:

[Robust Federated Learning with Noisy and Heterogeneous Client](CVPR 2022 Open Access Repository)
Xiuwen Fang, Mang Ye CVPR 2022

RHFL (Robust Heterogeneous Federated Learning) is a federated learning framework to solve the robust federated learning problem with noisy and heterogeneous clients:

  1. Aligning the logits output distributions in heterogeneous federated learning.

  2. Local noise learning with a noise-tolerant loss function.

  3. Client confidence re-weighting for external noise.

image20220629214205667

Our experiments are conducted on two datasets, Cifar10 and Cifar100. We set public dataset on the server as a subset of Cifar100, and randomly divide Cifar10 to different clients as private datasets.

Dataset used: CIFAR-10、CIFAR-100

Note: Data will be processed in init_data.py

After installing MindSpore via the official website, you can start training and evaluation as follows:

# init public data and local data
python Dataset/init_data.py
# pretrain local models
python Network/pretrain.py
# RHFL
python HHF/HHF.py
├── Robust_FL
    ├── Dataset
        ├── cifar.py
        ├── init_dataset.py
        ├── utils.py
    ├── Network
        ├── Models_Def
            ├── mobilnet_v2.py
            ├── resnet.py
            ├── shufflenet.py
        ├── pretrain.py
    ├── HHF
        ├── HHF.py
    ├── loss.py
    ├── README.md

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

@inproceedings{fang2022robust,
  title={Robust Federated Learning With Noisy and Heterogeneous Clients},
  author={Fang, Xiuwen and Ye, Mang},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={10072--10081},
  year={2022}
}

robust_fl's People

Contributors

fangxiuwen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.