Joint Chinese Word Segmentation and Part-of-speech Tagging via Two-way Attentions of Auto-analyzed Knowledge

Yuanhe Tian, Yan Song, Xiang Ao, Fei Xia, Xiaojun Quan, Tong Zhang, Yonggang Wang

Introduction

Chinese Word Segmentation (CWS) and Part-of-Speech (POS) tagging are critical precursors for downstream Chinese natural language processing. Unlike English, Chinese lacks explicit word boundaries, making segmentation a non-trivial first step. While joint models for CWS and POS tagging mitigate error propagation compared to pipeline approaches, they often struggle with local ambiguities that require broader syntactic context. For instance, a phrase like "报告书" can be interpreted as a Verb-Noun pair ("report a book") or a single Noun ("the report"). Resolving such ambiguities typically requires long-distance dependencies that standard character-based models fail to capture.

The TWASP Framework

To address these challenges, this paper introduces TWASP (Two-way Attention of Auto-analyzed Knowledge). The model's primary innovation lies in its ability to incorporate "noisy" syntactic information—automatically generated by existing NLP toolkits—without being misled by their inherent errors.

The TWASP architecture integrates external knowledge through a two-way attention mechanism.

The architecture consists of several key components:

  1. Backbone Encoders: TWASP is architecture-agnostic and can be built upon Bi-LSTM, BERT, or ZEN encoders.
  2. Two-way Attention Module: Instead of simple feature concatenation, the model employs two distinct attention paths for each character:
  3. Feature Path: Captures local and global context from the input text.
  4. Knowledge Path: Attends to specific syntactic knowledge instances.
  5. Selective Integration: By separating these paths, the model learns to dynamically weight the external knowledge. If the auto-analyzed data is contradictory or noisy, the attention mechanism can down-weight it, ensuring robust final predictions.

Leveraging Auto-analyzed Knowledge

TWASP utilizes three types of automatically generated knowledge from toolkits like Stanford CoreNLP and the Berkeley Neural Parser:

  • POS Labels: Preliminary tags for individual words.
  • Syntactic Constituents: Phrase-level structures (e.g., Noun Phrases, Verb Phrases).
  • Dependency Relations: Structural links between words (e.g., subject-verb, verb-object).
Illustration of the three types of auto-analyzed knowledge: (a) POS Labels, (b) Syntactic Constituents, and (c) Dependency Relations.

Even though these external tools are imperfect, the two-way attention mechanism acts as a filter, identifying useful structural clues while ignoring noise. This allows the model to resolve ambiguities by leveraging long-distance dependencies, such as identifying a distant subject to clarify a word's POS tag.

Experimental Evaluation

The model was rigorously evaluated on five benchmark datasets, including various versions of the Penn Chinese TreeBank (CTB 5, 6, 7, 9) and the Universal Dependencies (UD) Chinese corpus.

Key Results

  • State-of-the-Art Performance: TWASP achieved record-breaking F-scores across all tested benchmarks for both segmentation and joint tagging.
  • Robustness Across Domains: Evaluation on the eight distinct genres of CTB9 (e.g., weblogs, broadcast news, SMS) demonstrated the model's strong generalization capabilities.
  • Cross-Tagset Utility: Interestingly, the model improved performance on the UD dataset despite the external toolkits being trained on CTB standards, suggesting it learns fundamental structural patterns rather than just memorizing specific tags.

Conclusion

TWASP demonstrates that imperfect, automatically generated syntactic knowledge can significantly enhance joint CWS and POS tagging when integrated through a noise-tolerant attention mechanism. By resolving local ambiguities through broader context, the model sets a new standard for Chinese linguistic analysis. Future work may extend this two-way attention framework to other knowledge-intensive tasks such as Named Entity Recognition (NER) and Semantic Role Labeling (SRL).

Summary updated

BibTeX
@inproceedings{tian2020joint,
  author = {Yuanhe Tian and Yan Song and Xiang Ao and Fei Xia and Xiaojun Quan and Tong Zhang and Yonggang Wang},
  title = {{Joint Chinese Word Segmentation and Part-of-speech Tagging via Two-way Attentions of Auto-analyzed Knowledge}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.735},
}
Figure