我们考虑从分布式流中进行消息有效的连续随机采样,其中样本中包含项目的概率与与该项目相关的权重成比例。未加权的版本,其中所有的权重是相等的,是很好的研究,并承认严格的上限和下限的消息复杂性。对于带替换的加权抽样,有一个简单的简化为带替换的未加权抽样。然而,在许多应用中,流只有几个重项,当选择替换时,这些重项可能主导随机样本。加权取样\textit{without replacement}(加权SWOR)避免了这个问题,因为这样重的项目最多只能取样一次。在这项工作中,我们提出了第一个消息优化算法加权SWOR从分布式流。我们的算法也有最佳的空间和时间复杂度。作为我们的算法加权SWOR的应用程序,我们推导出第一个分布式流跟踪算法\textit{heavy hitters with residual error}。这里的目标是识别流项目的贡献显着的剩余流,一旦最重的项目被删除。剩余重打击者概括了$\ell_1$重打击者的概念,并且在具有偏斜的权重分布的流中是重要的。除了上限,我们还提供了消息复杂度的下限,该下限几乎接近$\log(1/ε)$因子。最后,我们使用我们的加权抽样算法,以改善分布式$L_1$跟踪,也称为计数跟踪,这是一个广泛研究的问题,在分布式流消息的复杂性。我们还得到了一个紧密的消息下界,关闭这个基本问题的消息复杂性。
英文摘要:
We consider message-efficient continuous random sampling from a distributed stream, where the probability of inclusion of an item in the sample is proportional to a weight associated with the item. The unweighted version, where all weights are equal, is well studied, and admits tight upper and lower bounds on message complexity. For weighted sampling with replacement, there is a simple reduction to unweighted sampling with replacement. However, in many applications the stream has only a few heavy items which may dominate a random sample when chosen with replacement. Weighted sampling \textit{without replacement} (weighted SWOR) eludes this issue, since such heavy items can be sampled at most once.
In this work, we present the first message-optimal algorithm for weighted SWOR from a distributed stream. Our algorithm also has optimal space and time complexity. As an application of our algorithm for weighted SWOR, we derive the first distributed streaming algorithms for tracking \textit{heavy hitters with residual error}. Here the goal is to identify stream items that contribute significantly to the residual stream, once the heaviest items are removed. Residual heavy hitters generalize the notion of $\ell_1$ heavy hitters and are important in streams that have a skewed distribution of weights. In addition to the upper bound, we also provide a lower bound on the message complexity that is nearly tight up to a $\log(1/ε)$ factor. Finally, we use our weighted sampling algorithm to improve the message complexity of distributed $L_1$ tracking, also known as count tracking, which is a widely studied problem in distributed streaming. We also derive a tight message lower bound, which closes the message complexity of this fundamental problem.
本文提出了一种新的单通道水库加权采样流聚合算法--基于优先级的聚合(PBA)。虽然顺序采样是一种强大而有效的方法,用于从唯一键控项流中进行加权采样,但目前还没有算法实现顺序采样在非唯一键的流聚合上下文中的益处。一个简单的方法来排序样本而不考虑关键字,然后汇总结果是毫无希望的低效。与之不同的是,我们提出的算法在缓存中每个密钥的生命周期中使用单个持久随机变量,并保持对可以在流中任何点查询的密钥聚合的无偏估计。基本方法可以用具有由PBA控制的采样率自适应的采样和保持预采样阶段来补充。与使采样和保持适应于以固定高速缓存大小操作的现有技术相比,该方法表示计算复杂性的显著降低。关于统计特性,我们证明PBA提供了真实总量的无偏估计。我们分析了PBA及其变体的计算复杂性,并对其在合成和跟踪数据上的准确性进行了详细的评估。相对于Adaptive Sample and Hold,在采样率为5%至17%时,加权相对误差降低了40%至65%;对于排名查询也有很大改进