{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,15]],"date-time":"2026-09-15T01:18:52Z","timestamp":1789435132134,"version":"build-2803163510"},"reference-count":48,"publisher":"Association for Computing Machinery (ACM)","issue":"4","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2023,12]]},"abstract":"<jats:p>Query plan is widely used as input in machine learning for databases (ML4DB) research, with query plan representation as a critical step. However, existing studies typically focus on one task, and propose a novel design to represent query plans along with a ML4DB framework, without comparing with other representation methods designed for a different task. This raises a critical question: How do we select a query plan representation method in a ML4DB system?<\/jats:p>\n                  <jats:p>To address this question, we perform a comparative study on ten representation methods on three distinct ML4DB tasks: cost estimation, index selection and query optimization. Our extensive experiments not only verify the interchangeability of representation methods across different tasks, but also identify consistently high-performing models. Further, we dissect the query plan representation into two core components: feature encoding and tree model, and evaluate the impact of design choices for each in different scenarios. Our results show that the findings for tasks optimizing absolute errors are different from findings for tasks optimizing relative errors. Some findings challenge widely-held assumptions, i.e., one finding shows that tree models do not significantly impact cost estimation results, but only play a significant role to optimize relative performance. Practical guidelines and future directions are provided based on the findings of the study.<\/jats:p>","DOI":"10.14778\/3636218.3636235","type":"journal-article","created":{"date-parts":[[2024,3,5]],"date-time":"2024-03-05T12:04:07Z","timestamp":1709640247000},"page":"823-835","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":19,"title":["A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB Studies"],"prefix":"10.14778","volume":"17","author":[{"given":"Yue","family":"Zhao","sequence":"first","affiliation":[{"name":"Nanyang Technological University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhaodonghui","family":"Li","sequence":"additional","affiliation":[{"name":"Nanyang Technological University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Gao","family":"Cong","sequence":"additional","affiliation":[{"name":"Nanyang Technological University"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2024,3,5]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"2019. Learning-based-cost-estimator. https:\/\/github.com\/greatji\/Learning-based-cost-estimator [Last accessed: 2023-12-14]."},{"key":"e_1_2_1_2_1","unstructured":"2020. Bao a learned query optimizer. For PostgreSQL. https:\/\/github.com\/learnedsystems\/BaoForPostgreSQL [Last accessed: 2023-12-14]."},{"key":"e_1_2_1_3_1","unstructured":"2020. QPPNet. https:\/\/github.com\/rabbit721\/QPPNet [Last accessed: 2023-12-14]."},{"key":"e_1_2_1_4_1","unstructured":"2021. QueryFormer. https:\/\/github.com\/zhaoyue-ntu\/QueryFormer [Last accessed: 2023-12-14]."},{"key":"e_1_2_1_5_1","unstructured":"2023. Documentation PostgreSQL 12 71.1. Row Estimation Examples. https:\/\/www.postgresql.org\/docs\/12\/row-estimation-examples.html [Last accessed: 2023-12-14]."},{"key":"e_1_2_1_6_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_7_1","doi-asserted-by":"crossref","unstructured":"Surajit Chaudhuri. 1998. An overview of query optimization in relational systems. In SIGACT-SIGMOD-SIGART. 34--43.","DOI":"10.1145\/275487.275492"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/276305.276337"},{"key":"e_1_2_1_9_1","volume-title":"VLDB","volume":"97","author":"Chaudhuri Surajit","year":"1997","unstructured":"Surajit Chaudhuri and Vivek R Narasayya. 1997. An efficient, cost-driven index selection tool for Microsoft SQL server. In VLDB, Vol. 97. San Francisco, 146--155."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.14778\/1920841.1920853"},{"key":"e_1_2_1_11_1","doi-asserted-by":"crossref","unstructured":"Bailu Ding Sudipto Das Ryan Marcus Wentao Wu Surajit Chaudhuri and Vivek R Narasayya. 2019. Ai meets ai: Leveraging query executions to improve index recommendations. In ICDM. 1241--1258.","DOI":"10.1145\/3299869.3324957"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/152610.152611"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1925844.1926423"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.14778\/3503585.3503586"},{"key":"e_1_2_1_15_1","volume-title":"One model to rule them all: towards zero-shot learning for databases. arXiv:2105.00642","author":"Hilprecht Benjamin","year":"2021","unstructured":"Benjamin Hilprecht and Carsten Binnig. 2021. One model to rule them all: towards zero-shot learning for databases. arXiv:2105.00642 (2021)."},{"key":"e_1_2_1_16_1","volume-title":"Long short-term memory. Neural computation 9, 8","author":"Hochreiter Sepp","year":"1997","unstructured":"Sepp Hochreiter and J\u00fcrgen Schmidhuber. 1997. Long short-term memory. Neural computation 9, 8 (1997), 1735--1780."},{"key":"e_1_2_1_17_1","volume-title":"Feng Cheng, Shixuan Sun, and Bingsheng He.","author":"Zhi Kang Johan Kok","year":"2021","unstructured":"Johan Kok Zhi Kang, Gaurav, Sien Yi Tan, Feng Cheng, Shixuan Sun, and Bingsheng He. 2021. Efficient Deep Learning Pipelines for Accurate Cost Estimations Over Large Scale Query Workload. In SIGMOD. ACM, 1014--1022."},{"key":"e_1_2_1_18_1","volume-title":"Seo, Wook-Shin Han, Kangwoo Choi, and Jaehyok Chong.","author":"Kim Kyoungmin","year":"2022","unstructured":"Kyoungmin Kim, Jisung Jung, In Seo, Wook-Shin Han, Kangwoo Choi, and Jaehyok Chong. 2022. Learned cardinality estimation: An in-depth study. In ICDM. 1214--1227."},{"key":"e_1_2_1_19_1","volume-title":"Adam: A method for stochastic optimization. arXiv:1412.6980.","author":"Kingma Diederik P","year":"2014","unstructured":"Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv:1412.6980."},{"key":"e_1_2_1_20_1","volume-title":"Learned cardinalities: Estimating correlated joins with deep learning. arXiv:1809.00677","author":"Kipf Andreas","year":"2018","unstructured":"Andreas Kipf, Thomas Kipf, Bernhard Radke, Viktor Leis, Peter Boncz, and Alfons Kemper. 2018. Learned cardinalities: Estimating correlated joins with deep learning. arXiv:1809.00677 (2018)."},{"key":"e_1_2_1_21_1","volume-title":"ICML. PMLR","author":"Koh Pang Wei","year":"2017","unstructured":"Pang Wei Koh and Percy Liang. 2017. Understanding black-box predictions via influence functions. In ICML. PMLR, 1885--1894."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/352958.352982"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407832"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.14778\/2850583.2850594"},{"key":"e_1_2_1_25_1","volume-title":"Proc. Int. Conf. Manag. Data","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 Proc. Int. Conf. Manag. Data 2021. 1275--1288."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342644"},{"key":"e_1_2_1_27_1","first-page":"1","article-title":"Deep Reinforcement Learning for Join Order Enumeration. In aiDM@SIGMOD 2018","volume":"3","author":"Marcus Ryan","year":"2018","unstructured":"Ryan Marcus and Olga Papaemmanouil. 2018. Deep Reinforcement Learning for Join Order Enumeration. In aiDM@SIGMOD 2018. ACM, 3:1--3:4.","journal-title":"ACM"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342646"},{"key":"e_1_2_1_29_1","volume-title":"Efficient Estimation of Word Representations in Vector Space. In ICLR 2013, Workshop Track Proceedings.","author":"Mikolov Tom\u00e1s","year":"2013","unstructured":"Tom\u00e1s Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Efficient Estimation of Word Representations in Vector Space. In ICLR 2013, Workshop Track Proceedings."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.5555\/3015812.3016002"},{"key":"e_1_2_1_31_1","first-page":"1049","article-title":"The Making of TPC-DS","volume":"6","author":"Nambiar Raghunath Othayoth","year":"2006","unstructured":"Raghunath Othayoth Nambiar and Meikel Poess. 2006. The Making of TPC-DS.. In VLDB, Vol. 6. 1049--1058.","journal-title":"VLDB"},{"key":"e_1_2_1_32_1","unstructured":"Razvan Pascanu Tomas Mikolov and Yoshua Bengio. 2013. On the difficulty of training recurrent neural networks. In ICML. 1310--1318."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.14778\/3503585.3503600"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/369275.369291"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.14778\/3436905.3436907"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368296"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.14778\/3485450.3485459"},{"key":"e_1_2_1_38_1","volume-title":"Proc. ACL","author":"Tai Kai Sheng","year":"2015","unstructured":"Kai Sheng Tai, Richard Socher, and Christopher D. Manning. 2015. Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks. In Proc. ACL 2015. 1556--1566."},{"key":"e_1_2_1_39_1","first-page":"3051","article-title":"Prediction Intervals for Learned Cardinality Estimation","volume":"2022","author":"Thirumuruganathan Saravanan","year":"2022","unstructured":"Saravanan Thirumuruganathan, Suraj Shetiya, Nick Koudas, and Gautam Das. 2022. Prediction Intervals for Learned Cardinality Estimation: An Experimental Evaluation. In ICDE 2022. 3051--3064.","journal-title":"An Experimental Evaluation. In ICDE"},{"key":"e_1_2_1_40_1","volume-title":"arXiv:1706.03762","author":"Vaswani Ashish","year":"2017","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. arXiv:1706.03762 (2017)."},{"key":"e_1_2_1_41_1","volume-title":"Highly-Performant Package for Graph Neural Networks. arXiv:1909.01315","author":"Wang Minjie","year":"2019","unstructured":"Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, Tianjun Xiao, Tong He, George Karypis, Jinyang Li, and Zheng Zhang. 2019. Deep Graph Library: A Graph-Centric, Highly-Performant Package for Graph Neural Networks. arXiv:1909.01315 (2019)."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.14778\/3461535.3461552"},{"key":"e_1_2_1_43_1","volume-title":"A Unified Transferable Model for ML-Enhanced DBMS. arXiv:2105.02418","author":"Wu Ziniu","year":"2021","unstructured":"Ziniu Wu, Peilun Yang, Pei Yu, Rong Zhu, Yuxing Han, Yaliang Li, Defu Lian, Kai Zeng, and Jingren Zhou. 2021. A Unified Transferable Model for ML-Enhanced DBMS. arXiv:2105.02418 (2021)."},{"key":"e_1_2_1_44_1","volume-title":"Reinforcement Learning with Tree-LSTM for Join Order Selection. In 2020 IEEE 36th International Conference on Data Engineering (ICDE). 1297--1308","author":"Yu Xiang","year":"2020","unstructured":"Xiang Yu, Guoliang Li, Chengliang Chai, and Nan Tang. 2020. Reinforcement Learning with Tree-LSTM for Join Order Selection. In 2020 IEEE 36th International Conference on Data Engineering (ICDE). 1297--1308."},{"key":"e_1_2_1_45_1","volume-title":"Automatic View Generation with Deep Learning and Reinforcement Learning. In ICDE","author":"Yuan Haitao","year":"2020","unstructured":"Haitao Yuan, Guoliang Li, Ling Feng, Ji Sun, and Yue Han. 2020. Automatic View Generation with Deep Learning and Reinforcement Learning. In ICDE 2020. 1501--1512."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.14778\/3529337.3529349"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2020.2994641"},{"key":"e_1_2_1_48_1","volume-title":"Survey on Learnable Databases: A Machine Learning Perspective. Big Data Res. 27","author":"Zou Benyuan","year":"2022","unstructured":"Benyuan Zou, Jinguo You, Quankun Wang, Xinxian Wen, and Lianyin Jia. 2022. Survey on Learnable Databases: A Machine Learning Perspective. Big Data Res. 27 (2022)."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3636218.3636235","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,3,5]],"date-time":"2024-03-05T12:06:42Z","timestamp":1709640402000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3636218.3636235"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,12]]},"references-count":48,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2023,12]]}},"alternative-id":["10.14778\/3636218.3636235"],"URL":"https:\/\/doi.org\/10.14778\/3636218.3636235","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2023,12]]},"assertion":[{"value":"2024-03-05","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}