Incremental Integer Linear Programming for Non-projective Dependency Parsing
Introduction
Dependency parsing is the task of identifying grammatical relationships between words in a sentence. High-performance models, such as the Maximum Spanning Tree (MST) parser, often rely on the assumption that attachment decisions are independent. However, this local approach can lead to linguistically inconsistent structures, such as a single verb being assigned multiple subjects.
While Integer Linear Programming (ILP) offers a robust framework for enforcing global constraints, its application to non-projective parsing—where dependencies can cross—is computationally challenging. Specifically, ensuring the resulting graph is a tree (avoiding cycles) requires an exponential number of constraints, often leading to a "computational explosion" that makes standard ILP solvers impractical for real-time use.
The Incremental ILP Framework
To overcome these efficiency hurdles, this paper proposes an incremental ILP approach. Rather than initializing the solver with the full set of potential constraints, the algorithm adopts a "lazy" strategy. It begins by solving the parsing problem with only a minimal set of base constraints. The resulting parse is then inspected for violations, such as cycles or illegal label assignments. If violations are found, only the specific constraints necessary to rectify those errors are added to the model, and the solver is re-run.
This iterative process continues until a valid, constraint-abiding tree is produced. Because modern scoring functions are generally accurate, the initial "unconstrained" solve is often close to the optimal valid tree, requiring very few iterations to converge. The authors found that the approach typically converges in fewer than 20 iterations for 99% of sentences.
Linguistic Constraints
Beyond structural tree constraints, the authors integrated several linguistically motivated rules to improve parsing accuracy:
- Label Uniqueness: Restricts a head to having at most one subject, one direct object, etc.
- Coordination Rules: Ensures that conjunctions (e.g., "and") have arguments of compatible word classes on both sides.
- Selective Projectivity: Forbids specific types of crossing dependencies that are known to be grammatically impossible in the target language.
Experimental Setup and Results
The model was evaluated on the Alpino treebank, a Dutch dataset containing approximately 13,300 sentences. Dutch is an ideal test case due to its frequent use of non-projective structures.
Accuracy and Efficiency
The inclusion of global linguistic constraints yielded a statistically significant improvement in accuracy. The Labelled Attachment Score (LAC) rose from a baseline of 84.6% to 85.1%. While the ILP approach is slower than the baseline MST algorithm, it remains practical for real-world use. For sentences between 21-30 tokens, the average solve time was approximately 460ms.
To further optimize performance, the authors implemented an approximation technique: considering only the top q (e.g., 10) highest-scoring potential heads for each word. This pruning reduced total solve time by roughly 80% with negligible impact on accuracy.
Conclusion and Future Work
The incremental ILP framework demonstrates that global linguistic constraints can be enforced efficiently without sacrificing the flexibility needed for non-projective parsing. While the current model shows sensitivity to Part-of-Speech (POS) tagging errors—where a hard constraint might propagate an initial tagging mistake—future work aims to integrate these constraints directly into the training phase to better align the learning and decoding processes. This approach also holds promise for other complex NLP tasks, such as machine translation decoding.
Summary updated