QA2Explanation: Generating and Evaluating Explanations for Question Answering Systems over Knowledge Graph

Saeedeh Shekarpour, Abhishek Nadgeri, Kuldeep SingharXiv 2020 · DOI

Abstract

In the era of Big Knowledge Graphs, Question Answering (QA) systems have reached a milestone in their performance and feasibility. However, their applicability, particularly in specific domains such as the biomedical domain, has not gained wide acceptance due to their "black box" nature, which hinders transparency, fairness, and accountability of QA systems. Therefore, users are unable to understand how and why particular questions have been answered, whereas some others fail. To address this challenge, in this paper, we develop an automatic approach for generating explanations during various stages of a pipeline-based QA system. Our approach is a supervised and automatic approach which considers three classes (i.e., success, no answer, and wrong answer) for annotating the output of involved QA components. Upon our prediction, a template explanation is chosen and integrated into the output of the corresponding component. To measure the effectiveness of the approach, we conducted a user survey as to how non-expert users perceive our generated explanations. The results of our study show a significant increase in the four dimensions of the human factor from the Human-computer interaction community.

Introduction: The Transparency Gap in KGQA

Modern Question Answering (QA) systems querying massive Knowledge Graphs (KGs) like DBpedia often operate as "black boxes." When a system returns an incorrect answer or a "NULL" response, users are left without context. Was the failure due to a misidentified entity, a missing relationship in the database, or an error in query construction? This lack of transparency is a significant barrier to adoption in high-stakes domains like healthcare. This research proposes a framework to justify system reasoning at every stage of the internal pipeline, thereby increasing user trust and accountability.

Methodology: Modular Pipeline and Template-Based Explanations

The proposed approach leverages a modular architecture that decomposes the QA process into three primary tasks:

  1. Named Entity Disambiguation (NED): Mapping text entities to knowledge graph concepts (e.g., mapping "Tesla" to dbr:Nikola_Tesla).
  2. Relation Linking (RL): Identifying relationships within the query.
  3. Query Building (QB): Constructing the final SPARQL query to fetch the answer.

To generate explanations, the authors trained supervised classifiers (including SVM, Logistic Regression, and Random Forest) to predict the outcome of each component as Success, No Answer, or Wrong Answer. Based on these predictions, the system selects from a repository of 11 handcrafted natural language templates to verbalize the internal state.

Example of pipeline-generated explanations for a specific question.

As shown in the example above, the system provides a flow of explanations for each stage. If a query fails, the user can pinpoint exactly where the breakdown occurred—for instance, identifying that a predicate was not recognized by the RL component even if the entities were correctly mapped.

Experimental Evaluation

The system was evaluated using the LC-QuAD dataset and DBpedia. Beyond technical metrics, a user survey involving 80 participants was conducted to assess the human-centric impact of these explanations across four dimensions: Adequate Justification, Education, User Involvement, and Acceptance.

Classifier Performance

Technical evaluation revealed that Logistic Regression was the most effective classifier for predicting component outcomes, achieving accuracies of 0.64 for TagMe (NED), 0.60 for RNLIWOD (RL), and 0.49 for NLIWOD QB (QB). While these scores reflect the inherent difficulty of predicting "black box" failures, they provided a sufficient foundation for generating meaningful explanations.

Human Factors and User Perception

The qualitative study demonstrated a dramatic positive shift in user perception when explanations were provided. Users reported significantly higher levels of agreement that answers were justified and felt more "educated" about the system's internal processes.

User survey results across four HCI dimensions comparing systems with and without explanations.

Crucially, the "Acceptance" metric indicated that users were far more likely to accept a "NULL" result if the system provided a clear reason for the failure. This suggests that explanations are most valuable when the system fails, as they help users distinguish between a system error and a data limitation.

Conclusion and Future Directions

The QA2Explanation framework demonstrates that even template-based "shallow" explanations can significantly improve the transparency and trustworthiness of complex QA pipelines. By moving away from global explanations toward modular, step-by-step justifications, the system empowers users to understand the "why" behind every answer.

Future work aims to address the rigidity of handcrafted templates by incorporating Large Language Models (LLMs) for more varied linguistic output. Additionally, the authors plan to explore explanations regarding the quality and credibility of the underlying knowledge graph data itself.

Summary updated

BibTeX
@misc{shekarpour2020qa,
  author = {Saeedeh Shekarpour and Abhishek Nadgeri and Kuldeep Singh},
  title = {{QA2Explanation: Generating and Evaluating Explanations for Question Answering Systems over Knowledge Graph}},
  year = {2020},
  eprint = {2010.08323},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.08323},
}
Figure