Algorithm 1 Scaffold [18] |
Global inputs: Initial , , and global step size . |
Client inputs: Local client datasets , initial , and local step size . |
Output: Global model weights . |
-
1:
for round do
-
2:
download and for all K clients
-
3:
for client k in K do
-
4:
for optimization step do
-
5:
Compute gradient
-
6:
-
7:
(i) , or (ii)
-
8:
upload
-
9:
-
10:
and
|