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

面向表格数据的高效多阶段推理

Efficient Multi-stage Inference on Tabular Data

Stanford University(斯坦福大学);Meta

Daniel S Johnson, Igor L Markov

AI总结:

针对机器学习实时推理的网络延迟与CPU开销瓶颈,提出将简化推理算法嵌入产品代码的多阶段推理方案,结合AutoML应用于商用平台后显著降低延迟、资源消耗与网络通信量。

摘要:

许多机器学习应用和产品基于中等规模输入数据训练,但在实时推理阶段遭遇瓶颈。在搭建机器学习系统时,传统做法倾向于将机器学习代码隔离为独立服务,由产品代码通过远程过程调用(RPC)API 进行查询。这种方式明晰了整体软件架构,且通过对机器学习内部逻辑进行抽象简化了产品代码。然而,这种分离会引入网络延迟,并带来额外的CPU开销。因此,我们简化推理算法并将其嵌入产品代码,以减少网络通信。针对公开数据集以及一个处理表格数据的高性能实时平台,我们证明超过半数的输入通常适用于此类优化,其余输入则可由原始模型处理。通过将我们的优化方法与AutoML(自动机器学习)同时应用于训练和推理阶段,在一个每秒处理数百万次实时决策的商用端到端机器学习平台上,我们将推理延迟降低了1.3倍,CPU资源消耗减少30%,应用前端与机器学习后端之间的网络通信量降低约50%。

英文摘要:

Many ML applications and products train on medium amounts of input data but get bottlenecked in real-time inference. When implementing ML systems, conventional wisdom favors segregating ML code into services queried by product code via Remote Procedure Call (RPC) APIs. This approach clarifies the overall software architecture and simplifies product code by abstracting away ML internals. However, the separation adds network latency and entails additional CPU overhead. Hence, we simplify inference algorithms and embed them into the product code to reduce network communication. For public datasets and a high-performance real-time platform that deals with tabular data, we show that over half of the inputs are often amenable to such optimization, while the remainder can be handled by the original model. By applying our optimization with AutoML to both training and inference, we reduce inference latency by 1.3x, CPU resources by 30%, and network communication between application front-end and ML back-end by about 50% for a commercial end-to-end ML platform that serves millions of real-time decisions per second.

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

↑