Neural Chinese Word Segmentation with Dictionary Knowledge

Junxin Liu, Fangzhao Wu, Chuhan Wu, Yongfeng Huang, Xing XiearXiv 2018

TL;DR

This paper tackles the challenge of Chinese Word Segmentation (CWS) by proposing two novel methods to effectively incorporate external dictionary knowledge into neural networks. These methods, pseudo-labeled data generation and multi-task learning, significantly improve CWS performance, especially in low-resource scenarios where labeled data is scarce.

What Problem Does This Paper Address?

Chinese, unlike English, lacks explicit word delimiters like spaces. This makes Chinese Word Segmentation (CWS) a crucial preprocessing step for many Natural Language Processing (NLP) tasks. Traditional CWS methods often rely on handcrafted features, which are labor-intensive and require domain expertise. More recently, neural network-based approaches have shown great promise, but they typically demand a massive amount of labeled data for training. A significant limitation of these neural models is their struggle with Out-Of-Vocabulary (OOV) words or words that appear infrequently in the training data. This is where Chinese dictionaries become invaluable, as they often contain these rare or OOV words. However, existing neural CWS methods often fail to effectively leverage this rich dictionary information. This paper aims to bridge this gap by proposing methods to seamlessly integrate dictionary knowledge into neural CWS models, thereby improving their robustness and reducing their reliance on extensive labeled datasets.

Methods

The authors propose two primary methods to incorporate dictionary knowledge into neural CWS models:

  1. Pseudo Labeled Data Generation: This approach involves creating synthetic training data. The core idea is to randomly sample words from a Chinese dictionary and construct "pseudo sentences." Since the words are known, their corresponding BMES (Beginning, Middle, End, Single) tags can be automatically inferred, creating pseudo-labeled sentences. These synthetic sentences are then added to the original labeled dataset to augment the training data. To account for the potential difference in informativeness between real and pseudo-labeled data, the loss function assigns different weights to each.
  2. Multi-task Learning: This method introduces an auxiliary task: Chinese word classification. This task involves classifying a sequence of characters to determine if it forms a valid Chinese word. Positive samples for this task are derived from the Chinese dictionary, while negative samples are generated by corrupting dictionary words. A unified neural network architecture is employed, where the CWS model and the word classification model share the same embedding and CNN layers. This shared representation learning allows the models to jointly learn from both the segmentation task and the word classification task, effectively leveraging dictionary information. The final loss function is a weighted sum of the losses from both tasks.

Both methods are designed to be end-to-end and avoid manual feature engineering, making them more practical and scalable.

Datasets

The experiments were conducted on two benchmark datasets:

  • MSRA: A widely used dataset for Chinese word segmentation.
  • UPUC: Another standard dataset for Chinese word segmentation.

The authors used the last 10% of the training set from each dataset as a development set for hyperparameter tuning and early stopping.

Key Insights and Ideas

  • Dictionaries are a valuable, underutilized resource for CWS: The paper strongly advocates for the integration of dictionary information, demonstrating its significant impact on CWS performance, especially when labeled data is scarce.
  • Pseudo-labeling can effectively augment training data: Generating synthetic data from dictionaries can significantly boost model performance by exposing it to a wider range of words.
  • Multi-task learning offers a synergistic approach: Jointly training CWS with word classification allows the model to learn richer representations that benefit both tasks, effectively utilizing dictionary knowledge.
  • End-to-end learning without feature engineering is achievable: The proposed methods demonstrate that dictionary information can be incorporated without resorting to complex manual feature design, simplifying the model development process.
  • Complementarity of internal and external dictionaries: The study suggests that both dictionaries built from training data (internal) and external dictionaries offer unique benefits, and combining them can yield the best results.

Key Results

  • Both proposed methods (pseudo-labeled data generation and multi-task learning) significantly outperform baseline neural CWS methods that do not utilize dictionary information, particularly when training data is limited (e.g., 1% or 10% of the data).
  • On the MSRA dataset, the "Ours_Pseudo" method achieved an F-score of 79.25% with 1% training data, compared to 75.00% for CNN-CRF. With 10% data, "Ours_Pseudo" reached 90.04% F-score, outperforming CNN-CRF's 89.43%.
  • On the UPUC dataset, similar improvements were observed, with "Ours_Pseudo" achieving 86.97% F-score at 5% training data, compared to 83.46% for CNN-CRF.
  • The proposed methods also generally outperform Zhang et al. [17], a previous method that incorporated dictionary information via feature templates, especially in low-data scenarios. This is attributed to the avoidance of manual feature engineering and a more streamlined model architecture.
  • Experiments on dictionary influence show that using an external dictionary provides substantial gains, and combining internal and external dictionaries offers further improvements, indicating complementary information.

Limitations and Future Work

  • Parameter tuning is crucial: The paper highlights that the performance of the proposed methods is sensitive to the weighting parameters ($\lambda_1$ and $\lambda_2$) that balance the contributions of pseudo-labeled data, word classification, and the original labeled data. Moderate values are recommended for optimal performance.
  • Dictionary quality matters: While not explicitly stated as a limitation, the performance is implicitly dependent on the quality and coverage of the dictionaries used.
  • Future work could explore:
    • More sophisticated methods for generating pseudo-labeled data.
  • Investigating other auxiliary tasks for multi-task learning that can leverage dictionary information.
  • Exploring different neural architectures for both CWS and word classification.
  • Applying these techniques to other languages with similar segmentation challenges.

Summary updated

Abstract

Chinese word segmentation (CWS) is an important task for Chinese NLP. Recently, many neural network based methods have been proposed for CWS. However, these methods require a large number of labeled sentences for model training, and usually cannot utilize the useful information in Chinese dictionary. In this paper, we propose two methods to exploit the dictionary information for CWS. The first one is based on pseudo labeled data generation, and the second one is based on multi-task learning. The experimental results on two benchmark datasets validate that our approach can effectively improve the performance of Chinese word segmentation, especially when training data is insufficient.
BibTeX
@misc{liu2018neural,
  author = {Junxin Liu and Fangzhao Wu and Chuhan Wu and Yongfeng Huang and Xing Xie},
  title = {{Neural Chinese Word Segmentation with Dictionary Knowledge}},
  year = {2018},
  eprint = {1807.05849},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.05849},
}
Figure