Sitemap
Towards AI

We build Enterprise AI. We teach what we learn. Join 100K+ AI practitioners on Towards AI Academy. Free: 6-day Agentic AI Engineering Email Guide: https://email-course.towardsai.net/

Member-only story

A Robustly Optimized BERT Pretraining Approach

What is BERT?

4 min readSep 11, 2019

--

BERT (Devlin et al., 2018) is a method of pre-training language representations, meaning that we train a general-purpose “language understanding” model on a large text corpus (like Wikipedia), and then use that model for downstream NLP tasks that we care about (like question answering). BERT outperforms previous methods because it is the first unsupervised, deeply bidirectional system for pre-training NLP.

Liu et al. studied the impact of many key hyper-parameters and training data size of BERT. They found that BERT was significantly undertrained, and can match or exceed the performance of every model published after it. RoBERTa (Robustly optimized BERT approach) is introduced and performance is either matching or exceeding original BERT.

BERT Training Objective

BERT uses Masked Language Models (MLM) and Next Sentence Prediction (NSP) to learn text representation. MLM is a way to mask some tokens and using the rest of tokens to predict the masked token. NSP is predicting whether a pair of sentences is continuous. If you want to learn more about BERT, you may visit this story.

Model Setting

--

--

Towards AI
Towards AI

Published in Towards AI

We build Enterprise AI. We teach what we learn. Join 100K+ AI practitioners on Towards AI Academy. Free: 6-day Agentic AI Engineering Email Guide: https://email-course.towardsai.net/

Edward Ma
Edward Ma

Written by Edward Ma

Focus in Natural Language Processing, Data Science Platform Architecture. https://makcedward.github.io/