Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hello,i have 2 questions and 2 minds (I don't know if it's right)(*^_^*) #1

Open
zhangfuhan opened this issue Jan 2, 2020 · 2 comments

Comments

@zhangfuhan
Copy link

  1. the acc of MG-WFBP will same as the acc of original sgd?
    i think MG-WFBP use the small batch-size. Because the it has batch update weights, it means reduce original sgd.

2)can the way in MG-WFBP use in adam ?
the adam may takes longer to backward, Reduce the conflict problem in many papers.

@shyhuai
Copy link
Collaborator

shyhuai commented Jan 2, 2020

Hi, Thanks for your interest in MG-WFBP.

  1. The accuracy of MG-WFBP is the same as the original synchronized SGD (S-SGD). For any given mini-batch size, MG-WFBP averages the gradients which are consistent with the average operation of S-SGD. The reason why MG-WFBP can run faster than S-SGD is that it merges gradients at the "right" position so that more communications are hidden.
  2. MG-WFBP can also be applied in many first-order optimizers including Adam as the key idea of MG-WFBP is to schedule the gradients for communication. So one can use the averaged gradients from P workers to customize its own optimizers.
    Hope the responses address your concerns. Thanks.

@zhangfuhan
Copy link
Author

thank you very much for your answer.
To your amusement, my mind is too simple. I'll look at your paper more carefully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants