A Context-aware Attention Network for Interactive Question Answering

Huayu Li, Martin Renqiang Min, Yong Ge, Asim KadavKDD 2016 · DOI

Abstract

Neural network based sequence-to-sequence models in an encoder-decoder framework have been successfully applied to solve Question Answering (QA) problems, predicting answers from statements and questions. However, almost all previous models have failed to consider detailed context information and unknown states under which systems do not have enough information to answer given questions. These scenarios with incomplete or ambiguous information are very common in the setting of Interactive Question Answering (IQA). To address this challenge, we develop a novel model, employing context-dependent word-level attention for more accurate statement representations and question-guided sentence-level attention for better context modeling. We also generate unique IQA datasets to test our model, which will be made publicly available. Employing these attention mechanisms, our model accurately understands when it can output an answer or when it requires generating a supplementary question for additional input depending on different contexts. When available, user's feedback is encoded and directly applied to update sentence-level attention to infer an answer. Extensive experiments on QA and IQA datasets quantitatively demonstrate the effectiveness of our model with significant improvement over state-of-the-art conventional QA models.

Introduction

Most modern Question Answering (QA) models operate under the assumption that the input context contains all necessary information and that the question is perfectly clear. However, real-world human communication is often incomplete or ambiguous. For instance, if a narrative mentions two different bedrooms and the user asks, "What is the bedroom east of?", a standard model might guess or fail because it cannot determine which bedroom is being referenced.

Furthermore, existing models often struggle with context-dependent word meanings. The semantic weight of a word can shift depending on the surrounding narrative, a nuance that fixed-length vector representations often miss. This paper addresses these gaps by proposing the Context-aware Attention Network (CAN), a model that is both context-aware and capable of active interaction with the user to resolve uncertainties.

Methodology

The CAN architecture is built on a Gated Recurrent Unit (GRU) encoder-decoder framework, enhanced by two specific innovations: a two-level attention mechanism and an interactive feedback loop.

The full CAN architecture, illustrating the Question, Input, and Answer modules with two-level attention.

Two-Level Attention Mechanism

  1. Word-level Attention: Unlike standard embeddings, this layer uses the "story so far" (previous sentence representations) to influence the attention given to each word in the current sentence. This ensures that word meanings are reasoned under the appropriate context, capturing the "semantic logic flow" of a story.
  2. Sentence-level Attention: This layer uses the encoded question to identify and weight the most relevant sentences in the story.

Interactive Mechanism

The decoder is designed to make a binary choice: output a final answer or generate a supplementary question. The model uses a specific end-of-sentence (EOS) symbol—either a "question mask" or a "period symbol"—to decide whether to trigger the interactive mechanism. This allows the model to be "self-aware" regarding its own uncertainty. If the model's internal confidence is low due to missing information, it asks the user for clarification. Once the user provides feedback, the model encodes this new information to refine its sentence-level attention weights at inference time, producing a final, accurate answer without requiring retraining.

Experimental Evaluation

The authors evaluated the CAN model using two primary sources:

  • Facebook bAbI (10k): A standard benchmark consisting of 20 different reasoning tasks (e.g., induction, deduction, pathfinding).
  • ibAbI (Interactive bAbI): A new dataset created to simulate interactive scenarios. The authors modified bAbI tasks 1, 4, and 7 to include ambiguous actors or objects, requiring the model to ask for clarification.

Results

On the traditional bAbI dataset, CAN demonstrated state-of-the-art performance, failing only 1 out of 20 tasks, outperforming models like DMN+ (5 failures) and MemN2N (6 failures).

In the interactive ibAbI tasks, CAN achieved nearly 0% error rates when allowed to interact. In contrast, conventional models that cannot ask clarifying questions saw their performance drop significantly as the ratio of ambiguous questions increased.

Performance comparison across different IQA ratios. CAN (dark blue) maintains high accuracy while others struggle.

Qualitative analysis confirms that after receiving user feedback, the model's attention shifts precisely to the relevant supporting sentences that were previously obscured by ambiguity.

Conclusion and Future Work

The Context-aware Attention Network (CAN) represents a significant step toward natural human-machine communication by recognizing when it lacks sufficient information. While highly effective, the current model is limited to single-round interactions and relatively simple clarifying facts. Future research will explore extending the framework to handle multi-round feedback, more complex co-reference resolution (such as the Winograd Schema Challenge), and interactive Visual Question Answering where uncertainty might stem from visual ambiguity.

Summary updated

BibTeX
@inproceedings{li2016context,
  author = {Huayu Li and Martin Renqiang Min and Yong Ge and Asim Kadav},
  title = {{A Context-aware Attention Network for Interactive Question Answering}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2016},
  doi = {10.1145/3097983.3098115},
}
Figure