Chinese Sequence Labeling with Semi-Supervised Boundary-Aware Language Model Pre-training

Longhui Zhang, Dingkun Long, Meishan Zhang, Yanzhao Zhang, Pengjun Xie, Min Zhang

Introduction

In contrast to English and other alphabetic languages, Chinese text is written without explicit word delimiters like spaces. This characteristic makes boundary demarcation a fundamental challenge for downstream sequence labeling tasks, including Named Entity Recognition (NER), Part-of-Speech (POS) tagging, and Chinese Word Segmentation (CWS). While standard Pre-trained Language Models (PLMs) like BERT capture broad semantic relationships, they often fail to explicitly model the structural boundaries of words.

Previous attempts to address this, such as BABERT, utilized unsupervised statistical boundary information. However, statistical boundaries derived from raw corpora often suffer from the "long-tail problem," leading to noisy and unstable signals. This paper introduces Semi-BABERT, a model that bridges the gap by injecting high-quality, supervised boundary knowledge into the pre-training process without sacrificing the general semantic understanding of the model.

Methodology

Semi-BABERT enhances the standard BERT architecture by incorporating several novel pre-training strategies designed to improve boundary awareness.

Supervised Boundary Recognition (SBR)

The core of the approach is the Supervised Boundary Recognition task. This objective employs a span-based binary classifier to predict whether a specific N-gram within the text constitutes a valid word according to a provided lexicon. This allows the model to learn explicit word structures directly from high-quality linguistic data.

Positive-Unlabeled (PU) Learning

Recognizing that no lexicon is exhaustive, the authors implement Positive-Unlabeled (PU) learning. In this framework, words found in the lexicon are treated as "positive" examples, while all other N-grams are treated as "unlabeled." If the model consistently identifies an unlabeled N-gram as a word during training, that N-gram is dynamically added to the lexicon. This iterative expansion prevents the model from being penalized for valid out-of-vocabulary words and allows it to adapt to the nuances of the training corpus.

LLM-Assisted Data Cleaning

To ensure the quality of the pre-training data, the authors utilized a Large Language Model (Qwen-7B) to score and filter a 3-billion token corpus derived from Chinese Wikipedia and Baidu Baike. By discarding the lowest-quality 10% of sentences, the authors ensured that the model learned from pristine linguistic structures.

The Boundary Information Metric (BIM)

Beyond the model itself, the paper proposes the Boundary Information Metric (BIM). This is a compute-efficient, zero-shot metric that quantifies a model's boundary awareness without requiring task-specific fine-tuning. BIM calculates the cosine similarity between character embeddings within the same word versus characters that span a word boundary. A higher BIM score indicates that the model naturally clusters characters within words more closely than characters across boundaries, providing a proxy for how well the model has internalized word structures.

Experimental Results

Semi-BABERT was evaluated across 13 sequence labeling datasets and the CLUE benchmark for general natural language understanding.

State-of-the-Art Performance

Semi-BABERT achieved an average F1 score of 90.3 across the 13 sequence labeling tasks, outperforming both vanilla BERT (89.2) and the previous state-of-the-art BABERT (89.6). These gains were consistent across CWS, POS, and NER tasks.

Few-Shot Learning

The model demonstrated significant advantages in low-resource scenarios. On the Onto4 NER task with only 10 training examples, Semi-BABERT achieved a 50.8 F1 score, substantially outperforming BABERT’s 32.1 F1. This suggests that explicit boundary knowledge acts as a powerful inductive bias when data is scarce.

General NLU and BIM Validation

On the CLUE benchmark, Semi-BABERT outperformed several knowledge-enhanced models like ERNIE and K-BERT, achieving an average score of 73.6. Furthermore, the BIM scores correlated perfectly with downstream performance, validating it as a reliable tool for evaluating PLMs without the need for expensive fine-tuning cycles.

Conclusion

Semi-BABERT demonstrates that integrating supervised boundary knowledge through PU learning and high-quality data filtering significantly improves performance on Chinese sequence labeling. By making word boundaries explicit, the model achieves superior results in both full-data and few-shot settings. Additionally, the introduction of the BIM provides a new, efficient way for researchers to probe the internal representations of language models. Future work may explore the application of these semi-supervised techniques to other languages lacking explicit boundaries, such as Japanese or Thai.

Summary updated

BibTeX
@inproceedings{zhang2024chinese,
  author = {Longhui Zhang and Dingkun Long and Meishan Zhang and Yanzhao Zhang and Pengjun Xie and Min Zhang},
  title = {{Chinese Sequence Labeling with Semi-Supervised Boundary-Aware Language Model Pre-training}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure