Neural Chinese Word Segmentation with Lexicon and Unlabeled Data via Posterior Regularization

Junxin Liu, Fangzhao Wu, Chuhan Wu, Yongfeng Huang, Xing Xie · DOI

Abstract

Existing methods for CWS usually rely on a large number of labeled sentences to train word segmentation models, which are expensive and time-consuming to annotate. Luckily, the unlabeled data is usually easy to collect and many high-quality Chinese lexicons are off-the-shelf, both of which can provide useful information for CWS. In this paper, we propose a neural approach for Chinese word segmentation which can exploit both lexicon and unlabeled data. Our approach is based on a variant of posterior regularization algorithm, and the unlabeled data and lexicon are incorporated into model training as indirect supervision by regularizing the prediction space of CWS models. Extensive experiments on multiple benchmark datasets in both in-domain and cross-domain scenarios validate the effectiveness of our approach.

Introduction

Chinese Word Segmentation (CWS) is a fundamental prerequisite for downstream Chinese natural language processing tasks. Unlike English, Chinese text lacks explicit word delimiters like spaces. While neural network models have achieved impressive results, they typically require vast amounts of manually annotated data, which is costly and time-consuming to produce. Furthermore, these models often struggle with Out-of-Vocabulary (OOV) words—terms not seen during training, such as new names or domain-specific slang.

To address these challenges, researchers have developed a framework that mathematically integrates abundant external resources: high-quality digital lexicons and massive volumes of unlabeled text. This approach uses Posterior Regularization (PR) to provide "indirect supervision," guiding the model's learning process without requiring additional manual labels.

Methodology

The proposed framework, termed LUPR (Lexicon and Unlabeled data via Posterior Regularization), builds upon a robust base architecture and introduces a novel regularization technique.

Base Model: CNN-CRF

The core architecture utilizes a Convolutional Neural Network (CNN) to extract local features from character embeddings. These features are then fed into a Conditional Random Field (CRF) layer, which models the dependencies between adjacent tags and predicts the most likely sequence of segmentation labels (e.g., B-eginning, M-iddle, E-nd, S-ingle).

Figure 1: The CNN-CRF architecture for Chinese Word Segmentation.

Posterior Regularization (PR)

The primary innovation is the use of PR to incorporate indirect supervision. Instead of relying solely on labeled data, the model's loss function includes a term that regularizes the prediction space based on external knowledge:

  • Lexicon Integration: A reward function assigns higher probabilities to tag sequences that align with words found in a high-quality lexicon.
  • Unlabeled Data: The model uses its current state to "guess" labels for unlabeled text, which are then refined through the PR constraints in an iterative training process.
  • Soft Constraints: Unlike previous "hard" feature-based methods, PR acts as a "soft" guide. This allows the model to prioritize contextual evidence over dictionary entries when necessary, improving flexibility.

Experimental Setup

The model was evaluated on standard benchmarks and specialized datasets for domain adaptation:

  • MSRA & UPUC: Standard datasets from the SIGHAN bakeoff.
  • Sogou Lexicon: A large-scale dictionary providing indirect supervision.
  • Zhuxian & Weibo: Datasets representing web literature and social media, used to test cross-domain robustness.

Results and Discussion

LUPR consistently outperformed standard supervised baselines and other lexicon-based models across multiple datasets.

Performance in Data-Scarce Scenarios

A key strength of the LUPR framework is its efficiency when labeled data is limited. As shown in Figure 2, LUPR significantly improves F-scores over the base CNN-CRF model when only 1%, 5%, or 10% of the training data is used. For instance, on the MSRA dataset with just 1% labeled data, LUPR achieves an F-score of 80.84 compared to 76.26 for the base model.

Figure 2: F-score comparison on MSRA and UPUC datasets with varying amounts of labeled data.

Cross-Domain Robustness

In domain adaptation tests (e.g., training on news and testing on novels), LUPR demonstrated superior generalization. On the Zhuxian novel dataset, it reached an F-score of 89.95. Qualitative analysis showed the model correctly segmented domain-specific terms like "养老金" (pension) and "梅开二度" (scoring twice) in social media contexts, which the base model failed to recognize because they were rare in the source training data.

Conclusion

The LUPR framework effectively leverages lexicons and unlabeled data to enhance neural CWS models, particularly in low-resource and cross-domain settings. While the method introduces some computational complexity and depends on lexicon quality, its ability to provide "soft" indirect supervision makes it a powerful tool for practical NLP applications. Future work may extend this posterior regularization approach to other sequence labeling tasks like Named Entity Recognition (NER).

Summary updated

BibTeX
@inproceedings{liu2019neural,
  author = {Junxin Liu and Fangzhao Wu and Chuhan Wu and Yongfeng Huang and Xing Xie},
  title = {{Neural Chinese Word Segmentation with Lexicon and Unlabeled Data via Posterior Regularization}},
  booktitle = {The Web Conference},
  year = {2019},
  doi = {10.1145/3308558.3313437},
}
Figure