Multi-Task Cross-Lingual Sequence Tagging from Scratch

Zhilin Yang, Ruslan Salakhutdinov, William W. CohenarXiv 2016

Abstract

We present a deep hierarchical recurrent neural network for sequence tagging. Given a sequence of words, our model employs deep gated recurrent units on both character and word levels to encode morphology and context information, and applies a conditional random field layer to predict the tags. Our model is task independent, language independent, and feature engineering free. We further extend our model to multi-task and cross-lingual joint training by sharing the architecture and parameters. Our model achieves state-of-the-art results in multiple languages on several benchmark tasks including POS tagging, chunking, and NER. We also demonstrate that multi-task and cross-lingual joint training can improve the performance in various cases.

Introduction

Sequence tagging—the process of assigning a label to every word in a sentence—is a foundational task in Natural Language Processing (NLP). Historically, achieving high performance required extensive "feature engineering," where experts hand-crafted rules to capture morphological patterns like prefixes and suffixes. Furthermore, most models were siloed, built for a single task in a single language.

This research addresses these limitations by proposing a model that learns features "from scratch" using raw text. By employing a hierarchical structure and joint training strategies, the model can share knowledge across different tasks (e.g., POS tagging and NER) and languages (e.g., English and Spanish), which is particularly beneficial for low-resource scenarios.

Methodology

The core of the system is a Hierarchical Gated Recurrent Unit (GRU) network with a Conditional Random Field (CRF) layer. The architecture processes text through three distinct stages:

  1. Character-Level GRU: This layer analyzes individual characters to learn morphology. It captures how word parts relate to meaning, which is essential for handling out-of-vocabulary words.
  2. Word-Level GRU: This layer integrates the character-level representations with word embeddings to process the entire sentence, capturing contextual dependencies between words.
  3. CRF Layer: Instead of predicting each tag independently, the CRF layer models the relationships between tags (e.g., ensuring an "Inside-Entity" tag follows a "Beginning-Entity" tag), resulting in a globally optimal sequence.
Hierarchical GRU-CRF architecture for sequence tagging.

Joint Training Strategies

To leverage similarities between tasks and languages, the authors introduced two sharing mechanisms:

  • Multi-Task Learning: The model shares all layers below the CRF across different tasks in the same language.
  • Cross-Lingual Learning: The Character-Level GRU is shared across languages, exploiting shared morphological regularities between languages like English, Spanish, and Dutch.

Results and Key Insights

The model was evaluated on several standard benchmarks, including the Penn Treebank and CoNLL datasets. It achieved state-of-the-art (SOTA) results in English Chunking (95.41% F1), Dutch NER (85.19% F1), and Spanish NER (85.77% F1), while remaining highly competitive in English NER (91.20% F1).

Morphology as a Universal Bridge

A significant finding is that the character-level GRU effectively acts as a universal morphological extractor. A t-SNE visualization of the learned embeddings reveals that the model clusters semantically related words across languages—such as "Canada" and "Canadá"—even without explicit translation data or parallel corpora.

t-SNE visualization of character-level embeddings for country names in English (black) and Spanish (red).

Impact on Low-Resource Tasks

Joint training proved to be a "lifesaver" for tasks with limited data. For example, when training Spanish NER with only 10% of its labeled data, the model saw a nearly 2-point F1 boost when jointly trained with English NER data.

Conclusion

By utilizing a hierarchical recurrent structure, this approach replaces complex, manual feature engineering with learned representations. The results demonstrate that "from scratch" models can not only compete with but often outperform heavily engineered systems. Future research may explore incorporating parallel corpora to share word-level semantics and testing the model on non-alphabetic languages like Chinese.

Summary updated

BibTeX
@misc{yang2016multi,
  author = {Zhilin Yang and Ruslan Salakhutdinov and William W. Cohen},
  title = {{Multi-Task Cross-Lingual Sequence Tagging from Scratch}},
  year = {2016},
  eprint = {1603.06270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.06270},
}
Figure