Attending to Future Tokens For Bidirectional Sequence Generation

Carolin Lawrence, Bhushan Kotnis, Mathias Niepert
8/16/2019
stat.MLcs.CLcs.LG

Official code: carolinlawrence/BiSon (51 stars, Python, last commit 2020-03-17).

Abstract

Neural sequence generation is typically performed token-by-token and left-to-right. Whenever a token is generated only previously produced tokens are taken into consideration.

Show full abstract

In contrast, for problems such as sequence classification, bidirectional attention, which takes both past and future tokens into consideration, has been shown to perform much better. We propose to make the sequence generation process bidirectional by employing special placeholder tokens. Treated as a node in a fully connected graph, a placeholder token can take past and future tokens into consideration when generating the actual output token. We verify the effectiveness of our approach experimentally on two conversational tasks where the proposed bidirectional model outperforms competitive baselines by a large margin.

View on arXivView PDF

Code Implementations(1)

Code for bidirectional sequence generation (BiSon) for generating from BERT pre-trained models.

515Python, ShellOct 2, 20196 years agoNOASSERTION

Similar Papers

Cite this paper

@article{lawrence2019attending,
  title  = {Attending to Future Tokens For Bidirectional Sequence Generation},
  author = {Carolin Lawrence and Bhushan Kotnis and Mathias Niepert},
  year   = {2019},
  eprint = {1908.05915},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.05915}
}

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

Discussion