Introduction
Combinatory Categorial Grammar (CCG) is a linguistically expressive formalism that extends classical categorial grammar with powerful operations like function composition. While these operations allow CCG to capture complex linguistic phenomena, they historically introduced significant computational challenges. This seminal paper presents the first-ever polynomial-time parsing algorithm for CCG, demonstrating how to manage its inherent complexities in $O(n^6)$ time.
The Challenge of Spurious Ambiguity
The primary obstacle to efficient CCG parsing is spurious ambiguity. This occurs when a single semantic interpretation (the function-argument structure) can be derived through an exponential number of distinct syntactic derivation trees. This redundancy often arises from the associativity of the composition rule.
Previous parsing attempts often suffered from exponential worst-case performance because they could not efficiently distinguish between these redundant paths or handle the way CCG categories "grow" during a derivation. Without a method to prune these redundant trees, a parser would be forced to explore an unmanageable search space.
Algorithmic Approach
The authors propose a three-phase parsing process designed to maintain polynomial bounds while preserving all unique semantic interpretations.
1. Recognition and Category Sharing
The algorithm extends the classic CKY (Cocke-Kasami-Younger) approach with a novel sharing mechanism. Because CCG categories can grow linearly with the length of the input string, storing full categories in a standard CKY table would lead to exponential space requirements. Instead, the algorithm recognizes that categories behave like stacks.
By storing only the "active" parts of a category (the target and the immediate argument) and using pointers to represent the "tail" or remainder of the stack, the parser keeps the information stored in each cell bounded.
2. Building a Shared Forest
Rather than enumerating every possible parse, the algorithm constructs a "shared forest" using Linear Indexed Grammars (LIG) as the underlying formalism. LIGs are perfectly suited for this task because they naturally handle stack-based dependencies, mirroring the way CCG categories push and pop arguments during composition and application.
3. Eliminating Spurious Ambiguity
To resolve the ambiguity problem, the shared forest is pruned to remove redundant derivations. The authors demonstrate that spurious ambiguity caused by associativity can be detected locally by examining just two levels of the derivation tree at a time. By consistently selecting a single representative (such as a right-branching tree) for each equivalent set of derivations, the forest is reduced to only "genuine" parses without losing semantic information.
Key Insights
- Categories as Stacks: The fundamental realization is that CCG combinatory rules treat categories as stacks where arguments are pushed on during composition and popped off during application.
- Bounded Information: Polynomial complexity is maintained because the parser only needs to inspect the top of the "category stack" to decide if a rule applies; the rest can be treated as an opaque tail.
- CCG-LIG Equivalence: By leveraging the formal relationship between CCGs and Linear Indexed Grammars, the paper provides a rigorous proof that CCG is "mildly context-sensitive" and thus computationally tractable.
Results and Impact
The resulting algorithm runs in $O(n^6)$ time, a massive improvement over previous exponential-time approaches. Furthermore, the shared forest representation allows an exponential number of parse trees to be stored in a structure of polynomial size. This work provided the formal foundation for the use of CCG in modern, high-speed natural language processing, proving that linguistic power does not have to come at the cost of computational feasibility.
Summary updated