百科问答小站 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,与采用什么优化器没有关系。




  

相关话题

  怎么通俗地理解张量? 
  请问DeepMind和OpenAI身后的两大RL流派有什么具体的区别? 
  刚进算法团队,大牛们讨论高深的cv术语和算法,如何才能听懂? 
  如何评价 2021 年 ICPC 银川赛区? 
  mxnet的并行计算为什么这么牛,是什么原理? 
  失传的缀数法最有可能是什么方法? 
  机器学习能否用于综合评价?具体怎么操作? 
  Size Balanced Tree 真的是国内 ACM 选手陈启峰的发明吗? 
  计算机技术的进步与模拟运算,在未来真的可以解决磁约束核聚变技术中所有关键问题吗? 
  你见过最差的算法工程师能差到什么程度? 

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





© 2024-06-17 - tinynew.org. All Rights Reserved.
© 2024-06-17 - tinynew.org. 保留所有权利