[Paper Review] Retrieve and Refine: Improved Sequence Generation Models For Dialogue
This paper proposes RetrieveNRefine (RetNRef), a hybrid dialogue generation model that retrieves a relevant response from a candidate set and refines it using a sequence-to-sequence model. By concatenating the retrieved response as context to the dialogue history, the model generates more engaging, contextually appropriate responses than standalone retrieval or generation models, achieving superior human evaluation scores on the ConvAI2 dataset.
Sequence generation models for dialogue are known to have several problems: they tend to produce short, generic sentences that are uninformative and unengaging. Retrieval models on the other hand can surface interesting responses, but are restricted to the given retrieval set leading to erroneous replies that cannot be tuned to the specific context. In this work we develop a model that combines the two approaches to avoid both their deficiencies: first retrieve a response and then refine it -- the final sequence generator treating the retrieval as additional context. We show on the recent CONVAI2 challenge task our approach produces responses superior to both standard retrieval and generation models in human evaluations.
Motivation & Objective
- To address the limitations of standalone sequence generation models in dialogue, which often produce short, generic, and uninformative responses.
- To overcome the rigidity of retrieval-only models, which cannot adapt responses to specific dialogue contexts when the exact match is absent.
- To develop a hybrid model that leverages the factual richness of retrieval and the adaptability of generation for more engaging, context-aware dialogue.
- To improve response quality by refining retrieved candidates through sequence generation while preserving their semantic content when appropriate.
Proposed method
- The model uses a standard two-layer LSTM with attention as the generator, conditioned on both the dialogue history and a retrieved response.
- A Key-Value Memory Network retrieves the most relevant response from the training set using cosine similarity to the dialogue history.
- The retrieved response is prepended with a special separator token and concatenated with the dialogue history to form the input sequence for the generator.
- The model is trained by precomputing retrieval results for each training turn and reranking the top 100 candidates based on similarity to the ground-truth label to avoid large distributional shifts.
- Two variants are introduced: RetNRef+ clips the initial persona profile to force attention on the retrieved response, and RetNRef++ enforces exact copying of the retrieval when word overlap exceeds 60%.
- Human evaluation is conducted via A/B testing, where annotators choose between model-generated responses and human responses or other model outputs.
Experimental results
Research questions
- RQ1Can combining retrieval and generation improve the quality of dialogue responses compared to using either method in isolation?
- RQ2Does refining a retrieved response with a sequence generator lead to more engaging, contextually appropriate, and diverse responses?
- RQ3How effective is the model at deciding when to copy the retrieved response verbatim versus when to modify it?
- RQ4Can the model avoid the 'I don’t know' problem while maintaining factual consistency and coherence?
Key findings
- RetNRef++ achieved a statistically significant win rate of 54.5% in A/B human evaluations against the Memory Network retrieval model, outperforming it in human preference.
- The model won 54% of A/B comparisons against the baseline Seq2Seq generator, demonstrating superior engagement and coherence.
- The RetNRef++ variant reduced errors from word-level copying mistakes by enforcing exact retrieval copy when overlap exceeded 60%, improving reliability.
- Human annotators preferred RetNRef++ responses for their naturalness, relevance, and use of persona details, such as references to pets, drinks, and personal traits from retrieved sentences.
- The model successfully balanced retrieval and generation, choosing to copy the retrieved response in ~50% of cases and refining it in the other ~50%, depending on quality and context.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.