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

Geo: 面向图模式挖掘的查询重写框架

Geo: A Query Rewrite Framework for Graph Pattern Mining

Simon Fraser University(西蒙菲莎大学)

Nazanin Yousefian, Kasra Jamshidi, Keval Vora, Anders Miltner

AI总结:

提出一个可编程的模式匹配查询优化器Geo,通过重写规则自动管理等价关系,确保正确性并简化子结构等价管理,实现高达99%的成本降低。

摘要:

图模式挖掘对于分析图数据非常重要。图挖掘系统通常需要回答模式匹配查询,这涉及解决NP完全的子图同构问题。为了解决这个问题,领域专家通常基于利用不同模式之间的子结构相似性来开发自定义优化策略。虽然这些优化器可能有效,但其开发具有挑战性,限制了不同优化策略之间交互的探索,并限制了专家持续改进优化器——例如,随着时间的推移,通过纳入额外的自定义或基于通用模式的等价关系。我们提出了一种可编程的模式匹配查询优化器Geo,它自动管理各种等价关系之间的交互,确保优化保持结果的正确性,并简化子结构等价关系的管理。Geo提供了一种简单但灵活的语言,用于将模式等价关系表达为重写规则。通过在等式饱和期间维护生成模式的规范表示,Geo避免了同构模式语法差异引起的问题。此外,我们开发了嵌入式可重构性(EmRec),它跟踪跨等价关系的来源,以确保所需输出的各种可重构性需求。我们的评估表明,Geo可以通过各种重写规则的复杂组合发现新的查询等价关系,使我们的优化查询与先前工作相比成本降低高达99%。我们进一步通过两个代表性案例研究——近似模式匹配和准团挖掘——测试Geo在加速实际图挖掘问题方面的有效性,发现它在优化这些任务方面非常有效,成本降低高达71%。

英文摘要:

Graph pattern mining is important for analyzing graph data. Graph mining systems typically require answering pattern matching queries, which involve solving the NP-complete subgraph isomorphism problem. To address this, domain experts often develop custom optimization strategies based on exploiting substructural similarities across different patterns. While these optimizers can be effective, their development is challenging, limiting the exploration of interactions between different optimization strategies and restricts experts from continuously improving the optimizers -- such as by incorporating additional custom or general pattern-based equivalences over time. We present a programmable pattern matching query optimizer called Geo, which automatically manages the interactions between various equivalences, ensures the optimizations maintain correctness of results, and simplifies the management of substructure equivalences. Geo exposes a simple but flexible language for expressing pattern equivalences as rewrite rules. By maintaining canonical representations of generated patterns during equality saturation, Geo avoids issues arising from syntactic differences in isomorphic patterns. Additionally, we develop embedded reconstructablility (EmRec) that tracks provenance across equivalences to ensure various reconstructability needs of desired outputs. Our evaluation demonstrates that Geo can discover novel query equivalences through complex composition of various rewrite rules, enabling our optimized queries to achieve a cost reduction of up to 99% compared to the queries in prior work. We further test Geo's effectiveness at speeding up practical graph mining problems by using it in two representative case studies -- approximate pattern matching and quasi-clique mining, and find it is highly effective at optimizing these tasks, enabling cost reductions of up to 71%.

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

↑