• bitcoinBitcoin(BTC)$76,002.00-5.74%
  • ethereumEthereum(ETH)$2,236.83-8.03%
  • tetherTether(USDT)$1.00-0.04%
  • binancecoinBNB(BNB)$694.03-3.18%
  • rippleXRP(XRP)$1.21-7.50%
  • usd-coinUSDC(USDC)$1.00-0.02%
  • solanaSolana(SOL)$90.03-6.86%
  • tronTRON(TRX)$0.318014-0.38%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.04-1.02%
  • zcashZcash(ZEC)$1,308.68-1.07%
  • HyperliquidHyperliquid(HYPE)$77.75-7.76%
  • moneroMonero(XMR)$619.21-2.68%
  • dogecoinDogecoin(DOGE)$0.072079-6.72%
  • USDSUSDS(USDS)$1.000.00%
  • whitebitWhiteBIT Coin(WBT)$73.05-6.41%
  • leo-tokenLEO Token(LEO)$9.350.00%
  • chainlinkChainlink(LINK)$10.89-5.48%
  • cardanoCardano(ADA)$0.184847-7.19%
  • bitcoin-cashBitcoin Cash(BCH)$275.89-2.11%
  • stellarStellar(XLM)$0.155601-7.80%
  • nearNEAR Protocol(NEAR)$3.70-8.75%
  • Ethena USDeEthena USDe(USDE)$1.00-0.07%
  • daiDai(DAI)$1.000.00%
  • RainRain(RAIN)$0.0061442.65%
  • uniswapUniswap(UNI)$6.97-9.76%
  • litecoinLitecoin(LTC)$52.42-7.04%
  • CantonCanton(CC)$0.097350-4.09%
  • avalanche-2Avalanche(AVAX)$8.32-5.82%
  • USD1USD1(USD1)$1.00-0.07%
  • suiSui(SUI)$0.86-7.75%
  • tether-goldTether Gold(XAUT)$4,033.93-1.88%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.11-6.08%
  • hedera-hashgraphHedera(HBAR)$0.068623-6.58%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • quant-networkQuant(QNT)$190.07-7.51%
  • shiba-inuShiba Inu(SHIB)$0.000005-3.59%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • BittensorBittensor(TAO)$220.18-7.28%
  • crypto-com-chainCronos(CRO)$0.049183-5.93%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.07%
  • okbOKB(OKB)$105.73-6.02%
  • EthenaEthena(ENA)$0.163827-10.53%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.000005-3.87%
  • aaveAave(AAVE)$130.18-2.06%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.14-0.43%
  • MemeCoreMemeCore(M)$0.83-0.74%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Falcon USDFalcon USD(USDF)$0.990.07%
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

Quantized Eigenvector Matrices for 4-bit Second-Order Optimization of Deep Neural Networks

June 6, 2024
in AI & Technology
Reading Time: 5 mins read
A A
Quantized Eigenvector Matrices for 4-bit Second-Order Optimization of Deep Neural Networks
ShareShareShareShareShare

Deep neural networks (DNNs) have achieved remarkable success across various fields, including computer vision, natural language processing, and speech recognition. This success is largely attributed to first-order optimizers like stochastic gradient descent with momentum (SGDM) and AdamW. However, these methods face challenges in efficiently training large-scale models. Second-order optimizers, such as K-FAC, Shampoo, AdaBK, and Sophia, demonstrate superior convergence properties but often incur significant computational and memory costs, hindering their widespread adoption for training large models within limited memory budgets.

Two main approaches have been explored to reduce the memory consumption of optimizer states: factorization and quantization. Factorization uses low-rank approximation to represent optimizer states, a strategy applied to both first-order optimizers and second-order optimizers. In a distinct line of work, quantization techniques utilize low-bit representations to compress the 32-bit optimizer states. While quantization has been successfully applied to first-order optimizers, adapting it to second-order optimizers poses a greater challenge due to the matrix operations involved in these methods.

Researchers from Beijing Normal University and Singapore Management University present the first 4-bit second-order optimizer, taking Shampoo as an example, while maintaining performance comparable to its 32-bit counterpart. The key contribution is quantizing the eigenvector matrix of the preconditioner in 4-bit Shampoo instead of directly quantizing the preconditioner itself. This approach preserves the small singular values of the preconditioner, which are crucial for accurately computing the inverse fourth root, thereby avoiding performance degradation. Also, computing the inverse fourth root from the quantized eigenvector matrix is straightforward, ensuring no increase in wall-clock time. Two techniques are proposed to enhance performance: Björck orthonormalization to rectify the orthogonality of the quantized eigenvector matrix, and linear square quantization outperforming dynamic tree quantization for second-order optimizer states.

The key idea is to quantize the eigenvector matrix U of the preconditioner A=UΛUT using a quantizer Q, instead of quantizing A directly. This preserves the singular value matrix Λ, which is crucial for accurately computing the matrix power A^(-1/4) via matrix decompositions like SVD. Björck orthonormalization is applied to rectify the loss of orthogonality in the quantized eigenvectors. Linear square quantization is used instead of dynamic tree quantization for better 4-bit quantization performance. The preconditioner update utilizes the quantized eigenvectors V and unquantized singular values Λ to approximate A≈VΛVT. The inverse 4th root A^(-1/4) is approximated by quantizing it to get its quantized eigenvectors and reconstructing using the quantized eigenvectors and diagonal entries. Further orthogonalization enables accurate computation of matrix powers As for arbitrary s.

By doing thorough experimentation, researchers demonstrate the superiority of the proposed 4-bit Shampoo over first-order optimizers like AdamW. While first-order methods require running 1.2x to 1.5x more epochs, resulting in longer wall-clock times, they still achieve lower test accuracies compared to second-order optimizers. In contrast, 4-bit Shampoo achieves comparable test accuracies to its 32-bit counterpart, with differences ranging from -0.7% to 0.5%. The increases in wall-clock time for 4-bit Shampoo range from -0.2% to 9.5% compared to 32-bit Shampoo, while providing memory savings of 4.5% to 41%. Remarkably, the memory costs of 4-bit Shampoo are only 0.8% to 12.7% higher than first-order optimizers, marking a significant advancement in enabling the use of second-order methods. 

This research presents the 4-bit Shampoo, designed for memory-efficient training of DNNs. A key finding is that quantizing the eigenvector matrix of the preconditioner, instead of the preconditioner itself, is crucial to minimizing quantization errors in its inverse 4th root computation at 4-bit precision. This is due to the sensitivity of small singular values, which are preserved by quantizing only the eigenvectors. To further enhance performance, orthogonal rectification and linear square quantization mapping techniques are introduced. Across various image classification tasks involving different DNN architectures, 4-bit Shampoo achieves performance on par with its 32-bit counterpart, while offering significant memory savings. This work paves the way for enabling the widespread use of memory-efficient second-order optimizers in training large-scale DNNs.


Check out the Paper. 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

Airbnb Discloses AI Lab Deal With Investment and Licensing Rights – Unite.AI

Perplexity Cuts Agent API Research Costs and Adds Ultra Effort – Unite.AI

Asjad is an intern consultant at Marktechpost. He is persuing B.Tech in mechanical engineering at the Indian Institute of Technology, Kharagpur. Asjad is a Machine learning and deep learning enthusiast who is always researching the applications of machine learning in healthcare.


🐝 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

Airbnb Discloses AI Lab Deal With Investment and Licensing Rights – Unite.AI
AI & Technology

Airbnb Discloses AI Lab Deal With Investment and Licensing Rights – Unite.AI

November 6, 2026
Perplexity Cuts Agent API Research Costs and Adds Ultra Effort – Unite.AI
AI & Technology

Perplexity Cuts Agent API Research Costs and Adds Ultra Effort – Unite.AI

November 5, 2026
Blue Origin’s New Glenn Launch Delay Will Continue Into 2027
AI & Technology

Blue Origin’s New Glenn Launch Delay Will Continue Into 2027

November 5, 2026
Five9 Agrees to Buy Level AI and Broaden CX AI Distribution – Unite.AI
AI & Technology

Five9 Agrees to Buy Level AI and Broaden CX AI Distribution – Unite.AI

November 5, 2026
Next Post
EBay to drop American Express, blasts ‘unacceptably high fees’

EBay to drop American Express, blasts 'unacceptably high fees'

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Record 7.4 million visit Munich’s Oktoberfest

Record 7.4 million visit Munich’s Oktoberfest

November 1, 2026
The Letter Company Releases Letterpress-1: A Coding Agent Built for Growth Engineering

The Letter Company Releases Letterpress-1: A Coding Agent Built for Growth Engineering

November 3, 2026
Could breakthrough new treatment cure Type 1 diabetes?

Could breakthrough new treatment cure Type 1 diabetes?

November 1, 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!