Ancestral Gumbel-Top-k Sampling for Sampling Without Replacement
Wouter Kool
Herke van Hoof
Max Welling
Wouter Kool

Herke van Hoof

Max Welling
+3
The paper introduces ancestral Gumbel-Top-$k$ sampling, a generic, efficient method for sampling without replacement from discrete-valued Bayesian networks, including multivariate discrete distributions, Markov chains, and sequence models. By extending the Gumbel-Max trick to find the top $k$ perturbed log-probabilities among all configurations, it achieves complexity linear in the number of variables and $k$ despite the exponentially large domain. A tunable number of parallel processors $m$ trades iterations against total cost: $m=1$ gives minimum total cost, while $m=k$ minimizes iterations and recovers Stochastic Beam Search. The authors analyze its properties, compare it with alternatives on randomly generated Bayesian networks of varying connectivity, and apply it in sequence models to generate diverse, high-quality translations and estimate translation quality and entropy.

JMLR · 2020