[Paper Review] Efficient Second-Order TreeCRF for Neural Dependency Parsing
This paper proposes the first efficient second-order TreeCRF extension for neural dependency parsing, enabling global structural learning and high-order modeling in the biaffine parser via GPU-accelerated batched inside and back-propagation-based outside algorithms. Experiments on 27 datasets across 13 languages show significant gains in parsing accuracy, especially under partial annotation, demonstrating that structural learning and high-order modeling remain effective in the deep learning era.
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. 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.
Motivation & Objective
- To investigate whether traditional techniques like structural learning and high-order modeling can further improve state-of-the-art biaffine dependency parsers in the deep learning era.
- To address the long-standing inefficiency of the inside-outside algorithm in TreeCRF, particularly the outside computation, which has hindered its adoption in neural models.
- To enable end-to-end training of second-order TreeCRF with the biaffine parser by efficiently batching the inside algorithm and implicitly computing gradients via back-propagation instead of explicit outside computation.
- To evaluate the impact of structural learning (via TreeCRF loss) and high-order modeling (via triaffine scoring of dependency triples) on parsing performance, especially under partial annotation.
Proposed method
- Proposes a second-order TreeCRF extension to the biaffine parser by introducing a triaffine layer to explicitly score dependency triples (head, child, sibling), capturing second-order structural dependencies.
- Designs a batched inside algorithm that leverages large-scale matrix operations on GPUs, overcoming the prior CPU-only bottleneck in TreeCRF training.
- Replaces the complex outside algorithm with an implicit computation via back-propagation, which naturally yields gradients and marginal probabilities without explicit outside computation.
- Employs a global TreeCRF loss function to optimize the full dependency tree structure, promoting better model confidence and alignment with the true tree distribution.
- Integrates the second-order TreeCRF into the biaffine parser framework while retaining its efficiency, enabling joint optimization of local and global structural signals.
- Uses marginal probabilities from the TreeCRF to support downstream tasks like Minimum Bayes Risk decoding and active learning.
Experimental results
Research questions
- RQ1Can second-order structural modeling and global TreeCRF training further improve the performance of the state-of-the-art biaffine dependency parser?
- RQ2Is the computational complexity of the inside-outside algorithm still a major barrier to applying TreeCRF in modern neural parsing systems?
- RQ3Can the outside algorithm be effectively replaced by back-propagation in a differentiable end-to-end training setup?
- RQ4Does structural learning via TreeCRF loss lead to better convergence and improved performance on partially annotated data?
- RQ5To what extent do high-order dependencies contribute to parsing accuracy beyond what BiLSTM encoders implicitly capture?
Key findings
- The proposed second-order TreeCRF extension significantly improves parsing performance over the standard biaffine parser, especially on partially annotated training data, with consistent gains in both UAS and LAS across 27 datasets.
- The batched inside algorithm enables efficient GPU training, reducing training time and making TreeCRF feasible for large-scale neural parsing.
- Implicit computation of the outside algorithm via back-propagation eliminates the need for explicit outside computation while still producing correct gradients and marginal probabilities.
- Structural learning via TreeCRF loss leads to better convergence behavior and higher complete tree matching rates compared to local head-selection loss.
- High-order modeling through triaffine scoring provides measurable gains, demonstrating that explicit second-order modeling complements the inductive bias of BiLSTM encoders.
- The model achieves state-of-the-art performance on multiple benchmarks, with notable improvements on low-resource and partially annotated settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.