TsingZ0 / HtFL

You only need to configure one file to support model heterogeneity scenarios.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heterogeneous Federated Learning (HtFL)

Standard federated learning, e.g., FedAvg, assumes that all the participating clients build their local models with the same architecture, which limits its utility in real-world scenarios. In practice, each client can build its model with a specific model architecture for a specific local task.

Scenarios and datasets

Here, we only show the MNIST dataset in the label skew scenario generated via Dirichlet distribution for example. Please refer to my other repository PFLlib for more help.

You can also modify codes in PFLlib to support model heterogeneity scenarios, but it requires much effort. In this repository, you only need to configure system/main.py to support model heterogeneity scenarios.

Note: you may need to manually clean checkpoint files in the temp/ folder via system/clean_temp_files.py if your program crashes accidentally. You can also set a checkpoint folder by yourself to prevent automatic deletion using the -sfn argument in the command line.

Data-free algorithms with code (updating)

About

You only need to configure one file to support model heterogeneity scenarios.

License:GNU General Public License v3.0


Languages

Language:Python 97.7%Language:Shell 2.3%