AIN: Fast and Accurate Sequence Labeling with Approximate Inference Network

Xinyu Wang, Yong Jiang, Nguyen Bach, Tao Wang, Zhongqiang Huang +2 more
9/17/2020
cs.CLcs.AI

Official code: Alibaba-NLP/AIN (19 stars, Python, last commit 2022-11-14).

Abstract

The linear-chain Conditional Random Field (CRF) model is one of the most widely-used neural sequence labeling approaches. Exact probabilistic inference algorithms such as the forward-backward and Viterbi algorithms are typically applied in training and prediction stages of the CRF model.

Show full abstract

However, these algorithms require sequential computation that makes parallelization impossible. In this paper, we propose to employ a parallelizable approximate variational inference algorithm for the CRF model. Based on this algorithm, we design an approximate inference network that can be connected with the encoder of the neural CRF model to form an end-to-end network, which is amenable to parallelization for faster training and prediction. The empirical results show that our proposed approaches achieve a 12.7-fold improvement in decoding speed with long sentences and a competitive accuracy compared with the traditional CRF approach.

View on arXivView PDF

Code Implementations(1)

Alibaba-NLP/AINOfficial100%

Code for our EMNLP 2020 Paper "AIN: Fast and Accurate Sequence Labeling with Approximate Inference Network"

194PythonOct 3, 20204 years agoNOASSERTION

Similar Papers

Cite this paper

@article{wang2020ain,
  title  = {AIN: Fast and Accurate Sequence Labeling with Approximate Inference Network},
  author = {Xinyu Wang and Yong Jiang and Nguyen Bach and Tao Wang and Zhongqiang Huang and Fei Huang and Kewei Tu},
  year   = {2020},
  eprint = {2009.08229},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.08229}
}

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

Discussion