| Algorithm 1 Federated Averaging. The K Clients are denoted as k; B, E, and η Represent the Local Minibatch Size, Number of Local Epochs, and Learning Rate, Respectively |
| 1: initialize 2: for each round t = 1, 2, … do 3: m ← max (C · K, 1) 4: Select a random subset of m clients from the total set of currently connected and eligible CAVs 5: 6: for each client k ∈ in parallel do 7: ← ClientUpdate (k, ) 8: ← 9: ClientUpdate (k, w): ‖Run on client k 10: β ← (split into batches of size b) 11: β = {,…} 12: for each local epoch i from 1 to E do 13: for batch b ∈ β do 14: w ← w − η▽ℓ (w; b) 15: return w to server |