Hierarchical Transformer for Task Oriented Dialog Systems

Bishal Santra, Potnuru Anusha, Pawan Goyal
10/24/2020
30 citations
cs.CL
transformer-attention

Official code: bsantraigi/hier-transformer-pytorch (7 stars, Python, MIT, last commit 2021-04-11). 1 more implementation below.

Abstract

Generative models for dialog systems have gained much interest because of the recent success of RNN and Transformer based models in tasks like question answering and summarization. Although the task of dialog response generation is generally seen as a sequence-to-sequence (Seq2Seq) problem, researchers in the past have found it challenging to train dialog systems using the standard Seq2Seq models.

Show full abstract

Therefore, to help the model learn meaningful utterance and conversation level features, Sordoni et al. (2015b); Serban et al. (2016) proposed Hierarchical RNN architecture, which was later adopted by several other RNN based dialog systems. With the transformer-based models dominating the seq2seq problems lately, the natural question to ask is the applicability of the notion of hierarchy in transformer based dialog systems. In this paper, we propose a generalized framework for Hierarchical Transformer Encoders and show how a standard transformer can be morphed into any hierarchical encoder, including HRED and HIBERT like models, by using specially designed attention masks and positional encodings. We demonstrate that Hierarchical Encoding helps achieve better natural language understanding of the contexts in transformer-based models for task-oriented dialog systems through a wide range of experiments.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
bsantraigi/hier-transformer-pytorchOfficial7PythonMIT2021-04-11
bsantraigi/HIEROfficial5Jupyter NotebookMIT2021-10-29
MIT

Implementation of HIER-Transformer: https://arxiv.org/abs/2011.08067

71PythonApr 9, 20215 years agoMIT
bsantraigi/HIEROfficial100%
MIT

Official Repo for Implementations of Models/Experiments in "Hierarchical Transformer for Task Oriented Dialog Systems" - NAACL 2021 (Long Paper)

50Jupyter Notebook, PythonApr 6, 20215 years agoMIT
conversational-aidialog-systemshierhierarchicalhierarchical-encoding+4 more

Similar Papers

Cite this paper

@article{santra2020hierarchical,
  title  = {Hierarchical Transformer for Task Oriented Dialog Systems},
  author = {Bishal Santra and Potnuru Anusha and Pawan Goyal},
  year   = {2020},
  eprint = {2011.08067},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.08067}
}

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/2011.08067.svg)](https://codeofpaper.com/paper/2011.08067)

Discussion