Projects and Code
Twenty projects and a code library (NumPy, scikit-learn, PyTorch, Keras, Flower, TFF) to copy and download.
- 29Items
Projects
Project 1: FedAvg from scratch in NumPy
Build FedAvg and understand a round and weighted aggregation.
DetailsProject 2: IID vs non-IID
Measure the effect of label skew on FedAvg.
DetailsProject 3: Local epochs and communication
Find the trade-off between E and rounds.
DetailsProject 4: FedAvg vs FedProx
Test whether μ helps under non-IID data.
DetailsProject 5: Effect of client dropout
Measure aggregation robustness to dropout.
DetailsProject 6: Federated learning with scikit-learn
Implement FedAvg for linear models on the digits dataset.
DetailsProject 7: Local and centralized baselines
Put the federated result in context.
DetailsProject 8: PyTorch on MNIST
Implement FedAvg with a small network and real training.
DetailsProject 9: Differential privacy in FedAvg
Measure the accuracy cost of privacy.
DetailsProject 10: Gradient leakage attack
Understand the effect of batch size on reconstruction.
DetailsProject 11: Membership inference
Measure attack AUC before and after defense.
DetailsProject 12: Educational secure aggregation
Understand pairwise masks.
DetailsProject 13: Poisoning and robust aggregation
Test median and Krum under label flipping.
DetailsProject 14: Personalization (FedPer/FedRep)
Measure the benefit of personalization under non-IID data.
DetailsProject 15: Fairness across clients
Measure the variance of client accuracy.
DetailsProject 16: The five-hospital scenario
Analyze a federated model across five synthetic hospitals.
DetailsProject 17: Flower
Run a FedAvg simulation with Flower.
DetailsProject 18: TensorFlow Federated
Explore TFF's weighted FedAvg interface.
DetailsProject 19: A mini research report
Write a reproducible experiment comparing two algorithms.
DetailsProject 20: Linking federated learning to edge computing
Estimate communication and energy cost for a federated deployment on edge devices.
DetailsCode library
FedAvg in NumPy
A complete small implementation that partitions synthetic IID and non-IID data and runs FedAvg, with the 0.6 weight check.
DetailsFedProx term in NumPy
A local step with the μ(w − w_global) term on a small regression problem.
DetailsDP-FedAvg-style clipping and noise
Shows the clipping and noise-on-the-sum mechanism.
DetailsPairwise masks for secure aggregation
A toy version: the masks cancel in the sum.
DetailsFedAvg with scikit-learn
Averages SGDClassifier coefficients on digits.
DetailsFedAvg with PyTorch
FedAvg simulation on MNIST with a small network.
DetailsFedAvg with TensorFlow/Keras
Single-machine simulation via get_weights/set_weights.
DetailsFlower skeleton
A NumPyClient and a FedAvg strategy.
DetailsTensorFlow Federated skeleton
Builds a weighted FedAvg process.
DetailsNo matching entries.
