Abstract
This paper presents GRAPHSEG, an unsupervised text segmentation algorithm that utilizes semantic relatedness graphs. Unlike traditional methods that rely on latent topic models, GRAPHSEG leverages word embeddings and graph-theoretic maximal cliques to identify semantically coherent segments. Evaluations on both synthetic benchmarks and real-world political manifestos demonstrate that GRAPHSEG achieves state-of-the-art performance, particularly in complex, non-synthetic environments where traditional topic-based approaches often fail.
Introduction
Text segmentation is a fundamental task in natural language processing, aimed at partitioning a document into contiguous, semantically cohesive units. Effective segmentation enhances document readability and improves the performance of downstream applications such as information retrieval, question answering, and automated summarization.
Problem Statement
Existing unsupervised segmentation methods frequently encounter two primary limitations:
- Vagueness of Topics: Many models rely on Latent Dirichlet Allocation (LDA) or similar topic models. However, "topics" are often a coarse approximation of meaning. The authors argue for capturing semantic relatedness directly between sentences.
- Synthetic Data Bias: Evaluation often focuses on synthetic datasets, such as the Choi benchmark, where segments are artificially concatenated. These models frequently struggle with real-world text—like political manifestos—where segment lengths vary wildly and transitions are subtle.
Methodology: The GRAPHSEG Algorithm
GRAPHSEG operates through a three-stage process to transform a document into a segmented structure:
- Semantic Relatedness Calculation: Rather than relying on simple word overlap, the algorithm uses word embeddings (word2vec) to determine sentence similarity. It employs the Hungarian method to find optimal word alignments between sentence pairs, weighting word importance by "Information Content" derived from Google Books Ngrams.
- Graph Construction: A semantic relatedness graph is constructed where each node represents a sentence. An edge is drawn between two sentences if their semantic similarity exceeds a predefined threshold ($\tau$).
- Clique-Based Segmentation: The algorithm identifies maximal cliques—subsets of the graph where every node is connected to every other node—using the Bron-Kerbosch algorithm.
Initial segments are formed by grouping adjacent sentences that belong to the same clique. To ensure final cohesion, segments smaller than a minimum size $n$ are merged with their most similar adjacent neighbor.
Experimental Results
The authors evaluated GRAPHSEG against several baselines on two primary datasets: the synthetic Choi dataset and the real-world Manifesto Project dataset (comprising U.S. political manifestos from 2004–2012).
Real-World Superiority
On the challenging Manifesto dataset, GRAPHSEG significantly outperformed the previous state-of-the-art "TopicTiling" method. As shown in Table 2, GRAPHSEG achieved a $P_k$ score of 28.09 (where lower is better), a marked improvement over TopicTiling’s 33.39.
Robustness on Synthetic Data
On the Choi dataset, GRAPHSEG performed competitively with existing unsupervised methods. This suggests that the graph-based approach is robust across different text types and avoids the "information leakage" pitfalls that can occur with LDA-based models during training on synthetic data.
Discussion and Conclusion
The success of GRAPHSEG underscores the value of direct semantic relatedness over latent topic modeling. By utilizing maximal cliques, the model enforces a high standard for segment coherence: every sentence in a clique must be related to every other sentence.
While the NP-hard nature of finding maximal cliques presents a computational challenge for extremely long documents, the current implementation is highly effective for standard document lengths. Future research directions include extending this approach to hierarchical segmentation and developing automated methods for parameter estimation.
Summary updated