arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.13149cs.DBcs.AI
收藏

用LSTM网络逼近聚合SQL网络

Approximating Aggregated SQL Queries With LSTM Networks

Ben-Gurion University of the Negev(内盖夫本-古里安大学)

Nir Regev, Lior Rokach, Asaf Shabtai

摘要:

尽管在数据技术方面不断投资,但查询数据的延迟仍然构成了重大挑战。现代分析解决方案需要近乎实时的响应能力,以使其具有交互性并支持自动化处理。当前的技术(Hadoop,Spark,Dataflow)扫描数据集以执行查询。他们专注于提供可扩展的数据存储,以最大限度地提高任务执行速度。我们认为,这些解决方案未能提供足够的互动水平,因为它们依赖于不断访问数据。在本文中,我们提出了一种查询近似的方法,也被称为近似查询处理(AQP),减少了需要在推理(查询计算)扫描数据,从而使一个快速的查询处理工具。我们使用LSTM网络来学习查询与其结果之间的关系,并为预测查询结果提供快速推理层。我们的方法(称为“Hunch”)产生了一个轻量级的LSTM网络,它提供了高查询吞吐量。我们使用12个数据集评估了我们的方法,并从查询延迟,模型权重和准确性角度与最先进的AQP引擎(VerdictDB,BlinkDB)进行了比较。结果表明,该方法预测查询结果的归一化均方根误差(NRMSE)在1%~ 4%之间,在大多数数据集上优于基准测试。此外,我们的方法能够在一秒钟内预测多达120,000个查询(一起流),并且单个查询延迟不超过2 ms。

英文摘要:

Despite continuous investments in data technologies, the latency of querying data still poses a significant challenge. Modern analytic solutions require near real-time responsiveness both to make them interactive and to support automated processing. Current technologies (Hadoop, Spark, Dataflow) scan the dataset to execute queries. They focus on providing a scalable data storage to maximize task execution speed. We argue that these solutions fail to offer an adequate level of interactivity since they depend on continual access to data. In this paper we present a method for query approximation, also known as approximate query processing (AQP), that reduce the need to scan data during inference (query calculation), thus enabling a rapid query processing tool. We use LSTM network to learn the relationship between queries and their results, and to provide a rapid inference layer for predicting query results. Our method (referred as ``Hunch``) produces a lightweight LSTM network which provides a high query throughput. We evaluated our method using twelve datasets and compared to state-of-the-art AQP engines (VerdictDB, BlinkDB) from query latency, model weight and accuracy perspectives. The results show that our method predicted queries' results with a normalized root mean squared error (NRMSE) ranging from approximately 1\% to 4\% which in the majority of our data sets was better then the compared benchmarks. Moreover, our method was able to predict up to 120,000 queries in a second (streamed together), and with a single query latency of no more than 2ms.

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

↑