[Paper Review] Morfessor EM+Prune: Improved Subword Segmentation with Expectation Maximization and Pruning
This paper proposes Morfessor EM+Prune, an improved training algorithm for the Morfessor Baseline subword segmentation model using Expectation Maximization with iterative pruning. It achieves better optimization, higher morphological segmentation accuracy on English, Finnish, and Turkish, and matches the SentencePiece subword segmentation method under specific hyperparameters, with open-source implementations released in the Morfessor toolkit.
Data-driven segmentation of words into subword units has been used in various natural language processing applications such as automatic speech recognition and statistical machine translation for almost 20 years. Recently it has became more widely adopted, as models based on deep neural networks often benefit from subword units even for morphologically simpler languages. In this paper, we discuss and compare training algorithms for a unigram subword model, based on the Expectation Maximization algorithm and lexicon pruning. Using English, Finnish, North Sami, and Turkish data sets, we show that this approach is able to find better solutions to the optimization problem defined by the Morfessor Baseline model than its original recursive training algorithm. The improved optimization also leads to higher morphological segmentation accuracy when compared to a linguistic gold standard. We publish implementations of the new algorithms in the widely-used Morfessor software package.
Motivation & Objective
- To improve the training algorithm of the Morfessor Baseline model to reduce search error and enhance segmentation quality.
- To compare multiple unigram-based subword segmentation methods, including Morfessor EM+Prune, Greedy Unigram Likelihood, SentencePiece, and Morfessor Baseline.
- To demonstrate that the proposed EM+Prune algorithm achieves higher morphological segmentation accuracy compared to the original recursive training method.
- To show that Morfessor EM+Prune with specific hyperparameters reproduces the SentencePiece subword segmentation behavior.
- To release open-source implementations of the new algorithm in the widely used Morfessor software package for broader adoption and reproducibility.
Proposed method
- Adopts the Expectation Maximization (EM) algorithm with a modified initialization and iterative pruning to optimize the Morfessor Baseline model’s objective function.
- Introduces a dual prior mechanism combining Minimum Description Length (MDL) and Dirichlet Process (DP) priors to regularize subword unit discovery.
- Uses a late-EM variant that performs a single EM pass after pruning, improving convergence and reducing local optima.
- Applies count dampening to stabilize probability estimates during EM updates, especially for rare subword units.
- Employs N-best decoding and sampling decoding to explore diverse segmentation hypotheses during training.
- Implements a stopping criterion based on cost change threshold to prevent overfitting and improve training efficiency.
Experimental results
Research questions
- RQ1Can the EM+Prune algorithm significantly reduce search error and improve segmentation quality compared to the original recursive training of Morfessor Baseline?
- RQ2How does the performance of Morfessor EM+Prune compare to other unigram-based subword models like Greedy Unigram Likelihood and SentencePiece in terms of morphological segmentation accuracy?
- RQ3Under what hyperparameter settings does Morfessor EM+Prune reproduce the behavior of the SentencePiece subword segmentation method?
- RQ4To what extent does the inclusion of a DP prior in addition to MDL improve subword unit discovery in low-resource or morphologically rich languages?
- RQ5Can the proposed algorithm be effectively integrated into existing NLP pipelines without requiring pretokenization or linguistic resources?
Key findings
- Morfessor EM+Prune reduces search error during training and achieves higher morphological segmentation accuracy on English, Finnish, and Turkish compared to the original Morfessor Baseline.
- The method outperforms both the Greedy Unigram Likelihood and the original Morfessor Baseline in terms of segmentation quality, especially on morphologically rich languages.
- With specific hyperparameters, Morfessor EM+Prune produces identical subword segmentation results as the SentencePiece reference implementation, demonstrating its compatibility and robustness.
- The inclusion of both MDL and DP priors in the cost function leads to more stable and linguistically plausible subword units, particularly in low-resource settings.
- The open-source implementation of Morfessor EM+Prune is released in the Morfessor software package, enabling broader adoption and reproducibility in NLP research and applications.
- The method shows strong performance on both high-resource and low-resource languages, including endangered languages like North Sami, confirming its utility in multilingual and low-resource NLP setups.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.