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

Maliva:使用机器学习重写时间约束下的可视化脚本

Maliva: Using Machine Learning to Rewrite Visualization Queries Under Time Constraints

Qiushi Bai, Sadeem Alsudais, Chen Li, Shuang Zhao

摘要:

我们考虑数据可视化系统,其中中间件层将前端请求转换为SQL查询,并将其转换为后端数据库以计算可视化结果。我们研究的问题,回答可视化请求在有限的时间限制内,由于响应要求。我们探索的优化选项重写原始查询添加提示和/或做近似,使总时间内的时间约束。我们开发了一种新的中间件解决方案,称为Maliva基于机器学习(ML)技术。它应用马尔可夫决策过程(MDP)模型来决定如何重写查询,并使用训练实例来学习代理明智地为在线请求做出一系列决策。我们给出了一个完整的技术规范,包括如何构建一个MDP模型,如何训练代理,以及如何使用近似重写选项。我们在真实数据集和合成数据集上的实验表明,Maliva在交互式服务请求的概率和查询执行时间方面的表现明显优于不做任何重写的基线解决方案。

英文摘要:

We consider data-visualization systems where a middleware layer translates a frontend request to a SQL query to a backend database to compute visual results. We study the problem of answering a visualization request within a limited time constraint due to the responsiveness requirement. We explore the optimization options of rewriting an original query by adding hints and/or doing approximations so that the total time is within the time constraint. We develop a novel middleware solution called Maliva based on machine learning (ML) techniques. It applies the Markov Decision Process (MDP) model to decide how to rewrite queries and uses training instances to learn an agent to make a sequence of decisions judiciously for an online request. We give a full specification of the technique, including how to construct an MDP model, how to train an agent, and how to use approximating rewrite options. Our experiments on both real and synthetic datasets show that Maliva performs significantly better than a baseline solution that does not do any rewriting, in terms of both the probability of serving requests interactively and query execution time.

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

↑