Abstract
Semantic parsing involves translating natural language (NL) into formal meaning representations (MRs) such as SQL or Lambda Calculus. While the choice of MR significantly impacts model performance, the underlying reasons for these performance gaps have remained elusive. This research introduces Incremental Structural Stability (ISS), a novel metric designed to quantify the learning difficulty of MRs. By measuring how much an MR's structure changes when a single constraint is added to an NL request, ISS can predict model performance with a high Pearson correlation of 0.94. This provides a computationally efficient "thermometer" for MR learnability, enabling researchers to optimize language design without the need for expensive model training.
Introduction
In the field of semantic parsing, the choice of Meaning Representation (MR) is critical. For instance, a model might achieve 61% accuracy using SQL but reach 82% using Lambda Calculus on the same dataset. Historically, identifying "AI-friendly" MRs has relied on a costly trial-and-error process: designing a representation, training a model for hours on high-end GPUs, and evaluating the results. This paper addresses the lack of a quantitative indicator for learning difficulty that can be calculated a priori.
Methodology: Incremental Structural Stability (ISS)
The authors propose ISS based on the intuition that neural networks, as pattern-matching engines, struggle when small changes in input lead to large, non-linear changes in output structure. ISS measures this "brittleness" through a three-step process:
- Anonymization: Specific entities (e.g., "USA", "2023") are replaced with generic types (e.g.,
const,Number) to focus on structural logic rather than specific values. - Pair Extraction: The dataset is searched for pairs of utterances that differ by exactly one constraint (e.g., "Show me jobs" vs. "Show me jobs in USA").
- Structural Difference Measurement: A modified Tree Edit Distance (TED) calculates the change between the Abstract Syntax Trees (ASTs) of the code pairs.
A key innovation is the use of subtrees as the fundamental unit of change. By comparing subtrees rather than individual nodes, the metric remains robust across languages with varying levels of verbosity. This approach ensures that the measurement reflects the inherent logical complexity added by a constraint.
Experimental Setup
The study utilizes the UNIMER benchmark, which provides a controlled environment for comparing MRs. It includes three datasets—ATIS (air travel), GeoQuery (geography), and Job (job listings)—each annotated in four MRs: SQL, Lambda Calculus, Prolog, and FunQL.
Key Results and Insights
The experiments yielded several significant findings:
- High Predictive Accuracy: ISS demonstrated a 0.94 Pearson correlation with the execution accuracy of the Seq2Prod model, significantly outperforming traditional metrics like AST depth or node count.
- The "SQL Tax": The analysis reveals why SQL often underperforms in neural parsing. Its rigid structure, particularly the requirement for explicit table joins, makes it highly unstable (low ISS) compared to functional languages like FunQL.
- Computational Efficiency: Calculating ISS takes less than three minutes on a standard CPU, offering a massive speedup compared to the hours of GPU time required for model training.
Conclusion
ISS provides a robust, efficient framework for understanding and predicting the learnability of meaning representations. By shifting MR design from an empirical "art" to a quantitative science, researchers can more effectively develop languages that align with the inductive biases of neural models. Future work may involve using ISS as a fitness function to automatically evolve optimal representations for new domains.
Summary updated