Computationally Efficient NER Taggers with Combined Embeddings and Constrained Decoding

Brian Lester, Daniel Pressel, Amy Hemmeter, Sagnik Ray Choudhury
1/5/2020
cs.CL

Official code: mead-ml/mead-baseline (244 stars, Python, Apache-2.0, PyTorch, last commit 2023-10-13).

Abstract

Current State-of-the-Art models in Named Entity Recognition (NER) are neural models with a Conditional Random Field (CRF) as the final network layer, and pre-trained "contextual embeddings". The CRF layer is used to facilitate global coherence between labels, and the contextual embeddings provide a better representation of words in context.

Show full abstract

However, both of these improvements come at a high computational cost. In this work, we explore two simple techniques that substantially improve NER performance over a strong baseline with negligible cost. First, we use multiple pre-trained embeddings as word representations via concatenation. Second, we constrain the tagger, trained using a cross-entropy loss, during decoding to eliminate illegal transitions. While training a tagger on CoNLL 2003 we find a $786$\% speed-up over a contextual embeddings-based tagger without sacrificing strong performance. We also show that the concatenation technique works across multiple tasks and datasets. We analyze aspects of similarity and coverage between pre-trained embeddings and the dynamics of tag co-occurrence to explain why these techniques work. We provide an open source implementation of our tagger using these techniques in three popular deep learning frameworks --- TensorFlow, Pytorch, and DyNet.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Deep-Learning Model Exploration and Development for NLP

24473Python, PerlApr 24, 20163 years agoApache-2.0
baselinebertclassificationconvolutional-neural-networksdeep-learning+14 more

Similar Papers

Cite this paper

@article{lester2020computationally,
  title  = {Computationally Efficient NER Taggers with Combined Embeddings and Constrained Decoding},
  author = {Brian Lester and Daniel Pressel and Amy Hemmeter and Sagnik Ray Choudhury},
  year   = {2020},
  eprint = {2001.01167},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.01167}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.01167.svg)](https://codeofpaper.com/paper/2001.01167)

Discussion