Hard Constraints for Grammatical Function Labelling

Wolfgang Seeker, Ines Rehbein, Jonas Kuhn, Josef van GenabithACL 2010

Abstract

For languages with (semi-) free word order (such as German), labelling grammatical functions on top of phrase-structural constituent analyses is crucial for making them interpretable. Unfortunately, most statistical classifiers consider only local information for function labelling and fail to capture important restrictions on the distribution of core argument functions such as subject, object etc., namely that there is at most one subject (etc.) per clause. We augment a statistical classifier with an integer linear program imposing hard linguistic constraints on the solution space output by the classifier, capturing global distributional restrictions. We show that this improves labelling quality, in particular for argument grammatical functions, in an intrinsic evaluation, and, importantly, grammar coverage for treebank-based (Lexical-Functional) grammar acquisition and parsing, in an extrinsic evaluation.

Introduction

In natural language processing, identifying grammatical functions—determining "who did what to whom"—is essential for sentence comprehension. While English relies heavily on word order, "free word order" languages like German present a greater challenge. German uses morphological case to signal functions, but syncretism often makes these signals ambiguous.

Standard statistical classifiers typically rely on local context, which can lead to linguistically nonsensical results, such as assigning multiple subjects to a single clause. This research addresses this gap by combining flexible statistical learning with rigid linguistic logic through Integer Linear Programming (ILP).

Methodology

The proposed system utilizes a two-step post-processing pipeline:

  1. Maximum Entropy (MaxEnt) Classifier: A statistical model assigns a probability distribution over 42 possible grammatical labels for every node in a syntax tree, using features like lemmas, parts of speech, and neighboring node categories.
  2. Integer Linear Programming (ILP) Optimization: Probabilities from the classifier are fed into an ILP solver. The solver identifies the highest-probability global labeling that satisfies a set of "hard" linguistic constraints:
  3. Uniqueness: A clause can have at most one subject, one direct object, etc.
  4. Morphological Consistency: Labels must align with morphological analysis (e.g., a non-nominative phrase cannot be a subject).
  5. Structural Rules: Specific labeling conventions based on the German TiGer Treebank.

Interestingly, the authors found that simple "at most one" constraints were more robust than complex subcategorization frames, which often suffered from dictionary gaps or initial parsing errors.

Evaluation

The study utilizes the TiGer Treebank, containing 50,000 German newspaper sentences. Evaluation was performed on "gold" (perfect) trees and noisy output from the Berkeley Parser to simulate real-world conditions.

Key Results

The integration of global constraints significantly improved performance across multiple metrics. On gold trees, the system achieved nearly 98% accuracy, reducing labeling errors by over 8% compared to the standalone statistical model.

Label accuracy and error reduction for gold standard and parser output.

The most dramatic impact was observed in Lexical-Functional Grammar (LFG) coverage. In deep linguistic frameworks, assigning multiple subjects causes logical contradictions (the "clash" problem) that lead to parse failure. By enforcing uniqueness, the system improved "coverage" (the percentage of sentences successfully parsed) from approximately 93.4% to 98.4%.

Comparison of coverage and performance metrics for different constraint settings.

Conclusion

This hybrid approach demonstrates that local statistical accuracy is insufficient for robust linguistic analysis. By providing "global eyes" through ILP, the system ensures that outputs are not only statistically likely but also linguistically valid. Future work will explore integrating these hard constraints directly into the parsing process to prevent structural errors at the source.

Summary updated

BibTeX
@inproceedings{seeker2010hard,
  author = {Wolfgang Seeker and Ines Rehbein and Jonas Kuhn and Josef van Genabith},
  title = {{Hard Constraints for Grammatical Function Labelling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2010},
  url = {https://openreview.net/forum?id=HJ-iPse_-B},
}
Figure