Interactive Instance-based Evaluation of Knowledge Base Question Answering

Daniil Sorokin, Iryna Gurevych

Introduction

Knowledge Base Question Answering (KB QA) systems aim to translate natural language questions into structured queries against databases like Wikidata. While aggregate metrics such as F1 scores provide a high-level view of system performance, they often obscure the specific reasons for failure. Researchers from TU Darmstadt have addressed this "black box" problem by introducing an interactive debugging tool designed for instance-based error analysis.

The KB QA Pipeline and Error Propagation

Modern KB QA systems typically operate through a multi-stage pipeline that includes entity linking, semantic parsing, and answer retrieval. The primary challenge in these systems is error propagation: a failure in the initial entity linking stage inevitably leads to an incorrect answer, regardless of the parser's accuracy.

The multi-stage pipeline for KB QA debugging, illustrating the flow from input question to entity linking, semantic parsing, and final answer retrieval.

By breaking down the process into a step-by-step visual pipeline, the tool allows developers to pinpoint exactly where a model fails—whether it is misidentifying an entity, misinterpreting a relationship, or failing to retrieve the correct data from the knowledge base.

Methods: A Modular Debugging Interface

The proposed tool features a web-based UI with a Python/Flask backend that communicates with QA models via a REST API. Key functionalities include:

  • Sequential Pipeline Visualization: The UI mirrors the logic of the QA system, showing the output of each stage in order.
  • Interactive Entity Linking: Users can inspect the top candidates for an entity and manually override the system's choice to test if the rest of the pipeline would have functioned correctly.
  • Semantic Graph Visualization: Using D3.js, the tool renders the abstract "meaning" of a question as a graph. This allows researchers to see if the model correctly identified the "question variable" and its associated relations.
  • Representation Analysis: The interface includes token weight visualizations and t-SNE plots of vector spaces to help researchers understand how the model clusters different semantic relations.

Key Insights and Evaluation

The tool was validated through sessions with researchers using the QALD (Question Answering over Linked Data) benchmark. Qualitative findings indicated that the tool significantly improves debugging efficiency, with participants identifying specific failure points for various questions in under 10 minutes.

A key insight from the study is the value of the "Expert-in-the-Loop" approach. By presenting multiple ranked semantic hypotheses, the tool reveals whether a model considered the correct interpretation but ultimately discarded it, or if it failed to generate the correct logic entirely. This transparency helps researchers build more accurate mental models of their systems' behavior.

Limitations and Future Directions

Despite its utility, user testing revealed that vector-based visualizations (like t-SNE plots) are often less intuitive than symbolic representations for deriving actionable insights. Additionally, the tool is currently optimized for systems that produce intermediate symbolic graphs, making it less applicable to purely end-to-end neural models. Future work will focus on integrating deeper probing tools, such as internal weight inspection for transformer-based architectures via TensorBoard integration.

Summary updated

BibTeX
@inproceedings{sorokin2018interactive,
  author = {Daniil Sorokin and Iryna Gurevych},
  title = {{Interactive Instance-based Evaluation of Knowledge Base Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-2020},
}
Figure