Abstract
Text segmentation aims to uncover latent structure by dividing text from a document into coherent sections. Where previous work on text segmentation considers the tasks of document segmentation and segment labeling separately, we show that the tasks contain complementary information and are best addressed jointly. We introduce Segment Pooling LSTM (S-LSTM), which is capable of jointly segmenting a document and labeling segments. In support of joint training, we develop a method for teaching the model to recover from errors by aligning the predicted and ground truth segments. We show that S-LSTM reduces segmentation error by 30% on average, while also improving segment labeling.
Introduction
Document structure analysis often involves two distinct but related tasks: identifying segment boundaries and assigning topical labels to those segments. Traditionally, these have been approached as a pipeline, creating a "chicken-and-egg" dilemma. Accurate labeling is easier with known boundaries, while boundary detection is more precise when the underlying topics are understood. Pipeline approaches suffer from error propagation, where a failure in the first stage (e.g., boundary detection) inevitably degrades the second (e.g., labeling). This paper proposes a joint approach to mitigate these issues by allowing both tasks to share information and provide mutual supervision.
The Segment Pooling LSTM (S-LSTM)
The proposed S-LSTM model integrates segmentation and labeling into a single neural architecture. The process unfolds in four primary stages:
- Word Embedding: Individual words are converted into dense vector representations.
- Sentence Encoding: Sentences are encoded using a Bi-directional LSTM with concat pooling, which aggregates the maximum, mean, and final hidden states to form a robust sentence vector.
- Segment Boundary Prediction: A second Bi-LSTM processes the sequence of sentence vectors to predict IOB (Inside, Outside, Beginning) tags, identifying where new segments start.
- Segment Pooling and Labeling: For each predicted segment, the constituent sentence vectors are passed through a "segment-pooling" LSTM. This learned representation is then used to classify the segment's topic.
Training through Exploration and Alignment
A significant challenge in joint training is the discrepancy between predicted boundaries and ground truth during the learning phase. If the model predicts incorrect boundaries, the labeling component receives "noisy" segments.
To address this, the authors introduce an "exploration" strategy. Rather than relying solely on Teacher Forcing, the model is allowed to explore its own predicted boundaries during training. A many-to-many alignment algorithm then maps these predicted segments to the closest ground-truth segments. This teaches the labeler to remain robust even when segmentation is imperfect, allowing the model to recover from local errors rather than being paralyzed by them.
Experimental Results
The S-LSTM was evaluated on several benchmarks, including WikiSection (Cities and Diseases domains), Wiki-50, and clinical datasets.
Segmentation Performance
The model achieved a significant breakthrough in segmentation accuracy, reducing the $P_k$ error metric by an average of 30% compared to the previous state-of-the-art SECTOR model. This improvement was consistent across both English and German datasets, highlighting the model's language-agnostic effectiveness.
Labeling Accuracy
By solving the tasks jointly, the model also improved segment labeling. On the WikiSection headings task, S-LSTM showed higher Mean Average Precision (MAP) than baseline models. This confirms the hypothesis that better boundary detection directly benefits topic identification through cleaner segment representations.
Robustness and Transfer
S-LSTM outperformed traditional CRF-based models, which struggle with the computational complexity of multi-label scenarios. Furthermore, the model demonstrated strong transfer capabilities, maintaining high performance when tested on domains different from those used during training, such as moving from general Wikipedia articles to specialized clinical texts.
Conclusion
The S-LSTM demonstrates that document segmentation and labeling are mutually beneficial tasks. By leveraging joint supervision and a robust alignment-based training strategy, the model sets a new state-of-the-art for document structure analysis. Future work may explore hierarchical document structures and the integration of Transformer-based encoders to further enhance representation learning.
Summary updated