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

Fix adam optimizer #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

janhuenermann
Copy link

@janhuenermann janhuenermann commented Aug 4, 2016

Hi Andrej,

I recently ran the trainer demo on MNIST and wondered why the Adam optimizer performs so much more worse than Adadelta.

I think I found a little bug in the Adam implementation.

According to the Adam Paper-v8 https://arxiv.org/pdf/1412.6980v8.pdf Algorithm 1 (p. 2) the bias estimates use division instead of multiplication. The fixed version behaves significantly better when running the trainer demo on MNIST. To get the results as below I also changed the learning rate to 0.001 and the beta2 parameter to 0.999 (from 0.01 and 0.99 respectively) as recommended in the paper.

Before:
screen shot 2016-08-04 at 21 14 48

After:
screen shot 2016-08-04 at 21 21 27

According to the Adam Paper-v8 https://arxiv.org/pdf/1412.6980v8.pdf Algorithm 1 (p. 2). Behaves significantly better when running the trainer demo on MNIST (even better when changing adam learning rate to recommended 0.001) .
@GO1984
Copy link

GO1984 commented Jun 1, 2018

Thank you so much! Can someone please proof this and push this into release (on npm too please)?

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

Successfully merging this pull request may close these issues.

2 participants