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. Human evaluation on SQuAD 2.0 data 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.
Introduction
Most state-of-the-art Question Answering (QA) systems are "extractive." While factually accurate, replying to a question like "When was the library built?" with a simple "1892" is jarring in a conversational context. High-quality conversational agents (ConvQA) should provide responses that are not only accurate but also fluent and grammatically situated within the dialogue.
The primary challenge is the lack of large-scale datasets containing full-sentence conversational answers. Most benchmarks, like SQuAD, only provide short extractive spans. This paper introduces a pipeline that bridges this gap by automatically transforming extractive QA datasets into natural-sounding dialogue data using rule-based syntactic transformations and neural ranking.
Methodology
The authors employ a two-stage approach: Over-generate and Rank, followed by End-to-End Training.
1. Syntactic Transformations (STs) and Ranking
Using the question’s parse tree and the answer span, the system applies several rules to generate multiple candidate sentences. These rules include verb modification (e.g., "did rise" to "rose"), pronoun replacement for natural flow, and fixing prepositions/determiners to ensure logical connection.
Because these rules can produce ungrammatical candidates, a BERT-based classifier is trained on a small set of human-annotated data (the SQuAD Gold set) to rank these candidates and select the most fluent, correct response. This ST+BERT pipeline was used to transform over 1 million extractive QA pairs from SQuAD, Natural Questions, and HarvestingQA into a new synthetic dataset called SS+.
2. End-to-End Generation
Finally, the authors train Pointer-Generator Networks (PGN) and pre-trained Transformers (DialoGPT) on this synthetic data. This allows the final model to function end-to-end: taking a question and an answer span as input to generate a fluent sentence as output.
Key Results
The models were evaluated by human annotators on correctness, grammaticality, and sentence completeness. The results demonstrate a significant leap over existing baselines.
- Superior Fluency: On the SQuAD-dev-test set, the DialoGPT (D-GPT) model trained on the SS+ dataset generated correct, complete, and grammatical sentences 76% of the time (column 'e' in the results table). In contrast, the baseline CoQA model only achieved this 2.2% of the time, as it primarily produced short fragments.
- Scalability: When tested on the CoQA dataset using "oracle" answer spans, D-GPT generated high-quality conversational responses 77% of the time, proving the model generalizes well across different domains.
- Model Choice: Pre-trained Transformers (DialoGPT) significantly outperformed Pointer-Generator Networks. D-GPT achieved a lower perplexity (PPL) of 2.06 compared to PGN's 6.60, likely due to the strong internal language model acquired during its massive pre-training on Reddit data.
Discussion and Limitations
The study highlights that grammar is a significant bottleneck; the BERT classifier's success was largely due to its ability to identify subtle nuances in preposition and determiner placement. However, the system remains dependent on the Stanford English Lexparser. If the parser fails to understand the question—which occurred in approximately 20% of cases—the system defaults to a simple extractive answer.
Furthermore, as a downstream component, the generation model is susceptible to error propagation: if the initial QA model selects an incorrect answer span, the generator will produce a fluent but factually incorrect response. Future work may involve integrating answer-finding and fluent generation into a single unified architecture to mitigate these dependencies.
Summary updated