Abstract
UKP-SQuARE v2 is an open-source platform designed to move Question Answering (QA) research beyond simple accuracy scores. By integrating saliency maps, knowledge graph visualizations, and adversarial attacks, it allows researchers to probe why a model makes a prediction and how easily it can be fooled by minor input changes.
Introduction
While modern QA systems achieve impressive performance, they are largely "black boxes." State-of-the-art models based on deep neural networks are notoriously difficult for humans to interpret. This lack of transparency creates two major hurdles: trust in high-stakes environments (like legal or medical fields) and difficulty in debugging biases or improving robustness. Existing tools for explainability (like Captum) or adversarial testing (like TextAttack) are often fragmented, requiring significant boilerplate code to compare different models side-by-side. UKP-SQuARE v2 provides a unified, web-based ecosystem to deploy, analyze, and compare QA models through the lens of "trustworthiness."
Methods
The authors updated the original SQUARE platform to include three main pillars of analysis:
Saliency Maps
These highlight which specific input tokens (words) were most influential in a model's decision. The platform supports both gradient-based methods (Vanilla Gradients, Integrated Gradients, and SmoothGrad) and attention-based methods (including a "Scaled Attention" variant to improve stability).
Interpretable Graph-based Models
The platform integrates QA-GNN, a model that uses external Knowledge Graphs (like ConceptNet) to reason. SQUARE v2 provides an interactive UI to visualize the "reasoning paths" the model takes through the graph to reach an answer.
Adversarial Attacks
To test robustness, the platform implements four attack strategies: HotFlip (swapping words with semantically similar ones), Input Reduction (iteratively removing "unimportant" words), and Sub-Span & Top K (modifying context to test if the model is truly understanding text or just matching keywords).
Key Insights and Ideas
Case studies reveal that models can be "right for the wrong reasons." For example, while a BERT-based model might correctly identify a keyword, a MiniLM model might achieve the same answer by focusing on irrelevant parts of the context. Through "Input Reduction" attacks, the authors found that models often maintain the correct answer even after the question has been stripped of its meaning, indicating reliance on superficial question-context overlap matching.
By visualizing paths in ConceptNet (e.g., connecting "crab" to "saltwater" via "sea"), the platform allows humans to verify if the model’s internal logic aligns with common sense.
Conclusion
UKP-SQuARE v2 successfully abstracts away infrastructure complexities to let researchers focus on analysis. It offers side-by-side comparisons, an interactive UI, and high extensibility via a microservice architecture. While saliency maps are post-hoc and graph-based explanations are currently limited to specific architectures, the platform provides a critical foundation for building more transparent and trustworthy QA systems.
Summary updated