arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.24308cs.DB
收藏

LEARNT: 一种具有形式精度保证的LIKE查询基数实用估计器

LEARNT: A Practical Estimator for Cardinality of LIKE Queries with Formal Accuracy Guarantees

The University of Queensland(昆士兰大学);AT&T Chief Data Office(AT&T首席数据办公室);University of Wollongong(伍伦贡大学);Wuhan University(武汉大学)

Hai Lan, Zhifeng Bao, Divesh Srivastava, Shixun Huang, Yuwei Peng, Yang Yu

AI总结:

针对字符串数据上的LIKE查询(前缀、后缀、子串),提出LEARNT估计器,通过桶分类、布隆过滤器和马尔可夫建模等方法,在保证理论精度边界的同时实现高效估计。

摘要:

我们研究了字符串数据上LIKE查询的基数估计问题,重点关注实际工作负载中最常见的模式:前缀、后缀和子串查询。我们提出了LEARNT,一种具有准确性、鲁棒性、可忽略的开销、可调性和理论保证的LIKE查询估计器。LEARNT将估计问题形式化为桶分类问题,并在正确分类后,为非空答案的查询提供Q-error的形式化界限。它采用内存高效的桶式分层过滤器架构,结合布隆过滤器和紧凑的辅助表,并利用查询倾斜优化以减少存储。对于空答案查询,LEARNT集成了专用的基于过滤器和前缀遍历策略,提供正确识别的概率保证。此外,为了支持任意长的查询字符串,我们通过马尔可夫建模方案扩展了LEARNT,将短查询统计量组合成更长查询的估计。理论框架指导参数选择,以在准确性和鲁棒性约束下最小化存储。在四个真实世界数据集上的大量实验表明,LEARNT始终优于最先进的方法(如CLIQUE和LPLM),平均Q-error降低1.3-1.7倍,尾部误差显著降低,构建速度提高多达70倍,且内存使用相当。

英文摘要:

We study the problem of cardinality estimation for LIKE queries on string data, focusing on the most common patterns in real workloads: prefix, suffix, and substring queries. We propose LEARNT, a LIKE query Estimator with Accuracy, Robustness, Negligible overhead, Tunability, and Theoretical guarantees. LEARNT formulates estimation as a bucket-classification problem, and upon correct classification, it yields formal bounds on Q-error for the queries with non-empty answer. It employs a memory-efficient bucketed layered-filter architecture with Bloom filters and compact auxiliary tables, together with optimizations that exploit query skew to reduce storage. For the queries that have empty answer, LEARNT incorporates dedicated filter-based and prefix-walk strategies, providing probabilistic guarantees on correct identification. Furthermore, to support arbitrarily long query strings, we extend LEARNT with Markov modeling scheme that composes short-query statistics into estimates for longer queries. A theoretical framework guides parameter selection to minimize storage under accuracy and robustness constraints. Extensive experiments on four real-world datasets show that LEARNT consistently outperforms state-of-the-art methods such as CLIQUE and LPLM, achieving 1.3-1.7x lower mean Q-error, significantly lower tail errors, and up to 70x faster construction with comparable memory usage.

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

↑