Concise Integer Linear Programming Formulations for Dependency Parsing

André F. T. Martins, Noah A. Smith, Eric P. Xing

Introduction

Dependency parsing is a fundamental task in Natural Language Processing (NLP) that involves identifying grammatical relationships between words in a sentence. These relationships are represented as directed arcs, such as a "subject" arc connecting a verb to its governing noun. While simple "arc-factored" models are computationally efficient, they often struggle with complex linguistic structures, particularly in languages with flexible word order.

The Challenge of Non-Projective Parsing

A significant hurdle in dependency parsing is handling non-projective sentences. In these cases, dependency arcs cross one another, a phenomenon common in languages like Dutch, Turkish, and Portuguese.

Example of a non-projective dependency tree where arcs cross.

Traditional models that account for these complexities often face a trade-off between accuracy and speed. Previous attempts to use Integer Linear Programming (ILP) to capture global features—such as "grandparent" or "sibling" relationships—were often "un-concise," requiring an exponential number of constraints to ensure the resulting structure was a valid, cycle-free tree. This made them too slow for practical, large-scale applications.

A Concise ILP Formulation

Martins et al. address this by introducing a mathematically compact ILP formulation. Their primary innovation lies in how they represent the tree structure:

  1. The Flow Analogy: Instead of explicitly forbidding every possible cycle, the authors treat the sentence as a network flow problem. The "root" word acts as a source sending out $n$ units of "flow," where $n$ is the number of words. Each word in the sentence must consume exactly one unit. This "single commodity flow" approach ensures the structure is a connected tree using only a polynomial number of constraints ($O(n^2)$).
  2. Higher-Order Features: To model sophisticated linguistic patterns like siblings (words sharing a parent) and grandparents, the authors use a linearization trick. They introduce binary variables representing the conjunction of arcs, allowing the model to learn these relationships without sacrificing the conciseness of the ILP.
  3. Learning through Relaxation: The model is trained using a max-margin framework. To maintain efficiency, the authors utilize LP relaxation, treating binary decisions as continuous probabilities during training. During inference, they project these results back into a valid tree structure, achieving high accuracy with significant speed gains.

Experimental Evaluation

The researchers evaluated their parser on standard benchmarks across seven languages, including the CoNLL-X (Danish, Dutch, Portuguese, Slovene, Swedish, Turkish) and CoNLL-2008 (English) shared tasks. These datasets represent a wide spectrum of linguistic diversity, from highly non-projective to mostly projective structures.

Performance comparison across seven languages using various model configurations.

Key Insights and Results

The experimental results highlighted several critical findings:

  • Superior Accuracy: The "Full" model—incorporating siblings, grandparents, and valency—consistently outperformed basic arc-factored baselines. As shown in the results table, the inclusion of higher-order features (+SIBL/GRANDP) provided a measurable boost in parsing accuracy across nearly all tested languages.
  • Efficiency via Relaxation: Solving the "relaxed" Linear Program and then projecting the result onto a valid tree (the "Full, Relaxed" column) yielded accuracy nearly identical to the exact ILP solution but at a fraction of the computational cost, averaging 0.632 seconds per sentence.
  • Learned Constraints: Unlike systems relying on hard-coded linguistic rules, this framework allows the model to learn grammatical patterns as "soft constraints" directly from the data.

Conclusion

By reframing dependency parsing as a concise network flow problem, this research demonstrates that global linguistic features can be modeled efficiently within an ILP framework. The transition from exponential to polynomial constraints, combined with effective LP relaxation techniques, paves the way for more accurate and computationally viable non-projective parsers in diverse multilingual contexts.

Summary updated

BibTeX
@inproceedings{martins2009concise,
  author = {André F. T. Martins and Noah A. Smith and Eric P. Xing},
  title = {{Concise Integer Linear Programming Formulations for Dependency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2009},
}
Figure