Contribution
Before BERT, contextual representations were either unidirectional (GPT) or shallowly bidirectional (ELMo). The masked language modeling task made it possible to train a transformer that sees context from both sides in every layer without "seeing" the target word. With NSP, it learned relations between sentences.
Results
BERT-Large raised the GLUE score to 80.5 (an absolute improvement of 7.7 points at the time), achieved an F1 of 93.2 on SQuAD v1.1, exceeding the recorded human performance on that benchmark, and an F1 of 83.1 on SQuAD v2.0. (Figures as reported in the paper.)
Use today
BERT encoders and their descendants are still the most efficient choice for classification, tagging and retrieval in production when size and speed matter, while large models are used when flexibility and generation are needed.
Every token sees the whole context in both directions. In pre-training some tokens are masked and the model predicts them (MLM); in fine-tuning the [CLS] representation or the token representations are used.
