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

Willump:一个统计感知的机器学习推理端到端优化器

Willump: A Statistically-Aware End-to-end Optimizer for Machine Learning Inference

Stanford University(斯坦福大学)

Peter Kraft, Daniel Kang, Deepak Narayanan, Shoumik Palkar, Peter Bailis, Matei Zaharia

摘要:

ML推理系统目前已被广泛部署,但它们通常使用为传统数据服务工作负载设计的技术来优化ML推理工作负载,并错过了利用ML统计性质的关键机会。在本文中,我们介绍了Willump,一个ML推理优化器,它引入了两个针对ML应用程序的自动优化,其性能瓶颈是特征计算。首先,Willump自动级联分类查询的特征计算:Willump仅使用通过ML模型性能的经验观察选择的高价值,低成本特征对大多数数据输入进行分类,将查询性能提高了5倍,而没有统计上显著的准确性损失。其次,Willump准确地近似ML top-K查询,使用自动构建的近似模型丢弃低得分输入,然后使用更强大的模型对其余部分进行排名,以最小的准确性损失将查询性能提高10倍。Willump会自动调整这些优化参数,以最大限度地提高查询性能,同时满足准确性目标。此外,Willump通过编译器优化来补充这些统计优化,以自动生成ML应用程序的快速推理代码。我们表明,Willump将从主要数据科学竞赛中策划的真实世界ML推理管道的端到端性能提高了16倍,而没有统计上显著的准确性损失。

英文摘要:

Systems for ML inference are widely deployed today, but they typically optimize ML inference workloads using techniques designed for conventional data serving workloads and miss critical opportunities to leverage the statistical nature of ML. In this paper, we present Willump, an optimizer for ML inference that introduces two statistically-motivated optimizations targeting ML applications whose performance bottleneck is feature computation. First, Willump automatically cascades feature computation for classification queries: Willump classifies most data inputs using only high-value, low-cost features selected through empirical observations of ML model performance, improving query performance by up to 5x without statistically significant accuracy loss. Second, Willump accurately approximates ML top-K queries, discarding low-scoring inputs with an automatically constructed approximate model and then ranking the remainder with a more powerful model, improving query performance by up to 10x with minimal accuracy loss. Willump automatically tunes these optimizations' parameters to maximize query performance while meeting an accuracy target. Moreover, Willump complements these statistical optimizations with compiler optimizations to automatically generate fast inference code for ML applications. We show that Willump improves the end-to-end performance of real-world ML inference pipelines curated from major data science competitions by up to 16x without statistically significant loss of accuracy.

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

↑