BASE: Bridging the Gap between Cost and Latency for Query Optimization

被引:6
|
作者
Chen, Xu [1 ]
Wang, Zhen [2 ]
Liu, Shuncheng [1 ]
Li, Yaliang [2 ]
Zeng, Kai [2 ]
Ding, Bolin [2 ]
Zhou, Jingren [2 ]
Su, Han [1 ]
Zheng, Kai [1 ]
机构
[1] Univ Elect Sci & Technol China, Chengdu, Peoples R China
[2] Alibaba Grp, Hangzhou, Peoples R China
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2023年 / 16卷 / 08期
关键词
D O I
10.14778/3594512.3594525
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Some recent works have shown the advantages of reinforcement learning (RL) based learned query optimizers. These works often use the cost (i.e., the estimation of cost model) or the latency (i.e., execution time) as guidance signals for training their learned models. However, cost-based learning underperforms in latency and latency-based learning is time-intensive. In order to bypass such a dilemma, researchers attempt to transfer a learned value network from the cost domain to the latency domain. We recognize critical insights in cost/latency-based training, prompting us to transfer the reward function rather than the value network. Based on this idea, we propose a two-stage RL-based framework, BASE, to bridge the gap between cost and latency. After learning a policy based on cost signals in its first stage, BASE formulates transferring the reward function as a variant of inverse reinforcement learning. Intuitively, BASE learns to calibrate the reward function and updates the policy regarding the calibrated one in a mutually-improved manner. Extensive experiments exhibit the superiority of BASE on two benchmark datasets: Our optimizer outperforms traditional DBMS, using 30% less training time than SOTA methods. Meanwhile, our approach can enhance the efficiency of other learning-based optimizers.
引用
收藏
页码:1958 / 1966
页数:9
相关论文
共 50 条
  • [11] Bridging the Gap between Stochastic Gradient MCMC and Stochastic Optimization
    Chen, Changyou
    Carlson, David
    Gan, Zhe
    Li, Chunyuan
    Carin, Lawrence
    ARTIFICIAL INTELLIGENCE AND STATISTICS, VOL 51, 2016, 51 : 1051 - 1060
  • [12] Bridging the gap between heuristics and optimization: Capacity expansion case
    Liu, ML
    Sahinidis, NV
    AICHE JOURNAL, 1997, 43 (09) : 2289 - 2299
  • [13] Material optimization:: bridging the gap between conceptual and preliminary design
    Hörnlein, HREM
    Kocvara, M
    Werner, R
    AEROSPACE SCIENCE AND TECHNOLOGY, 2001, 5 (08) : 541 - 554
  • [14] Somali Information Retrieval Corpus: Bridging the Gap between Query Translation and Dedicated Language Resources
    Badel, Abdisalam Mahamed
    Zhong, Ting
    Tai, Wenxin
    Zhou, Fan
    2023 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING, EMNLP 2023, 2023, : 7463 - 7469
  • [15] EC-Store: Bridging the Gap Between Storage and Latency in Distributed Erasure Coded Systems
    Abebe, Michael
    Daudjee, Khuzaima
    Glasbergen, Brad
    Tian, Yuanfeng
    2018 IEEE 38TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS (ICDCS), 2018, : 255 - 266
  • [16] Bridging the gap: effect of text query reformulation in multimodal retrieval
    Datta, Deepanwita
    Singh, Sanjay K.
    Chowdary, C. Ravindranath
    MULTIMEDIA TOOLS AND APPLICATIONS, 2017, 76 (21) : 22871 - 22888
  • [17] Bridging the gap: effect of text query reformulation in multimodal retrieval
    Deepanwita Datta
    Sanjay K. Singh
    C. Ravindranath Chowdary
    Multimedia Tools and Applications, 2017, 76 : 22871 - 22888
  • [18] MODULES AND SUBASSEMBLIES - BRIDGING COST-PERFORMANCE GAP BETWEEN COMPONENTS AND SYSTEMS
    SCHREIER, P
    EDN MAGAZINE-ELECTRICAL DESIGN NEWS, 1977, 22 (13): : 192 - 195
  • [19] Cost-Oriented Prediction Intervals: On Bridging the Gap Between Forecasting and Decision
    Zhao, Changfei
    Wan, Can
    Song, Yonghua
    IEEE TRANSACTIONS ON POWER SYSTEMS, 2022, 37 (04) : 3048 - 3062
  • [20] Bridging the Gap Between Research and IT
    Hahn, Matt
    AMERICAN LABORATORY, 2011, 43 (04) : 4 - +