Federated Learning with Intermediate Representation Regularization (BigComp 2023)
This is the code for the paper, Federated Learning with Intermediate Representation Regularization.
Generate client data with Dirichlet distribution. It works with folder style datasets structured as follows:
├── cifar_10
│ ├── train
│ │ ├── airplane
│ │ │ ├── 0.png
│ │ │ ├── .
│ │ │ ├── .
│ │ │ ├── .
│ │ │ └── 499.png
│ │ ├── .
│ │ ├── .
│ │ ├── .
│ │ └── truck
Implementation for our proposed approach, FedIntR.
Implementation for FedAvg.
Implementation for FedProx.
Implementation for MOON.
Implementation for FedCKA. We refer to this repository for CKA-similarity.
Anaconda environment file in case you need it. It may contain packages not essential for this work.
Please cite our paper if you find this code useful for your work.