[Paper Review] An Efficient Implementation of the Head-Corner Parser
This paper presents an efficient, memoized head-corner parser with goal-weakening for constraint-based grammars, significantly improving speed and space efficiency over standard chart parsers. Experiments show it outperforms both left-corner and bottom-up chart parsers on complex grammars, especially when lexical ambiguity is low, demonstrating superior performance in parsing robust, ambiguous Dutch dialogue sentences in the OVIS system.
This paper describes an efficient and robust implementation of a bi-directional, head-driven parser for constraint-based grammars. This parser is developed for the OVIS system: a Dutch spoken dialogue system in which information about public transport can be obtained by telephone. After a review of the motivation for head-driven parsing strategies, and head-corner parsing in particular, a non-deterministic version of the head-corner parser is presented. A memoization technique is applied to obtain a fast parser. A goal-weakening technique is introduced which greatly improves average case efficiency, both in terms of speed and space requirements. I argue in favor of such a memoization strategy with goal-weakening in comparison with ordinary chart-parsers because such a strategy can be applied selectively and therefore enormously reduces the space requirements of the parser, while no practical loss in time-efficiency is observed. On the contrary, experiments are described in which head-corner and left-corner parsers implemented with selective memoization and goal weakening outperform `standard' chart parsers. The experiments include the grammar of the OVIS system and the Alvey NL Tools grammar. Head-corner parsing is a mix of bottom-up and top-down processing. Certain approaches towards robust parsing require purely bottom-up processing. Therefore, it seems that head-corner parsing is unsuitable for such robust parsing techniques. However, it is shown how underspecification (which arises very naturally in a logic programming environment) can be used in the head-corner parser to allow such robust parsing techniques. A particular robust parsing model is described which is implemented in OVIS.
Motivation & Objective
- To develop a fast and memory-efficient parser for constraint-based grammars used in spoken dialogue systems.
- To address the inefficiency of standard chart parsers in handling ambiguity and redundant rule applications.
- To improve parsing performance through selective memoization and goal-weakening techniques.
- To evaluate the parser’s robustness and efficiency on real-world, ambiguous Dutch grammar from the OVIS system.
- To investigate whether head-corner parsing can support robust parsing in underspecified, logic-programming environments.
Proposed method
- A non-deterministic head-corner parser is designed to combine top-down and bottom-up processing by first identifying the head of a rule before parsing its dependents.
- Selective memoization is applied to cache only relevant parsing states, reducing space usage without sacrificing speed.
- Goal-weakening is introduced to prune non-promising parsing paths early, improving average-case efficiency.
- The parser uses a logic programming environment (Prolog) to naturally represent underspecification, enabling robust parsing under uncertainty.
- The implementation is tested on two grammars: the MiMo2 grammar (Dutch dialogue) and the Alvey NL Tools grammar (complex, ambiguous).
- Parsing results include full parse tree construction and memory usage metrics, with comparisons to standard left-corner and bottom-up chart parsers.
Experimental results
Research questions
- RQ1Can a head-corner parser with selective memoization and goal-weakening outperform standard chart parsers in terms of speed and memory efficiency?
- RQ2How does the head-corner parser handle high lexical ambiguity, and does it scale better than bottom-up approaches?
- RQ3To what extent can underspecification in a logic programming environment support robust parsing in head-corner parsing?
- RQ4Why does the head-corner parser underperform on the Alvey NL Tools grammar compared to the MiMo2 grammar?
- RQ5Is the performance gain from goal-weakening and selective memoization consistent across different grammatical structures and sentence complexities?
Key findings
- The head-corner parser with selective memoization and goal-weakening achieved 195.9 ms per sentence on the 100-long-sentence test set (MiMo2 grammar), outperforming the left-corner parser (216.2 ms) and significantly beating bottom-up chart parsers.
- The bottom-up active chart parser ran into memory limits for highly ambiguous sentences, exceeding 65,000 KB, while the head-corner parser used only 10,955 KB.
- On the Alvey NL Tools grammar, the head-corner parser was slower than the left-corner parser, indicating limited benefit when too many lexical items can serve as heads, increasing non-determinism.
- The parser’s performance was superior on word strings compared to word graphs, suggesting that increased lexical ambiguity (as in word graphs) degrades head-corner parsing efficiency.
- Goal-weakening reduced unnecessary search paths, improving both time and space efficiency without losing completeness in practical parsing scenarios.
- The results confirm that selective memoization with goal-weakening is more effective than standard chart parsing, especially in low-ambiguity, head-driven grammars.
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.