• bitcoinBitcoin(BTC)$77,474.001.42%
  • ethereumEthereum(ETH)$2,486.662.01%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$753.083.84%
  • rippleXRP(XRP)$1.321.99%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$105.536.01%
  • tronTRON(TRX)$0.3358530.10%
  • zcashZcash(ZEC)$1,516.5611.85%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.15%
  • HyperliquidHyperliquid(HYPE)$87.6611.15%
  • dogecoinDogecoin(DOGE)$0.0844244.44%
  • moneroMonero(XMR)$517.454.34%
  • USDSUSDS(USDS)$1.000.02%
  • whitebitWhiteBIT Coin(WBT)$79.751.52%
  • RainRain(RAIN)$0.012703-1.44%
  • chainlinkChainlink(LINK)$11.775.89%
  • leo-tokenLEO Token(LEO)$8.90-0.42%
  • cardanoCardano(ADA)$0.2141469.14%
  • stellarStellar(XLM)$0.1881803.32%
  • uniswapUniswap(UNI)$8.5125.61%
  • bitcoin-cashBitcoin Cash(BCH)$247.2912.00%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • nearNEAR Protocol(NEAR)$3.5031.95%
  • daiDai(DAI)$1.00-0.02%
  • USD1USD1(USD1)$1.000.01%
  • CantonCanton(CC)$0.10893811.95%
  • litecoinLitecoin(LTC)$54.865.44%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.353.03%
  • avalanche-2Avalanche(AVAX)$7.925.26%
  • hedera-hashgraphHedera(HBAR)$0.0770954.48%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • suiSui(SUI)$0.788.19%
  • shiba-inuShiba Inu(SHIB)$0.0000057.17%
  • crypto-com-chainCronos(CRO)$0.0588230.99%
  • MemeCoreMemeCore(M)$1.2814.90%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • BittensorBittensor(TAO)$241.517.58%
  • tether-goldTether Gold(XAUT)$4,363.301.71%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • okbOKB(OKB)$114.122.29%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.35%
  • aaveAave(AAVE)$134.169.60%
  • AsterAster(ASTER)$0.752.30%
  • Pump.funPump.fun(PUMP)$0.00423610.86%
  • polkadotPolkadot(DOT)$1.1412.78%
  • mantleMantle(MNT)$0.584.60%
  • pax-goldPAX Gold(PAXG)$4,362.821.64%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

GROKFAST: A Machine Learning Approach that Accelerates Grokking by Amplifying Slow Gradients

June 6, 2024
in AI & Technology
Reading Time: 4 mins read
A A
GROKFAST: A Machine Learning Approach that Accelerates Grokking by Amplifying Slow Gradients
ShareShareShareShareShare

Grokking is a newly developed phenomenon where a model starts to generalize well long after it has overfitted to the training data. It was first seen in a two-layer Transformer trained on a simple dataset. In grokking, generalization occurs only after many more training iterations than overfitting. This requires high computational resources, making it less practical for most machine learning practitioners with limited resources. To fully understand this unusual behavior, there is a need for faster generalization in these overfitting systems. The main aim is to speed up the grokking phenomenon.

An existing method, grokking is a newly discovered phenomenon that shows that overparameterized neural networks can generalize and reason beyond just memorizing the dataset. Most research focuses on understanding this mechanism, linking grokking to the double descent phenomenon, where validation error first increases and then decreases as model parameters grow. Apart from this method, optimization techniques are used in which a model’s generalization patterns vary significantly with different optimization methods like mini-batch training, choice of optimizer, weight decay, noise injection, dropout, and learning rate all affect the model’s grokking pattern.

Researchers from the Seoul National University, Korea introduced GROKFAST, an algorithm that accelerated grokking by amplifying slow gradients. Researchers proved through experiments that GROKFAST algorithms have the potential to solve a wide variety of tasks that contain images, languages, and graphs. This makes the unique artifact of immediate generalization practically useful. Further, the parameter trajectories under gradient descent are split into two components: the fast-varying, overfitting-yielding component and the slow-varying, generalization-inducing component. This analysis helps the grokking method to become 50 times faster with only a few lines of code. 

During the experiment, the idea of the algorithmic dataset used in the first report on grokking is shown, where the network is a two-layer decoder-only transformer trained to predict the answer of a modular binary multiplication operation. Comparing the time to reach an accuracy of 0.95, the validation accuracy keeps improving longer. It reaches its peak 97.3 times later than the training accuracy, which quickly reaches its maximum and starts overfitting. Further, hyperparameters are selected from a simple grid search, and found that the filter works best when λ(scalar factor) = 5 and w(window size) = 100. Also, there is a reduction of 13.57 times in the number of iterations to reach the validation accuracy of 0.95, which is a good result.  

The proposed method is based on the idea that slow gradients (low-pass filtered gradient updates) help in generalization. The training dynamics of a model are interpreted under grokking as a state transition, where the model goes through three stages: 

  • Initialized, where both the training and validation losses are not saturated
  • Overfitted, where the training loss is completely saturated but validation loss is not saturated
  • Generalized, where both losses are saturated. 

Moreover, research suggests that the weight decay hyperparameter significantly plays a critical role in the grokking phenomenon.

In conclusion, researchers from the Seoul National University, Korea have proposed an algorithm, GROKFAST, that accelerated grokking phenomenon by amplifying slow gradients. The analysis of how each model parameter changes into a random signal during training iteration helps to separate gradient updates into fast-varying and slow-varying components. Despite showing outstanding results, there is a limit in the utilization by GROKFAST that needs w times more memory to store all the previous gradients. Also replication of the model parameters also makes the training slower.


Check out the Paper and GitHub. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter. Join our Telegram Channel, Discord Channel, and LinkedIn Group.

If you like our work, you will love our newsletter..

Don’t Forget to join our 43k+ ML SubReddit | Also, check out our AI Events Platform


YOU MAY ALSO LIKE

eGPUs Do Work, But They Come With Some Notable Limitations

Google’s Revamped CC Is An AI Agent For Families And Groups

Sajjad Ansari is a final year undergraduate from IIT Kharagpur. As a Tech enthusiast, he delves into the practical applications of AI with a focus on understanding the impact of AI technologies and their real-world implications. He aims to articulate complex AI concepts in a clear and accessible manner.


🐝 Join the Fastest Growing AI Research Newsletter Read by Researchers from Google + NVIDIA + Meta + Stanford + MIT + Microsoft and many others…


Credit: Source link

ShareTweetSendSharePin

Related Posts

eGPUs Do Work, But They Come With Some Notable Limitations
AI & Technology

eGPUs Do Work, But They Come With Some Notable Limitations

September 17, 2026
Google’s Revamped CC Is An AI Agent For Families And Groups
AI & Technology

Google’s Revamped CC Is An AI Agent For Families And Groups

September 17, 2026
Anthropic Says Claude Leads 26% of Its AI Research and Development – Unite.AI
AI & Technology

Anthropic Says Claude Leads 26% of Its AI Research and Development – Unite.AI

September 17, 2026
Anthropic Says Claude ‘Leads’ 26 Percent Of Its AI R&D Work
AI & Technology

Anthropic Says Claude ‘Leads’ 26 Percent Of Its AI R&D Work

September 17, 2026
Next Post
At least 4 killed, 2 injured in Michigan house explosion

At least 4 killed, 2 injured in Michigan house explosion

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Lindsay Clancy lawyer, jurors speak out after mistrial

Lindsay Clancy lawyer, jurors speak out after mistrial

September 14, 2026
At least 8 injured in Russian strikes on Kyiv

At least 8 injured in Russian strikes on Kyiv

September 13, 2026
Judge rules 0M SoFi Stadium and Inglewood deal is void

Judge rules $400M SoFi Stadium and Inglewood deal is void

September 13, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!