HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

How to Train BERT with an Academic Budget

Peter Izsak Moshe Berchansky Omer Levy

How to Train BERT with an Academic Budget

Abstract

While large language models a la BERT are used ubiquitously in NLP, pretraining them is considered a luxury that only a few well-funded industry labs can afford. How can one train such models with a more modest budget? We present a recipe for pretraining a masked language model in 24 hours using a single low-end deep learning server. We demonstrate that through a combination of software optimizations, design choices, and hyperparameter tuning, it is possible to produce models that are competitive with BERT-base on GLUE tasks at a fraction of the original pretraining cost.

Code Repositories

IntelLabs/academic-budget-bert
Official
pytorch
Mentioned in GitHub
yxzwang/normalized-information-payload
pytorch
Mentioned in GitHub
peteriz/academic-budget-bert
Official
pytorch
Mentioned in GitHub
octanove/shiba
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
linguistic-acceptability-on-cola24hBERT
Accuracy: 57.1
natural-language-inference-on-multinli24hBERT
Matched: 84.4
Mismatched: 83.8
natural-language-inference-on-qnli24hBERT
Accuracy: 90.6
natural-language-inference-on-rte24hBERT
Accuracy: 57.7%
question-answering-on-quora-question-pairs24hBERT
Accuracy: 70.7
semantic-textual-similarity-on-mrpc24hBERT
Accuracy: 87.5%
semantic-textual-similarity-on-sts-benchmark24hBERT
Pearson Correlation: 0.820
sentiment-analysis-on-sst-2-binary24hBERT
Accuracy: 93.0

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
How to Train BERT with an Academic Budget | Papers | HyperAI