Linear Text Segmentation Using Affinity Propagation

Anna Kazantseva, Stan SzpakowiczEMNLP 2011

Introduction

Linear text segmentation is the task of partitioning a document into topically coherent, contiguous segments. Traditional methods often rely on local lexical shifts or require a pre-defined number of segments. This paper, presented at EMNLP 2011, introduces APS (Affinity Propagation for Segmentation), an unsupervised algorithm that treats segmentation as a global optimization problem on a factor graph.

The APS Algorithm

The core innovation of APS is the adaptation of Affinity Propagation (AP) to the specific constraints of text. In standard AP, data points exchange messages to identify "exemplars" or cluster centers. APS modifies this framework in two key ways:

  1. The Linearity Constraint: Unlike general clustering, text segments must be contiguous. APS enforces that if sentences $i$ and $k$ belong to the same segment, all sentences $j$ where $i < j < k$ must also belong to that segment. This ensures the output is a valid linear partition rather than a set of disjoint clusters.
Figure 4: Comparison between standard clustering (a) and linear segmentation (b). In segmentation, the "exemplars" must represent contiguous blocks of text.
  1. Factor Graph Optimization: APS operates on a factor graph using the max-sum algorithm. It iteratively updates "Responsibilities" (how well a potential center suits a sentence) and "Availabilities" (how appropriate it is for a sentence to choose that center). The model structure incorporates constraints to ensure each sentence is assigned to exactly one exemplar and that the linearity of segments is preserved.
Figure 2: The factor graph representation of the APS model, showing the interaction between sentence nodes ($c_{ij}$) and various constraints ($E_j, I_i, S_{ij}$).

By using a sliding window for similarity calculations, APS achieves $O(MN)$ complexity, making it efficient for long documents.

Experimental Evaluation

The authors evaluated APS against state-of-the-art Minimum Cut and Bayesian segmenters across three diverse datasets:

  • AI Lecture Transcripts: Challenging due to the informal nature of spoken language.
  • Medical Textbooks: Highly cohesive text with consistent terminology.
  • Fiction (Project Gutenberg): Narrative prose where topical shifts are often subtle.

Performance was measured using WindowDiff, where lower scores indicate higher accuracy.

Results and Discussion

APS proved highly competitive, particularly in challenging domains:

  • Fiction: APS achieved a score of 0.350, significantly outperforming the Bayesian model (0.377).
  • Lectures: APS led with a score of 0.404, compared to 0.437 for MinCut.
  • Clinical Text: APS was second-best (0.371), slightly behind the Bayesian model (0.353), likely because the high cohesion of textbooks favors generative approaches.

Conclusion

APS offers a robust, unsupervised approach to text segmentation that avoids the need for a pre-set segment count. By framing the problem as global optimization on a factor graph with linearity constraints, it effectively captures the structural "big picture" of a document while remaining computationally efficient. Future work may explore hierarchical segmentation and more advanced semantic similarity metrics.

Summary updated

BibTeX
@inproceedings{kazantseva2011linear,
  author = {Anna Kazantseva and Stan Szpakowicz},
  title = {{Linear Text Segmentation Using Affinity Propagation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2011},
}
Figure