基于弹性压缩器的近最优相对误差流分位数估计
Near-Optimal Relative Error Streaming Quantile Estimation via Elastic Compactors
AI总结:
本研究提出一种基于弹性压缩器的近最优流分位数估计算法,空间复杂度达$\tilde O(ε^{-1}\log(εn))$,接近理论下界,同时提出顶部分位数问题作为关键子问题。
摘要:
计算流数据的近似分位数或秩是数据监控中的一项基础任务。给定元素流$x_1, x_2, \dots, x_n$和查询$x$,相对误差分位数估计算法可以估计$x$相对于流的秩,误差不超过乘法形式的$\pm ε\cdot \mathrm{rank}(x)$。值得注意的是,与加性$\pm εn$误差机制相比,这要求草图(sketch)对分布尾部元素的秩获得更精确的估计。\n 此前,已知最优的相对误差算法实现的空间复杂度为$\tilde O(ε^{-1}\log^{1.5}(εn))$(Cormode、Karnin、Liberty、Thaler、Veselý,2021年)和$\tilde O(ε^{-2}\log(εn))$(Zhang、Lin、Xu、Korn、Wang,2006年)。在本研究中,我们提出了一种用于相对误差分位数估计问题的近最优流算法,其空间复杂度为$\tilde O(ε^{-1}\log(εn))$,几乎匹配平凡的$Ω(ε^{-1} \log (εn))$下界。\n 为了突破先前方法的$Ω(ε^{-1}\log^{1.5}(εn))$壁垒,我们的算法核心依赖于一种名为弹性压缩器(elastic compactor)的新型数据结构,它可以在流处理过程中动态调整大小。值得关注的是,我们设计了一种空间分配方案,能够根据输入流的“难度”为每个压缩器自适应分配空间。这种方法使我们能够避免每个压缩器同时使用最大空间,从而助力总空间复杂度的提升。\n 在研究过程中,我们还提出并研究了一个名为顶部分位数问题(Top Quantiles Problem)的新问题,该问题仅要求草图为分布的固定长度尾部提供估计。这个问题是我们算法中的一个重要子问题,但其本身也是一个值得研究的有趣问题。
英文摘要:
Computing the approximate quantiles or ranks of a stream is a fundamental task in data monitoring. Given a stream of elements $x_1, x_2, \dots, x_n$ and a query $x$, a relative-error quantile estimation algorithm can estimate the rank of $x$ with respect to the stream, up to a multiplicative $\pm ε\cdot \mathrm{rank}(x)$ error. Notably, this requires the sketch to obtain more precise estimates for the ranks of elements on the tails of the distribution, as compared to the additive $\pm εn$ error regime. Previously, the best-known algorithms for relative error achieved space $\tilde O(ε^{-1}\log^{1.5}(εn))$ (Cormode, Karnin, Liberty, Thaler, Vesel{y}, 2021) and $\tilde O(ε^{-2}\log(εn))$ (Zhang, Lin, Xu, Korn, Wang, 2006). In this work, we present a nearly-optimal streaming algorithm for the relative-error quantile estimation problem using $\tilde O(ε^{-1}\log(εn))$ space, which almost matches the trivial $Ω(ε^{-1} \log (εn))$ lower bound. To surpass the $Ω(ε^{-1}\log^{1.5}(εn))$ barrier of the previous approach, our algorithm crucially relies on a new data structure, called an elastic compactor, which can be dynamically resized over the course of the stream. Interestingly, we design a space allocation scheme which adaptively allocates space to each compactor based on the "hardness" of the input stream. This approach allows us to avoid using the maximal space simultaneously for every compactor and facilitates the improvement in the total space complexity. Along the way, we also propose and study a new problem called the Top Quantiles Problem, which only requires the sketch to provide estimates for a fixed-length tail of the distribution. This problem serves as an important subproblem in our algorithm, though it is also an interesting problem of its own right.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。