TL;DR
Researchers from the University of Edinburgh have introduced an incremental Combinatory Categorial Grammar (CCG) parsing algorithm that utilizes a novel "tree rotation" technique. By initially constructing left-branching trees and subsequently rotating them to be right-branching, the parser achieves state-of-the-art accuracy in word-by-word processing. This method effectively addresses "right-adjuncts" (e.g., adverbs), which typically pose significant challenges for incremental systems.
The Challenge of Incremental Parsing
Human language processing is naturally incremental; we begin constructing meaning as soon as we encounter the first word. In contrast, many computational parsing algorithms are non-incremental, delaying structural decisions until a phrase or sentence is complete.
In CCG parsing, the primary obstacle to incrementality is right-adjunction. Consider the sentence: "Nada eats apples regularly." An incremental parser aims to combine "Nada" and "eats" immediately. However, the adverb "regularly" modifies the phrase "eats apples." If the parser has already finalized the sentence structure before seeing the adverb, it cannot easily attach it. This is known as the "revealing" problem—finding the correct internal node for late-arriving modifiers.
Previous attempts to solve this relied on complex semantic calculations or rigid heuristics that lacked generalizability.
Methodology: Incremental Tree Rotation
The proposed solution is a purely syntactic approach using Incremental Tree Rotation, a technique inspired by self-balancing binary search trees in computer science.
- Shift-Reduce Parsing: The system employs a stack-based approach that favors left-branching derivations to combine words as early as possible.
- Tree Rotation: Upon creating a new binary branch, the algorithm performs a rotation to shift the tree toward a right-leaning structure. Unlike standard CS applications that balance trees, this algorithm intentionally "unbalances" them to the right.
- Revealing via Right-Spine Search: With a right-branching structure, "revealing" a node is simplified. The parser searches the "right spine" of the tree for a node with the appropriate type for the new adjunct.
- Neural Architecture: To guide these actions, the parser integrates:
- ELMo embeddings for deep word representations.
- Stack-LSTMs to maintain the parser's state.
- Pointer Networks for "Selective Modifier Placement," allowing the model to choose the optimal attachment site on the right spine.
Key Results and Insights
The model was evaluated on CCGbank, the standard benchmark for CCG parsing.
- State-of-the-Art Accuracy: The model achieved a 90.5 Labeled F1 score, surpassing previous incremental models and rivaling non-incremental systems.
- Superior Incrementality: Using metrics like waiting time (delay before establishing a dependency) and connectedness (average stack size), the model showed a waiting time of 0.46. This is a dramatic improvement over standard right-branching parsers (4.29) and previous revealing methods (0.69).
- Syntactic Efficiency: The results demonstrate that deep semantic representations aren't strictly necessary for handling right-adjuncts; maintaining a specific tree shape allows the syntax to handle the complexity.
- Pointer Network Precision: Instead of fixed rules, the Pointer Network learns from data whether an adverb modifies a verb, a verb phrase, or the entire sentence.
Limitations and Future Work
While highly effective, the current "revealing" mechanism is tailored for right-adjuncts and conjuncts. It does not yet handle "gapping" (e.g., "Mary likes tea, and John, coffee"), which remains a target for future theoretical development. Additionally, the authors suggest that semi-supervised "tri-training" and psycholinguistic evaluations (e.g., modeling "garden path" sentences) could further expand the utility of this incremental approach.
Summary updated