Conditional Poisson Stochastic Beam Search

Clara Meister, Afra Amini, Tim Vieira, Ryan Cotterell
9/22/2021
cs.CLcs.LG

Official code: rycolab/cpsbs (5 stars, Python, last commit 2023-03-01).

Abstract

Beam search is the default decoding strategy for many sequence generation tasks in NLP. The set of approximate K-best items returned by the algorithm is a useful summary of the distribution for many applications; however, the candidates typically exhibit high overlap and may give a highly biased estimate for expectations under our model.

Show full abstract

These problems can be addressed by instead using stochastic decoding strategies. In this work, we propose a new method for turning beam search into a stochastic process: Conditional Poisson stochastic beam search. Rather than taking the maximizing set at each iteration, we sample K candidates without replacement according to the conditional Poisson sampling design. We view this as a more natural alternative to Kool et. al. 2019's stochastic beam search (SBS). Furthermore, we show how samples generated under the CPSBS design can be used to build consistent estimators and sample diverse sets from sequence models. In our experiments, we observe CPSBS produces lower variance and more efficient estimators than SBS, even showing improvements in high entropy settings.

View on arXivView PDF

Code Implementations(1)

rycolab/cpsbsOfficial100%
50Python, CythonNov 16, 20203 years agoNOASSERTION

Similar Papers

Cite this paper

@article{meister2021conditional,
  title  = {Conditional Poisson Stochastic Beam Search},
  author = {Clara Meister and Afra Amini and Tim Vieira and Ryan Cotterell},
  year   = {2021},
  eprint = {2109.11034},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.11034}
}

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

Discussion