mlsanityData to 7 Oct 2026

Fast Gumbel-Max Sketch and its Applications

arXiv 2302.05176 ↗First posted 10 Feb 2023cs.LG cs.DBcited by 0

Not on the map. Why?

Abstract (arXiv)

The well-known Gumbel-Max Trick for sampling elements from a categorical distribution (or more generally a non-negative vector) and its variants have been widely used in areas such as machine learning and information retrieval. To sample a random element i in proportion to its positive weight vi, the Gumbel-Max Trick first computes a Gumbel random variable gi for each positive weight element i, and then samples the element i with the largest value of gi+ln vi. Recently, applications including similarity estimation and weighted cardinality estimation require to generate k independent Gumbel-Max variables from high dimensional vectors. However, it is computationally expensive for a large k (e.g., hundreds or even thousands) when using the traditional Gumbel-Max Trick. To solve this problem, we propose a novel algorithm, FastGM, which reduces the time complexity from O(kn^+) to O(k ln k + n^+), where n^+ is the number of positive elements in the vector of interest. FastGM stops the procedure of Gumbel random variables computing for many elements, especially for those with small weights. We perform experiments on a variety of real-world datasets and the experimental results demonstrate that FastGM is orders of magnitude faster than state-of-the-art methods without sacrificing accuracy or incurring additional expenses.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 12 of its 61 references that are in the map. First posted on arXiv 10 Feb 2023.

Builds on

12 of 61 references.

References · 12

  1. 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumerationcited by 14
  2. 2014Improved Densification of One Permutation Hashingcited by 6
  3. 2017Optimal Densification for Fast and Accurate Minwise Hashingcited by 6
  4. 2019A Memory-Efficient Sketch Method for Estimating High Similarities in Streaming Setscited by 5
  5. 2014Consistent Weighted Sampling Made Fast, Small, and Easycited by 3
  6. 2017New cardinality estimation algorithms for HyperLogLog sketchescited by 3
  7. 2017Improved Consistent Weighted Sampling Revisitedcited by 3
  8. 2018BagMinHash - Minwise Hashing Algorithm for Weighted Setscited by 3
  9. 2018Maximally Consistent Sampling and the Jaccard Index of Probability Distributionscited by 3
  10. 2020Fast Generating A Large Number of Gumbel-Max Variablescited by 3
  11. 2017Fast Similarity Sketchingcited by 2
  12. 2018Utilizing Dynamic Properties of Sharing Bits and Registers to Estimate User Cardinalities over Timecited by 1

Built on by

Not cited yet.