Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacement

By Wouter Kool, Herke Van Hoof, Max Welling. 2019

330 citations recorded by the source corpus.

The well-known Gumbel-Max trick for sampling from a categorical distribution can be extended to sample $k$ elements without replacement. We show how to implicitly apply this 'Gumbel-Top-$k$' trick on a factorized distribution over sequences, allowing to draw exact samples without replacement using a Stochastic Beam Search. Even for exponentially large domains, the number of model evaluations grows only linear in $k$ and the maximum sampled sequence length. The algorithm creates a theoretical connection between sampling and (deterministic) beam search and can be used as a principled intermediate alternative. In a translation task, the proposed method compares favourably against alternatives to obtain diverse yet good quality translations. We show that sequences sampled without replacement can be used to construct low-variance estimators for expected sentence-level BLEU score and model entropy.

Subfields: Artificial Intelligence, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yejin Choi
  2. Mohit Bansal
  3. Hannaneh Hajishirzi
  4. Luke S. Zettlemoyer
  5. Jianfeng Gao
  6. Percy Liang
  7. Noah A. Smith
  8. Ronan Le Bras

In Optimization & Training

  1. Bo Dai
  2. Ankur P. Parikh
  3. Hongyuan Zha
  4. Thibault Sellam
  5. Devi Parikh
  6. Yejin Choi
  7. Lorenzo Torresani
  8. Chandra Bhagavatula

Citations in the corpus