Evaluating Semantic Parsing against a Simple Web-based Question Answering Model

Alon Talmor, Mor Geva, Jonathan Berant

Abstract

This paper investigates whether complex question answering (QA) benchmarks truly necessitate deep semantic reasoning. We introduce WEBQA, a simple retrieval-based baseline that uses web snippets instead of a structured Knowledge Base (KB). Our results show that WEBQA achieves performance competitive with state-of-the-art semantic parsers on compositional datasets, suggesting that many "complex" questions can be solved via pattern matching on the redundant web. We identify specific linguistic structures, such as superlatives and relation composition, that remain the true frontier for logical reasoning models.

Introduction

Semantic parsing is traditionally viewed as the essential mechanism for complex question answering (QA), translating natural language into formal logical queries executed against structured Knowledge Bases (KBs) like Freebase. However, this approach faces a significant "evaluation gap": many questions in compositional datasets may be answerable from single web sentences without complex logical execution. If a simple model that just looks at web snippets can solve these questions, then the benchmark might not be testing "reasoning" as much as previously assumed. This paper introduces WEBQA, a non-KB baseline, to evaluate the true necessity of semantic parsing in current benchmarks.

The WEBQA Model

WEBQA is a log-linear model that relies exclusively on web search results, avoiding the "mismatch" between natural language and structured KB schemas. The pipeline consists of:

  1. Candidate Extraction: The model retrieves the top 100 Google snippets for a query and extracts all 1- to 4-grams as potential answers. Candidates are filtered to remove question words and ranked initially by tf-idf scores.
  2. Candidate Ranking: A log-linear model ranks candidates using 892 features, including tf-idf scores, context matching (overlap between snippet and question words), semantic similarity (using GloVe embeddings), and the snippet's Google search rank.
  3. Training: The model is trained to maximize the likelihood of the correct answer within the retrieved snippet set.

Experimental Results

We evaluated WEBQA on the COMPLEXQUESTIONS dataset, which is specifically designed to require compositional language. Despite having no access to a structured KB, WEBQA achieved a competitive F1 score of 32.6, remarkably close to the 40.9 F1 of the state-of-the-art semantic parser, COMPQ.

Table 1: Performance comparison of WEBQA against state-of-the-art semantic parsers on the COMPLEXQUESTIONS dataset.

Notably, when considering only the subset of questions where the correct answer was actually present in the retrieved snippets, WEBQA outperformed the semantic parser (51.9 F1 vs. 48.5 F1). This suggests that for a large portion of "complex" questions, the primary challenge is retrieval and pattern matching rather than multi-step logical reasoning. Ablation studies further highlighted that TF-IDF was the most critical feature; its removal caused a 12-point drop in performance, emphasizing the importance of word frequency and web redundancy.

Analysis of Question Types

To understand the limits of retrieval-based models, we manually categorized 100 examples into types such as Simple, Filter, N-ary, Conjunction, Composition, and Superlative.

Figure 1: Performance of WEBQA across different question categories. The model struggles most with Composition and Superlatives.

The analysis reveals that while the redundancy of the web allows WEBQA to "bypass" reasoning for many questions—where someone has already "cached" the answer in a snippet—certain linguistic structures remain challenging. Superlatives (e.g., "richest") and Relation Composition (e.g., "grandson of X's father") show significantly lower F1 scores and lower candidate extraction success. These categories represent the true frontier where formal logical reasoning provides a clear advantage over simple retrieval.

Conclusion

The success of WEBQA highlights that many current QA benchmarks can be solved by leveraging the vast redundancy of the web. Future research in semantic parsing should utilize such baselines to ensure that new datasets and models are truly testing logical reasoning capabilities rather than sophisticated string matching. Hybrid models that combine the flexibility of web-based retrieval with the formal reasoning of semantic parsers represent a promising future direction.

Summary updated

BibTeX
@inproceedings{talmor2017evaluating,
  author = {Alon Talmor and Mor Geva and Jonathan Berant},
  title = {{Evaluating Semantic Parsing against a Simple Web-based Question Answering Model}},
  booktitle = {SEM},
  year = {2017},
  url = {https://openreview.net/forum?id=nuTXGvn7br},
}
Figure