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

Question about computational efficiency and numerical stability in equation (19) #14

Open
mlerma54 opened this issue Apr 16, 2022 · 0 comments

Comments

@mlerma54
Copy link

I noticed that equation (19) in the paper:

Screenshot_from_2022-04-16_11-51-45

can be simplified by dividing numerator and denominator by the squared gradient:

Screenshot_from_2022-04-16_12-28-23

The simplified version (19") is more efficient (no powers of gradients need to be computed), and clearly more numerically stable than (19), because the powers are vulnerable to numerical over and underflow. It is also more robust for the case in which the gradients are zero (the original version becomes 0/0).

Is there any reason for using (19) instead of (19") in the computation of the alphas?

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

1 participant