A Graph-based Model for Joint Chinese Word Segmentation and Dependency Parsing

Hang Yan, Xipeng Qiu, Xuanjing Huang

TL;DR

Researchers from Fudan University have developed a novel graph-based model that performs Chinese Word Segmentation (CWS) and Dependency Parsing simultaneously. By treating word boundaries as a special type of "internal" dependency between characters, the model eliminates the error propagation common in pipeline methods and achieves state-of-the-art results, especially when boosted by BERT.

Introduction

Unlike English, which uses spaces to denote word boundaries, Chinese is written as a continuous string of characters. Traditionally, Natural Language Processing (NLP) for Chinese follows a pipeline: first, segmenting characters into words (CWS), then assigning parts of speech (POS), and finally determining grammatical relationships (Dependency Parsing).

This approach suffers from two major flaws: error propagation, where early segmentation mistakes derail the parser, and a lack of knowledge sharing, as segmenters cannot leverage high-level syntactic context. While previous joint models attempted to bridge this gap using transition-based methods, they often struggled with massive search spaces and required complex, handcrafted features.

The Unified Dependency Framework

The core innovation of this research is a graph-based joint model that unifies segmentation and parsing into a single dependency framework. Instead of treating them as separate tasks, the authors redefine word boundaries as a specific type of dependency arc.

  • Word Segmentation as Dependencies: The model introduces a special label, app (append). If two adjacent characters belong to the same word, an arc is drawn between them with the app label.
  • Parsing as Dependencies: For relationships between words, an arc is drawn from the last character of the head word to the last character of the dependent word.
Unified representation of word segmentation and dependency parsing.

By shifting the focus to the character level, the model considers all possible relationships (arcs) between characters globally, finding the most likely structure for the entire sentence at once.

Neural Architecture

The model's architecture is designed to learn features automatically from raw character embeddings, moving away from the manual feature engineering required by transition-based models.

  1. Encoding Layer: The model utilizes either a Bi-LSTM or BERT to generate contextual vector representations for every character in the input sentence.
  2. Biaffine Scorer: This component acts as the model's engine. It processes pairs of character vectors to calculate the probability of an arc existing between them (Unlabeled Arc Prediction) and determines the appropriate label (e.g., nsubj, dobj, or the internal app).
  3. Decoding: A Maximum Spanning Tree (MST) algorithm is employed to ensure the final output is a valid, well-formed tree structure.

Experimental Results

The model was evaluated on three versions of the Penn Chinese Treebank (CTB-5, CTB-7, and CTB-9). The results demonstrate that the joint approach significantly outperforms previous state-of-the-art models.

On the CTB-5 dataset, the proposed Joint-Multi model achieved an unlabeled dependency score ($F1_{udep}$) of 87.86%, a substantial improvement over previous joint models which typically peaked around 82%. When integrated with BERT, performance further climbed to 89.59%.

Crucially, the joint model performed nearly as well as models provided with "gold" (perfect) word segmentations. This suggests that the architecture effectively resolves the error propagation problem by allowing high-level syntactic logic to inform ambiguous word boundaries.

Discussion and Future Work

While the model achieves impressive results, it currently omits Part-of-Speech (POS) tagging. Although the authors show high performance without it, POS information remains valuable for many downstream applications. Future iterations may incorporate POS tagging into the unified framework.

Additionally, the model uses a simple left-to-right dependency for characters within a word. Exploring more sophisticated internal structures could yield further gains. Finally, the $O(n^3)$ computational complexity of graph-based models remains a consideration for processing extremely long sentences in production environments compared to faster transition-based alternatives.

Summary updated

BibTeX
@article{yan2020graph,
  author = {Hang Yan and Xipeng Qiu and Xuanjing Huang},
  title = {{A Graph-based Model for Joint Chinese Word Segmentation and Dependency Parsing}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2020},
  doi = {10.1162/tacl\_a\_00301},
}
Figure