Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Question about EWC Implementation #7

Open
yunboouyang opened this issue Dec 1, 2020 · 0 comments
Open

Question about EWC Implementation #7

yunboouyang opened this issue Dec 1, 2020 · 0 comments

Comments

@yunboouyang
Copy link

Hello developers! I looked at the implementation of EWC and got confused about computing the diagonal of the empirical Fisher Information Matrix. In

pg = p.grad.data.clone().pow(2)
the square of the sum of gradients of all data points in the memory are computed, but this is not equal to the sum of squares of gradients. The latter should be used to compute Empirical Fisher, see https://wiseodd.github.io/techblog/2018/03/11/fisher-information/. Could you confirm this?

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

No branches or pull requests

1 participant