• bitcoinBitcoin(BTC)$77,134.000.06%
  • ethereumEthereum(ETH)$2,544.043.38%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$724.511.86%
  • rippleXRP(XRP)$1.360.65%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$101.291.97%
  • tronTRON(TRX)$0.336615-0.81%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.43%
  • zcashZcash(ZEC)$1,174.183.86%
  • HyperliquidHyperliquid(HYPE)$80.871.26%
  • dogecoinDogecoin(DOGE)$0.0845091.19%
  • RainRain(RAIN)$0.015650-1.77%
  • USDSUSDS(USDS)$1.000.00%
  • moneroMonero(XMR)$513.980.36%
  • whitebitWhiteBIT Coin(WBT)$80.350.72%
  • chainlinkChainlink(LINK)$11.650.15%
  • leo-tokenLEO Token(LEO)$9.16-0.30%
  • cardanoCardano(ADA)$0.205217-1.75%
  • stellarStellar(XLM)$0.1787340.22%
  • Ethena USDeEthena USDe(USDE)$1.000.03%
  • bitcoin-cashBitcoin Cash(BCH)$228.181.22%
  • daiDai(DAI)$1.000.00%
  • USD1USD1(USD1)$1.000.05%
  • litecoinLitecoin(LTC)$53.422.41%
  • CantonCanton(CC)$0.098264-0.55%
  • uniswapUniswap(UNI)$6.070.68%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.361.04%
  • nearNEAR Protocol(NEAR)$2.583.19%
  • avalanche-2Avalanche(AVAX)$7.49-1.27%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • hedera-hashgraphHedera(HBAR)$0.074283-1.21%
  • shiba-inuShiba Inu(SHIB)$0.0000052.23%
  • suiSui(SUI)$0.73-1.29%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.0565380.71%
  • tether-goldTether Gold(XAUT)$4,347.670.09%
  • MemeCoreMemeCore(M)$1.170.93%
  • Circle USYCCircle USYC(USYC)$1.140.03%
  • Ripple USDRipple USD(RLUSD)$1.00-0.01%
  • okbOKB(OKB)$113.271.92%
  • BittensorBittensor(TAO)$235.98-1.58%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.14-0.22%
  • mantleMantle(MNT)$0.593.00%
  • aaveAave(AAVE)$124.731.94%
  • pax-goldPAX Gold(PAXG)$4,352.200.16%
  • AsterAster(ASTER)$0.69-2.32%
  • polkadotPolkadot(DOT)$1.05-4.39%
  • OndoOndo(ONDO)$0.3535281.59%
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

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

Why Falling AI Prices Aren’t Lowering Enterprise AI Bills – 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

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
Upgraded In All The Right Places
AI & Technology

Upgraded In All The Right Places

September 11, 2026
Apple’s iPhone Handoff Feature Will Cost You  A Month On T-Mobile
AI & Technology

Apple’s iPhone Handoff Feature Will Cost You $5 A Month On T-Mobile

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
Maryland school bus crashes into building

Maryland school bus crashes into building

September 7, 2026
0,000 In Debt And Getting A Divorce

$130,000 In Debt And Getting A Divorce

September 9, 2026
You’re Probably Wasting These Keys On Your Keyboard — Here’s How To Remap Them

You’re Probably Wasting These Keys On Your Keyboard — Here’s How To Remap Them

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