Variational Attention for Sequence-to-Sequence Models

Hareesh Bahuleyan, Lili Mou, Olga Vechtomova, Pascal Poupart
12/21/2017
125 citations
cs.CL
transformer-attention

Official code: HareeshBahuleyan/tf-var-attention (73 stars, Python, MIT, last commit 2020-07-24).

Abstract

The variational encoder-decoder (VED) encodes source information as a set of random variables using a neural network, which in turn is decoded into target data using another neural network. In natural language processing, sequence-to-sequence (Seq2Seq) models typically serve as encoder-decoder networks.

Show full abstract

When combined with a traditional (deterministic) attention mechanism, the variational latent space may be bypassed by the attention model, and thus becomes ineffective. In this paper, we propose a variational attention mechanism for VED, where the attention vector is also modeled as Gaussian distributed random variables. Results on two experiments show that, without loss of quality, our proposed method alleviates the bypassing phenomenon as it increases the diversity of generated sentences.

View on arXivView PDF

Code Implementations(1)

MIT

Tensorflow Implementation of Variational Attention for Sequence to Sequence Models (COLING 2018)

7316Python, Jupyter NotebookMay 24, 20186 years agoMIT
attention-mechanismgenerationreconstructionsentenceseq2seq-model+4 more

Similar Papers

Cite this paper

@article{bahuleyan2017variational,
  title  = {Variational Attention for Sequence-to-Sequence Models},
  author = {Hareesh Bahuleyan and Lili Mou and Olga Vechtomova and Pascal Poupart},
  year   = {2017},
  eprint = {1712.08207},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1712.08207}
}

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

Discussion