If beam search is the answer, what was the question?

Clara Meister, Tim Vieira, Ryan Cotterell
10/6/2020
cs.CL

Official code: rycolab/uid-decoding (43 stars, Python, last commit 2021-03-08).

Abstract

Quite surprisingly, exact maximum a posteriori (MAP) decoding of neural language generators frequently leads to low-quality results. Rather, most state-of-the-art results on language generation tasks are attained using beam search despite its overwhelmingly high search error rate.

Show full abstract

This implies that the MAP objective alone does not express the properties we desire in text, which merits the question: if beam search is the answer, what was the question? We frame beam search as the exact solution to a different decoding objective in order to gain insights into why high probability under a model alone may not indicate adequacy. We find that beam search enforces uniform information density in text, a property motivated by cognitive science. We suggest a set of decoding objectives that explicitly enforce this property and find that exact decoding with these objectives alleviates the problems encountered when decoding poorly calibrated language generation models. Additionally, we analyze the text produced using various decoding strategies and see that, in our neural machine translation experiments, the extent to which this property is adhered to strongly correlates with BLEU.

View on arXivView PDF

Code Implementations(1)

436PythonOct 5, 20205 years ago

Similar Papers

Cite this paper

@article{meister2020beam,
  title  = {If beam search is the answer, what was the question?},
  author = {Clara Meister and Tim Vieira and Ryan Cotterell},
  year   = {2020},
  eprint = {2010.02650},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.02650}
}

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

Discussion