通过统计保证加速无结构数据上的近似解析连接查询
Accelerating Approximate Analytical Join Queries over Unstructured Data with Statistical Guarantees
AI总结:
本文提出BaS算法,结合嵌入式阻塞和采样,提供统计保证并提高效率,实验证明其在不同模态数据集上有效减少估计误差。
摘要:
解析连接查询在无结构数据中日益普遍。应用机器学习模型标记表交叉积中的每对可以实现最先进的准确性,但成对执行ML模型的成本过高。现有算法如基于嵌入的阻塞和采样旨在降低此成本。然而,它们要么无法提供统计保证(导致误差高达预期的79%更高)要么变得与均匀采样一样低效。我们提出阻塞增强采样(BaS),同时实现统计保证和高效率。BaS最优地协调基于嵌入的阻塞和采样以缓解各自的限制。具体来说,BaS根据嵌入的失败模式将交叉积中的数据元组分配到两个区域。在假阴性区域,BaS使用采样来估计结果。在假阳性区域,BaS应用基于嵌入的阻塞以提高效率。为了在给定ML执行预算下最小化估计误差,我们设计了一个新的两阶段算法,该算法自适应地在阻塞和采样之间分配预算。理论上,我们证明BaS在渐近上优于或匹配单独采样。在不同模态的真实世界数据集上,我们显示BaS提供有效的置信区间,并与最先进的基线相比将估计误差减少高达19倍。
英文摘要:
Analytical join queries over unstructured data are increasingly prevalent in data analytics. Applying machine learning (ML) models to label every pair in the cross product of tables can achieve state-of-the-art accuracy, but the cost of pairwise execution of ML models is prohibitive. Existing algorithms, such as embedding-based blocking and sampling, aim to reduce this cost. However, they either fail to provide statistical guarantees (leading to errors up to 79% higher than expected) or become as inefficient as uniform sampling. We propose blocking-augmented sampling (BaS), which simultaneously achieves statistical guarantees and high efficiency. BaS optimally orchestrates embedding-based blocking and sampling to mitigate their respective limitations. Specifically, BaS allocates data tuples in the cross product into two regimes based on the failure modes of embeddings. In the regime of false negatives, BaS uses sampling to estimate the result. In the regime of false positives, BaS applies embedding-based blocking to improve efficiency. To minimize the estimation error given a budget for ML executions, we design a novel two-stage algorithm that adaptively allocates the budget between blocking and sampling. Theoretically, we prove that BaS asymptotically outperforms or matches standalone sampling. On real-world datasets across different modalities, we show that BaS provides valid confidence intervals and reduces estimation errors by up to 19$\times$, compared to state-of-the-art baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。