Introduction
Parsing, the computational process of determining the grammatical structure of a sentence, remains a fundamental challenge in Natural Language Processing (NLP). Combinatory Categorial Grammar (CCG) is a particularly powerful formalism in this domain because it tightly couples syntax with semantics. This coupling makes CCG highly effective for downstream tasks such as semantic role labeling and question answering.
Historically, CCG parsing has relied on chart-based algorithms like CKY. While these algorithms are accurate and provide a global search for the best tree, they are computationally intensive. Furthermore, they often suffer from "all-or-nothing" failures: if a single spanning tree for the entire sentence cannot be found, the parser typically returns no output. This paper explores an alternative: shift-reduce parsing. While common in dependency parsing, applying transition-based methods to CCG is challenging due to the high lexical ambiguity of the grammar.
Methodology: Transition-Based CCG
The researchers developed a shift-reduce parser that manages a stack of partial trees and a queue of incoming words. Unlike standard shift-reduce parsers that simply shift a word onto the stack, this system integrates supertagging directly into the transition process.
The Action Set
The parser navigates the search space using four primary actions:
- SHIFT-X: Moves the next word from the queue to the stack, simultaneously assigning it a specific CCG lexical category $X$.
- COMBINE: Applies a binary CCG rule (such as functional application or composition) to the top two elements of the stack, replacing them with a single merged node.
- UNARY: Applies a type-changing or type-raising rule to the top element of the stack.
- FINISH: Terminates the process when the queue is empty and the stack contains a complete derivation.
Global Linear Model and Beam Search
To handle the ambiguity inherent in CCG, the parser uses a global linear model trained with an averaged perceptron. This model scores candidate action sequences based on a rich feature set, including the heads of the top four nodes on the stack and the next four words in the queue.
Because a purely greedy search would likely lead to local optima, the authors employ beam search (typically with a beam size of 16). This allows the parser to maintain the $N$-best partial derivations at each step, balancing the efficiency of transition-based parsing with the robustness of a broader search.
Experimental Setup
The model was evaluated using CCGbank, a version of the Penn Treebank translated into CCG derivations. The training set consisted of sections 02–21, with section 00 used for development and section 23 for final testing.
Results and Discussion
The shift-reduce parser demonstrated competitive performance against the industry-standard C&C chart parser. On the CCGbank test set, it achieved a labeled F-measure of 85.48%, surpassing the "normal-form" C&C model (84.20%).
Key Insights
- Graceful Degradation: A significant advantage of the shift-reduce approach is its ability to handle fragmentary sentences. If a full spanning tree is unavailable, the parser returns a set of partial trees rather than failing entirely. This resulted in 100% coverage on the test set, compared to the ~99% coverage of the C&C parser.
- Precision vs. Recall: The transition-based model tends toward higher precision but lower recall. It is exceptionally accurate at local dependencies but occasionally prunes correct paths for long-range dependencies from the beam.
- Feature Richness vs. Search Optimality: While chart parsers offer an optimal search, they often require restricted feature sets to remain tractable. The shift-reduce parser’s ability to utilize a much richer feature set through its heuristic beam search ultimately allowed it to outperform the "optimal" chart search in several key metrics.
Conclusion
This work presents the first competitive shift-reduce parser for CCG. By combining a transition-based framework with a global linear model and beam search, the researchers achieved high accuracy and 100% coverage. Future work may involve hybridizing these strengths—using shift-reduce techniques to guide chart-based search—to further push the state-of-the-art in grammatical analysis.
Summary updated