Abstract
Question answering (QA) is an important aspect of open-domain conversational agents, garnering specific research focus in the conversational QA (ConvQA) subtask. One notable limitation of recent ConvQA efforts is the response being answer span extraction from the target corpus, thus ignoring the natural language generation (NLG) aspect of high-quality conversational agents. In this work, we propose a method for situating QA responses within a SEQ2SEQ NLG approach to generate fluent grammatical answer responses while maintaining correctness. From a technical perspective, we use data augmentation to generate training data for an end-to-end system. Specifically, we develop Syntactic Transformations (STs) to produce question-specific candidate answer responses and rank them using a BERT-based classifier (Devlin et al., 2019). Human evaluation on SQuAD 2.0 data (Rajpurkar et al., 2018) demonstrate that the proposed model outperforms baseline CoQA and QuAC models in generating conversational responses. We further show our model’s scalability by conducting tests on the CoQA dataset. The code and data are available at https://github.com/abaheti95/QADialogSystem.
Introduction
Modern conversational agents often struggle with the "uncanny valley" of response generation: they can find the correct answer in a text but fail to deliver it in a natural, human-like way. Most state-of-the-art Question Answering (QA) systems are extractive, returning a specific span of text (e.g., "Egypt") rather than a full sentence (e.g., "The coup failed in Egypt"). This lack of fluency makes interactions feel robotic and less engaging.
The primary challenge in moving from extractive to generative QA is the scarcity of large-scale datasets pairing questions with fluent, full-sentence responses. This paper addresses this gap by introducing a method to synthetically generate high-quality training data using syntactic transformations and neural ranking.
Methodology
The proposed system utilizes a two-stage pipeline to bootstrap fluency from existing extractive QA datasets like SQuAD 2.0.
1. Over-generate and Rank
The first stage involves generating candidate responses using Syntactic Transformations (STs). By leveraging the Stanford English lexparser, the system decomposes a question and its corresponding answer span. It then applies a set of grammatical rules—such as adjusting verb tenses (e.g., "did rise" to "rose") and substituting noun phrases with pronouns—to produce a variety of candidate sentences.
To select the most fluent and accurate response from these candidates, the authors trained a BERT-based classifier. This classifier was trained on a small, human-annotated "gold" dataset (SG) to distinguish between high-quality conversational responses and noisy or incorrect ones.
2. End-to-End Generation
The top-ranked responses from the first stage were used to construct massive synthetic datasets, SS and SS+, containing over one million training pairs. These datasets were then used to fine-tune generative models, including Pointer Generator Networks (PGN) and DialoGPT (D-GPT). This end-to-end setup allows the models to learn how to map a question and an answer span directly to a fluent, grammatical response.
Experimental Results
The models were evaluated on their ability to generate responses that are correct, complete, and grammatical.
Fluency and Correctness
Human evaluation on SQuAD 2.0 data revealed that the DialoGPT model fine-tuned on the SS+ dataset (D-GPT (o)) significantly outperformed existing baselines. As shown in the results table, D-GPT (o) achieved a "perfect" score (correct, complete, and grammatical) 83.2% of the time, whereas the CoQA baseline only reached 2.2%.
Generalization and Scalability
The system also demonstrated strong generalization capabilities. When tested on the CoQA dataset—using predicted answer spans as input—the model successfully converted them into fluent responses in 57% of cases. This indicates that the model learned general principles of conversational response generation rather than just memorizing dataset-specific patterns.
Conclusion
This work presents a scalable approach to improving the fluency of conversational QA systems without the need for massive manual annotation. By combining rigid syntactic rules with the ranking power of BERT, the authors created a high-quality synthetic dataset that effectively "teaches" generative models like DialoGPT to be more conversational. While limitations remain—such as a dependency on parser accuracy and a lack of multi-turn context—this method represents a significant step toward more natural human-AI interaction.
Summary updated