Term
next sentence prediction
Meaning
A self-supervised pretraining objective in which the model receives two input sentences and predicts whether the second one follows the first in the text.
Source A Primer in BERTology: What we know about how BERT works
How papers use it 6 papers
A Primer in BERTology: What we know about how BERT works
Use The second pretraining task of the original BERT, used together with masked language modeling. It is one of the two self-supervised objectives that the paper lists as the standard BERT pretraining workflow.
XLNet: Generalized Autoregressive Pretraining for Language Understanding
Use Tested as an add-on to XLNet in the ablation study. XLNet-Large is pretrained without it because the authors did not observe consistent improvement. In the ablation, adding it gave a slight gain on RACE but lower SQuAD2.0 and MNLI scores, so the authors excluded it from XLNet.
Meaning An auxiliary pretraining objective from the original BERT that trains the model to decide whether two text segments are consecutive in the source text.
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
Use Described as the second of BERT's two training tasks, as background for the approach. The paper's own alignment objective uses the CLS representation in a similar way to decide whether an image and text match, but the paper does not state that ViLBERT trains with this sentence-pair objective.
Meaning A BERT pretraining objective that takes two text segments and predicts, from the CLS representation, whether the second segment follows the first in the source text. A linear layer on the CLS output is trained with a binary cross-entropy loss.
How to Fine-Tune BERT for Text Classification?
Use Named as the second pre-training task of BERT, together with the masked language model. The paper refers to it only as part of BERT's pre-training and does not analyse it separately.
Meaning A pre-training objective defined over pairs of text segments, which trains the model to capture how the two segments relate to each other.
RoBERTa: A Robustly Optimized BERT Pretraining Approach
Use Serves as one of BERT's two pretraining losses, and the authors test whether it is needed. Positive pairs are consecutive sentences and negative pairs come from different documents, both sampled with equal probability. Removing the loss while keeping the SEGMENT-PAIR input format hurts performance in the authors' reimplementation, but removing it together with the DOC-SENTENCES or FULL-SENTENCES packing matches or slightly improves dev-set results on the reported tasks. The authors suggest the original BERT may have removed only the loss term and kept the segment-pair format.
Meaning An auxiliary binary classification objective for BERT-style pretraining. The model is trained to decide whether two text segments came from consecutive positions in the corpus or were paired from different documents, and this loss is added to the masked language modeling loss.
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Use Used as a second pre-training task alongside the masked LM, with the sentence pairs drawn so that half are true continuations (IsNext) and half are random sentences (NotNext). The paper states that pre-training on this task is beneficial for both question answering and natural language inference, and the pre-training loss is the sum of the masked LM and NSP likelihoods.
Meaning A binarized pre-training task in which the model decides whether the second of two text spans really follows the first. The decision is made from the final representation of the special classification token.