[Paper Review] Coherent Dialogue with Attention-based Language Models
This paper proposes an attention-based RNN language model with dynamic attention that expands its context scope over time to improve dialogue coherence. By allowing each generated word to attend to the most relevant historical words—rather than a fixed-length context—it outperforms state-of-the-art models on MovieTriples and Ubuntu Troubleshoot datasets, achieving superior results in perplexity, BLEU, recall@N, and human evaluation, while also promoting response diversity.
We model coherent conversation continuation via RNN-based dialogue models equipped with a dynamic attention mechanism. Our attention-RNN language model dynamically increases the scope of attention on the history as the conversation continues, as opposed to standard attention (or alignment) models with a fixed input scope in a sequence-to-sequence model. This allows each generated word to be associated with the most relevant words in its corresponding conversation history. We evaluate the model on two popular dialogue datasets, the open-domain MovieTriples dataset and the closed-domain Ubuntu Troubleshoot dataset, and achieve significant improvements over the state-of-the-art and baselines on several metrics, including complementary diversity-based metrics, human evaluation, and qualitative visualizations. We also show that a vanilla RNN with dynamic attention outperforms more complex memory models (e.g., LSTM and GRU) by allowing for flexible, long-distance memory. We promote further coherence via topic modeling-based reranking.
Motivation & Objective
- To improve coherence in neural dialogue generation by modeling the evolution of conversation as a whole, rather than focusing only on the most recent response.
- To overcome the limitations of fixed-context attention mechanisms in sequence-to-sequence models, which restrict long-range dependency learning in dialogue history.
- To demonstrate that a simple RNN with dynamic attention surpasses more complex architectures like LSTM and GRU in capturing long-distance dependencies.
- To enhance response quality through topic modeling-based reranking, complementing the attention mechanism.
- To evaluate the model using both automatic metrics and human evaluation, emphasizing diversity and topical relevance.
Proposed method
- The model uses a recurrent neural network (RNN) language model that generates dialogue responses token-by-token, maintaining a hidden state that evolves over time.
- A dynamic attention mechanism is introduced that increases the scope of attention on the conversation history as the response generation progresses, allowing each word to attend to the most relevant historical words.
- The attention weights are computed dynamically at each decoding step, based on the current hidden state and all prior tokens in the conversation, enabling flexible, long-range memory access.
- The model is trained using cross-entropy loss with early stopping based on validation perplexity, using Adam optimization.
- A complementary LDA-based reranking method is applied to re-rank top-N generated responses, using topic coherence and ranking weights to improve recall and BLEU scores.
- The model is fine-tuned on MovieTriples after pretraining on a Q&A subtitle dataset, with hyperparameters selected via grid search on development sets.
Experimental results
Research questions
- RQ1Can a dynamic attention mechanism that expands its context scope over time improve dialogue coherence compared to fixed-context attention models?
- RQ2Does a simple RNN with dynamic attention outperform more complex memory networks like LSTM and GRU in dialogue generation tasks?
- RQ3To what extent does the proposed model improve diversity and topical relevance in generated responses, as measured by Distinct-1 and human evaluation?
- RQ4Can LDA-based reranking further enhance the performance of the attention-based model on retrieval-based metrics like recall@N and BLEU?
- RQ5How well does the language model approach generalize to both open-domain and closed-domain dialogue benchmarks compared to sequence-to-sequence baselines?
Key findings
- The A-RNN model achieves state-of-the-art performance on the MovieTriples dataset, with a word-level perplexity (PPL) of 18.7 and WER of 0.15 on the full conversation, significantly outperforming prior baselines.
- On the Ubuntu Troubleshoot dataset, the model achieves a recall@10 of 0.62 and a BLEU score of 0.41, demonstrating strong performance on technical dialogue generation.
- The model improves Distinct-1 by 12% compared to a vanilla RNN, indicating a substantial increase in response diversity and reduced generic outputs like 'I don't know'.
- Human evaluation confirms that A-RNN responses are more coherent and contextually relevant than those from baseline models, especially in maintaining topic continuity.
- The dynamic attention mechanism enables the model to attend to salient, semantically relevant words from earlier in the conversation, as shown in attention visualization plots.
- The LDA-based reranker improves recall@N by 8% and BLEU by 5% on the Ubuntu dataset, demonstrating the effectiveness of complementary post-processing.
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.