Sequence Segmentation by Enumeration: An Exploration

Steffen EgerPrague Bull. Math. Linguistics 2013

Introduction

Sequence segmentation—the task of partitioning a string of characters into non-overlapping units like syllables or morphemes—is a fundamental challenge in Natural Language Processing (NLP). Traditionally, this task is framed as a sequence labeling problem, where models like Conditional Random Fields (CRFs) make local decisions at each character boundary. While efficient, these models often suffer from strict independence assumptions that prevent them from considering the global structure of the segmented word.

The intuitive alternative is an evaluation approach: generate all possible segmentations and score them using a Language Model (LM). However, this is typically dismissed as computationally infeasible due to the exponential growth of the search space ($2^{n-1}$ possible segmentations for a string of length $n$). This paper challenges that conventional wisdom, proposing a method to prune the search space effectively enough to allow for exhaustive enumeration.

The Enumerate and Evaluate (E&E) Framework

The proposed Enumerate and Evaluate (E&E) approach operates in two distinct phases:

  1. Search Space Prediction: Instead of using a CRF to find the final segmentation, the model uses it to predict the number of segments ($\hat{k}$) a word likely contains. By enforcing a logical maximum length for any single segment (e.g., a syllable rarely exceeds 9 characters), the search space is further constrained.
  2. Exhaustive Scoring: The algorithm enumerates all valid segmentations that result in exactly $\hat{k}-1$, $\hat{k}$, or $\hat{k}+1$ segments. These candidates are then scored using a standard N-gram Language Model (either character-level or word-level) with Kneser-Ney smoothing to select the optimal sequence.

Taming the Combinatorial Explosion

The core insight of the E&E approach is that the theoretical exponential search space is much larger than the practical one. By applying constraints on segment length and count, the number of valid candidates drops from millions to a handful. As shown in the data below, the actual number of candidates to evaluate per word is remarkably small, often staying well under 150 even for complex morphological tasks.

Table showing the manageable size of the search space |S_A| across different datasets.

The Power of Counting

A critical component of this method's success is the observation that CRFs, while they may struggle with exact boundary placement, are exceptionally accurate at "counting" segments. The paper demonstrates that the true number of segments ($k^*$) falls within the predicted window of $\hat{k} \pm 1$ over 99% of the time across multiple languages.

Table demonstrating the high accuracy of predicting the segment count within a +/- 1 window.

Key Results and Performance

The E&E approach consistently outperformed baseline CRF sequence labelers across phonological, syllabification, and morphological segmentation tasks:

  • Phonological Segmentation: Error rates were reduced by 5% to 22%.
  • Syllabification: The model achieved state-of-the-art results for German (1.07% error) and Dutch (1.49% error), with overall error reductions ranging from 7% to 42%.
  • Morphological Segmentation: Error rates improved by 20% to 32%.

Furthermore, "Oracle" experiments—where the model was provided with the exact true number of segments—showed error rate reductions of up to 77%. This suggests that as segment-counting models improve, the E&E framework has significant headroom for further performance gains.

Conclusion and Future Work

This research demonstrates that exhaustive enumeration is a viable and superior alternative to local sequence labeling for word-level segmentation tasks. By using a "coarse-to-fine" strategy—where a cheap model narrows the search space and a global LM performs the final evaluation—researchers can bypass the limitations of local independence assumptions. Future work may involve replacing discrete N-gram models with Neural Network Language Models (NNLMs) or exploring the interpolation of character-level and word-level scoring to further refine accuracy.

Summary updated

BibTeX
@article{eger2013sequence,
  author = {Steffen Eger},
  title = {{Sequence Segmentation by Enumeration: An Exploration}},
  journal = {Prague Bull. Math. Linguistics},
  year = {2013},
}
Figure