Token-level and sequence-level loss smoothing for RNN language models

Maha Elbayad, Laurent Besacier, Jakob Verbeek
5/14/2018
cs.CLcs.CV

Official code: elbayadm/seq2seq (11 stars, Python, PyTorch, last commit 2018-05-14).

Abstract

Despite the effectiveness of recurrent neural network language models, their maximum likelihood estimation suffers from two limitations. It treats all sentences that do not match the ground truth as equally poor, ignoring the structure of the output space.

Show full abstract

Second, it suffers from "exposure bias": during training tokens are predicted given ground-truth sequences, while at test time prediction is conditioned on generated output sequences. To overcome these limitations we build upon the recent reward augmented maximum likelihood approach \ie sequence-level smoothing that encourages the model to predict sentences close to the ground truth according to a given performance metric. We extend this approach to token-level loss smoothing, and propose improvements to the sequence-level smoothing approach. Our experiments on two different tasks, image captioning and machine translation, show that token-level and sequence-level loss smoothing are complementary, and significantly improve results.

View on arXivView PDF

Code Implementations(1)

elbayadm/seq2seqOfficial100%
PyTorch

Seq2Seq code in PyTorch

111Python, TeXOct 19, 20178 years ago
neural-machine-translationpytorchseq2seq

Similar Papers

Cite this paper

@article{elbayad2018tokenlevel,
  title  = {Token-level and sequence-level loss smoothing for RNN language models},
  author = {Maha Elbayad and Laurent Besacier and Jakob Verbeek},
  year   = {2018},
  eprint = {1805.05062},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.05062}
}

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

Discussion