百科问答小站 logo
百科问答小站 font logo



机器学习小白来提问:关于联邦学习FedAVG和FedSGD的问题? 第1页

  

user avatar   felix_zlf 网友的相关建议: 
      

参考FedSGD和FedAVG的原始论文《Federated Learning of Deep Networks using Model Averaging》中的一段话:

To apply this approach in the federated setting, we select a C-fraction of clients on each round, and compute the gradient of the loss over all the data held by these clients. Thus, C controls the global batch size, with C = 1 corresponding to full-batch (non-stochastic) gradient descent.2 We refer to this baseline algorithm as FederatedSGD (or FedSGD).

FedSGD:每次采用client的所有数据集进行训练,本地训练次数为1,然后进行aggregation。

C:the fraction of clients that perform computation on each round

每次参与联邦聚合的clients数量占client总数的比例。C=1 代表所有成员参与聚合

B:the local minibatch size used for the client updates.

client的本地的训练的batchsize

E:then number of training passes each client makes over its local dataset on each round

两次联邦训练之间的本地训练的次数

综上所述,C=E=1 ,B=∞时,FedAvg等价于FedSGD,FedSGD是特殊形式的FedAVG,与采用什么优化器没有关系。




  

相关话题

  OpenCV已经将图像处理(识别)的算法写成函数了,那我们还有必要去学习这些算法不? 
  为什么 MobileNet、ShuffleNet 在理论上速度很快,工程上并没有特别大的提升? 
  如何评价微软新出的自拍软件 Microsoft Selfie? 
  任何密码都可以用穷举推算出来,只是时间问题。如果是这样的话,那不是很不安全? 
  为什么说大模型训练很难? 
  如何开发一个自己的 TensorFlow? 
  使用数组可以表示哪些数据结构? 
  算法工程师的落地能力具体指的是什么? 
  如何看待Geoffrey Hinton的言论,深度学习要另起炉灶,彻底抛弃反向传播? 
  深度学习attention机制中的Q,K,V分别是从哪来的? 

前一个讨论
我对多普勒效应不太理解,大家可以教教我吗?
下一个讨论
K-means聚类算法中的K如何确定?





© 2025-04-23 - tinynew.org. All Rights Reserved.
© 2025-04-23 - tinynew.org. 保留所有权利