跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.15675 · v1

Optimal-Time Independent Subset Sampling over Acyclic Joins

首次提交 2026-11-12 00:15
版本更新 2026-11-12 00:15
雷达观测 2026-11-13 14:16
arXiv ↗PDF ↗

摘要

Join results can greatly exceed their inputs even when applications need only a small random subset. We study sampling that includes each result independently with a prescribed probability given by the product of its input-tuple weights (PRODUCT). For fixed full acyclic joins with static weights, we achieve input-linear preprocessing and index space together with output-linear expected sampling work, eliminating logarithmic factors from previous bounds. A shared join-tree index supports weighted draws over the entire join and locates high-probability results. Direct Bernoulli trials handle high-probability results, allowing Poisson thinning to generate the remaining independent inclusion decisions with bounded overhead. Our exact sampler uses expected O(N)O(N) preprocessing, O(N)O(N) index space, and expected O(1+mμ)O(1+mμ) time per call including output construction. Here NN is the input size, mm counts relation occurrences, and μμ is the expected sample size. The guarantees hold on a real random-access machine with unit-cost exact arithmetic and logarithms, continuous uniform randomness, and expected-time hashing. The time bounds are optimal, matching input reading and explicit output writing. Our floating-point prototype has lower sampling latency than the fastest applicable baseline in 17 of 18 PRODUCT settings on three queries over the STATS benchmark. Construction savings on large joins can offset indexed materialization's faster sampling over a limited number of calls. On a real-data path at μ=100μ=100, our sampler achieves a 20.5×20.5\times speedup over indexed materialization for construction plus 300 calls, measured after common data preparation and loading.

作者备注:14 pages, 4 figures, 4 tables

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-12 00:15 · 最新观测版本

Optimal-Time Independent Subset Sampling over Acyclic Joins

Join results can greatly exceed their inputs even when applications need only a small random subset. We study sampling that includes each result independently with a prescribed probability given by the product of its input-tuple weights (PRODUCT). For fixed full acyclic joins with static weights, we achieve input-linear preprocessing and index space together with output-linear expected sampling work, eliminating logarithmic factors from previous bounds. A shared join-tree index supports weighted draws over the entire join and locates high-probability results. Direct Bernoulli trials handle high-probability results, allowing Poisson thinning to generate the remaining independent inclusion decisions with bounded overhead. Our exact sampler uses expected O(N)O(N) preprocessing, O(N)O(N) index space, and expected O(1+mμ)O(1+mμ) time per call including output construction. Here NN is the input size, mm counts relation occurrences, and μμ is the expected sample size. The guarantees hold on a real random-access machine with unit-cost exact arithmetic and logarithms, continuous uniform randomness, and expected-time hashing. The time bounds are optimal, matching input reading and explicit output writing. Our floating-point prototype has lower sampling latency than the fastest applicable baseline in 17 of 18 PRODUCT settings on three queries over the STATS benchmark. Construction savings on large joins can offset indexed materialization's faster sampling over a limited number of calls. On a real-data path at μ=100μ=100, our sampler achieves a 20.5×20.5\times speedup over indexed materialization for construction plus 300 calls, measured after common data preparation and loading.

查看此版本解读 →查看此版本原文 ↗