QUINT: Interpretable Question Answering over Knowledge Bases

Abdalghani Abujabal, Rishiraj Saha Roy, Mohamed Yahya, Gerhard WeikumEMNLP 2017

TL;DR

This paper introduces QUINT, a system that not only answers questions over knowledge bases (KBs) but also provides step-by-step explanations of how it arrived at the answer. By learning "role-aligned templates" from question-answer pairs, QUINT bridges the gap between natural language queries and formal KB queries, offering valuable insights for users to confirm answers or refine their questions.

What Problem Does This Paper Address?

Question Answering (QA) systems that interact with knowledge bases (KBs) are becoming increasingly sophisticated. However, a significant challenge remains: explaining how these systems arrive at their answers. When a KB-QA system provides an answer, users often lack confidence in its correctness, especially if the answer is unexpected. Furthermore, when the system makes a mistake, it's difficult for the user to understand why the error occurred, hindering their ability to correct their query or the system itself. Existing approaches often struggle to provide fine-grained explanations, making it hard to pinpoint the source of errors in complex pipelines like named entity recognition, disambiguation, or query generation. QUINT aims to solve this by making the entire derivation process transparent.

Methods

QUINT employs a novel approach centered around learning "role-aligned utterance-query templates." Here's a breakdown of its key techniques:

  • Template Learning: Instead of relying on manually crafted rules, QUINT automatically learns templates from question-answer pairs. Each template consists of:
  • An utterance template: derived from the dependency parse of the question.
  • A query template: corresponding to a SPARQL query structure.
  • Role Alignment: These templates explicitly map phrases in the question to semantic roles (like entities, predicates, or types) within the query. This alignment is crucial for explainability.
  • Semantic Parsing and Query Generation: During the answering phase, QUINT matches incoming user questions against its learned templates. For each match, it instantiates a SPARQL query by using the alignment information and lexicons to map question phrases to KB items.
  • Learning-to-Rank: To handle situations where multiple queries might be generated, QUINT uses a learning-to-rank framework (specifically, a random forest classifier) to rank the candidate queries and select the most probable one.
  • Interactive Refinement: If QUINT cannot link a specific phrase in the question to a KB item, it prompts the user to reformulate that part of the question, enabling a more interactive QA experience.
  • Dual Explanations: QUINT offers two types of explanations:
  • Brief Explanations: For general users, these highlight how key phrases in the question were interpreted as KB entities and relations.
  • Detailed Explanations: For advanced users, these show the full derivation, including the dependency parse, the matched template, the SPARQL query, and the specific KB items used.

Datasets

The paper mentions using datasets for training and evaluation, specifically:

  • WebQuestions (Berant et al., 2013)
  • Free917 (Cai and Yates, 2013)

These datasets consist of natural language questions paired with their corresponding answers, which are used to train QUINT's template learning and query ranking components.

Key Insights and Ideas

  • The Power of Role-Aligned Templates: Learning templates that explicitly map natural language phrases to semantic roles in a query is key to generating fine-grained, interpretable explanations. This goes beyond simply generating a query.
  • Bridging the Gap Between Syntax and Semantics: QUINT's approach effectively connects the syntactic structure of a question (via dependency parsing) to the semantic predicate-argument structure of a SPARQL query.
  • Explainability as a Confidence Builder and Debugging Tool: The system's ability to show its work significantly boosts user confidence in correct answers and provides crucial insights for debugging when answers are incorrect.
  • Enabling Interactive QA: By identifying and prompting for reformulation of uninterpretable phrases, QUINT takes a step towards more interactive question answering, where the system can collaborate with the user.
  • Handling Ambiguity through Multiple Interpretations: The example of "Martin Luther raised" highlights how QUINT can present different interpretations (e.g., "place of birth" vs. "places lived") based on query ranking, and how explanations can reveal these nuances.

Key Results

The paper focuses on demonstrating the system's capabilities rather than presenting extensive quantitative results. The key qualitative findings are:

  • QUINT successfully generates interpretable answers by visualizing the complete derivation sequence.
  • The system can provide both brief and detailed explanations tailored to different user expertise levels.
  • Explanations help users confirm correct answers and understand the limitations of the system when errors occur.
  • The system can guide users in reformulating questions when it encounters incomplete lexicons or ambiguous phrases. For instance, rephrasing "Martin Luther raised" to "Where did Martin Luther live?" yields a different, correct answer (Saxony-Anhalt).

Limitations and Future Work

  • Incomplete Lexicons: QUINT's performance is dependent on its lexicons, which are inherently incomplete. The paper acknowledges that utterances like "countries of euro-union" might not be answerable if "euro-union" isn't in the lexicon, prompting the user to reformulate.
  • Incorrect Query Ranking: While learning-to-rank is used, the most appropriate query might not always be ranked at the top. The paper illustrates this with the "former currency of Germany" example, where the correct predicate "currencyFormerlyUsed" might be ranked lower than "currencyUsed."
  • Incorrect Disambiguation: Phrases can be linked to the wrong KB items, leading to unexpected answers. The "English language" vs. "England" example demonstrates this.
  • Missed Answer Type Constraints: The system's ability to handle explicit answer type constraints (e.g., "college" vs. "study") is crucial for precision and is an area of ongoing refinement.
  • No Matching Templates: If an utterance is syntactically out of scope for the learned templates, the system informs the user that no matching templates were found.

Future work likely involves expanding the template learning capabilities, improving lexicon coverage, enhancing the ranking mechanism, and further developing interactive features for more robust and user-friendly question answering.

Summary updated

BibTeX
@inproceedings{abujabal2017quint,
  author = {Abdalghani Abujabal and Rishiraj Saha Roy and Mohamed Yahya and Gerhard Weikum},
  title = {{QUINT: Interpretable Question Answering over Knowledge Bases}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  url = {https://openreview.net/forum?id=Hy4mezGdZr},
}
Figure