Complex Sequential Question Answering: Towards Learning to Converse Over Linked Question Answer Pairs with a Knowledge Graph

Amrita Saha, Vardaan Pahuja, Mitesh M. Khapra, Karthik Sankaranarayanan, Sarath Chandar

Abstract

While conversing with chatbots, humans typically tend to ask many questions, a significant portion of which can be answered by referring to large-scale knowledge graphs (KG). While Question Answering (QA) and dialog systems have been studied independently, there is a need to study them closely to evaluate such real-world scenarios faced by bots involving both these tasks. Towards this end, we introduce the task of Complex Sequential QA which combines the two tasks of (i) answering factual questions through complex inferencing over a realistic-sized KG of millions of entities, and (ii) learning to converse through a series of coherently linked QA pairs. Through a labor intensive semi-automatic process, involving in-house and crowdsourced workers, we created a dataset containing around 200K dialogs with a total of 1.6M turns. Further, unlike existing large scale QA datasets which contain simple questions that can be answered from a single tuple, the questions in our dialogs require a larger subgraph of the KG. Specifically, our dataset has questions which require logical, quantitative, and comparative reasoning as well as their combinations. This calls for models which can: (i) parse complex natural language questions, (ii) use conversation context to resolve coreferences and ellipsis in utterances, (iii) ask for clarifications for ambiguous queries, and finally (iv) retrieve relevant subgraphs of the KG to answer such questions. However, our experiments with a combination of state of the art dialog and QA models show that they clearly do not achieve the above objectives and are inadequate for dealing with such complex real world settings. We believe that this new dataset coupled with the limitations of existing models as reported in this paper should encourage further research in Complex Sequential QA.

The Challenge of Complex Sequential QA

Most existing AI systems excel at either Dialogue (chatting naturally but often lacking factual depth) or Knowledge Graph Question Answering (KGQA) (answering facts like "Who directed Titanic?" but failing if the question is part of a conversation).

Real-world assistants need to handle both simultaneously. For example, if a user asks "Which cities border Verderio Inferiore?" and follows up with "And which cities flank that one?", the system must resolve context (understanding that "that one" refers to a city mentioned in the previous answer) and handle complexity (performing operations beyond simple lookups, such as intersections, counts, or comparisons) while navigating a realistic Knowledge Graph with millions of entities.

Example of a multi-turn dialogue in the CSQA dataset showing various question types and context-dependent turns.

The CSQA Dataset

The core contribution of this work is the CSQA Dataset, created through a semi-automatic process involving Wikidata and human annotators. It consists of approximately 200,000 dialogues totaling 1.6 million turns, covering 330 predicates and over 12.8 million entities. Unlike previous datasets, it includes:

  • Logical Reasoning: (AND, OR, NOT operations).
  • Quantitative Reasoning: (Counts, "at least N").
  • Comparative Reasoning: ("More than," "Maximum").
  • Conversational Elements: Coreference (using "it" or "them"), ellipsis (omitting words), and requests for clarification.

Methodology: Integrating Dialogue and Knowledge Graphs

The authors propose a baseline architecture that merges dialogue modeling with memory-based QA, as illustrated below:

The baseline architecture consisting of a Hierarchical Encoder, Key-Value Memory Network, and a Decoder with a copy mechanism.

Hierarchical Encoder

Based on the HRED (Hierarchical Recurrent Encoder-Decoder) framework, it uses a lower-level RNN to process words in an utterance and a higher-level RNN to track the conversation "state" across multiple turns.

Knowledge Integration

To handle the millions of entities in Wikidata, the model uses TransE embeddings to represent KG entities as vectors. Since the KG is too large to fit in memory, the model performs "Candidate Generation" (using n-gram matching) to pull a relevant subgraph into a Key-Value Memory Network.

Decoder with Copy Mechanism

The system generates text responses but uses a "pointer" or copy mechanism to pull specific entity names directly from the Knowledge Graph memory into the final sentence.

Key Results and Insights

The experimental results reveal a significant performance gap in current models:

  • Overall Performance: The model achieved a low overall Recall of 15.83% and Precision of 6.7%.
  • Simple vs. Complex: While simple questions reached ~30% Recall, performance plummeted for logical reasoning (~4.8%) and quantitative/comparative tasks (< 1.1%).
  • The "Context" Penalty: Performance drops significantly when questions move from "Direct" (fully specified) to "Indirect" (relying on previous turns), highlighting weaknesses in coreference resolution.
  • Reasoning Bottleneck: Simply embedding a Knowledge Graph is insufficient; models struggle with implicit mathematical and logical operations.

Limitations and Future Work

The model's reliance on simple n-gram matching for candidate generation means it cannot recover if the initial search misses the right entities. Furthermore, the "flat" Key-Value memory becomes computationally expensive and inaccurate for complex questions involving large candidate sets. Future work must address the lack of symbolic reasoning in neural networks, potentially by integrating specialized "program executors" or symbolic logic into the pipeline. The CSQA dataset serves as a difficult new benchmark to push the community toward more sophisticated, context-aware reasoning agents.

Summary updated

BibTeX
@inproceedings{saha2018complex,
  author = {Amrita Saha and Vardaan Pahuja and Mitesh M. Khapra and Karthik Sankaranarayanan and Sarath Chandar},
  title = {{Complex Sequential Question Answering: Towards Learning to Converse Over Linked Question Answer Pairs with a Knowledge Graph}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  url = {https://openreview.net/forum?id=rkbw3AeOWS},
}
Figure