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

GrokFast: Accelerated Grokking by Amplifying Slow Gradients #244

Closed
redknightlois opened this issue Jun 21, 2024 · 0 comments · Fixed by #245
Closed

GrokFast: Accelerated Grokking by Amplifying Slow Gradients #244

redknightlois opened this issue Jun 21, 2024 · 0 comments · Fixed by #245
Assignees
Labels
feature request Request features

Comments

@redknightlois
Copy link

GrokFast: Accelerated Grokking by Amplifying Slow Gradients

One puzzling artifact in machine learning dubbed grokking is where delayed generalization is achieved tenfolds of iterations after near perfect overfitting to the training data. Focusing on the long delay itself on behalf of machine learning practitioners, our goal is to accelerate generalization of a model under grokking phenomenon. By regarding a series of gradients of a parameter over training iterations as a random signal over time, we can spectrally decompose the parameter trajectories under gradient descent into two components: the fast-varying, overfitting-yielding component and the slow-varying, generalization-inducing component. This analysis allows us to accelerate the grokking phenomenon more than ×50 with only a few lines of code that amplifies the slow-varying components of gradients. The experiments show that our algorithm applies to diverse tasks involving images, languages, and graphs, enabling practical availability of this peculiar artifact of sudden generalization

Twitter thread: https://x.com/_ironjr_/status/1798733867303772607
Paper: https://arxiv.org/abs/2405.20233
Code:

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

Successfully merging a pull request may close this issue.

2 participants