• bitcoinBitcoin(BTC)$77,884.000.50%
  • ethereumEthereum(ETH)$2,262.530.45%
  • tetherTether(USDT)$1.00-0.03%
  • binancecoinBNB(BNB)$707.220.73%
  • rippleXRP(XRP)$1.25-0.18%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$94.31-1.54%
  • tronTRON(TRX)$0.3128522.92%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.082.95%
  • HyperliquidHyperliquid(HYPE)$87.82-0.22%
  • zcashZcash(ZEC)$1,235.96-2.89%
  • dogecoinDogecoin(DOGE)$0.075267-0.75%
  • moneroMonero(XMR)$597.630.12%
  • USDSUSDS(USDS)$1.00-0.04%
  • whitebitWhiteBIT Coin(WBT)$74.700.41%
  • chainlinkChainlink(LINK)$11.34-4.10%
  • leo-tokenLEO Token(LEO)$9.401.03%
  • cardanoCardano(ADA)$0.192314-0.57%
  • stellarStellar(XLM)$0.167730-1.44%
  • bitcoin-cashBitcoin Cash(BCH)$282.94-0.56%
  • nearNEAR Protocol(NEAR)$4.29-3.29%
  • RainRain(RAIN)$0.0064873.19%
  • daiDai(DAI)$1.00-0.03%
  • Ethena USDeEthena USDe(USDE)$1.00-0.07%
  • uniswapUniswap(UNI)$7.170.86%
  • litecoinLitecoin(LTC)$55.45-0.90%
  • CantonCanton(CC)$0.097586-0.76%
  • USD1USD1(USD1)$1.00-0.02%
  • avalanche-2Avalanche(AVAX)$8.671.06%
  • suiSui(SUI)$0.90-0.38%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.210.68%
  • hedera-hashgraphHedera(HBAR)$0.071267-1.23%
  • tether-goldTether Gold(XAUT)$3,878.220.11%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • quant-networkQuant(QNT)$201.090.72%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.05%
  • shiba-inuShiba Inu(SHIB)$0.0000050.20%
  • BittensorBittensor(TAO)$233.12-1.88%
  • crypto-com-chainCronos(CRO)$0.051053-0.97%
  • EthenaEthena(ENA)$0.182094-3.79%
  • Ripple USDRipple USD(RLUSD)$1.00-0.02%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.11%
  • okbOKB(OKB)$113.923.15%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • aaveAave(AAVE)$134.210.42%
  • pepePepe(PEPE)$0.000005-2.70%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • OndoOndo(ONDO)$0.403198-1.65%
  • MemeCoreMemeCore(M)$0.84-7.53%
  • Pump.funPump.fun(PUMP)$0.004147-1.71%
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

Meet MosaicBERT: A BERT-Style Encoder Architecture and Training Recipe that is Empirically Optimized for Fast Pretraining

January 10, 2024
in AI & Technology
Reading Time: 4 mins read
A A
Meet MosaicBERT: A BERT-Style Encoder Architecture and Training Recipe that is Empirically Optimized for Fast Pretraining
ShareShareShareShareShare

BERT is a language model which was released by Google in 2018. It is based on the transformer architecture and is known for its significant improvement over previous state-of-the-art models. As such, it has been the powerhouse of numerous natural language processing (NLP) applications since its inception, and even in the age of large language models (LLMs), BERT-style encoder models are used in tasks like vector embeddings and retrieval augmented generation (RAG). However, in the past half a decade, many significant advancements have been made with other types of architectures and training configurations that have yet to be incorporated into BERT.

In this research paper, the authors have shown that speed optimizations can be incorporated into the BERT architecture and training recipe. For this, they have introduced an optimized framework called MosaicBERT that improves the pretraining speed and accuracy of the classic BERT architecture, which has historically been computationally expensive to train.

YOU MAY ALSO LIKE

Anthropic Updates Claude To Stop It From Recreating Existing Video Games

This Hidden Windows 11 Menu Can Save You Valuable Time When Troubleshooting

To build MosaicBERT, the researchers used different architectural choices such as FlashAttention, ALiBi, training with dynamic unpadding, low-precision LayerNorm, and Gated Linear Units.

  • The flashAttention layer reduces the number of read/write operations between the GPU’s long-term and short-term memory.
  • ALiBi encodes position information through the attention operation, eliminating the position embeddings and acting as an indirect speedup method.
  • The researchers modified the LayerNorm modules to run in bfloat16 precision instead of float32, which reduces the amount of data that needs to be loaded from memory from 4 bytes per element to 2 bytes.
  • Lastly, the Gated Linear Units improves the Pareto performance across all timescales.

The researchers pretrained BERT-Base and MosaicBERT-Base for 70,000 steps of batch size 4096 and then finetuned them on the GLUE benchmark suite. BERT-Base reached an average GLUE score of 83.2% in 11.5 hours, whereas MosaicBERT achieved the same accuracy in around 4.6 hours on the same hardware, highlighting the significant speedup. MosaicBERT also outperforms the BERT model in four out of eight GLUE tasks across the training duration.

The large variant of MosaicBERT also had a significant speedup over the BERT variant, achieving an average GLUE score of 83.2 in 15.85 hours compared to 23.35 hours taken by BERT-Large. Both the variants of MosaicBERT are Pareto Optimal relative to the corresponding BERT models. The results also show that the performance of BERT-Large surpasses the base model only after extensive training.

In conclusion, the authors of this research paper have improved the pretraining speed and accuracy of the BERT model using a combination of architectural choices such as FlashAttention, ALiBi, low-precision LayerNorm, and Gated Linear Units. Both the model variants had a significant speedup compared to their BERT counterparts by achieving the same GLUE score in less time on the same hardware. The authors hope their work will help researchers pre-train BERT models faster and cheaper, ultimately enabling them to build better models.


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

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


Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.


🐝 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

Anthropic Updates Claude To Stop It From Recreating Existing Video Games
AI & Technology

Anthropic Updates Claude To Stop It From Recreating Existing Video Games

November 1, 2026
This Hidden Windows 11 Menu Can Save You Valuable Time When Troubleshooting
AI & Technology

This Hidden Windows 11 Menu Can Save You Valuable Time When Troubleshooting

November 1, 2026
Which Is Better for Turning Videos Into Shorts? – Unite.AI
AI & Technology

Which Is Better for Turning Videos Into Shorts? – Unite.AI

November 1, 2026
Affle Signs Definitive Agreement to Acquire Ad Tech Company Perion – Unite.AI
AI & Technology

Affle Signs Definitive Agreement to Acquire Ad Tech Company Perion – Unite.AI

November 1, 2026
Next Post
Top News – Aug. 21 | Hilary makes landfall in California, Severe flooding in Palm Springs

Top News - Aug. 21 | Hilary makes landfall in California, Severe flooding in Palm Springs

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Pope Leo to undergo lung surgery this week

Pope Leo to undergo lung surgery this week

October 27, 2026
What to watch in the weeks leading up to the midterm elections

What to watch in the weeks leading up to the midterm elections

October 30, 2026
DoorDash buys Instacart for B in massive food delivery merger

DoorDash buys Instacart for $17B in massive food delivery merger

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