Abstract
In this paper, we present a new dataset and user simulator, e-QRAQ (explainable Query, Reason, and Answer Question), which tests an agent's ability to read an ambiguous text, ask questions until it can answer a challenge question, and explain the reasoning behind its actions. The simulator provides the agent with a short, ambiguous story where entities are replaced by variables. At each turn, the agent may query a variable's value or attempt to answer the challenge question. In response, the simulator provides a natural language explanation of why the agent's action was useful. To demonstrate the dataset, we train a modified End-to-End Memory Network to generate both predictions and partial explanations. We observe a strong correlation between the quality of the prediction and the explanation.
Introduction
Deep learning models often function as "black boxes," excelling at pattern recognition but failing to provide interpretable logic for their decisions. This lack of transparency is a significant barrier to adoption in high-stakes domains. A major bottleneck in developing interpretable AI is the scarcity of high-quality data that includes not just the correct answer, but the underlying reasoning. We address this by introducing e-QRAQ, a synthetic dataset and simulator designed to train agents in multi-turn reasoning with explicit explanation targets.
Methodology
To establish a baseline for the e-QRAQ task, we utilize an End-to-End (E2E) Memory Network. The standard architecture is modified to support joint training for both task performance and explainability.
As shown in the architecture above, a two-layer Multi-Layer Perceptron (MLP) is attached to the internal reasoning "hops" of the memory network. The model is trained to output an "explanation vector"—a bag-of-words representation of entities or variables relevant to the current state. The optimization process uses a combined loss function that balances prediction accuracy (cross-entropy) and explanation quality (mean squared error).
The e-QRAQ Dataset and Simulator
The e-QRAQ framework extends the original QRAQ task by incorporating a simulator that generates synthetic natural language explanations for every step.
- The Task: An agent receives a story with variables (e.g., "$v$ is in the garden"). It must decide whether to query the identity of a variable or answer the challenge question.
- The Explanation: The simulator provides feedback on why a query was helpful (e.g., "Knowing $v$ is Silvia allows us to infer she is not in the office"). It maintains ground-truth sets for two types of explanations: Possible Answers (which answers remain viable) and Relevant Variables (which missing pieces of information are needed).
Key Results and Analysis
Our experiments reveal a strong positive correlation between an agent's ability to solve the problem and its ability to explain its state. However, we found a significant disparity in difficulty between different types of explanations.
As illustrated in the performance charts, models tasked with explaining Possible Answers achieved high proficiency, reaching an F-Score of approximately 0.9. In contrast, explaining the reasoning process itself—identifying Relevant Variables—proved much harder, with the model achieving an F-Score of only 0.09. Furthermore, forcing the model to learn these process-oriented explanations significantly slowed the primary learning rate.
Conclusion
The e-QRAQ dataset demonstrates that while models can learn to explain their current goals (the "what"), explaining the strategic process of reasoning (the "how") remains a substantial challenge. Future work will focus on moving beyond bag-of-words vectors toward full natural language generation and investigating how these synthetic explanations can improve human-AI collaboration and trust.
Summary updated