Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Fast Gumbel-Max Sketch and its Applications (2302.05176v1)

Published 10 Feb 2023 in cs.LG and cs.DB

Abstract: 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 $v_i$, the Gumbel-Max Trick first computes a Gumbel random variable $g_i$ for each positive weight element $i$, and then samples the element $i$ with the largest value of $g_i+\ln v_i$. 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Yuanming Zhang (5 papers)
  2. Pinghui Wang (49 papers)
  3. Yiyan Qi (21 papers)
  4. Kuankuan Cheng (1 paper)
  5. Junzhou Zhao (30 papers)
  6. Guangjian Tian (9 papers)
  7. Xiaohong Guan (62 papers)
Citations (2)

Summary

We haven't generated a summary for this paper yet.