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

Do Xuan Long, Bowei Zou, Liangming Pan, Nancy F. Chen, Shafiq Joty, AiTi Aw

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 provided conversation. Previous studies mainly focus on how to model the flow and alignment of the conversation, but do not thoroughly study which parts of the context and history are necessary for the model. We believe 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 novel CoHS module to shorten the context and history of the input. In particular, it selects the top-p sentences and history turns by calculating the relevance scores of them. Our model achieves state-of-the-art performances on CoQA in both the answer-aware and answer-unaware settings.

1. Introduction

In Natural Language Processing (NLP), while question answering (QA) has seen significant progress, Conversational Question Generation (CQG) remains a complex challenge. Unlike single-turn question generation, CQG requires a model to maintain conversational flow and handle coreference alignment—ensuring that pronouns and references correctly map to entities mentioned earlier in the dialogue.

A primary bottleneck identified in current CQG research is input noise. Most existing models process the entire document context and the full conversation history. As conversations lengthen, this surplus of information can distract the model, leading to repetitive or incoherent questions that drift from the current topic. This paper introduces CoHS-CQG, a framework designed to mitigate this by dynamically pruning the input to focus only on the most relevant information.

2. Methodology

The CoHS-CQG framework operates in two distinct stages: Context and History Selection (CoHS) and Question Generation (QG).

2.1 Context and History Selection (CoHS)

Rather than employing a static window (e.g., the last $k$ turns), the CoHS module utilizes a Sentence-Transformer to generate embeddings for each sentence in the context and every previous question-answer pair in the history. A relevance matrix is then constructed using cosine similarity to identify the most pertinent information.

2.2 Top-p Selection Strategy

Inspired by nucleus sampling, the framework employs a "top-p" strategy to select the smallest contiguous window of sentences and history turns that meet a cumulative relevance threshold ($p$). This contiguous selection is vital for preserving the narrative integrity and local context necessary for resolving coreferences.

2.3 Generation and Answer-Unaware Pipeline

The pruned input is fed into a T5-base model for question generation. For "answer-unaware" scenarios where the target answer is not provided, the framework incorporates an Answer-span Extractor and a Question Filtering module to ensure the generated questions remain answerable and relevant.

The CoHS-CQG framework architecture, illustrating the two-stage process for both answer-aware and answer-unaware settings.

3. Experimental Setup and Results

The model was evaluated using the CoQA (Conversational Question Answering) dataset, which contains 127k QA pairs across 8k conversations. CoQA is a rigorous benchmark due to its free-form answers and requirement for long-range dependency tracking.

3.1 Quantitative Results

CoHS-CQG achieved new state-of-the-art (SOTA) results on CoQA. With a threshold of $p=5$, the model achieved a BLEU-4 score of 19.11 and a ROUGE-L score of 49.91, significantly outperforming baseline models like CFNet, ChainCQG, and standard T5-base.

Performance comparison of CoHS-CQG against baseline models on the CoQA dataset across various automatic evaluation metrics.

3.2 Human Evaluation and Efficiency

Human evaluators rated CoHS-CQG higher than baselines in terms of Conversational Alignment (2.58 vs 2.44 for T5) and Answerability. Furthermore, the CoHS module effectively reduced the input size, typically pruning the context to approximately 5 sentences and the history to 3 turns, enhancing computational efficiency without sacrificing quality.

4. Discussion and Conclusion

The core insight of this work is that "less is more": by strategically removing irrelevant history and context, models can better optimize for conversational alignment. While the current contiguous selection strategy is effective, future research may explore reasoning-based selection to handle documents where relevant information is non-contiguous. CoHS-CQG demonstrates that dynamic input pruning is a powerful tool for improving the coherence and flow of machine-generated conversations.

Reference: Do, X. L., Zou, B., Pan, L., Chen, N. F., Joty, S., & Aw, A. T. (2022). CoHS-CQG: Context and History Selection for Conversational Question Generation. Proceedings of COLING 2022.

Summary updated

BibTeX
@misc{long2022cohs,
  author = {Do Xuan Long and Bowei Zou and Liangming Pan and Nancy F. Chen and Shafiq Joty and AiTi 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