Coupling Distant Annotation and Adversarial Training for Cross-Domain Chinese Word Segmentation

Ning Ding, Dingkun Long, Guangwei Xu, Muhua Zhu, Pengjun Xie, Xiaobin Wang, Hai-Tao Zheng

TL;DR

This paper introduces DAAT, a framework that tackles the "domain shift" problem in Chinese Word Segmentation (CWS) by combining automatic data labeling with adversarial learning. By mining domain-specific words from unlabeled text and using an adversarial discriminator to extract domain-invariant features, the authors achieve state-of-the-art performance across diverse domains—like medical texts and fantasy novels—without requiring any manually curated dictionaries.

What Problem Does This Paper Address?

Chinese Word Segmentation is a foundational task in NLP because, unlike English, Chinese text lacks spaces between words. While neural models have mastered segmenting standard news text, their performance craters when applied to specialized domains like medicine or literature.

The authors identify two primary culprits:

  1. The Distribution Gap: Models trained on news data (source) struggle with the different linguistic patterns of a target domain (e.g., patents).
  2. Out-of-Vocabulary (OOV) Words: Domain-specific terms—like "Lysozyme" in medicine or "Soul-devouring" in a fantasy novel—simply don't exist in general training sets. As shown in Figure 1, words common in one domain are often entirely absent or used differently in another.
Figure 1: Different word distributions for the newswire domain and the medical domain.

Existing solutions often rely on expensive, human-curated dictionaries for every new domain, which isn't scalable. DAAT aims to bridge this gap using only unlabeled raw text from the target domain.

Methods

The DAAT (Distant Annotation and Adversarial Training) framework consists of two main modules, illustrated in the detailed architecture in Figure 2.

Figure 2: Detailed architecture of DAAT, the left part is the structure of the Distant Annotation (DA) module. The annotated dataset on target domain will be sent to the Adversarial Training (AT) module on the right part.

1. Distant Annotation (DA)

Instead of asking for a dictionary, the authors "mine" one. They use a Domain-Specific Words Miner that identifies potential words in unlabeled target text based on three statistical signals:

  • Mutual Information (MI): Measures "internal tightness"—how often characters appear together compared to apart.
  • Entropy Score (ES): Measures "external flexibility"—how diverse the characters surrounding a potential word are. A true word should appear in many different contexts.
  • tf-idf: Identifies words that are particularly important to the specific target corpus.

These mined words are combined with a base segmenter (trained on the source domain) to automatically label the raw target text, creating a "distantly annotated" dataset.

2. Adversarial Training (AT)

Automatic labeling is inherently noisy. To make the model more robust, the authors use an adversarial setup:

  • Private Encoders: Separate Gated Convolutional Neural Networks (GCNNs) learn features unique to the source and target domains.
  • Shared Encoder: A third GCNN attempts to learn features that are common to both domains.
  • Discriminator: A classifier tries to guess whether a feature came from the source or target domain. The shared encoder is trained to "fool" this discriminator, forcing it to extract domain-agnostic features.

Datasets

The researchers used the PKU dataset (newswire) as the source domain. They evaluated their model on five distinct target domains:

  • Novels: Three Chinese fantasy novel datasets (DL, FR, ZX).
  • Medical: A dermatology (DM) dataset.
  • Patent: A patent (PT) dataset.

These target datasets were provided as raw, unlabeled text, simulating a real-world scenario where a researcher has plenty of data but no budget for manual annotation.

Key Insights and Ideas

  • Rethinking "Word-ness": The paper demonstrates that statistical properties (tightness and flexibility) are powerful enough to identify domain-specific entities without linguistic supervision.
  • Synergy of DA and AT: The Distant Annotation provides the "ground truth" (albeit noisy) for the target domain, while Adversarial Training ensures the model doesn't overfit to the specific quirks of the source domain.
  • Visualizing Invariance: The authors used t-SNE to project the learned features. As seen in Figure 5, while domain-specific features (green and black) stay separate, the domain-agnostic features (red and blue) overlap significantly, proving the adversarial module successfully learned a shared representation.
Figure 5

Key Results

DAAT achieved significant improvements over previous state-of-the-art methods like WEB-CWS and CWS-DICT:

  • F1-Score Gains: The model saw absolute F1 improvements ranging from +0.6% on novels to a massive +3.7% on patent data.
  • OOV Reduction: The Distant Annotation module was highly effective at catching new words. In the medical domain, the OOV rate dropped from 25.93% (using a news-based model) to just 5.42%.
  • Data Efficiency: As shown in Figure 6, even providing just 5% of the unlabeled target data for distant annotation leads to a significant jump in performance compared to using source data alone.
Figure 6

Limitations and Future Work

The authors note that the quality of the Distant Annotation depends on a probability threshold ($p_{val}$). If the threshold is too low, the model is flooded with noise; if it's too high, it misses valid OOV words. While the adversarial training helps mitigate this noise, the system still relies on having a "large enough" corpus of raw target text to generate reliable statistics. Future work could explore how to apply these techniques to "low-resource" domains where even unlabeled text is scarce.

Summary updated

Abstract

Fully supervised neural approaches have achieved significant progress in the task of Chinese word segmentation (CWS). Nevertheless, the performance of supervised models tends to drop dramatically when they are applied to out-of-domain data. Performance degradation is caused by the distribution gap across domains and the out of vocabulary (OOV) problem. In order to simultaneously alleviate these two issues, this paper proposes to couple distant annotation and adversarial training for cross-domain CWS. For distant annotation, we rethink the essence of "Chinese words" and design an automatic distant annotation mechanism that does not need any supervision or pre-defined dictionaries from the target domain. The approach could effectively explore domain-specific words and distantly annotate the raw texts for the target domain. For adversarial training, we develop a sentence-level training procedure to perform noise reduction and maximum utilization of the source domain information. Experiments on multiple real-world datasets across various domains show the superiority and robustness of our model, significantly outperforming previous state-of-the-art cross-domain CWS methods.
BibTeX
@inproceedings{ding2020coupling,
  author = {Ning Ding and Dingkun Long and Guangwei Xu and Muhua Zhu and Pengjun Xie and Xiaobin Wang and Hai-Tao Zheng},
  title = {{Coupling Distant Annotation and Adversarial Training for Cross-Domain Chinese Word Segmentation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.595},
}
Figure