AI Blog

AI Blog

by Michele Laurelli

Next Sentence Prediction

Task
Definition

Pre-training task predicting whether sentence B follows sentence A.

Binary classification: 50% consecutive, 50% random pairs. Originally used in BERT but later found less useful than MLM alone.

Examples

1

BERT pre-training task

2

Sentence relationship

3

Discourse understanding

Michele Laurelli - AI Research & Engineering