Unsupervised Chinese Word Segmentation with BERT Oriented Probing and Transformation

Wei Li, Yuhan Song, Qi Su, Yanqiu ShaoACL 2022

Introduction

Chinese Word Segmentation (CWS) is a fundamental task in natural language processing. While supervised methods have reached high levels of accuracy, they rely heavily on large-scale labeled datasets. In specialized domains such as medicine, ancient literature, or low-resource dialects, such data is often unavailable. Consequently, unsupervised word segmentation—the ability to identify word boundaries from raw text alone—remains a critical area of research.

Traditional unsupervised approaches typically utilize shallow statistical metrics like Mutual Information (MI). While newer neural models have emerged, they often fail to capture the deep contextual and semantic nuances inherent in language. This paper addresses this gap by leveraging the implicit linguistic knowledge embedded within Pre-trained Language Models (PLMs) like BERT. The authors propose a framework that "probes" BERT to extract this latent knowledge and transforms it into explicit segmentation labels.

Methodology

The proposed framework operates through a "mutual promotion" loop consisting of three primary components:

1. Generative Module (The Prober)

This module measures the semantic "closeness" of adjacent characters by probing BERT’s masked language modeling capabilities. The core intuition is that if masking two adjacent characters ($x_i, x_j$) simultaneously results in a significantly higher prediction error than masking them individually, those characters likely belong to the same semantic unit (a word). A "probing distance" metric is defined to quantify these relationships.

2. Discriminative Module (The Transformer)

To move beyond simple threshold-based segmentation, high-confidence outputs from the prober are converted into a standard "BI" (Begin, Inside) sequence labeling format. A BERT-based classifier is then fine-tuned on these labels, allowing the model to capture longer-range dependencies and improve robustness across the entire dataset.

3. Evaluation and Iterative Training

Unsupervised learning often suffers from the lack of a reliable stopping criterion. The authors introduce an Evaluation Module that uses a "masked prediction accuracy" metric as a proxy for the F1-score. This metric assumes that predicting a masked character is easier when provided with context from within the same word boundary. This allows for effective model selection without any labeled validation data.

Correlation between the unsupervised evaluation score and the actual F1-score across training epochs.

Experimental Results

The model was evaluated on two standard benchmarks from the SIGHAN 2005 Bake-off: the PKU and MSR datasets. The results demonstrate that the proposed method significantly outperforms previous state-of-the-art (SOTA) unsupervised models.

Comparison of the proposed method against existing unsupervised CWS models on PKU and MSR benchmarks.

As shown in the results table, the "Proposal" achieved an F1-score of 84.1 on PKU and 83.0 on MSR, representing a substantial improvement over previous neural models like SLM (80.2 and 79.4 respectively). Ablation studies further revealed that while the generative probing alone is effective (74.8 F1 on PKU), the integration of the discriminative module and iterative training provides a nearly 10-point performance boost.

Discussion and Limitations

While the model sets a new benchmark for unsupervised CWS, it faces challenges regarding segmentation granularity. For instance, the model may split compound words like "City Government" into separate entities because the constituent characters appear frequently in diverse contexts. Additionally, the iterative probing of BERT is computationally intensive compared to traditional statistical methods.

Conclusion

This research demonstrates that large pre-trained models contain rich, implicit knowledge of word boundaries that can be successfully externalized for unsupervised tasks. By bridging the gap between implicit probing and explicit sequence labeling, the authors provide a powerful tool for processing languages and domains where labeled data is scarce, potentially aiding in the preservation and study of linguistic diversity.

Summary updated

BibTeX
@inproceedings{li2022unsupervised,
  author = {Wei Li and Yuhan Song and Qi Su and Yanqiu Shao},
  title = {{Unsupervised Chinese Word Segmentation with BERT Oriented Probing and Transformation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.310},
}
Figure