Skip to main content
QUICK REVIEW

[Paper Review] Approximation-Aware Dependency Parsing by Belief Propagation

Matthew R. Gormley, Mark Dredze|arXiv (Cornell University)|Aug 10, 2015
Topic ModelingComputer Science32 references5 citations
TL;DR

This paper proposes approximation-aware training for dependency parsing using belief propagation, treating the entire inference pipeline as a differentiable circuit to backpropagate through approximate inference. By optimizing for actual parsing accuracy instead of conditional log-likelihood, the method achieves higher accuracy with fewer belief propagation iterations, especially under early stopping and pruning constraints.

ABSTRACT

We show how to train the fast dependency parser of Smith and Eisner (2008) for improved accuracy. This parser can consider higher-order interactions among edges while retaining O(n^3) runtime. It outputs the parse with maximum expected recall -- but for speed, this expectation is taken under a posterior distribution that is constructed only approximately, using loopy belief propagation through structured factors. We show how to adjust the model parameters to compensate for the errors introduced by this approximation, by following the gradient of the actual loss on training data. We find this gradient by back-propagation. That is, we treat the entire parser (approximations and all) as a differentiable circuit, as Stoyanov et al. (2011) and Domke (2010) did for loopy CRFs. The resulting trained parser obtains higher accuracy with fewer iterations of belief propagation than one trained by conditional log-likelihood.

Motivation & Objective

  • To address the gap between approximate inference in higher-order dependency parsers and standard training that assumes exact inference.
  • To improve parsing accuracy when using approximate inference methods like loopy belief propagation and early stopping.
  • To develop a training framework that accounts for inference approximations by optimizing for actual evaluation metrics rather than surrogate likelihood objectives.
  • To enable faster, more accurate inference by training models to compensate for approximation errors during belief propagation.
  • To extend the ERMA framework to structured models with global constraints, such as dependency parsing with tree-formation factors.

Proposed method

  • Treat the entire parsing system—including loopy belief propagation, pruning, and inference approximations—as a differentiable computational graph.
  • Use backpropagation to compute gradients of the actual parsing loss (e.g., F1 or UAS) through the approximate inference process.
  • Define a smooth, differentiable objective function based on L2 distance between inferred edge marginals and gold edge indicators.
  • Integrate the inside-outside algorithm as a subroutine within belief propagation to handle structured factors like tree constraints.
  • Train the model using gradient descent on the true evaluation objective, rather than conditional log-likelihood, to align training with test-time performance.
  • Apply the method to higher-order dependency parsing models with grandparent and sibling factors, using factor graphs with cyclic dependencies.

Experimental results

Research questions

  • RQ1Can we improve dependency parsing accuracy by training models to account for approximation errors introduced during belief propagation?
  • RQ2Does optimizing for actual parsing performance (e.g., F1 or UAS) outperform standard conditional log-likelihood training when inference is approximate?
  • RQ3How does approximation-aware training affect performance when belief propagation is stopped early or when pruning limits the search space?
  • RQ4Can a differentiable formulation of belief propagation with structured factors enable end-to-end training that improves test-time accuracy?
  • RQ5Does the L2-based objective between inferred and gold marginals lead to better generalization than traditional loss functions in approximate inference settings?

Key findings

  • On the English Penn Treebank, the approximation-aware parser achieves higher UAS than standard conditional log-likelihood training, especially with fewer belief propagation iterations.
  • On average across 19 CoNLL-2006/2007 languages, the L2-based approximation-aware training improves UAS by 0.31 points over conditional log-likelihood training.
  • The gains are most significant when belief propagation is limited to a small number of iterations, indicating better compensation for early stopping.
  • The method outperforms standard training even when using first-order pruning and early stopping, showing robustness to inference approximations.
  • The L2 objective function, which minimizes the distance between inferred and gold edge marginals, leads to better generalization than standard likelihood-based training.
  • The approach is generalizable to other models with structured factors that use the inside-outside algorithm, such as grammar parsing and semantic parsing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.