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

Running NTK/LRC multiple times gives very inconsistent results #8

Closed
Priahi opened this issue Apr 26, 2021 · 2 comments
Closed

Running NTK/LRC multiple times gives very inconsistent results #8

Priahi opened this issue Apr 26, 2021 · 2 comments

Comments

@Priahi
Copy link

Priahi commented Apr 26, 2021

Hi there,

I am trying to reproduce the NTK and LRC functions that you have in your code and when I run the NTK for 3 (or 5) repeated runs with the same settings and input model, I get vastly different results, ie:

ntk_original, ntk
896.1322631835938 828.4542236328125
1274.0692138671875 1108.636962890625
890.8836059570312 1008.2345581054688

I would love to get a better sense of what the NTK actually does and how we can get consistent results.

Also do we need to initialize with kaiming? what is the point of this initialization and is there an alternative (ie. xavier, zero, none).

@Priahi
Copy link
Author

Priahi commented May 4, 2021

Hey again,

Just wanted to follow up. If my question is unclear or needs more description I can even hop on a call with you to solve this if that helps :)

Also is there a specific code to reproduce Figure 1,3,9, or 10?

@chenwydj
Copy link
Collaborator

chenwydj commented May 5, 2021

Hi @Priahi ,

Thank you for your interest in our work!

We are calculating empirical NTK here. That means we need to sample both network initializations and input samples. This randomness makes each NTK calculation not the same. However, as shown in our Figure 1, the general trend is that good architectures have smaller NTK condition numbers.

Hope that helps!

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