On the Discrepancy between Density Estimation and Sequence Generation

Jason Lee, Dustin Tran, Orhan Firat, Kyunghyun Cho
2/17/2020
cs.LGstat.ML

Official code: tensorflow/tensor2tensor (17,473 stars, Python, Apache-2.0, last commit 2023-06-02).

Abstract

Many sequence-to-sequence generation tasks, including machine translation and text-to-speech, can be posed as estimating the density of the output y given the input x: p(y|x). Given this interpretation, it is natural to evaluate sequence-to-sequence models using conditional log-likelihood on a test set.

Show full abstract

However, the goal of sequence-to-sequence generation (or structured prediction) is to find the best output y^ given an input x, and each task has its own downstream metric R that scores a model output by comparing against a set of references y*: R(y^, y* | x). While we hope that a model that excels in density estimation also performs well on the downstream metric, the exact correlation has not been studied for sequence generation tasks. In this paper, by comparing several density estimators on five machine translation tasks, we find that the correlation between rankings of models based on log-likelihood and BLEU varies significantly depending on the range of the model families being compared. First, log-likelihood is highly correlated with BLEU when we consider models within the same family (e.g. autoregressive models, or latent variable models with the same parameterization of the prior). However, we observe no correlation between rankings of models across different families: (1) among non-autoregressive latent variable models, a flexible prior distribution is better at density estimation but gives worse generation quality than a simple prior, and (2) autoregressive models offer the best translation performance overall, while latent variable models with a normalizing flow prior give the highest held-out log-likelihood across all datasets. Therefore, we recommend using a simple prior for the latent variable non-autoregressive model when fast generation speed is desired.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Library of deep learning models and datasets designed to make deep learning more accessible and accelerate ML research.

17,4733,832Python, Jupyter NotebookJun 15, 20173 years agoApache-2.0
deep-learningmachine-learningmachine-translationreinforcement-learningtpu

Similar Papers

Cite this paper

@article{lee2020discrepancy,
  title  = {On the Discrepancy between Density Estimation and Sequence Generation},
  author = {Jason Lee and Dustin Tran and Orhan Firat and Kyunghyun Cho},
  year   = {2020},
  eprint = {2002.07233},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.07233}
}

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

Discussion