InferF: AI/ML推断的声明式因子化 over joins
InferF: Declarative Factorization of AI/ML Inferences over Joins
AI总结:
InferF通过声明式因子化技术优化多路连接上的AI/ML推断,实现11.3倍速度提升。
摘要:
现实中的AI/ML工作流经常对来自多个数据集的连接特征向量应用推断计算。为避免连接输出中重复数据记录导致的冗余AI/ML计算,已提出因子化ML将ML计算分解为子计算以在每个规范化数据集上执行。然而,关于因子化ML如何影响多路连接上的AI/ML推断尚缺乏充分讨论。为解决这些限制,我们提出了一种新的声明式InferF系统,专注于将任意可分析表达式表示的推断工作流的因子化 over多路连接。我们将问题形式化为能够灵活地将部分因子化计算推送到连接树中的合格节点,以最小化整体推断计算和连接成本,并提出两种算法来解决该问题:(1) 一种基于每个节点成本函数的贪心算法,该函数估计如果将一部分因子化计算推送到节点时对整体延迟的影响;(2) 一种遗传算法,用于迭代地枚举和评估有前途的因子化计划。我们将在Meta开源的数据库引擎Velox上实现InferF,评估其在真实数据集上的性能,观察到高达11.3倍的速度提升,并系统总结了决定因子化ML能否受益于AI/ML推断工作流的因素。
英文摘要:
Real-world AI/ML workflows often apply inference computations to feature vectors joined from multiple datasets. To avoid the redundant AI/ML computations caused by repeated data records in the join's output, factorized ML has been proposed to decompose ML computations into sub-computations to be executed on each normalized dataset. However, there is insufficient discussion on how factorized ML could impact AI/ML inference over multi-way joins. To address the limitations, we propose a novel declarative InferF system, focusing on the factorization of arbitrary inference workflows represented as analyzable expressions over the multi-way joins. We formalize our problem to flexibly push down partial factorized computations to qualified nodes in the join tree to minimize the overall inference computation and join costs and propose two algorithms to resolve the problem: (1) a greedy algorithm based on a per-node cost function that estimates the influence on overall latency if a subset of factorized computations is pushed to a node, and (2) a genetic algorithm for iteratively enumerating and evaluating promising factorization plans. We implement InferF on Velox, an open-sourced database engine from Meta, evaluate it on real-world datasets, observed up to 11.3x speedups, and systematically summarized the factors that determine when factorized ML can benefit AI/ML inference workflows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。