Constrained Decoding for Computationally Efficient Named Entity Recognition Taggers

Brian Lester, Daniel Pressel, Amy Hemmeter, Sagnik Ray Choudhury, Srinivas Bangalore
10/9/2020
cs.CL

Official code: blester125/constrained-decoding (2 stars, Python, MIT, last commit 2020-11-17).

Abstract

Current state-of-the-art models for named entity recognition (NER) are neural models with a conditional random field (CRF) as the final layer. Entities are represented as per-token labels with a special structure in order to decode them into spans.

Show full abstract

Current work eschews prior knowledge of how the span encoding scheme works and relies on the CRF learning which transitions are illegal and which are not to facilitate global coherence. We find that by constraining the output to suppress illegal transitions we can train a tagger with a cross-entropy loss twice as fast as a CRF with differences in F1 that are statistically insignificant, effectively eliminating the need for a CRF. We analyze the dynamics of tag co-occurrence to explain when these constraints are most effective and provide open source implementations of our tagger in both PyTorch and TensorFlow.

View on arXivView PDF

Code Implementations(1)

MIT

Tools and data analysis for my work on constrained decoding

20Python, Jupyter NotebookMay 5, 20206 years agoMIT

Similar Papers

Cite this paper

@article{lester2020constrained,
  title  = {Constrained Decoding for Computationally Efficient Named Entity Recognition Taggers},
  author = {Brian Lester and Daniel Pressel and Amy Hemmeter and Sagnik Ray Choudhury and Srinivas Bangalore},
  year   = {2020},
  eprint = {2010.04362},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.04362}
}

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/2010.04362.svg)](https://codeofpaper.com/paper/2010.04362)

Discussion