Keep Your Friends Close:利用 Affinity Groups 加速 AI 推理工作流
Keep Your Friends Close: Leveraging Affinity Groups to Accelerate AI Inference Workflows
AI总结:
针对AI推理工作流中事件触发导致数据访问模式变化、传统缓存和调度技术受限的问题,提出affinity grouping机制以表达数据访问相关性并协调管理服务器集群数据,实验表明其在工作负载和规模扩展增加时能保持更低延迟且仅需少量代码更改。
摘要:
AI 推理工作流通常被构建为由事件触发的 AI 程序的流水线或图。随着事件的发生,AI 在时间压力下执行推理或分类任务以进行响应或采取某些行动。在其他流式处理设置中减少延迟的标准技术(如缓存和优化驱动的调度)价值有限,因为 AI 数据访问模式(模型、数据库)会根据触发事件而变化:这与传统流式处理有很大不同。在这项工作中,我们提出了一种新颖的 affinity grouping 机制,使开发者更容易表达特定应用的数据访问相关性,从而在托管流式推理任务的服务器集群中实现对数据对象的协调管理。因此,我们的提议与缓存和调度等其他方法是互补的。实验证实了标准技术的局限性,同时表明所提出的机制能够在工作负载和规模扩展增加时保持显著更低的延迟,且仅需少量的代码更改。
英文摘要:
AI inference workflows are typically structured as a pipeline or graph of AI programs triggered by events. As events occur, the AIs perform inference or classification tasks under time pressure to respond or take some action. Standard techniques that reduce latency in other streaming settings (such as caching and optimization-driven scheduling) are of limited value because AI data access patterns (models, databases) change depending on the triggering event: a significant departure from traditional streaming. In this work, we propose a novel affinity grouping mechanism that makes it easier for developers to express application-specific data access correlations, enabling coordinated management of data objects in server clusters hosting streaming inference tasks. Our proposals are thus complementary to other approaches such as caching and scheduling. Experiments confirm the limitations of standard techniques, while showing that the proposed mechanism is able to maintain significantly lower latency as workload and scale-out increase, and yet requires only minor code changes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。