bert-two-pretraining-tasks-mlm-nsp

IN premiseentries/2026/06/21/wiki-BERT_language_model-chunk-1.md

Created 2026-06-21T09:50:09+00:00

BERT is pre-trained on two simultaneous self-supervised tasks: Masked Language Modeling (MLM) and Next Sentence Prediction (NSP)

Summary

BERT learns language by simultaneously filling in randomly hidden words and figuring out whether two sentences go together, which gives it both word-level and passage-level understanding in a single training phase. This dual objective is a core architectural choice that shapes how the model represents context, so any downstream task inherits whatever strengths or blind spots come from balancing those two signals.

Dependents

These beliefs depend on this one: