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

Introduction

Chinese Word Segmentation (CWS) is a fundamental prerequisite for downstream Natural Language Processing (NLP) tasks such as machine translation and sentiment analysis. Unlike languages that use whitespace delimiters, Chinese text is a continuous stream of characters, requiring models to identify word boundaries algorithmically. While recent neural models have automated feature engineering, they often introduce significant computational overhead, requiring days of training and complex beam search algorithms for inference. This paper proposes a greedy neural segmenter that achieves state-of-the-art accuracy while being significantly faster than previous architectures.

Neural Architecture

The proposed model utilizes a hybrid approach to represent linguistic units, balancing the semantic depth of word-level embeddings with the flexibility of character-level representations.

Hybrid Word-Character Encoding

To represent a candidate word, the model employs a gated neural network to compose representations from constituent characters. To enhance this, the model maintains a "short list" of the most frequent words. If a candidate word appears on this list, its pre-defined word embedding is averaged with its character-composed representation. This dual approach allows the model to handle both frequent vocabulary and out-of-vocabulary (OOV) terms effectively.

Gated Composition and LSTM Scoring

Instead of simple summation, a sigmoid gate controls the information flow during character composition, helping the model resolve character ambiguity based on context. These representations are then fed into a Long Short-Term Memory (LSTM) network, which captures long-distance dependencies and scores potential segmentation paths.

The proposed neural architecture for Chinese word segmentation, featuring gated character-word composition and an LSTM layer.

Greedy Search and Efficient Training

A core contribution of this work is the demonstration that complex search strategies are often unnecessary for high-performance neural CWS.

The "Greedy" Surprise

While previous state-of-the-art models relied on beam search to explore multiple segmentation possibilities, the authors found that a simple greedy search (picking the highest-scoring candidate at each step) is sufficient. Empirical results show that increasing the beam size (k > 1) provides negligible improvements in F1-score, suggesting the neural architecture is powerful enough to make accurate local decisions.

Impact of beam size on F1-score for PKU and MSR datasets, showing that greedy search (k=1) is highly effective.

Early Update Training

To further optimize training, the authors implemented an "early update" strategy. If the model makes an incorrect segmentation during training, the process stops immediately to update parameters rather than completing the entire sentence. This prevents the calculation of gradients on irrelevant parts of the sequence, reducing training time from approximately 50–100 hours in baseline models to just 3–6 hours.

Experimental Results

The model was evaluated on benchmark datasets from the SIGHAN Bakeoff 2005, including PKU (Peking University) and MSR (Microsoft Research).

  • Accuracy: The system achieved an F1-score of 95.8% on PKU and 97.1% on MSR, matching or exceeding the performance of models that use extensive manual feature engineering.
  • Inference Speed: The greedy strategy allows for remarkable speed, processing the entire PKU test set in 25 seconds and the MSR test set in 30 seconds.
  • Word Table Optimization: Analysis revealed that a word table containing the top 50% most frequent words provides the optimal balance between overall F1-score and OOV recall. Larger tables tend to cause overfitting to known words.

Conclusion

This research demonstrates that neural models for Chinese Word Segmentation do not need to be computationally expensive to be accurate. By combining hybrid embeddings with a simplified greedy search and efficient training updates, the authors provide a framework that is both "truly end-to-end" and practical for large-scale, real-world applications.

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