SegNSP: Revisiting Next Sentence Prediction for Linear Text Segmentation

José Isidro, Filipe Cunha, Purificação Silvano, Alípio Jorge, Nuno Guimarães +2 more
1/7/2026
cs.CLcs.AIcs.IR

No confident code implementation found for this paper.

Abstract

Linear text segmentation is a long-standing problem in natural language processing (NLP), focused on dividing continuous text into coherent and semantically meaningful units. Despite its importance, the task remains challenging due to the complexity of defining topic boundaries, the variability in discourse structure, and the need to balance local coherence with global context.

Show full abstract

These difficulties hinder downstream applications such as summarization, information retrieval, and question answering. In this work, we introduce SegNSP, framing linear text segmentation as a next sentence prediction (NSP) task. Although NSP has largely been abandoned in modern pre-training, its explicit modeling of sentence-to-sentence continuity makes it a natural fit for detecting topic boundaries. We propose a label-agnostic NSP approach, which predicts whether the next sentence continues the current topic without requiring explicit topic labels, and enhance it with a segmentation-aware loss combined with harder negative sampling to better capture discourse continuity. Unlike recent proposals that leverage NSP alongside auxiliary topic classification, our approach avoids task-specific supervision. We evaluate our model against established baselines on two datasets, CitiLink-Minutes, for which we establish the first segmentation benchmark, and WikiSection. On CitiLink-Minutes, SegNSP achieves a B-$F_1$ of 0.79, closely aligning with human-annotated topic transitions, while on WikiSection it attains a B-F$_1$ of 0.65, outperforming the strongest reproducible baseline, TopSeg, by 0.17 absolute points. These results demonstrate competitive and robust performance, highlighting the effectiveness of modeling sentence-to-sentence continuity for improving segmentation quality and supporting downstream NLP applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{isidro2026segnsp,
  title  = {SegNSP: Revisiting Next Sentence Prediction for Linear Text Segmentation},
  author = {José Isidro and Filipe Cunha and Purificação Silvano and Alípio Jorge and Nuno Guimarães and Sérgio Nunes and Ricardo Campos},
  year   = {2026},
  eprint = {2601.03474},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.03474v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.03474.svg)](https://codeofpaper.com/paper/2601.03474)

Discussion