A Fast Decoder for Joint Word Segmentation and POS-Tagging Using a Single Discriminative Model

Yue Zhang, Stephen ClarkEMNLP 2010

Introduction

In Natural Language Processing for character-based languages like Chinese, word segmentation (WS) and part-of-speech (POS) tagging are fundamental preprocessing steps. Traditionally, these tasks are performed in a sequential pipeline: first segmenting the text into words, then assigning grammatical tags. However, this approach suffers from error propagation, where mistakes in segmentation inevitably lead to tagging errors. Joint models, which perform both tasks simultaneously, offer a solution by allowing bidirectional information flow. Historically, these models have been computationally expensive, often requiring complex search algorithms. This paper introduces a highly efficient single-beam search decoder that achieves state-of-the-art accuracy with a significant speed advantage.

Methodology

The authors propose a streamlined approach using a global linear model paired with a single-beam search decoder. The system processes sentences incrementally, one character at a time. At each step, the decoder makes a binary choice: either append the character to the current word or start a new word.

A key innovation is the First-Character POS Decision. Instead of waiting for a word to be completed before assigning a tag, the decoder assigns the POS tag as soon as the first character of a new word is identified. This drastically reduces the search space, as the number of possible tag combinations is pruned early. To ensure fair comparison within the beam, the model utilizes separated feature templates for "partial" words (currently being constructed) and "full" words (just completed).

Training is conducted using the averaged perceptron algorithm with an early update strategy. If the gold-standard candidate falls out of the beam during training, the process stops immediately and updates the weights. This forces the model to prioritize correct partial paths, ensuring that the beam search remains accurate despite its heuristic nature.

Experimental Results

The system was evaluated on the Chinese Treebank (CTB) 3 and CTB 5 datasets. On CTB 3, the proposed model was compared against the authors' previous joint model (Z&C08). As shown in the results, the new decoder achieved a joint F-score (jf) of 91.37%, nearly identical to the baseline's 91.41%, while providing a massive speedup.

Comparison of performance and speed between the proposed system and the Z&C08 baseline on CTB3.

The "speed" metric in the table highlights the efficiency gains, with the new system performing over 10 times faster than the previous state-of-the-art joint model. On the CTB 5 test set, the system achieved an F-score of 93.67%, matching the performance of the best error-driven models available at the time.

Impact of Beam Size

The efficiency of the decoder is largely due to its use of a narrow beam. The researchers investigated the relationship between beam size and accuracy to find the optimal balance for the search heuristic.

F-measure on the development set across training iterations for various beam sizes.

As illustrated in the figure above, the F-measure improves significantly as the beam size increases from 1 to 16. However, beyond a beam size of 16, the gains in accuracy become negligible. This allows the system to maintain high performance with a very tight search, contributing to its overall speed.

Conclusion

This paper demonstrates that joint word segmentation and POS tagging can be performed both accurately and efficiently. By leveraging a single-beam search decoder with early POS tagging decisions and incremental feature updates, the authors achieved a 10x speedup over prior joint models. This work suggests that for specific NLP tasks, approximate search methods like beam search can rival exact inference when paired with appropriate training strategies and linguistic insights.

Summary updated

BibTeX
@inproceedings{zhang2010fast,
  author = {Yue Zhang and Stephen Clark},
  title = {{A Fast Decoder for Joint Word Segmentation and POS-Tagging Using a Single Discriminative Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2010},
}
Figure