• bitcoinBitcoin(BTC)$77,236.000.07%
  • ethereumEthereum(ETH)$2,545.483.24%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$724.941.59%
  • rippleXRP(XRP)$1.360.00%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • solanaSolana(SOL)$101.411.47%
  • tronTRON(TRX)$0.336523-0.89%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.18%
  • zcashZcash(ZEC)$1,169.833.22%
  • HyperliquidHyperliquid(HYPE)$80.490.17%
  • dogecoinDogecoin(DOGE)$0.0843460.45%
  • RainRain(RAIN)$0.015640-1.79%
  • USDSUSDS(USDS)$1.000.00%
  • moneroMonero(XMR)$517.420.15%
  • whitebitWhiteBIT Coin(WBT)$80.440.64%
  • chainlinkChainlink(LINK)$11.61-0.19%
  • leo-tokenLEO Token(LEO)$9.16-0.42%
  • cardanoCardano(ADA)$0.205208-2.21%
  • stellarStellar(XLM)$0.178463-0.03%
  • Ethena USDeEthena USDe(USDE)$1.000.02%
  • bitcoin-cashBitcoin Cash(BCH)$228.080.42%
  • daiDai(DAI)$1.00-0.02%
  • USD1USD1(USD1)$1.000.03%
  • litecoinLitecoin(LTC)$53.361.85%
  • CantonCanton(CC)$0.098166-1.02%
  • uniswapUniswap(UNI)$6.080.17%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.360.59%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • nearNEAR Protocol(NEAR)$2.531.83%
  • avalanche-2Avalanche(AVAX)$7.46-2.03%
  • hedera-hashgraphHedera(HBAR)$0.074441-1.26%
  • shiba-inuShiba Inu(SHIB)$0.0000051.06%
  • suiSui(SUI)$0.73-1.92%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.056280-0.08%
  • MemeCoreMemeCore(M)$1.182.34%
  • tether-goldTether Gold(XAUT)$4,351.910.46%
  • Circle USYCCircle USYC(USYC)$1.140.03%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • okbOKB(OKB)$113.411.86%
  • BittensorBittensor(TAO)$234.86-2.28%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.07%
  • mantleMantle(MNT)$0.591.96%
  • aaveAave(AAVE)$124.321.15%
  • pax-goldPAX Gold(PAXG)$4,355.940.57%
  • AsterAster(ASTER)$0.68-3.65%
  • polkadotPolkadot(DOT)$1.05-5.05%
  • OndoOndo(ONDO)$0.3524231.15%
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

New Images Show A Detailed View Of Meta’s Upcoming Mixed Reality Headset

Dzmitry Lazerka, Co-Founder of VictoriaMetrics – Interview Series – Unite.AI

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

New Images Show A Detailed View Of Meta’s Upcoming Mixed Reality Headset
AI & Technology

New Images Show A Detailed View Of Meta’s Upcoming Mixed Reality Headset

September 11, 2026
Dzmitry Lazerka, Co-Founder of VictoriaMetrics – Interview Series – Unite.AI
AI & Technology

Dzmitry Lazerka, Co-Founder of VictoriaMetrics – Interview Series – Unite.AI

September 11, 2026
Where Should Apple Go After The iPhone Duo? Bring On Smaller And Larger Foldables
AI & Technology

Where Should Apple Go After The iPhone Duo? Bring On Smaller And Larger Foldables

September 11, 2026
Why Falling AI Prices Aren’t Lowering Enterprise AI Bills – Unite.AI
AI & Technology

Why Falling AI Prices Aren’t Lowering Enterprise AI Bills – Unite.AI

September 11, 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
Hurricane Lowell passing just west of Hawaii, bringing heavy rain, strong winds, punishing waves – CBS News

Hurricane Lowell passing just west of Hawaii, bringing heavy rain, strong winds, punishing waves – CBS News

September 8, 2026
Flock Cameras Are Officially Banned On State Roads In Florida

Flock Cameras Are Officially Banned On State Roads In Florida

September 4, 2026
Pentagon leadership testifies on war funding as Trump says he has ‘no interest’ in Iran talks

Pentagon leadership testifies on war funding as Trump says he has ‘no interest’ in Iran talks

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