Hierarchical Recurrent Attention Network for Response Generation

Chen Xing, Wei Wu, Yu Wu, Ming Zhou, Yalou Huang +1 more
1/25/2017
220 citations
cs.CL

Official code: LynetteXing1991/HRAN (57 stars, Python, last commit 2017-05-19).

Abstract

We study multi-turn response generation in chatbots where a response is generated according to a conversation context. Existing work has modeled the hierarchy of the context, but does not pay enough attention to the fact that words and utterances in the context are differentially important.

Show full abstract

As a result, they may lose important information in context and generate irrelevant responses. We propose a hierarchical recurrent attention network (HRAN) to model both aspects in a unified framework. In HRAN, a hierarchical attention mechanism attends to important parts within and among utterances with word level attention and utterance level attention respectively. With the word level attention, hidden vectors of a word level encoder are synthesized as utterance vectors and fed to an utterance level encoder to construct hidden representations of the context. The hidden vectors of the context are then processed by the utterance level attention and formed as context vectors for decoding the response. Empirical studies on both automatic evaluation and human judgment show that HRAN can significantly outperform state-of-the-art models for multi-turn response generation.

View on arXivView PDF

Code Implementations(1)

5723PythonJan 24, 20179 years ago

Similar Papers

Cite this paper

@article{xing2017hierarchical,
  title  = {Hierarchical Recurrent Attention Network for Response Generation},
  author = {Chen Xing and Wei Wu and Yu Wu and Ming Zhou and Yalou Huang and Wei-Ying Ma},
  year   = {2017},
  eprint = {1701.07149},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1701.07149}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1701.07149.svg)](https://codeofpaper.com/paper/1701.07149)

Discussion