Efficient Second-Order TreeCRF for Neural Dependency Parsing

Yu Zhang, Zhenghua Li, Min Zhang
5/3/2020
118 citations
cs.CL

Official code: yzhangcs/crfpar (78 stars, Python, MIT, PyTorch, last commit 2020-11-10).

Abstract

In the deep learning (DL) era, parsing models are extremely simplified with little hurt on performance, thanks to the remarkable capability of multi-layer BiLSTMs in context representation. As the most popular graph-based dependency parser due to its high efficiency and performance, the biaffine parser directly scores single dependencies under the arc-factorization assumption, and adopts a very simple local token-wise cross-entropy training loss.

Show full abstract

This paper for the first time presents a second-order TreeCRF extension to the biaffine parser. For a long time, the complexity and inefficiency of the inside-outside algorithm hinder the popularity of TreeCRF. To address this issue, we propose an effective way to batchify the inside and Viterbi algorithms for direct large matrix operation on GPUs, and to avoid the complex outside algorithm via efficient back-propagation. Experiments and analysis on 27 datasets from 13 languages clearly show that techniques developed before the DL era, such as structural learning (global TreeCRF loss) and high-order modeling are still useful, and can further boost parsing performance over the state-of-the-art biaffine parser, especially for partially annotated training data. We release our code at https://github.com/yzhangcs/crfpar.

View on arXivView PDF

Code Implementations(1)

yzhangcs/crfparOfficial100%
PyTorchMIT

[ACL'20, IJCAI'20] Code for "Efficient Second-Order TreeCRF for Neural Dependency Parsing" and "Fast and Accurate Neural CRF Constituency Parsing".

787PythonMay 27, 20206 years agoMIT
acl2020constituency-parsingdependency-parsingijcai2020pytorch+1 more

Similar Papers

Cite this paper

@article{zhang2020efficient,
  title  = {Efficient Second-Order TreeCRF for Neural Dependency Parsing},
  author = {Yu Zhang and Zhenghua Li and Min Zhang},
  year   = {2020},
  eprint = {2005.00975},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00975}
}

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

Discussion