Learning to Query, Reason, and Answer Questions On Ambiguous Texts

Xiaoxiao Guo, Tim Klinger, Clemens Rosenbaum, Joseph P. Bigus, Murray Campbell, Ban Kawas, Kartik Talamadupula, Gerry Tesauro, Satinder SinghICLR 2017

TL;DR

Researchers have introduced QRAQ (pronounced "crack"), a new synthetic benchmark that forces conversational agents to handle ambiguity by asking clarifying questions. Unlike previous models that only read and answer, these agents must reason about whether they have enough information to solve a problem and, if not, identify exactly which missing "variables" are worth asking the user about.

What Problem Does This Paper Address?

Most AI question-answering benchmarks (like the famous bAbI tasks) provide the agent with all the facts needed to reach a conclusion. However, real human conversation is messy—it’s full of gaps, pronouns with unclear referents, and missing context.

Current task-oriented bots usually handle this via "slot-filling" (e.g., "I need a date and a city to book a flight"). But real-world reasoning is more complex. An agent shouldn't just ask for every missing piece of data; it should be able to deduce some facts from context and only bother the user for information that is truly non-deducible and relevant to the goal. This paper tackles the challenge of training an agent to query, reason, and answer in a multi-turn dialog under the constraints of incomplete information.

Datasets: The QRAQ Domain

The authors introduced the QRAQ (Query, Reason, and Answer Questions) domain. It consists of short stories where certain entities (people or objects) are replaced by variables (e.g., $v, $w).

Example of a QRAQ reasoning tree showing how an agent queries variables to narrow down possible answers.

The benchmark includes four dataset types:

  1. Loc: Tracking people moving between rooms.
  2. +obj: Adding objects that can be picked up or dropped.
  3. +alias: Introducing aliases (e.g., "$u$ is Emma").
  4. +par: Using paraphrased sentences to increase linguistic variety.

The complexity is scaled by "depth"—the maximum number of queries required to resolve the ambiguity in the worst-case scenario.

Methods

The authors utilize End-to-End Memory Networks (MemNets), which allow models to "read" a story into a memory bank and perform multiple "hops" (iterations) of reasoning over that data.

The control flow of the agent and the underlying Memory Network logic used to process context and questions.
  • The Architectures: They compare a baseline (baseRL) against a novel improved version (impRL).
  • The Innovation: While standard MemNets typically use only the output of the final reasoning hop to make a decision, impRL uses a soft-attention mechanism over all memory hops. This allows the model to dynamically weight information processed at different levels of abstraction, making it more robust across varying task complexities.
  • Training via Reinforcement Learning (RL): The agents are trained using the GPOMDP algorithm. Crucially, they receive a "sparse reward"—they are only told if their final answer was right or wrong. To help the agent learn, the authors used Curriculum Learning: initially rewarding any query to encourage exploration, then gradually penalizing queries to force the agent to become efficient and only ask necessary questions.

Key Insights and Ideas

  • Deducible vs. Relevant: The core "aha" moment is the distinction between variables. A variable might be deducible (you can figure it out from other sentences), irrelevant (knowing it doesn't help answer the question), or relevant (you must ask the user to solve the puzzle). A "smart" agent minimizes user annoyance by only asking for the latter.
  • The "Depth" Bottleneck: The researchers found that "depth" (the number of logical steps/queries needed) is the primary driver of difficulty. As the reasoning chain gets longer, the performance of RL agents drops significantly compared to supervised models.
  • Soft Attention over Hops: By allowing the model to look at all reasoning hops simultaneously, impRL avoids the need to manually tune the number of hops for different datasets, outperforming the baseline on more complex tasks.

Key Results

  • RL vs. Supervised: There is a significant performance gap. While supervised models (told exactly what to ask) hit near 100% accuracy, RL agents struggle as complexity grows, showing that learning what to ask from a simple "correct/incorrect" signal is a very hard problem.
  • impRL Superiority: On the hardest "Loc" dataset (depth 4-9), the improved impRL achieved an answer accuracy of 64.2%, significantly higher than the 54.6% achieved by the baseline baseRL.
  • Efficiency: The agents successfully learned to avoid irrelevant questions, though achieving "trajectory completeness" (asking all and only the right questions) remains the most difficult metric to satisfy.

Limitations and Future Work

  • Synthetic Nature: QRAQ is a controlled, synthetic environment. While it tests logic perfectly, it doesn't capture the full nuance of natural language ambiguity found in the real world.
  • The RL Gap: The large gap between RL and Supervised Learning results suggests that current RL exploration strategies are still insufficient for complex, multi-step reasoning tasks.
  • Future Directions: The authors suggest that moving toward more natural language and developing better RL algorithms to bridge the supervision gap are the next logical steps for this research.

Summary updated

BibTeX
@inproceedings{guo2017learning,
  author = {Xiaoxiao Guo and Tim Klinger and Clemens Rosenbaum and Joseph P. Bigus and Murray Campbell and Ban Kawas and Kartik Talamadupula and Gerry Tesauro and Satinder Singh},
  title = {{Learning to Query, Reason, and Answer Questions On Ambiguous Texts}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=rJ0-tY5xe},
}
Figure