arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.05476cs.DB
收藏

分布式环境下基于抽样的相异值个数估计

Sampling-based Estimation of the Number of Distinct Values in Distributed Environment

Jiajun Li, Zhewei Wei, Bolin Ding, Xiening Dai, Lu Lu, Jingren Zhou

摘要:

在数据采掘中,估计不同值的数目(NDV)是一个基本问题,具有各种应用。用于估计NDV的现有方法可以大致分为两类:i)基于扫描的方法,其扫描整个数据并保持草图以近似NDV;和ii)基于采样的方法,其使用采样数据而不是访问整个数据仓库来估计NDV。基于扫描的方法以更高的I/O和更多的时间为代价来实现更低的近似误差。基于采样的估计由于其更高的可扩展性而在具有大数据量和允许误差限制的应用中是优选的。然而,虽然基于采样的方法在单机上更有效,但在具有海量数据的分布式环境中不太实用。为了获得最终的NDV估计值,整个样本必须在整个分布式系统中传输,当采样率很高时,会产生高昂的通信成本。本文提出了一种新型的基于草图的分布式方法,该方法在温和的假设下实现了基于分布式采样的NDV估计的次线性通信成本。我们的方法利用基于草图的算法来估计样本的{ \em频率的频率}在{ \em分布式流模型},这是兼容的最经典的基于采样的NDV估计。此外,我们提供的理论证据,我们的方法的能力,以尽量减少在最坏的情况下的通信成本。大量的实验表明,我们的方法节省了数量级的通信成本相比,现有的采样和草图为基础的方法。

英文摘要:

In data mining, estimating the number of distinct values (NDV) is a fundamental problem with various applications. Existing methods for estimating NDV can be broadly classified into two categories: i) scanning-based methods, which scan the entire data and maintain a sketch to approximate NDV; and ii) sampling-based methods, which estimate NDV using sampling data rather than accessing the entire data warehouse. Scanning-based methods achieve a lower approximation error at the cost of higher I/O and more time. Sampling-based estimation is preferable in applications with a large data volume and a permissible error restriction due to its higher scalability. However, while the sampling-based method is more effective on a single machine, it is less practical in a distributed environment with massive data volumes. For obtaining the final NDV estimators, the entire sample must be transferred throughout the distributed system, incurring a prohibitive communication cost when the sample rate is significant. This paper proposes a novel sketch-based distributed method that achieves sub-linear communication costs for distributed sampling-based NDV estimation under mild assumptions. Our method leverages a sketch-based algorithm to estimate the sample's {\em frequency of frequency} in the {\em distributed streaming model}, which is compatible with most classical sampling-based NDV estimators. Additionally, we provide theoretical evidence for our method's ability to minimize communication costs in the worst-case scenario. Extensive experiments show that our method saves orders of magnitude in communication costs compared to existing sampling- and sketch-based methods.

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

↑