TL;DR
Training semantic parsers using only question-answer pairs (denotations) is notoriously difficult due to exponential search spaces and "spurious" programs that get the right answer for the wrong reason. This paper introduces Dynamic Programming on Denotations (DPD) to efficiently search highly expressive program spaces, alongside a fictitious worlds approach to prune out over 92% of spurious programs via targeted, information-theoretic crowdsourcing.
What Problem Does This Paper Address?
Semantic parsing maps natural language questions (e.g., "Where did the last 1st place finish occur?") into executable logical forms or programs. Because annotating full logical forms is expensive and requires expert knowledge, researchers prefer to train parsers using weak supervision: simple question-answer pairs (called denotations).
However, this weakly supervised approach introduces two massive bottlenecks:
- Computational Explosion: As you allow the parser to generate more expressive and complex programs, the space of possible logical forms grows exponentially. Previous systems heavily restricted grammar rules to keep search tractable, which severely limited the types of questions they could answer.
- Spurious Logical Forms: An expressive grammar generates many programs that coincidentally evaluate to the correct answer on the training data but fail to capture the actual meaning of the question. For example, a program might answer "Who won the last race?" by accidentally picking the person with the longest name who just happened to win that specific race.
Methods
The authors tackle these challenges with a two-pronged approach:
1. Dynamic Programming on Denotations (DPD)
Instead of exploring every individual logical form independently, DPD collapses programs that yield the exact same execution result (denotation) on the current world state into a single cell. Because the number of unique denotations grows much slower than the number of unique program syntaxes, this dramatically compresses the search space. DPD uses a two-pass hypergraph approach to find all consistent logical forms up to a bounded size.
2. Fictitious Worlds & Active Annotation
To filter out spurious programs, the authors generate "fictitious worlds"—mutated versions of the original data table (e.g., shuffling rows or resampling cells). A semantically correct program will still execute correctly on these new tables, whereas spurious ones will likely fail.
Programs are grouped into equivalence classes based on their outputs across these worlds. The authors then use an information-theoretic objective to select the most informative worlds for human (crowdsourced) annotation, maximizing the reduction in entropy and pinpointing the truly correct program.
Datasets
- WikiTableQuestions: A benchmark dataset consisting of 14,152 complex questions written by crowd workers based on 1,679 Wikipedia tables. It requires advanced operations like comparison, aggregation, and arithmetic.
Key Insights and Ideas
- Denotations Grow Slower Than Syntax: The core insight behind DPD is that while there are infinite ways to write a program, the number of distinct answers those programs can produce on a given dataset is relatively small.
- Fuzzing for Semantics: Generating fictitious worlds acts like "fuzz testing" in software engineering. By changing the underlying data, you break the accidental correlations that spurious programs rely on.
- Active Learning for Program Verification: Instead of asking humans to write complex code, the framework asks them simple question-answering questions on slightly modified tables, which implicitly verifies the correctness of the underlying code.
Key Results
- Increased Coverage: DPD expanded the coverage of answerable questions from 53.5% (the previous state-of-the-art beam search baseline) to 76% on the WikiTableQuestions dataset.
- Massive Search Space Reduction: DPD achieved a 98.7% reduction in the number of cells considered during the second pass of parsing compared to full enumeration.
- Spurious Program Pruning: Using crowdsourced annotations on just 5 fictitious worlds, the system successfully filtered out 92.1% of spurious logical forms. With ideal (perfect) annotations, this number reached 98.3%.
Limitations and Future Work
- Annotation Errors and Data Inconsistency: Crowdsourcing answers on fictitious worlds is prone to human error. If workers disagree or misinterpret the modified table, the correct program can be accidentally pruned (which occurred in about 9% of cases).
- Scalability to Large Knowledge Graphs: DPD relies on executing partial programs to get explicit denotations. For massive knowledge bases or highly complex continuous spaces, computing and storing explicit denotations for every partial path becomes intractable.
- Future Directions: The authors suggest exploring abstract interpretation to collapse denotations into broader equivalence classes, or moving toward continuous spaces using gradient descent techniques.
Summary updated