• bitcoinBitcoin(BTC)$77,489.000.86%
  • ethereumEthereum(ETH)$2,252.770.64%
  • tetherTether(USDT)$1.000.05%
  • binancecoinBNB(BNB)$705.350.73%
  • rippleXRP(XRP)$1.250.28%
  • usd-coinUSDC(USDC)$1.000.04%
  • solanaSolana(SOL)$95.780.89%
  • tronTRON(TRX)$0.306076-7.81%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.02-0.35%
  • zcashZcash(ZEC)$1,271.753.83%
  • HyperliquidHyperliquid(HYPE)$88.00-2.39%
  • dogecoinDogecoin(DOGE)$0.0757760.63%
  • moneroMonero(XMR)$600.351.16%
  • USDSUSDS(USDS)$1.000.00%
  • chainlinkChainlink(LINK)$11.897.04%
  • whitebitWhiteBIT Coin(WBT)$74.400.71%
  • leo-tokenLEO Token(LEO)$9.30-1.23%
  • cardanoCardano(ADA)$0.1928430.13%
  • stellarStellar(XLM)$0.1694101.55%
  • nearNEAR Protocol(NEAR)$4.423.00%
  • bitcoin-cashBitcoin Cash(BCH)$286.20-1.25%
  • daiDai(DAI)$1.000.05%
  • Ethena USDeEthena USDe(USDE)$1.000.08%
  • RainRain(RAIN)$0.006286-0.88%
  • uniswapUniswap(UNI)$7.102.55%
  • litecoinLitecoin(LTC)$55.881.39%
  • USD1USD1(USD1)$1.000.06%
  • CantonCanton(CC)$0.096846-0.05%
  • avalanche-2Avalanche(AVAX)$8.582.24%
  • suiSui(SUI)$0.901.49%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.213.90%
  • hedera-hashgraphHedera(HBAR)$0.0723331.09%
  • tether-goldTether Gold(XAUT)$3,873.64-0.11%
  • quant-networkQuant(QNT)$201.216.35%
  • Global DollarGlobal Dollar(USDG)$1.000.03%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BittensorBittensor(TAO)$236.982.14%
  • shiba-inuShiba Inu(SHIB)$0.000005-0.57%
  • crypto-com-chainCronos(CRO)$0.0515640.88%
  • EthenaEthena(ENA)$0.1894972.04%
  • Ripple USDRipple USD(RLUSD)$1.000.03%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.08%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • okbOKB(OKB)$110.460.32%
  • pepePepe(PEPE)$0.0000050.75%
  • aaveAave(AAVE)$134.375.63%
  • MemeCoreMemeCore(M)$0.90-4.87%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • OndoOndo(ONDO)$0.4089941.19%
  • Pump.funPump.fun(PUMP)$0.0042083.79%
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

4 Drawbacks You Should Know Before Buying A PlayStation 5

Cisco Talos Details VOLTA Infostealer’s LLM Victim-Ranking Stage – Unite.AI

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

4 Drawbacks You Should Know Before Buying A PlayStation 5
AI & Technology

4 Drawbacks You Should Know Before Buying A PlayStation 5

October 31, 2026
Cisco Talos Details VOLTA Infostealer’s LLM Victim-Ranking Stage – Unite.AI
AI & Technology

Cisco Talos Details VOLTA Infostealer’s LLM Victim-Ranking Stage – Unite.AI

October 31, 2026
NASA’s Second Year-Long Mars Simulation Mission Ends Today
AI & Technology

NASA’s Second Year-Long Mars Simulation Mission Ends Today

October 31, 2026
Here’s How Much The iPhone Pro Cost In 2019 Vs. 2026
AI & Technology

Here’s How Much The iPhone Pro Cost In 2019 Vs. 2026

October 31, 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
CDC scientists sought urgent alert on measles in pregnancy. It wasn’t approved. – The Washington Post

CDC scientists sought urgent alert on measles in pregnancy. It wasn’t approved. – The Washington Post

October 30, 2026
FF EAI Robotics Closes Purchase of Faraday Future’s Robotics Unit – Unite.AI

FF EAI Robotics Closes Purchase of Faraday Future’s Robotics Unit – Unite.AI

October 26, 2026
Democrats ‘heartened’ by Republicans pouring money and playing defense in deep red states

Democrats ‘heartened’ by Republicans pouring money and playing defense in deep red states

October 31, 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!