arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1703.02693cs.DS
收藏

通过顺序抽样的流聚合

Stream Aggregation Through Order Sampling

Nick Duffield, Yunhong Xu, Liangzhen Xia, Nesreen Ahmed, Minlan Yu

摘要:

本文提出了一种新的单通道水库加权采样流聚合算法--基于优先级的聚合(PBA)。虽然顺序采样是一种强大而有效的方法,用于从唯一键控项流中进行加权采样,但目前还没有算法实现顺序采样在非唯一键的流聚合上下文中的益处。一个简单的方法来排序样本而不考虑关键字,然后汇总结果是毫无希望的低效。与之不同的是,我们提出的算法在缓存中每个密钥的生命周期中使用单个持久随机变量,并保持对可以在流中任何点查询的密钥聚合的无偏估计。基本方法可以用具有由PBA控制的采样率自适应的采样和保持预采样阶段来补充。与使采样和保持适应于以固定高速缓存大小操作的现有技术相比,该方法表示计算复杂性的显著降低。关于统计特性,我们证明PBA提供了真实总量的无偏估计。我们分析了PBA及其变体的计算复杂性,并对其在合成和跟踪数据上的准确性进行了详细的评估。相对于Adaptive Sample and Hold,在采样率为5%至17%时,加权相对误差降低了40%至65%;对于排名查询也有很大改进

英文摘要:

This is paper introduces a new single-pass reservoir weighted-sampling stream aggregation algorithm, Priority-Based Aggregation (PBA). While order sampling is a powerful and e cient method for weighted sampling from a stream of uniquely keyed items, there is no current algorithm that realizes the benefits of order sampling in the context of stream aggregation over non-unique keys. A naive approach to order sample regardless of key then aggregate the results is hopelessly inefficient. In distinction, our proposed algorithm uses a single persistent random variable across the lifetime of each key in the cache, and maintains unbiased estimates of the key aggregates that can be queried at any point in the stream. The basic approach can be supplemented with a Sample and Hold pre-sampling stage with a sampling rate adaptation controlled by PBA. This approach represents a considerable reduction in computational complexity compared with the state of the art in adapting Sample and Hold to operate with a fixed cache size. Concerning statistical properties, we prove that PBA provides unbiased estimates of the true aggregates. We analyze the computational complexity of PBA and its variants, and provide a detailed evaluation of its accuracy on synthetic and trace data. Weighted relative error is reduced by 40% to 65% at sampling rates of 5% to 17%, relative to Adaptive Sample and Hold; there is also substantial improvement for rank queries

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑