Introduction
Semantic parsing involves converting natural language questions into machine-executable logical forms. Historically, researchers have faced a trade-off between systems that handle deep logic on small, specialized databases and those that query massive knowledge bases with limited reasoning capabilities. This paper addresses the "messy middle": semi-structured HTML tables found across the web. These tables are unnormalized, lack rigid schemas, and contain diverse data types, making deep compositional reasoning a significant challenge.
The WikiTableQuestions Dataset
To benchmark progress, the authors introduced WIKITABLEQUESTIONS, a dataset of 22,033 question-table-answer triples sourced from 2,108 Wikipedia tables. Unlike previous datasets, these questions require complex operations such as comparisons, superlatives, aggregation, and arithmetic. Crucially, the training and test sets use disjoint tables, forcing models to generalize to entirely new headers and entities.
Methodology
The proposed framework treats individual HTML tables as mini-knowledge bases, employing a multi-stage pipeline to derive answers.
Table-to-Graph Conversion
The system converts tables into directed graphs where rows are nodes, cell strings are entity nodes, and column headers serve as edges. The graph is augmented with "Next" and "Index" edges to facilitate reasoning about row order (e.g., "Who came after...?").
The Floating Parser
Traditional parsers rely on a fixed lexicon to map words to database relations. However, because table headers are unpredictable, the authors developed a "floating parser." This innovation allows logical predicates to be generated without being anchored to specific words, provided they satisfy strict type constraints. For instance, if a question asks "how many," the parser prioritizes logical forms that yield numerical results.
Pruning and Ranking
Floating predicates can lead to a combinatorial explosion of logical forms. To manage this, the system uses beam search combined with aggressive pruning of nonsensical joins. A log-linear model then ranks the remaining candidates based on their likelihood of being the correct logical interpretation.
Key Results and Insights
The system achieved 37.1% accuracy on unseen tables, significantly outperforming Information Retrieval (12.7%) and standard semantic parsing (24.3%) baselines. An "Oracle" score of 76.6%—representing how often the correct answer was among the generated candidates—indicates that while the parser is excellent at finding the correct logic, the ranking model remains a primary area for improvement.
Furthermore, the model successfully handled questions requiring up to 11 logical operations, demonstrating a level of compositionality previously difficult to achieve in open-domain systems. The study highlights that strong type systems can effectively substitute for rigid lexicons when dealing with unpredictable schemas.
Limitations and Future Work
Despite its success, the system faced challenges with entity anchoring (e.g., linking "Italian" to "Italy") and complex cell normalization (e.g., multi-part strings like "Beijing, China"). Future research may extend these techniques to even broader knowledge sources, such as full web pages, where logical forms might evolve into complex web queries or XPath expressions.
Summary updated