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').
Open the full topic