Semantic Parsing via Paraphrasing

Jonathan Berant, Percy Liang

Introduction

Semantic parsing—the task of mapping natural language to machine-readable logic—traditionally requires expensive, manually labeled datasets. The core challenge is the lexical gap: there are infinite ways to ask the same question (e.g., "What is X’s profession?" vs. "What does X do for a living?"), but a database only understands a specific predicate like Profession.

This paper introduces a novel approach that "turns semantic parsing on its head." Instead of mapping language directly to logic, the system generates candidate logical forms first, converts them into simple "canonical" English, and then uses a paraphrase model to match the user's input. This allows the system to leverage massive amounts of raw, unlabeled text to bridge the gap between human speech and database structures.

Methodology: The PARASEMPRE System

The authors introduce PARASEMPRE, which reframes parsing as a paraphrase recognition task. The system operates in three main stages:

  1. Candidate Generation: Given an input (e.g., "What party did Clay establish?"), the system identifies entities (Henry Clay) and uses templates to generate potential logical forms from a Knowledge Base (KB) like Freebase.
  2. Canonical Realization: For every candidate logical form, the system generates a "canonical utterance"—a robotic but grammatically correct English sentence. For example, the logic for "founded by" might become "What political party was founded by Henry Clay?".
  3. Paraphrase Scoring: The model scores how likely the input is to be a paraphrase of each canonical utterance.
Overview of the PARASEMPRE framework, showing the flow from input question to paraphrase matching against canonical utterances generated from logical forms.

The scoring mechanism employs two complementary models:

  • Association Model: A phrase-based model using a table of 1.3 million phrase pairs (mined from the PARALEX corpus) to find alignments.
  • Vector Space Model: A deep learning approach using Word2Vec that represents utterances as vectors. It learns a transformation matrix ($W$) to calculate similarity, catching semantic links even without word overlap.

Experimental Setup

The system was evaluated on three primary datasets:

  • WEBQUESTIONS: 5,810 Q&A pairs based on real Google search queries, reflecting natural, often messy, human language.
  • FREE917: 917 human-authored questions covering diverse topics in Freebase.
  • PARALEX: A monolingual parallel corpus of 18 million question pairs used to bootstrap the Association Model.

Key Insights and Results

A major finding was the Power of the Full Matrix in the Vector Space model. The authors discovered that learning a full $W$ matrix—allowing every dimension of the input vector to interact with every dimension of the candidate vector—was significantly superior to simpler identity or diagonal matrices. This allowed the model to learn complex semantic relationships, such as the link between "official language" and "speak."

Comparison of transformation matrices (Full, Diagonal, Identity) in the Vector Space model, illustrating how the full matrix captures semantic relationships between words like 'official language' and 'speak'.

Performance Metrics

  • State-of-the-Art: On WEBQUESTIONS, PARASEMPRE achieved an accuracy of 39.9%, a 12% relative improvement over the previous best model (35.7%).
  • Competitive Accuracy: On FREE917, it matched the state-of-the-art at 68.5%.
  • Robust Generation: The candidate generation step achieved an "oracle" accuracy of 63% on WEBQUESTIONS, indicating that the correct logical form was present in the candidate list nearly two-thirds of the time.

Conclusion and Future Work

By reversing the direction of parsing (Logic $\rightarrow$ Text), the authors simplify the most difficult part of the semantic parsing pipeline. This decoupling allows the model to be trained on raw text independent of the specific database.

However, limitations remain. The system relies on templates, which struggle with highly complex, nested logic (e.g., "Who is the tallest player on the team that won the most games in 1995?"). Future work may focus on improving the fluency of canonical utterances and explicitly modeling temporal or spatial reasoning to handle questions involving time and location more effectively.

Summary updated

BibTeX
@inproceedings{berant2014semantic,
  author = {Jonathan Berant and Percy Liang},
  title = {{Semantic Parsing via Paraphrasing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-1133},
}
Figure