NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast and Accurate Neural Word Segmentation for Chinese

Deng Cai, Hai Zhao, Zhisong Zhang, Yuan Xin, Yongjian Wu, Feiyue Huang

Abstract

Neural models with minimal feature engineering have achieved competitive performance against traditional methods for the task of Chinese word segmentation. However, both training and working procedures of the current neural models are computationally inefficient. This paper presents a greedy neural word segmenter with balanced word and character embedding inputs to alleviate the existing drawbacks. Our segmenter is truly end-to-end, capable of performing segmentation much faster and even more accurate than state-of-the-art neural models on Chinese benchmark datasets.

Introduction

Chinese Word Segmentation (CWS) is a fundamental prerequisite for Chinese natural language processing. Unlike English, Chinese text lacks explicit word delimiters like spaces, making segmentation the first step for downstream tasks such as machine translation and sentiment analysis.

While traditional CWS methods relied heavily on manual feature engineering, recent neural approaches have automated this process. However, these models often face a significant bottleneck: computational inefficiency. Training complex architectures like LSTMs or CRFs with beam search can take days, and their inference speed is often too slow for real-time applications. This research introduces a greedy neural word segmenter that optimizes both speed and accuracy by utilizing a hybrid word-character embedding mechanism.

Proposed Architecture

The core of the proposed model is a greedy segmenter that makes local decisions sequentially, avoiding the overhead of exhaustive search spaces. The architecture is built upon three primary components:

1. Hybrid Word-Character Encoding

To represent a word, the model employs a balanced approach. For frequently occurring words (maintained in a shortlist), the model combines a pre-trained word embedding with a representation derived from its constituent characters. For rare or out-of-vocabulary (OOV) words, the model relies exclusively on character-level composition. This dual strategy captures both broad semantic information and fine-grained morphological details.

2. Gated Character Composition

When synthesizing a word representation from characters, a gating mechanism is applied. This sigmoid-activated layer allows the model to dynamically weight the importance of specific characters, which is crucial for resolving ambiguities where the same character may have different semantic contributions depending on the word context.

Architecture of the proposed neural word segmenter.

3. LSTM Linking and Scoring

An LSTM layer maintains the history of previously segmented words. At each step, the model generates a predicted vector for the next word and calculates a score against candidate words using a dot product. This allows the model to leverage long-range dependencies without the need for complex global optimization.

Training with Early Updates

The model utilizes an "early update" strategy during training. If the greedy search path deviates from the ground-truth segmentation, the training step is terminated immediately, and parameters are updated. This prevents the model from learning from incorrect states and significantly accelerates the convergence process.

Experimental Evaluation

The model was evaluated on the SIGHAN Bakeoff 2005 benchmarks, specifically the PKU (Peking University) and MSR (Microsoft Research Asia) datasets.

Performance and Efficiency

The results demonstrate a substantial improvement in efficiency. The proposed model completes training in just 3 to 6 hours, a stark contrast to the 48 to 117 hours required by previous state-of-the-art neural models. Inference is similarly optimized, processing test sets in 25–30 seconds compared to the 95–125 seconds of competitors.

Despite this speed, accuracy remains high. The model achieved F1-scores of 95.8% on PKU and 97.1% on MSR, matching or exceeding the performance of more computationally expensive models.

A key insight from this research is that complex search algorithms like beam search are largely unnecessary for this architecture. As shown in the figure below, increasing the beam size provides negligible improvements in F1-score.

Impact of beam size on F1-score across PKU and MSR datasets.

This suggests that with sufficiently strong word-level features provided by the hybrid embedding and LSTM history, local greedy decisions are robust enough for accurate segmentation.

Conclusion

This work presents a neural Chinese word segmenter that effectively balances speed and accuracy. By combining a greedy search strategy with a gated hybrid embedding mechanism, the model achieves state-of-the-art results while being significantly faster to train and deploy. Future research will explore integrating unsupervised features and extending this approach to other languages with similar segmentation challenges.

Summary updated

BibTeX
@inproceedings{cai2017fast,
  author = {Deng Cai and Hai Zhao and Zhisong Zhang and Yuan Xin and Yongjian Wu and Feiyue Huang},
  title = {{Fast and Accurate Neural Word Segmentation for Chinese}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  url = {https://openreview.net/forum?id=HJW1_sxd-r},
}
Figure