CoHS-CQG: Context and History Selection for Conversational Question Generation

Xuan Long Do, Bowei Zou, Liangming Pan, Nancy F. Chen, Shafiq R. Joty, Ai Ti Aw · DOI

TL;DR

This paper introduces CoHS-CQG, a novel framework for Conversational Question Generation (CQG) that tackles the challenge of selecting only the most relevant parts of conversation history and context. By dynamically pruning irrelevant information, CoHS-CQG significantly improves conversational alignment and achieves state-of-the-art results on the CoQA dataset for both answer-aware and answer-unaware settings.

What Problem Does This Paper Address?

Conversational Question Generation (CQG) aims to generate questions that are not only meaningful but also coherent within the flow of an ongoing conversation. Unlike single-turn question generation, CQG requires models to understand and leverage the entire conversation history and associated context. However, existing approaches often feed the entire history and context into the model, which can be noisy and dilute the crucial information needed for generating a relevant next question. This can lead to questions that are less aligned with the conversation's trajectory or even factually incorrect. The paper addresses this by investigating which parts of the context and history are truly necessary for effective CQG, hypothesizing that a more focused input can lead to better conversational alignment.

Methods

The core innovation of CoHS-CQG is its Context and History Selection (CoHS) module. This module operates in two stages:

  1. Sentence Encoder (SE): A pre-trained sentence transformer embeds each sentence from the context and each question-answer pair from the conversation history. This allows for the calculation of relevance scores between context sentences and history turns.
  2. Context and History Selection (CoHS): This module employs a "top-p" strategy, inspired by Holtzman et al. (2020), to dynamically select contiguous sentences from the context and contiguous turns from the history that are most relevant. The selection is guided by the relevance scores computed in the SE stage, aiming to minimize the number of selected elements while maintaining a certain relevance threshold. This pruned context and history are then fed into a Question Generation (QG) model.

For the answer-aware setting, the target answer and its rationale are used to guide the CoHS module. For the answer-unaware setting, an Answer-span Extractor (AE) is introduced to predict the target answer, which is then used by the CoHS module. A Question Filtering (QF) module is also employed in the answer-unaware setting to ensure the generated questions are answerable and have the correct answer. The QG module itself is a T5-based model.

Datasets

The experiments were conducted on the CoQA (Conversational Question Answering) dataset. CoQA is a large-scale dataset comprising 8,000 conversations, with 127,000 question-answer pairs. The dataset features factoid questions and free-form answers. The authors created a new validation set by randomly sampling 10% of the original training set, while keeping the original validation set as their test set for comparability with future work.

Key Insights and Ideas

  • Not all context is good context: The paper strongly argues that feeding the entire conversation history and context can be detrimental to CQG performance. Irrelevant information can distract the model, leading to poorer conversational alignment.
  • Dynamic selection is key: Instead of fixed window sizes or selecting all available information, dynamically selecting relevant snippets based on computed relevance scores is crucial for improving CQG.
  • Contiguity matters: The CoHS module selects contiguous sentences and turns. This suggests that the sequential nature of conversation and text is important for maintaining coherence and meaning.
  • Answer-aware vs. Answer-unaware: The paper demonstrates that the CoHS approach is effective in both settings, adapting by incorporating an answer-span extractor for the answer-unaware scenario.
  • Pruning improves alignment: By reducing the input size, the model is forced to focus more on the essential conversational elements, leading to better alignment with the dialogue's flow.

Key Results

  • State-of-the-art performance: CoHS-CQG achieved state-of-the-art results on the CoQA dataset in both answer-aware and answer-unaware settings, as measured by automatic metrics like ROUGE-L and BLEU.
  • Significant improvements: For example, in the answer-aware setting, CoHS-CQG (with p=5) achieved a ROUGE-L score of 49.91 and BLEU-4 of 19.11, outperforming strong baselines like T5base (45.80 ROUGE-L, 17.03 BLEU-4) and ChainCQG* (42.22 ROUGE-L, 19.63 BLEU-4).
  • Human evaluation: Human evaluations confirmed CoHS-CQG's superiority, particularly in Conversational Alignment, where it showed significant improvement over a standard T5 model.
  • Effective pruning: With a relevance threshold p=5, CoHS-CQG typically selects around 5 sentences from the context and 3 previous turns from the history, demonstrating effective pruning.

Limitations and Future Work

  • Answer-span Extractor limitations: In the answer-unaware setting, the ablation study showed that removing the Answer-span Extractor (AE) significantly degraded Answerability and Conversational Alignment. This suggests that the AE's ability to predict the target answer is critical, and using the rationale directly instead of a predicted answer span is not ideal.
  • Question Filtering necessity: Ablation of the Question Filtering (QF) module also led to significant decreases in Answerability and Conversational Alignment, highlighting its importance in ensuring the quality and relevance of generated questions.
  • Future work: The authors suggest future work focusing on selecting "contiguous question-worthy content from the paragraph by reasoning," implying a deeper semantic understanding for selection rather than just relevance scores.

Summary updated

Abstract

Conversational question generation (CQG) serves as a vital task for machines to assist humans, such as interactive reading comprehension, through conversations. Compared to traditional single-turn question generation (SQG), CQG is more challenging in the sense that the generated question is required not only to be meaningful, but also to align with the occurred conversation history. While previous studies mainly focus on how to model the flow and alignment of the conversation, there has been no thorough study to date on which parts of the context and history are necessary for the model. We argue that shortening the context and history is crucial as it can help the model to optimise more on the conversational alignment property. To this end, we propose CoHS-CQG, a two-stage CQG framework, which adopts a CoHS module to shorten the context and history of the input. In particular, CoHS selects contiguous sentences and history turns according to their relevance scores by a top-p strategy. Our model achieves state-of-the-art performances on CoQA in both the answer-aware and answer-unaware settings.
BibTeX
@misc{do2022cohs,
  author = {Xuan Long Do and Bowei Zou and Liangming Pan and Nancy F. Chen and Shafiq R. Joty and Ai Ti Aw},
  title = {{CoHS-CQG: Context and History Selection for Conversational Question Generation}},
  year = {2022},
  eprint = {2209.06652},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.06652},
}
Figure