Inside BERT's NSP Training Mechanism

For the NSP task, BERT receives two sentences (A and B) separated by a [SEP] token and uses the [CLS] token's output to predict if B is the actual next sentence of A (labeled 'IsNext') or a randomly sampled one ('NotNext').

Sources

Open the full topic