BERT

A transformer-based language representation model pre-trained on large unlabeled text using masked language modeling and next-sentence prediction, then fine-tuned for downstream tasks.

Method

The original BERT pretraining combines masked language modeling and next-sentence prediction. Masking selects 15% of tokens, with mask/random/unchanged replacements; later BERT-style models may omit next-sentence prediction.

Applications

Question answering, sentiment analysis, named entity recognition, text classification, sentence similarity, search ranking, biomedical NLP.

Advantages

Strong contextual representations; transfer learning dramatically reduces labeled data needs; bidirectional context improves many NLU tasks.

Limitations

Not generative (encoder-only); quadratic attention cost; large models are compute-heavy; struggles with very long documents without modification; can inherit corpus biases.

Alternatives

GPT-style decoder models, T5 / BART (encoder-decoder), RoBERTa, domain-adapted models, retrieval-augmented generation.

Editorial clarification

Corrected or qualified against standard references; bundled concepts are distinguished.

Sources

Educational reference only, not professional advice.

All algorithms