Improving Long Document Topic Segmentation Models With Enhanced Coherence Modeling

Hai Yu, Chong Deng, Qinglin Zhang, Jiaqing Liu, Qian Chen, Wen Wang

Introduction

Topic segmentation—the process of automatically dividing a long text into non-overlapping, topically coherent segments—is a foundational task for information retrieval, document summarization, and content organization. While supervised neural models, particularly those based on the Transformer architecture, have significantly improved performance, they often struggle with long-form content. Standard Transformers are limited by narrow context windows and a tendency to focus on local "sentence-pair" coherence, often failing to capture the broader logical flow and semantic consistency required to identify boundaries in complex documents.

Methodology

To address these limitations, this research introduces two novel auxiliary tasks designed to enhance a model's understanding of document coherence: Topic-aware Sentence Structure Prediction (TSSP) and Contrastive Semantic Similarity Learning (CSSL). These tasks are implemented as "plug-and-play" components atop a Longformer-Base backbone, which supports sequences up to 4,096 tokens.

Topic-aware Sentence Structure Prediction (TSSP)

TSSP is designed to teach the model the underlying logical structure of a document. During training, the researchers create "disarrayed" documents by shuffling topics, replacing segments with snippets from external documents, and permuting sentences within topics. The model must then predict the original relationship between adjacent sentences, distinguishing between:

  1. Inter-topic shifts: Sentences belonging to different topics.
  2. Consecutive intra-topic sentences: Sentences that are adjacent within the same topic.
  3. Non-consecutive intra-topic sentences: Sentences within the same topic that are not originally adjacent.

Contrastive Semantic Similarity Learning (CSSL)

CSSL focuses on refining sentence representations through contrastive learning. It forces the model to ensure that sentences within the same topical segment are mathematically more similar to each other than they are to sentences in different segments. By utilizing "hard negatives"—sentences that may be geographically close but belong to different topics—the model learns to identify subtle semantic shifts that signal a boundary.

Experimental Setup and Datasets

The model was evaluated on several prominent benchmarks to test both general performance and domain-specific robustness:

  • WIKI-727K: A massive dataset of approximately 727,000 Wikipedia articles.
  • WikiSection: A dataset focused on specific domains (Diseases and Cities) in both English and German.
  • WIKI-50 & Elements: Smaller datasets used for out-of-domain testing to evaluate how well the model generalizes to specialized topics (e.g., chemistry) without fine-tuning.

Key Results and Insights

The proposed approach achieved new state-of-the-art (SOTA) results across all tested benchmarks.

  • Performance Gains: On the WIKI-727K dataset, the model improved the $F_1$ score from 73.74 to 77.16 and reduced the $P_k$ error metric from 15.0 to 13.89.
  • Generalization: The model showed an average relative $P_k$ drop of 8.38% on out-of-domain datasets, suggesting that the learned coherence features are universal and not overfitted to specific training data.
  • Contextual Scaling: The study confirmed that for long documents, performance scales with the context window. Increasing the input length from 512 to 1,024 tokens provided the most significant performance jump, validating the use of the Longformer architecture.
  • Efficiency: A major advantage of this method is that the auxiliary heads are discarded after training. This means the model delivers SOTA accuracy during inference with zero additional computational overhead compared to a standard Longformer.

Conclusion and Future Work

By combining structural logic (TSSP) with semantic clustering (CSSL), the researchers have demonstrated that modeling deeper document coherence is essential for effective topic segmentation. While the approach effectively handles documents up to 4,096 tokens, the authors note that training time is increased due to the data augmentation required for TSSP. Future research will focus on scaling these methods to "ultra-long" contexts and adapting the model for noisier environments, such as spoken document transcripts.

Summary updated

BibTeX
@inproceedings{yu2023improving,
  author = {Hai Yu and Chong Deng and Qinglin Zhang and Jiaqing Liu and Qian Chen and Wen Wang},
  title = {{Improving Long Document Topic Segmentation Models With Enhanced Coherence Modeling}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.341},
}
Figure