Relational e-matching
Yihong Zhang, Yisu Remy Wang, Max Willsey, Zachary Tatlock
摘要
We present a new approach to e-matching based on relational join; in particular, we apply recent database query execution techniques to guarantee worst-case optimal run time. Compared to the conventional backtracking approach that always searches the e-graph "top down", our new relational e-matching approach can better exploit pattern structure by searching the e-graph according to an optimized query plan. We also establish the first data complexity result for e-matching, bounding run time as a function of the e-graph size and output size. We prototyped and evaluated our technique in the state-of-the-art egg e-graph framework. Compared to a conventional baseline, relational e-matching is simpler to implement and orders of magnitude faster in practice.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Optimizing Tensor Programs on Flexible Storage 引用了 egg: Fast and extensible equality saturation
- Optimizing Tensor Programs on Flexible Storage 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
- Fast and Optimal Extraction for Sparse Equality Graphs 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
- Fast and Optimal Extraction for Sparse Equality Graphs 引用了 Better Together: Unifying Datalog and Equality Saturation
- Flan: An Expressive and Efficient Datalog Compiler for Program Analysis 引用了 Better Together: Unifying Datalog and Equality Saturation
- Flan: An Expressive and Efficient Datalog Compiler for Program Analysis 引用了 Adopting Worst-Case Optimal Joins in Relational Database Systems
- Better Together: Unifying Datalog and Equality Saturation 引用了 Optimizing Tensor Programs on Flexible Storage
- Better Together: Unifying Datalog and Equality Saturation 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
- Better Together: Unifying Datalog and Equality Saturation 引用了 egg: Fast and extensible equality saturation
- Fast Instruction Selection for Fast Digital Signal Processing 引用了 egg: Fast and extensible equality saturation
- egg: Fast and extensible equality saturation 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
引用它的顶会 Paper11
- Better Together: Unifying Datalog and Equality SaturationYihong Zhang, Yisu Remy Wang, Oliver Flatt, David Cao 等PLDI 2023 · 38 次引用
- Optimizing Tensor Programs on Flexible StorageMaximilian Schleich, Amir Shaikhha, Dan SuciuSIGMOD 2023 · 21 次引用
- Fast and Optimal Extraction for Sparse Equality GraphsAmir Kafshdar Goharshady, Chun Kit Lam, Lionel ParreauxOOPSLA 2024 · 11 次引用
- Flan: An Expressive and Efficient Datalog Compiler for Program AnalysisSupun Abeysinghe, Anxhelo Xhebraj, Tiark RompfPOPL 2024 · 9 次引用
- Fast Instruction Selection for Fast Digital Signal ProcessingAlexander J. Root, Maaz Bin Safeer Ahmad, Dillon Sharlet, Andrew Adams 等ASPLOS 2023 · 7 次引用
它引用的 Paper3
- egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt 等POPL 2021 · 170 次引用
- Adopting Worst-Case Optimal Joins in Relational Database SystemsMichael J. Freitag, Maximilian Bandle, Tobias Schmidt, Alfons Kemper 等VLDB 2020 · 79 次引用
- Synthesizing structured CAD models with equality saturation and inverse transformationsChandrakana Nandi, Max Willsey, Adam Anderson, James R. Wilcox 等PLDI 2020 · 65 次引用
相关 Paper
- RapidMatch: A Holistic Approach to Subgraph Query ProcessingShixuan Sun, Xibo Sun, Yulin Che, Qiong Luo 等VLDB 2021 · 105 次引用
- Towards a Converged Relational-Graph Optimization FrameworkYunkai Lou, Longbin Lai, Bingqing Lyu, Yufan Yang 等SIGMOD 2025 · 4 次引用
- GraphMatch: Subgraph Query Processing on SteroidsJonas Dann, Tobias Götz, Daniel Ritter, Jana Giceva 等SIGMOD 2026
- Efficient Hypergraph Pattern Matching via Match-and-Filter and Intersection ConstraintSiwoo Song, Wonseok Shin, Kunsoo Park, Giuseppe F. Italiano 等ICDE 2026
- cuMatch: A GPU-based Memory-Efficient Worst-case Optimal Join Processing Method for Subgraph Queries with Complex PatternsSungwoo Park, Seyeon Oh, Min-Soo KimSIGMOD 2025 · 5 次引用
