Empower Sequence Labeling with Task-Aware Neural Language Model

Liyuan Liu, Jingbo Shang, Xiang Ren, Frank Fangzheng Xu, Huan Gui, Jian Peng, Jiawei Han

Introduction

Sequence labeling tasks, such as Named Entity Recognition (NER), Part-of-Speech (POS) tagging, and syntactic chunking, are fundamental components of natural language processing. While modern neural architectures have largely replaced manual feature engineering, they often require substantial annotated datasets or massive external corpora to achieve high performance. Current approaches typically rely on either multi-task learning with additional supervised data or computationally expensive pre-training on billions of words.

The authors propose LM-LSTM-CRF, a framework that enhances sequence labeling by co-training a character-level language model (LM) alongside the primary labeling task. This approach extracts rich, task-specific character knowledge directly from the training data, achieving state-of-the-art results with significantly lower computational overhead.

The LM-LSTM-CRF Architecture

The core innovation of this work is the integration of a language modeling objective into a standard sequence labeling pipeline. The architecture consists of three primary components:

  1. Character-level Layer: A bidirectional LSTM processes the character sequence of each word. These units are trained as a language model to predict the next character or word, capturing sub-word patterns like prefixes, suffixes, and capitalization.
  2. Highway Layer: To resolve potential "discordance" between the language modeling and sequence labeling objectives, the authors introduce highway units. These units transform character-level outputs into distinct semantic spaces—one optimized for the LM and another for the labeling task—allowing the model to filter for the most relevant features.
  3. Word-level Bi-LSTM & CRF: Task-specific character features are concatenated with word embeddings (e.g., GloVe) and passed through a word-level Bi-LSTM. A Conditional Random Field (CRF) layer then ensures global consistency in the final label sequence.
The LM-LSTM-CRF architecture integrates character-level language modeling with word-level sequence labeling via highway layers.

Experimental Results and Efficiency

The model was evaluated on three benchmark datasets: CoNLL 2003 (NER), CoNLL 2000 (Chunking), and the Wall Street Journal (POS tagging).

On the CoNLL 2003 NER task, the LM-LSTM-CRF achieved a state-of-the-art F1 score of 91.71, outperforming previous models that did not utilize massive external data. Notably, the model is highly efficient; training for the NER task takes approximately 6 hours on a single GPU, whereas contemporary "heavyweight" models often require hundreds of GPU hours. This efficiency is achieved by managing task interference through the highway layers, allowing the framework to reach performance comparable to models trained on 4000x more data.

Comparison of F1 scores on the CoNLL 2003 NER task. LM-LSTM-CRF (index 15) achieves competitive results against models using significantly more external resources.

Key Insights

  • Task-Awareness: Co-training the LM with the labeler "guides" the model to focus on features beneficial to the specific task, unlike general-purpose pre-trained models that may extract irrelevant knowledge.
  • "Free" Supervision: Language modeling leverages the inherent structure of the training text as a supervisory signal, maximizing the information extracted from existing datasets without requiring additional human labels.
  • General-Purpose Utility: The framework showed consistent improvements across all three tasks (NER, POS, and Chunking), proving that the task-aware LM approach is a robust booster for sequence labeling.

Conclusion

The LM-LSTM-CRF framework demonstrates that task-aware language modeling is a powerful and efficient tool for sequence labeling. While the model still benefits from pre-trained word embeddings, its ability to extract deep character-level insights from the training corpus itself marks a significant step toward more resource-efficient NLP. Future work may explore broader unsupervised learning principles to further reduce the reliance on human-annotated data.

Summary updated

BibTeX
@inproceedings{liu2018empower,
  author = {Liyuan Liu and Jingbo Shang and Xiang Ren and Frank Fangzheng Xu and Huan Gui and Jian Peng and Jiawei Han},
  title = {{Empower Sequence Labeling with Task-Aware Neural Language Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12006},
}
Figure