• bitcoinBitcoin(BTC)$79,962.00-1.67%
  • Midas Fasanara Global EuroMidas Fasanara Global Euro(MGLOEURO)$111,813.00-0.36%
  • ethereumEthereum(ETH)$2,313.28-2.43%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$750.690.18%
  • rippleXRP(XRP)$1.29-3.13%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$99.91-2.80%
  • tronTRON(TRX)$0.331132-0.07%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.09%
  • zcashZcash(ZEC)$1,244.25-5.66%
  • HyperliquidHyperliquid(HYPE)$79.00-3.20%
  • dogecoinDogecoin(DOGE)$0.077860-2.87%
  • moneroMonero(XMR)$593.11-3.18%
  • USDSUSDS(USDS)$1.000.00%
  • whitebitWhiteBIT Coin(WBT)$76.70-1.83%
  • chainlinkChainlink(LINK)$11.43-3.20%
  • leo-tokenLEO Token(LEO)$9.451.63%
  • cardanoCardano(ADA)$0.198232-4.37%
  • stellarStellar(XLM)$0.167833-2.41%
  • nearNEAR Protocol(NEAR)$4.33-9.08%
  • bitcoin-cashBitcoin Cash(BCH)$279.89-5.85%
  • RainRain(RAIN)$0.006796-3.34%
  • daiDai(DAI)$1.00-0.02%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • litecoinLitecoin(LTC)$57.01-1.33%
  • uniswapUniswap(UNI)$7.03-2.95%
  • USD1USD1(USD1)$1.000.00%
  • avalanche-2Avalanche(AVAX)$8.67-4.00%
  • CantonCanton(CC)$0.096232-4.28%
  • suiSui(SUI)$0.91-3.50%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.21-2.61%
  • hedera-hashgraphHedera(HBAR)$0.073696-3.71%
  • tether-goldTether Gold(XAUT)$4,024.24-0.39%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • BittensorBittensor(TAO)$247.73-3.89%
  • shiba-inuShiba Inu(SHIB)$0.000005-2.79%
  • quant-networkQuant(QNT)$192.54-3.15%
  • BitwayBitway(BTW)$1.812.18%
  • crypto-com-chainCronos(CRO)$0.052664-2.24%
  • EthenaEthena(ENA)$0.197296-5.55%
  • Ripple USDRipple USD(RLUSD)$1.00-0.02%
  • MemeCoreMemeCore(M)$1.05-4.48%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.15%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • okbOKB(OKB)$110.990.58%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • pepePepe(PEPE)$0.0000050.40%
  • aaveAave(AAVE)$130.61-4.02%
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

Google AI Research Introduces GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints

January 31, 2024
in AI & Technology
Reading Time: 4 mins read
A A
Google AI Research Introduces GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints
ShareShareShareShareShare

In the enchanting world of language models and attention mechanisms, picture a daring quest to accelerate decoder inference and enhance the prowess of large language models. Our tale unfolds with the discovery of multi-query attention (MQA), a captivating technique that promises speedier results. Multi-query attention (MQA) expedites decoder inference through the employment of a single key-value head. 

However, its efficiency is countered by the potential for a decline in quality. Furthermore, there may be hesitation in training a separate model solely dedicated to hastening inference. Despite its benefits, the use of MQA is linked with drawbacks such as quality degradation and training instability. Moreover, the feasibility of developing distinct models optimized for both quality and inference is questioned due to potential limitations.

The above figure demonstrates the overview of conversion from multi-head to multi-query attention. Key and value projection matrices from all heads are mean pooled into a single head. 

The paper introduces two contributions aimed at enhancing the efficiency of large language models during inference. Firstly, it demonstrates that language model checkpoints employing multi-head attention (MHA) can be uptrained, as outlined by Komatsuzaki et al. in 2022, to incorporate multi-query attention (MQA) with a minimal fraction of the original training compute. This approach offers a cost-effective means of obtaining both rapid multi-query functionality and high-quality MHA checkpoints.

Secondly, the paper suggests grouped-query attention (GQA) as an interpolation between multi-head and multi-query attention, utilizing single key and value heads for each subgroup of query heads. The research illustrates that uptrained GQA achieves quality levels close to multi-head attention while maintaining a speed comparable to that of multi-query attention.

Employing language models for swift responses becomes expensive due to the high memory demand for loading keys and values. Although multi-query attention addresses this issue by cutting down on memory usage, it does so at the cost of reducing the model size and accuracy. The proposed approach involves transforming multi-head attention models into multi-query models using only a fraction of the original training. Furthermore, the introduction of grouped-query attention, a combination of multi-query and multi-head attention, maintains quality comparable to multi-head attention while operating at a speed nearly as fast as multi-query attention.

In conclusion, the objective of this paper is to enhance the efficiency of language models in handling substantial amounts of information while minimising computer memory usage. This is particularly crucial when dealing with longer sequences, where assessing quality poses challenges. The evaluation for summarization involves using a metric called Rouge score, with an acknowledgment of its imperfect nature. Due to certain limitations in the testing methodology, the certainty of the correctness of our choices is not absolute.

Additionally, a direct comparison of our XXL GQA model with a counterpart trained from scratch was not conducted, preventing a clear understanding of its performance relative to starting anew. Lastly, the evaluations focused exclusively on models engaged in both reading and generating information. There are other popular models dedicated solely to information generation, and there is a belief that our GQA approach may prove more effective for them compared to an alternative technique known as MQA.


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 36k+ ML SubReddit, 41k+ Facebook Community, Discord Channel, and LinkedIn Group.

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

Don’t Forget to join our Telegram Channel


YOU MAY ALSO LIKE

NVIDIA Releases Nemotron 3.5 Transcribe: An Open 30B MoE Model for 40-Language Transcription with ~4B Active Parameters

FCC Chair Wants To Let Prisons Jam Illegal Cellphones

Janhavi Lande, is an Engineering Physics graduate from IIT Guwahati, class of 2023. She is an upcoming data scientist and has been working in the world of ml/ai research for the past two years. She is most fascinated by this ever changing world and its constant demand of humans to keep up with it. In her pastime she enjoys traveling, reading and writing poems.


🎯 [FREE AI WEBINAR] ‘Create Embeddings on Real-Time Data with OpenAI & SingleStore Job Service’ (Jan 31, 2024)


Credit: Source link

ShareTweetSendSharePin

Related Posts

NVIDIA Releases Nemotron 3.5 Transcribe: An Open 30B MoE Model for 40-Language Transcription with ~4B Active Parameters
AI & Technology

NVIDIA Releases Nemotron 3.5 Transcribe: An Open 30B MoE Model for 40-Language Transcription with ~4B Active Parameters

October 29, 2026
FCC Chair Wants To Let Prisons Jam Illegal Cellphones
AI & Technology

FCC Chair Wants To Let Prisons Jam Illegal Cellphones

October 28, 2026
Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI
AI & Technology

Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI

October 28, 2026
Google Rolls Out AI Mode Ads in 10 Countries, Multiturn Ads in U.S. – Unite.AI
AI & Technology

Google Rolls Out AI Mode Ads in 10 Countries, Multiturn Ads in U.S. – Unite.AI

October 28, 2026
Next Post
Trump continues on the campaign trail amid the threat of another indictment

Trump continues on the campaign trail amid the threat of another indictment

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Elon Musk’s Tesla eyes transportation ‘domination’ as Cybercab expansion heats up competition with Waymo

Elon Musk’s Tesla eyes transportation ‘domination’ as Cybercab expansion heats up competition with Waymo

October 22, 2026
Halloween candy sales off to slow start amid high chocolate prices, affordability concerns

Halloween candy sales off to slow start amid high chocolate prices, affordability concerns

October 25, 2026
Injured Ukrainian soldier rescued with a drone

Injured Ukrainian soldier rescued with a drone

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