Introduction
Neural networks demonstrate remarkable proficiency in pattern matching but often struggle with compositional generalization—the capacity to understand novel combinations of familiar components. For example, a system that recognizes a "blue car" and a "red bike" should ideally comprehend a "blue bike," even if that specific instance was never encountered during training. While research in this domain typically focuses on semantic parsing (the translation of natural language into logical forms like SPARQL), it is often unclear whether model failures arise from logical reasoning errors or a fundamental lack of syntactic understanding.
This paper addresses this ambiguity by establishing a benchmark for dependency parsing—the identification of grammatical relationships between words—using the Compositional Freebase Queries (CFQ) dataset. By evaluating syntactic robustness, the authors aim to determine if syntactic parsers share the same compositional "blind spots" as semantic models.
Methodology
The study utilizes the Compositional Freebase Queries (CFQ) dataset, which pairs English questions with their corresponding SPARQL queries. Since CFQ is synthetically generated through a Context-Free Grammar (CFG), the authors were able to programmatically derive "gold-standard" dependency trees based on the Universal Dependencies (UD) standard, resulting in a new dataset: CFQ-Dependencies.
The researchers evaluated Stanza, a state-of-the-art neural dependency parser, across several data splits. They focused on "Maximum Compound Divergence" (MCD) splits, which are specifically engineered to maximize the difference in phrase combinations between the training and test sets while keeping the vocabulary constant. To investigate the root causes of model errors, the authors used a logistic regression model with L1 regularization to identify specific syntactic subtrees (constructions) that were the strongest predictors of failure.
Results and Analysis
The experimental results indicate that syntax is a "lower hurdle" than semantics. While semantic parsers often see performance plummet from 90% to 10% on difficult splits, the dependency parser's performance degraded more gracefully. On random splits, where the training and test distributions are similar, the parser achieved a near-perfect 99.89% Whole-Sentence Content-word Labeled Attachment Score (WSCLAS).
However, performance on the most challenging MCD split dropped to 56.76% WSCLAS. A key insight from the analysis is that these failures are not distributed evenly across the dataset. Instead, performance degradation is driven by a very small number of specific syntactic constructions (typically fewer than seven per split). The authors demonstrated this by removing sentences containing just five difficult subtrees from the MCD2 split, which improved the parser's accuracy from 71.42% to 92.46%.
Conclusion
The findings suggest that syntactic understanding is more robust than semantic parsing but still faces significant challenges with compositional generalization. The discovery that a handful of specific structures—such as complex coordinated prepositional phrases—account for the majority of errors indicates that the type of novel construction is a more critical factor than the overall amount of divergence. These insights provide a valuable framework for "debugging" neural architectures and improving the reliability of semantic parsers in real-world applications.
Summary updated