Lexicon-Based Graph Convolutional Network for Chinese Word Segmentation

Kaiyu Huang, Hao Yu, Junpeng Liu, Wei Liu, Jingxiang Cao, Degen HuangEMNLP 2021

Abstract

Chinese Word Segmentation (CWS) is a foundational task in Chinese Natural Language Processing, yet it remains challenging due to segmentation ambiguity and the prevalence of Out-of-Vocabulary (OOV) words. This paper introduces the Lexicon-Based Graph Convolutional Network (LBGCN), a novel framework that integrates external lexicon knowledge directly into a Transformer-based encoder. By modeling word boundaries as structural constraints within a graph, LBGCN significantly enhances segmentation performance, particularly in data-scarce and cross-domain scenarios.

Introduction

Unlike English, Chinese text lacks explicit delimiters like spaces to indicate word boundaries. Consequently, CWS is the essential first step for nearly all downstream NLP tasks. While fine-tuning Pre-trained Language Models (PLMs) such as BERT or RoBERTa has become the standard approach, these models often struggle with two major hurdles: data scarcity in high-quality annotated corpora and the difficulty of handling OOV words. Existing methods frequently fail to leverage external lexicon knowledge or contextual n-gram information effectively during the fine-tuning process.

Methodology: The LBGCN Architecture

The proposed LBGCN architecture is a hybrid model designed to combine the deep contextual representations of Transformers with the explicit structural knowledge of a lexicon.

The LBGCN architecture integrates a Transformer encoder with a lexicon-based Graph Convolutional Network to fuse contextual and structural features.

Core Components

  1. Transformer Encoder: The model utilizes a standard PLM (e.g., BERT, RoBERTa, or XLNet) to extract character-level contextual features from the input sentence.
  2. Lexicon-Based GCN: This component constructs a graph where nodes represent characters and specific boundary indicators (B for Begin, M for Middle, E for End). Edges are established based on a pre-defined lexicon; if a character sequence matches a dictionary entry, edges connect those characters to the corresponding boundary nodes.
  3. Feature Fusion: The GCN processes the graph to generate "Graph Embeddings," which are then fused with the Transformer's hidden states. This allows the model to simultaneously consider semantic context and structural word-boundary suggestions.
  4. Lightweight Decoder: Instead of a complex Conditional Random Field (CRF), LBGCN employs a simple Dense layer with Softmax for greedy decoding, demonstrating the inherent strength of the fused graph features.

Key Insights

  • Lexicon as a Structural Constraint: Rather than using a dictionary as a simple lookup table, the GCN treats it as a structural guide. This helps bridge the gap when training data is insufficient to cover all linguistic variations.
  • Boundary Node Injection: By adding explicit B, M, and E nodes, the GCN passes segmentation signals across character nodes, teaching the model about word structure without requiring massive labeled datasets.
  • Robustness to Lexicon Quality: The multi-feature interaction between the Transformer and GCN allows the model to weigh lexicon suggestions against context, making it resilient even if the underlying dictionary is imperfect.

Experimental Results

The LBGCN model was evaluated on several benchmarks, including Bakeoff-2005 (PKU, MSR, AS, CITYU), CTB6, and cross-domain datasets from SIGHAN-2010.

Performance comparison of various LBGCN configurations against the baseline on the PKU and AS datasets, showing consistent improvements in F-score.

Performance Highlights

  • State-of-the-Art Accuracy: LBGCN outperformed powerful baselines across all benchmarks. Using RoBERTa as a base, it achieved a peak F-score of 97.21 on the PKU dataset.
  • OOV Recovery: The model showed significant gains in OOV recall ($R_{oov}$). On the MSR dataset, the GCN component alone provided a +1.54 boost in OOV performance compared to the baseline.
  • Cross-Domain Dominance: In specialized fields like Medicine and Finance, where labeled data is scarce, the external lexicon acted as a vital anchor. For instance, in the Medicine domain, the BERT-LBGCN variant achieved an F-score of 95.66, significantly outperforming standard BERT fine-tuning.

Conclusion

The LBGCN framework demonstrates that integrating structural lexicon knowledge through Graph Convolutional Networks can substantially improve CWS performance and robustness. By effectively leveraging external dictionaries, the model overcomes the limitations of pure PLM fine-tuning in handling OOV words and cross-domain shifts. Future work may explore the application of this graph-based integration to other sequence labeling tasks such as Named Entity Recognition (NER).

Summary updated

BibTeX
@inproceedings{huang2021lexicon,
  author = {Kaiyu Huang and Hao Yu and Junpeng Liu and Wei Liu and Jingxiang Cao and Degen Huang},
  title = {{Lexicon-Based Graph Convolutional Network for Chinese Word Segmentation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.248},
}
Figure