Giter Site home page Giter Site logo

xenialll / fedu2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 166 KB

This repository is an official PyTorch implementation of paper: Rethinking the Representation in Federated Unsupervised Learning with Non-IID Data. CVPR 2024.

License: MIT License

Python 100.00%

fedu2's Introduction

FedU2

This repository is an official PyTorch implementation of paper: FedU2: Rethinking the Representation in Federated Unsupervised Learning with Non-IID Data. CVPR 2024 (Poster).

Thanks to @Huabin for providing a robust and practical implementation framework.

Rethinking the Representation in Federated Unsupervised Learning with Non-IID Data

Abstract

Federated learning achieves effective performance in modeling decentralized data. In practice client data are not well-labeled which makes it potential for federated unsupervised learning (FUSL) with non-IID data. However the performance of existing FUSL methods suffers from insufficient representations i.e. (1) representation collapse entanglement among local and global models and (2) inconsistent representation spaces among local models. The former indicates that representation collapse in local model will subsequently impact the global model and other local models. The latter means that clients model data representation with inconsistent parameters due to the deficiency of supervision signals. In this work we propose FedU2 which enhances generating uniform and unified representation in FUSL with non-IID data. Specifically FedU2 consists of flexible uniform regularizer (FUR) and efficient unified aggregator (EUA). FUR in each client avoids representation collapse via dispersing samples uniformly and EUA in server promotes unified representation by constraining consistent client model updating. To extensively validate the performance of FedU2 we conduct both cross-device and cross-silo evaluation experiments on two benchmark datasets i.e. CIFAR10 and CIFAR100.

Implementation

This project backbone is contributively implemented by my co-authors, Huabin, Pengyang, and Fengyuan.

###Step 1: install FL toolbox implemented by my co-author Huabin

git clone https://github.com/zhb2000/fedbox.git
cd fedbox
pip install .

###Step 2: train model Assign parameters for train_xxx.py that is called in src/main.py

# execute FedU2
python src/main.py 

Citation

If you find HyperFed useful or inspiring, please consider citing our paper:

@InProceedings{Liao_2024_CVPR,
    author    = {Liao, Xinting and Liu, Weiming and Chen, Chaochao and Zhou, Pengyang and Yu, Fengyuan and Zhu, Huabin and Yao, Binhui and Wang, Tao and Zheng, Xiaolin and Tan, Yanchao},
    title     = {Rethinking the Representation in Federated Unsupervised Learning with Non-IID Data},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2024},
    pages     = {22841-22850}
}

fedu2's People

Contributors

xenialll avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar Jieyi Tan avatar

Forkers

danhlephuoc

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.