Home Knowledge Base Next Sentence Prediction (NSP)

Next Sentence Prediction (NSP) is a pre-training objective introduced in BERT where the model predicts whether a given sentence B immediately follows sentence A in the original text — a binary classification task designed to teach the model relationships between sentences (discourse, entailment, continuity).

NSP Details

Why It Matters

NSP is original BERT's coherence check — a binary task checking if two sentences belong together, now considered largely obsolete by improved methods.

next sentence predictionnspnlp

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.