• bitcoinBitcoin(BTC)$84,770.000.29%
  • ethereumEthereum(ETH)$2,686.280.71%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$789.343.00%
  • rippleXRP(XRP)$1.490.39%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$119.701.04%
  • tronTRON(TRX)$0.3353390.24%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.072.73%
  • zcashZcash(ZEC)$1,298.250.48%
  • HyperliquidHyperliquid(HYPE)$89.421.66%
  • dogecoinDogecoin(DOGE)$0.0928880.52%
  • chainlinkChainlink(LINK)$14.112.62%
  • moneroMonero(XMR)$556.122.94%
  • whitebitWhiteBIT Coin(WBT)$84.280.25%
  • USDSUSDS(USDS)$1.00-0.01%
  • cardanoCardano(ADA)$0.2444170.87%
  • leo-tokenLEO Token(LEO)$8.990.05%
  • RainRain(RAIN)$0.0113821.99%
  • stellarStellar(XLM)$0.2156930.76%
  • bitcoin-cashBitcoin Cash(BCH)$316.772.47%
  • nearNEAR Protocol(NEAR)$4.772.24%
  • uniswapUniswap(UNI)$9.041.70%
  • litecoinLitecoin(LTC)$70.091.04%
  • avalanche-2Avalanche(AVAX)$11.093.49%
  • Ethena USDeEthena USDe(USDE)$1.000.00%
  • CantonCanton(CC)$0.1228392.43%
  • suiSui(SUI)$1.185.16%
  • Blockchain USDBlockchain USD(USDB)$0.871,000.00%
  • daiDai(DAI)$1.00-0.01%
  • hedera-hashgraphHedera(HBAR)$0.1017320.16%
  • USD1USD1(USD1)$1.000.02%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.510.83%
  • quant-networkQuant(QNT)$259.1310.98%
  • BittensorBittensor(TAO)$303.554.98%
  • shiba-inuShiba Inu(SHIB)$0.0000060.89%
  • tether-goldTether Gold(XAUT)$4,141.39-0.02%
  • crypto-com-chainCronos(CRO)$0.066183-0.22%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • Pump.funPump.fun(PUMP)$0.00626216.10%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • BitwayBitway(BTW)$1.05-24.38%
  • aaveAave(AAVE)$180.470.50%
  • okbOKB(OKB)$120.28-0.34%
  • Ripple USDRipple USD(RLUSD)$1.00-0.01%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • OndoOndo(ONDO)$0.4941750.53%
  • EthenaEthena(ENA)$0.2383353.06%
  • MemeCoreMemeCore(M)$1.03-2.36%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.13%
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

Stanford Researchers Introduce Sophia: A Scalable Second-Order Optimizer For Language Model Pre-Training

May 26, 2023
in AI & Technology
Reading Time: 4 mins read
A A
Stanford Researchers Introduce Sophia: A Scalable Second-Order Optimizer For Language Model Pre-Training
ShareShareShareShareShare

Given the high up-front cost of training a language model, any non-trivial improvement to the optimization process would drastically reduce the time and money needed to complete the training process. Adam and its variants were the states of the art for a long time, while second-order (Hessian-based) optimizers were rarely utilized due to their greater per-step overhead.

A lightweight estimate of the diagonal Hessian is proposed as the pre-conditioner for the second-order optimizer Sophia, Second-order Clipped Stochastic Optimization, proposed by the researchers. Sophia is a novel optimizer that can solve LLMs twice as fast as Adam. An element-by-element clip is conducted after the update, which is found by taking the mean of the gradients and dividing it by the mean of the estimated Hessian. The clipping limits the size of the worst-case update and mitigates the effect of the trajectory’s non-convexity and fast Hessian changes. Adding some new lines of code might reduce the $2M budget to the $1M range (assuming scaling laws apply).

The average per-step time and memory overhead are low because Sophia only estimates the diagonal Hessian every few iterations. Sophia doubles Adam’s speed in terms of the number of steps, total compute, and wall-clock time while modeling language with GPT-2 models ranging in size from 125 million to 770 million. Researchers demonstrate that Sophia can accommodate large parameter variations that underlie language modeling tasks. The runtime bound is independent of the loss’s condition number.

🚀 JOIN the fastest ML Subreddit Community

Key features

  • Sophia is straightforward to implement with PyTorch, as it requires a lightweight estimate of the diagonal Hessian as a pre-condition on the gradient (see pseudo-code in the first picture) before individually clipping elements.
  • Sophia also helps with pre-workout steadiness. Much less often than in Adam and Lion, gradient clipping is induced. The re-parameterization trick, where the focused temperature varies with the layer index, is unnecessary.
  • Sophia ensures a consistent loss reduction across all parameter dimensions by penalizing updates more heavily in sharp sizes (with large Hessian) than in flat dimensions (with small Hessian). In two-dimensional space, Adam converges more slowly.

Important aspects of this undertaking 

  • This shows that even with limited resources, academics may examine LLM pre-training and develop novel, effective algorithms. 
  • In addition to reviewing material from previous optimization courses, researchers extensively used theoretical reasoning throughout the study process.

In the code scheduled for release tomorrow, researchers used a slightly modified version of the commonly accepted definition of LR. While tidier for typing, the paper’s LR definition could be better for computer code.


Check out the Paper. Don’t forget to join our 22k+ ML SubReddit, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more. If you have any questions regarding the above article or if we missed anything, feel free to email us at [email protected]

🚀 Check Out 100’s AI Tools in AI Tools Club


YOU MAY ALSO LIKE

ICE Is Reportedly Using A Palantir Database To Compile Dossiers On Protestors

How To Check The Temperature Of Your PC’s CPU

Dhanshree Shenwai is a Computer Science Engineer and has a good experience in FinTech companies covering Financial, Cards & Payments and Banking domain with keen interest in applications of AI. She is enthusiastic about exploring new technologies and advancements in today’s evolving world making everyone’s life easy.


➡️ Ultimate Guide to Data Labeling in Machine Learning

Credit: Source link

ShareTweetSendSharePin

Related Posts

ICE Is Reportedly Using A Palantir Database To Compile Dossiers On Protestors
AI & Technology

ICE Is Reportedly Using A Palantir Database To Compile Dossiers On Protestors

October 3, 2026
How To Check The Temperature Of Your PC’s CPU
AI & Technology

How To Check The Temperature Of Your PC’s CPU

October 3, 2026
How To Customize Camera Control On Your iPhone
AI & Technology

How To Customize Camera Control On Your iPhone

October 3, 2026
What Does FDM Stand For In 3D Printing And How Does It Work?
AI & Technology

What Does FDM Stand For In 3D Printing And How Does It Work?

October 3, 2026
Next Post
Airbnb Puts Out Plea to Help Host Ukraine Refugess

Airbnb Puts Out Plea to Help Host Ukraine Refugess

Leave a Reply Cancel reply

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

Search

No Result
View All Result
An SUV crashes into a gas pipeline

An SUV crashes into a gas pipeline

September 26, 2026
What happened in failed execution of Christa Pike – and what next? – BBC

What happened in failed execution of Christa Pike – and what next? – BBC

October 1, 2026
Fireworks AI Releases Ember-1: A Post-Trained Kimi K3 That Uses About 40% Fewer Tokens

Fireworks AI Releases Ember-1: A Post-Trained Kimi K3 That Uses About 40% Fewer Tokens

September 28, 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!