HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Fast and Accurate Neural CRF Constituency Parsing

Yu Zhang Houquan Zhou Zhenghua Li

Fast and Accurate Neural CRF Constituency Parsing

Abstract

Estimating probability distribution is one of the core issues in the NLP field. However, in both deep learning (DL) and pre-DL eras, unlike the vast applications of linear-chain CRF in sequence labeling tasks, very few works have applied tree-structure CRF to constituency parsing, mainly due to the complexity and inefficiency of the inside-outside algorithm. This work presents a fast and accurate neural CRF constituency parser. The key idea is to batchify the inside algorithm for loss computation by direct large tensor operations on GPU, and meanwhile avoid the outside algorithm for gradient computation via efficient back-propagation. We also propose a simple two-stage bracketing-then-labeling parsing approach to improve efficiency further. To improve the parsing performance, inspired by recent progress in dependency parsing, we introduce a new scoring architecture based on boundary representation and biaffine attention, and a beneficial dropout strategy. Experiments on PTB, CTB5.1, and CTB7 show that our two-stage CRF parser achieves new state-of-the-art performance on both settings of w/o and w/ BERT, and can parse over 1,000 sentences per second. We release our code at https://github.com/yzhangcs/crfpar.

Code Repositories

yzhangcs/crfpar
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
constituency-parsing-on-ctb5CRF Parser
F1 score: 89.80
constituency-parsing-on-ctb5CRF Parser + BERT
F1 score: 92.27
constituency-parsing-on-ctb7CRF Parser + BERT
F1 score: 91.55
constituency-parsing-on-ctb7CRF Parser + Electra
F1 score: 91.92
constituency-parsing-on-ctb7CRF Parser
F1 score: 88.60
constituency-parsing-on-penn-treebankCRF Parser + RoBERTa
F1 score: 96.32
constituency-parsing-on-penn-treebankCRF Parser + BERT
F1 score: 95.69
constituency-parsing-on-penn-treebankCRF Parser
F1 score: 94.12

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Fast and Accurate Neural CRF Constituency Parsing | Papers | HyperAI