• bitcoinBitcoin(BTC)$64,653.00-1.57%
  • ethereumEthereum(ETH)$1,807.68-2.05%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$589.77-1.38%
  • usd-coinUSDC(USDC)$1.000.01%
  • rippleXRP(XRP)$0.96-2.85%
  • solanaSolana(SOL)$71.19-3.99%
  • tronTRON(TRX)$0.305763-1.43%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.061.02%
  • HyperliquidHyperliquid(HYPE)$67.08-1.24%
  • zcashZcash(ZEC)$889.010.29%
  • moneroMonero(XMR)$497.32-4.34%
  • dogecoinDogecoin(DOGE)$0.058326-4.89%
  • USDSUSDS(USDS)$1.00-0.03%
  • leo-tokenLEO Token(LEO)$9.15-1.24%
  • whitebitWhiteBIT Coin(WBT)$62.50-2.34%
  • chainlinkChainlink(LINK)$9.18-1.34%
  • cardanoCardano(ADA)$0.152857-3.07%
  • Ethena USDeEthena USDe(USDE)$1.000.02%
  • stellarStellar(XLM)$0.138217-1.51%
  • daiDai(DAI)$1.000.01%
  • bitcoin-cashBitcoin Cash(BCH)$207.59-2.37%
  • nearNEAR Protocol(NEAR)$3.13-2.77%
  • litecoinLitecoin(LTC)$44.61-4.20%
  • CantonCanton(CC)$0.0823130.48%
  • avalanche-2Avalanche(AVAX)$7.15-6.86%
  • uniswapUniswap(UNI)$5.11-1.03%
  • USD1USD1(USD1)$1.000.00%
  • tether-goldTether Gold(XAUT)$3,815.02-1.01%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.05-1.42%
  • suiSui(SUI)$0.72-3.65%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • RainRain(RAIN)$0.0037051.06%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • hedera-hashgraphHedera(HBAR)$0.058122-1.44%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.07%
  • shiba-inuShiba Inu(SHIB)$0.000004-3.48%
  • quant-networkQuant(QNT)$154.10-0.23%
  • BittensorBittensor(TAO)$190.10-4.79%
  • crypto-com-chainCronos(CRO)$0.043603-4.05%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.120.00%
  • MemeCoreMemeCore(M)$0.82-1.95%
  • okbOKB(OKB)$87.11-1.26%
  • pax-goldPAX Gold(PAXG)$3,817.14-1.00%
  • pepePepe(PEPE)$0.000004-5.43%
  • Falcon USDFalcon USD(USDF)$1.000.15%
  • aaveAave(AAVE)$106.331.98%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
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

This Machine Learning Research Presents ScatterMoE: An Implementation of Sparse Mixture-of-Experts (SMoE) on GPUs

March 18, 2024
in AI & Technology
Reading Time: 4 mins read
A A
This Machine Learning Research Presents ScatterMoE: An Implementation of Sparse Mixture-of-Experts (SMoE) on GPUs
ShareShareShareShareShare

A sparse Mixture of Experts (SMoEs) has gained traction for scaling models, especially useful in memory-constrained setups. They’re pivotal in Switch Transformer and Universal Transformers, offering efficient training and inference. However, implementing SMoEs efficiently poses challenges. Naive PyTorch implementations lack GPU parallelism, hindering performance. Also, initial deployments of TPUs need help with tensor size variability, leading to memory allocation issues due to imbalanced expert usage.

Megablocks and PIT propose framing SMoE computation as a sparse matrix multiplication problem to address these challenges. This allows for more efficient GPU-based implementations. However, existing approaches still have drawbacks. They require a scatter-to-group initial copy of the input, leading to memory overhead during training. Some implementations further exacerbate this issue by padding the grouped copy, increasing memory usage. Moreover, translating the SMoE problem into a sparse matrix format introduces computation overhead and opacity, making extension beyond SMoE MLPs difficult.

Researchers from IBM, Mila, and the University of Montreal present ScatterMoE, an efficient SMoE implementation that minimizes memory footprint via ParallelLinear, which conducts grouped matrix operations on scattered groups. This approach enables intermediate representations to be exposed as standard PyTorch tensors, facilitating easy extension to other expert modules. Demonstrated with SMoE Attention, ScatterMoE is benchmarked against Megablocks, which is crucial for its usage in Megatron-LM. Megablocks is implemented using the STK framework, making it accessible for modification and extension.

ScatterMoE employs ParallelLinear for efficient SMoE computation. It streamlines memory usage by avoiding additional copying and padding during operations. ParallelLinear facilitates various transformations, enhancing extensibility to other expert modules. For the backward pass, ParallelLinear efficiently computes gradients for each expert. ScatterMoE also enables seamless implementation of Mixture-of-Attention (MoA) without additional memory costs, supporting applications like SMoE Attention. The proposed method is benchmarked against Megablocks for validation.

In Mixtral, ScatterMoE outperforms Megablocks Sparse and Memory-efficient implementations by a staggering 38.1% overall throughput. Unit benchmarking on SMoE MLP reveals ScatterMoE’s higher throughput during training and lower memory consumption. As granularity increases, ScatterMoE demonstrates better scalability compared to Megablocks, making it the clear choice for high-granularity settings. Decreasing sparsity also showcases ScatterMoE’s efficiency, outperforming Megablocks in throughput while remaining more efficient than dense MLP models. Also, in Mixture of Attention implementation, ScatterMoE consistently outperforms Megablocks, particularly in high granularity settings.

In conclusion, the researchers have introduced ScatterMoE, which enhances SMoE implementations on GPUs by mitigating memory footprint issues and boosting inference and training speed. Leveraging ParallelLinear, it outperforms Megablocks, demonstrating superior throughput and reduced memory usage. ScatterMoE’s design facilitates the extension of Mixture-of-Experts concepts, exemplified by its implementation of Mixture of Attention. This approach significantly advances efficient deep learning model training and inference.


Check out the Paper and Github. 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 38k+ ML SubReddit


YOU MAY ALSO LIKE

What Is Nvidia Without Jensen Huang?

Suicides Raise Alarm Inside US Cybersecurity Agencies

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

What Is Nvidia Without Jensen Huang?
AI & Technology

What Is Nvidia Without Jensen Huang?

November 15, 2026
Suicides Raise Alarm Inside US Cybersecurity Agencies
AI & Technology

Suicides Raise Alarm Inside US Cybersecurity Agencies

November 15, 2026
Nvidia China Scandal Demands Answers, Says Congressman
AI & Technology

Nvidia China Scandal Demands Answers, Says Congressman

November 15, 2026
How Anthropic’s IPO Could Unleash a New Wave of Venture Capital
AI & Technology

How Anthropic’s IPO Could Unleash a New Wave of Venture Capital

November 15, 2026
Next Post
Adobe Q1: AI Is Not An Enemy, But An Ally – Buy The Weakness (Rating Upgrade) (ADBE)

Adobe Q1: AI Is Not An Enemy, But An Ally - Buy The Weakness (Rating Upgrade) (ADBE)

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Supermarkets across Europe hit by fridge cyberattack

Supermarkets across Europe hit by fridge cyberattack

November 12, 2026
Haley Stevens backs Mike Rogers in Michigan Senate race

Haley Stevens backs Mike Rogers in Michigan Senate race

November 13, 2026
Meta tests secret prediction-market app where users would guess for ‘cred’ — not money

Meta tests secret prediction-market app where users would guess for ‘cred’ — not money

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