Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Deep learning›Explainable Question Answering
Machine learningDeep learning / NLP / CV

Explainable Question Answering

Explainable Question Answering (XQA) · Also known as: XQA, interpretable QA, transparent question answering, rationale-based QA

Explainable Question Answering (XQA) combines neural reading-comprehension models — typically BERT-family transformers — with interpretability methods such as rationale extraction, attention visualization, LIME, or SHAP to reveal why the model selected a particular answer span. The goal is not just accuracy but trustworthy, auditable reasoning that users and domain experts can inspect and verify.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Explainable Question Answering
BERT-based ClassificationExplainable BERT-based C…Explainable TransformerRoBERTa-based Classifica…Sentence Embeddings

When to use it

Use explainable QA when the answer alone is insufficient and stakeholders need to audit or trust the model's reasoning — for example in clinical decision support, legal document search, or educational feedback systems. It is appropriate when labeled rationale annotations or faithfulness benchmarks are available for evaluation. Prefer standard QA (without explicit explanations) when speed and throughput are paramount and the domain is low-stakes. Avoid XQA when the context passages are too short to yield meaningful rationales, or when the question type is purely factual retrieval with no ambiguity.

Strengths & limitations

Strengths
  • Provides auditable evidence for each answer, increasing user trust in high-stakes domains.
  • Rationale extraction can surface dataset biases and spurious correlations invisible in accuracy-only evaluations.
  • Joint rationale-and-answer training often regularizes the model and improves generalization.
  • Compatible with off-the-shelf BERT-family models through post-hoc attribution methods such as SHAP or Integrated Gradients.
  • ERASER and similar benchmarks provide standardized faithfulness metrics beyond accuracy.
  • Supports human-in-the-loop review: experts can override or flag predictions whose rationales are implausible.
Limitations
  • Post-hoc attribution methods (attention, SHAP) may not be faithful — highlighted tokens need not causally determine the answer.
  • Joint rationale-extraction models require rationale-level annotations, which are expensive to obtain.
  • Explanations can be plausible-looking yet wrong, creating false confidence in flawed predictions.
  • Added complexity increases inference latency compared to a plain span-prediction model.

Frequently asked

Is attention a reliable explanation for QA models?

Not always. Jain & Wallace (2019) showed that attention distributions can be permuted without changing predictions, undermining their faithfulness. Comprehensiveness and sufficiency metrics from ERASER are more reliable than raw attention weights.

What is the difference between post-hoc and joint explainability?

Post-hoc methods (SHAP, LIME, Integrated Gradients) explain a trained model after the fact without changing it. Joint models are trained to simultaneously select a rationale and predict the answer, making the explanation part of the forward pass and generally more faithful.

Do I need annotated rationales to use XQA?

No — post-hoc methods require no rationale annotations. Annotated rationales are needed only if you want to train a joint model or evaluate plausibility against human highlights.

How do I report explanation quality in a paper?

Report at minimum comprehensiveness and sufficiency scores alongside standard QA metrics (Exact Match, F1). If human annotations exist, add plausibility overlap. Cite the ERASER paper for the metric definitions.

Can XQA help detect dataset shortcuts?

Yes. If the model consistently highlights tokens that correlate with the answer for superficial reasons (e.g., question words mirrored in the passage), the rationale-inspection step reveals this artifact before deployment.

Sources

  1. DeYoung, J., Jain, S., Rajani, N. F., Lehman, E., Xiong, C., Socher, R., & Wallace, B. C. (2020). ERASER: A Benchmark to Evaluate Rationalized NLP Models. In Proceedings of ACL 2020, pp. 4443–4458. DOI: 10.18653/v1/2020.acl-main.408 ↗
  2. Rajpurkar, P., Zhang, J., Lopyrev, K., & Liang, P. (2016). SQuAD: 100,000+ Questions for Machine Comprehension of Text. In Proceedings of EMNLP 2016, pp. 2383–2392. DOI: 10.18653/v1/D16-1264 ↗

How to cite this page

ScholarGate. (2026, June 3). Explainable Question Answering (XQA). ScholarGate. https://scholargate.app/en/deep-learning/explainable-question-answering

Related methods

BERT-based ClassificationExplainable BERT-based ClassificationExplainable TransformerRoBERTa-based ClassificationSentence Embeddings

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • BERT-based ClassificationDeep learning↔ compare
  • Explainable BERT-based ClassificationDeep learning↔ compare
  • Explainable TransformerDeep learning↔ compare
  • RoBERTa-based ClassificationDeep learning↔ compare
  • Sentence EmbeddingsDeep learning↔ compare
Compare side by side →

Similar methods

Explainable Named Entity RecognitionExplainable Text SummarizationExplainable BERT-based ClassificationExplainable Sentiment AnalysisExplainable TransformerExplainable RoBERTa-based ClassificationExplainable Sentence EmbeddingsFine-Tuned Question Answering

Related reference concepts

Question Answering and Dialogue SystemsInformation ExtractionInformation ExtractionNatural Language Processing in Clinical DocumentationEvaluation and AnnotationLexical Semantics and Word-Sense Disambiguation

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Explainable Question Answering (Explainable Question Answering (XQA)). Retrieved 2026-07-22 from https://scholargate.app/en/deep-learning/explainable-question-answering · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Community (DeYoung et al.; Rajpurkar et al.)
Year
2016–2020
Type
Interpretable NLP pipeline
DataType
Text (passages, questions, answer spans)
Subfamily
Deep learning / NLP / CV
Related methods
BERT-based ClassificationExplainable BERT-based ClassificationExplainable TransformerRoBERTa-based ClassificationSentence Embeddings
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account