arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2206.00136cs.DBcs.LG
收藏

机器学习预测算法的端到端优化

End-to-end Optimization of Machine Learning Prediction Queries

Microsoft(微软)

Kwanghyun Park, Karla Saur, Dalitso Banda, Rathijit Sen, Matteo Interlandi, Konstantinos Karanasos

摘要:

预测查询广泛用于各行各业,以执行高级分析并从数据中获取见解。它们包括数据处理部分(例如,用于连接、过滤、清理、特征化数据集)和调用一个或多个训练模型以执行预测的机器学习(ML)部分。到目前为止,这些部分都是孤立地优化的,留下了大量未开发的优化机会。我们提出了Raven,一个用于优化预测查询的生产就绪系统。Raven遵循企业架构趋势,配置数据和ML运行时。它依赖于一个统一的中间表示,在单个图结构中捕获数据和ML操作符,以解锁两个优化系列。首先,它采用逻辑优化,在数据部分(以及底层数据的属性)和ML部分之间传递信息,以相互优化。其次,它引入了逻辑到物理的转换,允许操作符在不同的运行时(关系,ML和DNN)和硬件(CPU,GPU)上执行。新颖的数据驱动优化确定了用于查询的每个部分的运行时,以实现最佳性能。我们的评估表明,Raven将Apache Spark和SQL Server上的预测查询性能分别提高了13.1倍和330倍。对于GPU加速有利的复杂模型,Raven提供了最高8倍于最先进系统的加速。

英文摘要:

Prediction queries are widely used across industries to perform advanced analytics and draw insights from data. They include a data processing part (e.g., for joining, filtering, cleaning, featurizing the datasets) and a machine learning (ML) part invoking one or more trained models to perform predictions. These parts have so far been optimized in isolation, leaving significant opportunities for optimization unexplored. We present Raven, a production-ready system for optimizing prediction queries. Raven follows the enterprise architectural trend of collocating data and ML runtimes. It relies on a unified intermediate representation that captures both data and ML operators in a single graph structure to unlock two families of optimizations. First, it employs logical optimizations that pass information between the data part (and the properties of the underlying data) and the ML part to optimize each other. Second, it introduces logical-to-physical transformations that allow operators to be executed on different runtimes (relational, ML, and DNN) and hardware (CPU, GPU). Novel data-driven optimizations determine the runtime to be used for each part of the query to achieve optimal performance. Our evaluation shows that Raven improves performance of prediction queries on Apache Spark and SQL Server by up to 13.1x and 330x, respectively. For complex models where GPU acceleration is beneficial, Raven provides up to 8x speedup compared to state-of-the-art systems.

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

↑