Learning to Rank Semantic Coherence for Topic Segmentation

Liang Wang, Sujian Li, Yajuan Lv, Houfeng Wang

Topic segmentation—the process of partitioning a document into topically consistent units—is a fundamental task in natural language processing. Despite its importance for search engines and summarization, progress has been hindered by a lack of large-scale, human-annotated training data. In this paper, researchers from Peking University and Baidu propose a novel supervised approach that bypasses the data bottleneck by teaching a neural network to rank semantic coherence using automatically generated "quasi" training data.

The Supervision Gap in Topic Segmentation

Traditional methods like TextTiling or probabilistic models (e.g., LDA) are largely unsupervised, relying on lexical similarity or word overlap. However, these methods struggle with two main issues:

  1. Similarity vs. Coherence: Two segments may discuss the same topic using different vocabulary (synonyms or related concepts), which simple lexical measures fail to capture.
  2. Data Scarcity: Human labeling of topic boundaries is expensive and time-consuming, preventing the effective use of deep learning.

Methodology: Learning to Rank Coherence

The authors introduce a two-step framework involving automated data generation and a ranking-based neural architecture.

1. "Quasi" Data Generation

To create a large-scale supervised dataset without manual labeling, the authors used heuristics to define coherence levels from unlabeled text:

  • High Coherence: Two segments from the same paragraph.
  • Medium Coherence: Two segments from the same document but different paragraphs.
  • Low Coherence: Two segments from entirely different documents.

This allowed the creation of a massive corpus of partial ordering relations, framing the task as a "learning to rank" (LTR) problem.

2. Symmetric CNN Architecture

The model utilizes a Symmetric Convolutional Neural Network to process text pairs. As shown in the architecture diagram below, the model takes two text segments, passes them through identical CNN layers with shared weights to extract low-dimensional features, and merges these representations to produce a final coherence score.

Symmetric CNN architecture for scoring text pair coherence.

Experimental Results

The model was trained on a massive dump of English Wikipedia and evaluated across four diverse domains: News, Lecture, Report, and Biography. The researchers compared two ranking formulations: Pointwise (predicting a specific score) and Pairwise (ensuring a more coherent pair ranks higher than a less coherent one).

As shown in the results table, the Ours-point-static model (which uses static word embeddings) achieved state-of-the-art performance, significantly outperforming traditional unsupervised baselines like TextTiling and BayesSeg across all datasets.

Performance comparison across four datasets using Pk, WD, and F1 metrics.

Key Insights

  • Generalization: The model successfully learned general semantic coherence from Wikipedia that generalized well to other domains. For instance, it could identify coherence between segments about "Mother Teresa" and "canonization" despite zero word overlap.
  • The Fine-Tuning Trap: Interestingly, fine-tuning word embeddings on the training data led to performance drops, likely due to overfitting on the Wikipedia domain and losing general semantic relationships.
  • Robustness: The model consistently achieved lower penalty scores ($P_k$ and $WD$) than existing methods, demonstrating the power of supervised learning even with noisy "quasi" labels.

Conclusion and Future Work

By reframing topic segmentation as a coherence ranking task, this research demonstrates that deep learning can be effectively applied to data-scarce NLP tasks. Future work may address current limitations, such as the requirement of knowing the number of topics beforehand and scaling the model to handle longer, more complex discourse structures.

Summary updated

BibTeX
@inproceedings{wang2017learning,
  author = {Liang Wang and Sujian Li and Yajuan Lv and Houfeng Wang},
  title = {{Learning to Rank Semantic Coherence for Topic Segmentation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1139},
}
Figure