{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,13]],"date-time":"2026-08-13T16:15:49Z","timestamp":1786637749240,"version":"build-2736575974"},"reference-count":56,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2023,12,8]],"date-time":"2023-12-08T00:00:00Z","timestamp":1701993600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2023,12,8]]},"abstract":"<jats:p>Large scale analytics engines have become a core dependency for modern data-driven enterprises to derive business insights and drive actions. These engines support a large number of analytic jobs processing huge volumes of data on a daily basis, and workloads are often inundated with overlapping computations across multiple jobs. Reusing common computation is crucial for efficient cluster resource utilization and reducing job execution time. Detecting common computation is the first and key step for reducing this computational redundancy. However, detecting equivalence on large-scale analytics engines requires efficient and scalable solutions that are fully automated. In addition, to maximize computation reuse, equivalence needs to be detected at the semantic level instead of just the syntactic level (i.e., the ability to detect semantic equivalence of seemingly different-looking queries). Unfortunately, existing solutions fall short of satisfying these requirements.<\/jats:p>\n          <jats:p>In this paper, we take a major step towards filling this gap by proposing GEqO, a portable and lightweight machine-learning-based framework for efficiently identifying semantically equivalent computations at scale. GEqO introduces two machine-learning-based filters that quickly prune out nonequivalent subexpressions and employs a semi-supervised learning feedback loop to iteratively improve its model with an intelligent sampling mechanism. Further, with its novel database-agnostic featurization method, GEqO can transfer the learning from one workload and database to another. Our extensive empirical evaluation shows that, on TPC-DS-like queries, GEqO yields significant performance gains-up to 200x faster than automated verifiers-and finds up to 2x more equivalences than optimizer and signature-based equivalence detection approaches.<\/jats:p>","DOI":"10.1145\/3626710","type":"journal-article","created":{"date-parts":[[2023,12,12]],"date-time":"2023-12-12T14:01:21Z","timestamp":1702389681000},"page":"1-25","source":"Crossref","is-referenced-by-count":3,"title":["GEqO: ML-Accelerated Semantic Equivalence Detection"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-1501-9586","authenticated-orcid":false,"given":"Brandon","family":"Haynes","sequence":"first","affiliation":[{"name":"Microsoft Gray Systems Lab, Redmond, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0005-0457-8429","authenticated-orcid":false,"given":"Rana","family":"Alotaibi","sequence":"additional","affiliation":[{"name":"Microsoft Gray Systems Lab, Redmond, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0006-7442-4254","authenticated-orcid":false,"given":"Anna","family":"Pavlenko","sequence":"additional","affiliation":[{"name":"Microsoft Gray Systems Lab, Redmond, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2920-1431","authenticated-orcid":false,"given":"Jyoti","family":"Leeka","sequence":"additional","affiliation":[{"name":"Microsoft, Redmond, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8844-8165","authenticated-orcid":false,"given":"Alekh","family":"Jindal","sequence":"additional","affiliation":[{"name":"SmartApps, Bellevue, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6835-8434","authenticated-orcid":false,"given":"Yuanyuan","family":"Tian","sequence":"additional","affiliation":[{"name":"Microsoft Gray Systems Lab, Redmond, WA, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,12,12]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Foundations of Databases","author":"Abiteboul Serge","unstructured":"Serge Abiteboul, Richard Hull, and Victor Vianu. 1995. Foundations of Databases. Vol. 8. Addison-Wesley Reading."},{"key":"e_1_2_1_2_1","volume-title":"Gokul Nath Babu and Roy, Indrajit and Sankaranarayanan, Jagan and Zhang, Hao and Zou, Tao and Chen, Min and Chen, Jim and Dai, Ming and others","author":"Lai Ankur","year":"2021","unstructured":"Agiwal, Ankur and Lai, Kevin and Manoharan, Gokul Nath Babu and Roy, Indrajit and Sankaranarayanan, Jagan and Zhang, Hao and Zou, Tao and Chen, Min and Chen, Jim and Dai, Ming and others. 2021. Napa: Powering Scalable Data Warehousing with Robust Query Performance at Google., Vol. 14, 12 (2021)."},{"key":"e_1_2_1_3_1","first-page":"496","article-title":"Automated selection of materialized views and indexes in SQL databases","volume":"2000","author":"Agrawal Sanjay","year":"2000","unstructured":"Sanjay Agrawal, Surajit Chaudhuri, and Vivek R Narasayya. 2000. Automated selection of materialized views and indexes in SQL databases. In VLDB, Vol. 2000. 496--505.","journal-title":"VLDB"},{"key":"e_1_2_1_4_1","first-page":"3046","article-title":"Automated generation of materialized views in oracle","volume":"13","author":"Ahmed Rafi","year":"2020","unstructured":"Rafi Ahmed, Randall Bello, Andrew Witkowski, and Praveen Kumar. 2020. Automated generation of materialized views in oracle. In VLDB, Vol. 13. 3046--3058.","journal-title":"VLDB"},{"key":"e_1_2_1_5_1","volume-title":"Amazon Redshift: Automated materialized views. https:\/\/docs.aws.amazon.com\/redshift\/latest\/dg\/materialized-view-auto-mv.html. Accessed","year":"2023","unstructured":"Amazon. 2023. Amazon Redshift: Automated materialized views. https:\/\/docs.aws.amazon.com\/redshift\/latest\/dg\/materialized-view-auto-mv.html. Accessed: 2023."},{"key":"e_1_2_1_6_1","unstructured":"Apache Software Foundation. 2023 a. Apache Calcite: The foundation for your next high-performance database. https:\/\/calcite.apache.org."},{"key":"e_1_2_1_7_1","unstructured":"Apache Software Foundation. 2023 b. Apache Spark: Unified Engine for large-scale data analytics. https:\/\/spark.apache.org."},{"key":"e_1_2_1_8_1","volume-title":"Foundations and Trends\u00ae in Databases","volume":"4","author":"Chirkova Rada","year":"2012","unstructured":"Rada Chirkova and Jun Yang. 2012. Materialized views. Foundations and Trends\u00ae in Databases, Vol. 4, 4 (2012), 295--405."},{"key":"e_1_2_1_9_1","first-page":"1482","article-title":"Axiomatic foundations and algorithms for deciding semantic equivalences of SQL queries","volume":"11","author":"Chu Shumo","year":"2018","unstructured":"Shumo Chu, Brendan Murphy, Jared Roesch, Alvin Cheung, and Dan Suciu. 2018. Axiomatic foundations and algorithms for deciding semantic equivalences of SQL queries. In VLDB, Vol. 11. 1482--1495.","journal-title":"VLDB"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3140587.3062348"},{"key":"e_1_2_1_11_1","doi-asserted-by":"crossref","unstructured":"Sara Cohen. 2006. Equivalence of queries combining set and bag-set semantics. In PODS. 70--79.","DOI":"10.1145\/1142351.1142362"},{"key":"e_1_2_1_12_1","volume-title":"Jiansheng and others","author":"Cruanes Benoit","year":"2016","unstructured":"Dageville, Benoit and Cruanes, Thierry and Zukowski, Marcin and Antonov, Vadim and Avanes, Artin and Bock, Jon and Claybaugh, Jonathan and Engovatov, Daniel and Hentschel, Martin and Huang, Jiansheng and others. 2016. The Snowflake Elastic Data Warehouse. In SIGMOD. 215--226."},{"key":"e_1_2_1_13_1","doi-asserted-by":"crossref","unstructured":"Leonardo De Moura and Nikolaj Bj\u00f8rner. 2008. Z3: An efficient SMT solver. In TACAS. 337--340.","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"e_1_2_1_14_1","volume-title":"Floris Van Doorn, and Jakob von Raumer","author":"de Moura Leonardo","year":"2015","unstructured":"Leonardo de Moura, Soonho Kong, Jeremy Avigad, Floris Van Doorn, and Jakob von Raumer. 2015. The Lean theorem prover (system description). In CADE-25. 378--388."},{"key":"e_1_2_1_15_1","volume-title":"Encyclopedia of Database Systems","author":"Deutsch Alin","unstructured":"Alin Deutsch. 2018. FOL Modeling of Integrity Constraints (Dependencies). In Encyclopedia of Database Systems, Second Edition."},{"key":"e_1_2_1_16_1","first-page":"2458","article-title":"DeepJoin: Joinable Table Discovery with Pre-trained Language Models","volume":"16","author":"Dong Yuyang","year":"2023","unstructured":"Yuyang Dong, Chuan Xiao, Takuma Nozawa, Masafumi Enomoto, and Masafumi Oyamada. 2023. DeepJoin: Joinable Table Discovery with Pre-trained Language Models. In VLDB, Vol. 16. 2458--2470.","journal-title":"VLDB"},{"key":"e_1_2_1_17_1","first-page":"1","article-title":"A metaprogramming framework for formal verification","volume":"1","author":"Ebner Gabriel","year":"2017","unstructured":"Gabriel Ebner, Sebastian Ullrich, Jared Roesch, Jeremy Avigad, and Leonardo de Moura. 2017. A metaprogramming framework for formal verification. In ICFP, Vol. 1. 1--29.","journal-title":"ICFP"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/376284.375706"},{"key":"e_1_2_1_19_1","volume-title":"Deep learning","author":"Goodfellow Ian","unstructured":"Ian Goodfellow, Yoshua Bengio, and Aaron Courville. 2016. Deep learning. MIT press."},{"key":"e_1_2_1_20_1","unstructured":"Google. 2023. BigQuery. https:\/\/cloud.google.com\/bigquery."},{"key":"e_1_2_1_21_1","first-page":"19","article-title":"The Cascades Framework for Query Optimization","volume":"18","author":"Graefe Goetz","year":"1995","unstructured":"Goetz Graefe. 1995. The Cascades Framework for Query Optimization. IEEE Data Eng. Bull., Vol. 18 (1995), 19--29.","journal-title":"IEEE Data Eng. Bull."},{"key":"e_1_2_1_22_1","volume-title":"McKenna","author":"Graefe Goetz","year":"1993","unstructured":"Goetz Graefe and William J. McKenna. 1993. The Volcano Optimizer Generator: Extensibility and Efficient Search. In ICDE. 209--218."},{"key":"e_1_2_1_23_1","doi-asserted-by":"crossref","unstructured":"Anurag Gupta Deepak Agarwal Derek Tan Jakub Kulesza Rahul Pathak Stefano Stefani and Vidhya Srinivasan. 2015. Amazon Redshift and the Case for Simpler Data Warehouses. In SIGMOD. 1917--1923.","DOI":"10.1145\/2723372.2742795"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/s007780100054"},{"key":"e_1_2_1_25_1","unstructured":"Rojeh Hayek and Oded Shmueli. 2020. Improved Cardinality Estimation by Learning Queries Containment Rates. In EDBT. 157--168."},{"key":"e_1_2_1_26_1","first-page":"278","article-title":"Random decision forests","volume":"1","author":"Ho Tin Kam","year":"1995","unstructured":"Tin Kam Ho. 1995. Random decision forests. In ICDAR, Vol. 1. 278--282.","journal-title":"ICDAR"},{"key":"e_1_2_1_27_1","first-page":"1","article-title":"Query-aware locality-sensitive hashing for approximate nearest neighbor search","volume":"9","author":"Huang Qiang","year":"2015","unstructured":"Qiang Huang, Jianlin Feng, Yikai Zhang, Qiong Fang, and Wilfred Ng. 2015. Query-aware locality-sensitive hashing for approximate nearest neighbor search. In VLDB, Vol. 9. 1--12.","journal-title":"VLDB"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/211414.211419"},{"key":"e_1_2_1_29_1","doi-asserted-by":"crossref","unstructured":"TS Jayram Phokion G Kolaitis and Erik Vee. 2006. The containment problem for real conjunctive queries with inequalities. In PODS. 80--89.","DOI":"10.1145\/1142351.1142363"},{"key":"e_1_2_1_30_1","first-page":"800","article-title":"Selecting subexpressions to materialize at datacenter scale","volume":"11","author":"Jindal Alekh","year":"2018","unstructured":"Alekh Jindal, Konstantinos Karanasos, Sriram Rao, and Hiren Patel. 2018a. Selecting subexpressions to materialize at datacenter scale. In VLDB, Vol. 11. 800--812.","journal-title":"VLDB"},{"key":"e_1_2_1_31_1","unstructured":"Alekh Jindal Shi Qiao Hiren Patel Abhishek Roy Jyoti Leeka and Brandon Haynes. 2021. Production Experiences from Computation Reuse at Microsoft. In EDBT. 623--634."},{"key":"e_1_2_1_32_1","doi-asserted-by":"crossref","unstructured":"Alekh Jindal Shi Qiao Hiren Patel Zhicheng Yin Jieming Di Malay Bag Marc Friedman Yifung Lin Konstantinos Karanasos and Sriram Rao. 2018b. Computation reuse in analytics job service at Microsoft. In ICDM. 191--203.","DOI":"10.1145\/3183713.3190656"},{"key":"e_1_2_1_33_1","volume-title":"Kingma and Jimmy Ba","author":"Diederik","year":"2015","unstructured":"Diederik P. Kingma and Jimmy Ba. 2015. Adam: A Method for Stochastic Optimization. In ICLR."},{"key":"e_1_2_1_34_1","doi-asserted-by":"crossref","unstructured":"Xinyu Liu Qi Zhou Joy Arulraj and Alessandro Orso. 2022. Automatic Detection of Performance Bugs in Database Systems using Equivalent Queries. In ICSE. 225--236.","DOI":"10.1145\/3510003.3510093"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1109\/TPAMI.2018.2889473"},{"key":"e_1_2_1_36_1","volume-title":"Bao: Making learned query optimization practical. In SIGMOD. 1275--1288.","author":"Marcus Ryan","year":"2021","unstructured":"Ryan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul, Mohammad Alizadeh, and Tim Kraska. 2021. Bao: Making learned query optimization practical. In SIGMOD. 1275--1288."},{"key":"e_1_2_1_37_1","first-page":"1705","article-title":"Neo: A Learned Query Optimizer","volume":"12","author":"Marcus Ryan C.","year":"2019","unstructured":"Ryan C. Marcus, Parimarjan Negi, Hongzi Mao, Chi Zhang, Mohammad Alizadeh, Tim Kraska, Olga Papaemmanouil, and Nesime Tatbul. 2019. Neo: A Learned Query Optimizer. In VLDB, Vol. 12. 1705--1718.","journal-title":"VLDB"},{"key":"e_1_2_1_38_1","unstructured":"Microsoft. 2023. Azure Synapse Analytics. https:\/\/azure.microsoft.com\/en-us\/services\/synapse-analytics."},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v30i1.10139"},{"key":"e_1_2_1_40_1","doi-asserted-by":"crossref","unstructured":"Parimarjan Negi Matteo Interlandi Ryan Marcus Mohammad Alizadeh Tim Kraska Marc Friedman and Alekh Jindal. 2021. Steering Query Optimizers: A Practical Take on Big Data Workloads. In ICMD. 2557--2569.","DOI":"10.1145\/3448016.3457568"},{"key":"e_1_2_1_41_1","unstructured":"John Neter Michael H Kutner Christopher J Nachtsheim and William Wasserman. 1996. Applied linear statistical models. (1996)."},{"key":"e_1_2_1_42_1","volume-title":"An Empirical Analysis of Deep Learning for Cardinality Estimation. CoRR","author":"Ortiz Jennifer","year":"2019","unstructured":"Jennifer Ortiz, Magdalena Balazinska, Johannes Gehrke, and S. Sathiya Keerthi. 2019. An Empirical Analysis of Deep Learning for Cardinality Estimation. CoRR, Vol. abs\/1905.06425 (2019)."},{"key":"e_1_2_1_43_1","volume-title":"NeurIPS","volume":"32","author":"Paszke Adam","year":"2019","unstructured":"Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. 2019. Pytorch: An imperative style, high-performance deep learning library. NeurIPS, Vol. 32 (2019)."},{"key":"e_1_2_1_44_1","doi-asserted-by":"crossref","unstructured":"Christine Paulin-Mohring. 2011. Introduction to the Coq proof-assistant for practical software verification. In LASER. 45--95.","DOI":"10.1007\/978-3-642-35746-6_3"},{"key":"e_1_2_1_45_1","doi-asserted-by":"crossref","unstructured":"Jianbin Qin Wei Wang Chuan Xiao Ying Zhang and Yaoshu Wang. 2021. High-Dimensional Similarity Query Processing for Data Science. In SIGKDD. 4062--4063.","DOI":"10.1145\/3447548.3470811"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/42201.42203"},{"key":"e_1_2_1_47_1","doi-asserted-by":"crossref","unstructured":"Ross Tate Michael Stepp Zachary Tatlock and Sorin Lerner. 2009. Equality saturation: a new approach to optimization. In POPL. 264--276.","DOI":"10.1145\/1480881.1480915"},{"key":"e_1_2_1_48_1","doi-asserted-by":"crossref","unstructured":"Yicheng Tu Mehrad Eslami Zichen Xu and Hadi Charkhgard. 2022. Multi-Query Optimization Revisited: A Full-Query Algebraic Method. In Big Data. 252--261.","DOI":"10.1109\/BigData55660.2022.10020338"},{"key":"e_1_2_1_49_1","unstructured":"Ashish Vaswani Noam Shazeer Niki Parmar Jakob Uszkoreit Llion Jones Aidan N. Gomez Lukasz Kaiser and Illia Polosukhin. 2017. Attention is All you Need. In NIPS. 5998--6008."},{"key":"e_1_2_1_50_1","doi-asserted-by":"crossref","unstructured":"Zhaoguo Wang Zhou Zhou Yicun Yang Haoran Ding Gansen Hu Ding Ding Chuzhe Tang Haibo Chen and Jinyang Li. 2022. WeTune: Automatic Discovery and Verification of Query Rewrite Rules. In SIGMOD. 94--107.","DOI":"10.1145\/3514221.3526125"},{"key":"e_1_2_1_51_1","doi-asserted-by":"crossref","unstructured":"Haitao Yuan Guoliang Li Ling Feng Ji Sun and Yue Han. 2020. Automatic view generation with deep learning and reinforcement learning. In ICDE. 1501--1512.","DOI":"10.1109\/ICDE48307.2020.00133"},{"key":"e_1_2_1_52_1","volume-title":"SCOPE: Parallel Databases Meet MapReduce. In VLDB","volume":"21","author":"Zhou Jingren","year":"2012","unstructured":"Jingren Zhou, Nicolas Bruno, Ming-Chuan Wu, Per-Ake Larson, Ronnie Chaiken, and Darren Shakib. 2012. SCOPE: Parallel Databases Meet MapReduce. In VLDB, Vol. 21. 611--636."},{"key":"e_1_2_1_53_1","first-page":"1276","article-title":"Automated verification of query equivalence using satisfiability modulo theories","volume":"12","author":"Zhou Qi","year":"2019","unstructured":"Qi Zhou, Joy Arulraj, Shamkant Navathe, William Harris, and Dong Xu. 2019. Automated verification of query equivalence using satisfiability modulo theories. VLDB, Vol. 12, 11, 1276--1288.","journal-title":"VLDB"},{"key":"e_1_2_1_54_1","volume-title":"SPES: A Symbolic Approach to Proving Query Equivalence Under Bag Semantics. In ICDE. 2735--2748.","author":"Zhou Qi","year":"2022","unstructured":"Qi Zhou, Joy Arulraj, Shamkant B. Navathe, William Harris, and Jinpeng Wu. 2022. SPES: A Symbolic Approach to Proving Query Equivalence Under Bag Semantics. In ICDE. 2735--2748."},{"key":"e_1_2_1_55_1","volume-title":"Introduction to semi-supervised learning. Synthesis lectures on artificial intelligence and machine learning","author":"Zhu Xiaojin","year":"2009","unstructured":"Xiaojin Zhu and Andrew B Goldberg. 2009. Introduction to semi-supervised learning. Synthesis lectures on artificial intelligence and machine learning, Vol. 3, 1 (2009), 1--130."},{"key":"e_1_2_1_56_1","volume-title":"Abhishek Modi, Manoj Kumar, Deli Zhang, Kartheek Muthyala, Nick Jurgens, et al.","author":"Zhu Yiwen","year":"2021","unstructured":"Yiwen Zhu, Subru Krishnan, Konstantinos Karanasos, Isha Tarte, Conor Power, Abhishek Modi, Manoj Kumar, Deli Zhang, Kartheek Muthyala, Nick Jurgens, et al. 2021. KEA: Tuning an Exabyte-Scale Data Infrastructure. In SIGMOD. 2667--2680."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3626710","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3626710","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,8,22]],"date-time":"2025-08-22T13:02:34Z","timestamp":1755867754000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3626710"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,12,8]]},"references-count":56,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2023,12,8]]}},"alternative-id":["10.1145\/3626710"],"URL":"https:\/\/doi.org\/10.1145\/3626710","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,12,8]]}}}