Introduction
Machine translation and automated text generation systems frequently encounter the "word salad" phenomenon—outputs that contain the correct lexical items but lack the syntactic structure necessary for fluency. While traditional $n$-gram language models can improve local coherence, they often fail to capture the long-range dependencies required for true grammaticality. This paper addresses the "grammaticality improvement" task: reordering a bag of words to form a syntactically valid sentence. This is a computationally intensive search problem, as the number of possible orderings grows factorially with sentence length.
Methodology
The proposed system leverages Combinatory Categorial Grammar (CCG) and a Guided Search mechanism to navigate the vast space of possible word orderings.
CCG Framework
CCG is a lexicalized grammar where each word is assigned a category defining its combinatory potential (e.g., a transitive verb is a category looking for an object to its right and a subject to its left). These strict structural constraints act as a powerful filter, pruning ungrammatical combinations early in the generation process.
Best-First Search and Guided Learning
The system constructs sentences bottom-up, starting from individual words. To manage the search space, the authors employ an approximate best-first search guided by a discriminative linear model (Perceptron). Crucially, the model uses "early updates" during training: if the highest-scoring partial parse on the search agenda deviates from the gold standard, parameters are updated immediately to steer the search back toward the correct path.
Supertagging
To further reduce ambiguity, a "supertagger" limits the number of CCG categories assigned to each word. By providing syntactic "hints" (e.g., identifying a word as a verb rather than a noun), the supertagger significantly narrows the search space before processing begins.
Key Results
The CCG-based approach was evaluated on a word-order recovery task using CCGbank (derived from the Penn Treebank). The system significantly outperformed previous dependency-based baselines.
As shown in the experimental results, the CCG-based system achieved a BLEU score of 40.1, a significant improvement over the 33.7 reported for dependency-based models. When utilizing tighter supertagging constraints (e.g., $\beta = 0.075$), the BLEU score reached as high as 50.1. The data also reveals a clear trade-off between search time and accuracy; increasing the timeout allows the system to find more complete, valid parse trees rather than settling for fragmented outputs.
Limitations and Future Work
Despite its success, the system faces challenges with sentence complexity. As sentence length increases, the search space expands exponentially, leading to a performance drop.
For sentences exceeding 40 words, the system often fails to reach a "goal" parse within the allotted timeout, resulting in lower BLEU scores. Future improvements may include integrating large-scale $n$-gram language models to boost fluency and implementing "future cost" heuristics (similar to A* search) to better estimate the viability of partial paths.
Summary updated