• bitcoinBitcoin(BTC)$79,534.001.34%
  • ethereumEthereum(ETH)$2,511.471.57%
  • tetherTether(USDT)$1.000.03%
  • binancecoinBNB(BNB)$749.94-0.29%
  • rippleXRP(XRP)$1.442.60%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$104.541.46%
  • tronTRON(TRX)$0.338836-0.01%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.00%
  • zcashZcash(ZEC)$1,266.029.23%
  • HyperliquidHyperliquid(HYPE)$86.523.93%
  • dogecoinDogecoin(DOGE)$0.0912412.06%
  • RainRain(RAIN)$0.016368-2.33%
  • USDSUSDS(USDS)$1.000.02%
  • whitebitWhiteBIT Coin(WBT)$82.223.05%
  • moneroMonero(XMR)$496.76-1.31%
  • chainlinkChainlink(LINK)$12.20-2.68%
  • leo-tokenLEO Token(LEO)$9.180.02%
  • cardanoCardano(ADA)$0.2209360.97%
  • stellarStellar(XLM)$0.1892770.29%
  • bitcoin-cashBitcoin Cash(BCH)$259.741.34%
  • daiDai(DAI)$1.00-0.01%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • USD1USD1(USD1)$1.000.00%
  • litecoinLitecoin(LTC)$54.35-2.25%
  • CantonCanton(CC)$0.1058421.72%
  • uniswapUniswap(UNI)$6.70-4.33%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.400.54%
  • hedera-hashgraphHedera(HBAR)$0.078940-1.59%
  • avalanche-2Avalanche(AVAX)$7.98-0.70%
  • nearNEAR Protocol(NEAR)$2.6013.13%
  • suiSui(SUI)$0.820.29%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • shiba-inuShiba Inu(SHIB)$0.0000050.10%
  • crypto-com-chainCronos(CRO)$0.060227-0.97%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$1.191.29%
  • tether-goldTether Gold(XAUT)$4,407.410.12%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • BittensorBittensor(TAO)$269.436.50%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • okbOKB(OKB)$114.19-0.84%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.03%
  • mantleMantle(MNT)$0.641.44%
  • AsterAster(ASTER)$0.75-0.91%
  • aaveAave(AAVE)$129.390.17%
  • polkadotPolkadot(DOT)$1.178.61%
  • Pump.funPump.fun(PUMP)$0.0046447.96%
  • pax-goldPAX Gold(PAXG)$4,409.910.11%
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

Harvey Secures $550M in Fresh Funding, Valuation Climbs to $15.5B – Unite.AI

How To Take Full Advantage Of Gemini When Planning Your Next Trip

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

Harvey Secures 0M in Fresh Funding, Valuation Climbs to .5B – Unite.AI
AI & Technology

Harvey Secures $550M in Fresh Funding, Valuation Climbs to $15.5B – Unite.AI

September 9, 2026
How To Take Full Advantage Of Gemini When Planning Your Next Trip
AI & Technology

How To Take Full Advantage Of Gemini When Planning Your Next Trip

September 9, 2026
Will We See The Foldable iPhone Ultra At The ‘Surprise And Shine’ Keynote Today?
AI & Technology

Will We See The Foldable iPhone Ultra At The ‘Surprise And Shine’ Keynote Today?

September 9, 2026
Gradium Launches Voice Design: Write a Prompt, Get a Brand New Synthetic Voice in Seconds
AI & Technology

Gradium Launches Voice Design: Write a Prompt, Get a Brand New Synthetic Voice in Seconds

September 9, 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
BREAKING: President Trump announces new tariffs on dozens of countries

BREAKING: President Trump announces new tariffs on dozens of countries

September 6, 2026
Tracking Prem Watsa's Fairfax Financial Holdings Portfolio – Q2 2026 Update

Tracking Prem Watsa's Fairfax Financial Holdings Portfolio – Q2 2026 Update

September 9, 2026
How To Find Your MacBook’s Diagnostic Menu

How To Find Your MacBook’s Diagnostic Menu

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