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

Alto:利用嵌套谱系编排分布式复合 AI 系统

Alto: Orchestrating Distributed Compound AI Systems with Nested Ancestry

Brown University(布朗大学);Nvidia(英伟达);Stanford University(斯坦福大学);UC Berkeley(加州大学伯克利分校);Carnegie Mellon University(卡内基梅隆大学)

Deepti Raghavan, Keshav Santhanam, Muhammad Shahir Rahman, Nayani Modugula, Luis Gaspar Schroeder, Maximilien Cura, Houjun Liu, Pratiksha Thaker, Philip Levis, Matei Zaharia

AI总结:

针对复合 AI 应用因数据粒度异构和流式拆分聚合而难以并行优化的问题,本文提出 Alto 框架,利用自动推断的嵌套谱系元数据跟踪与聚合数据,实现流式并行执行;四个应用相较 LangGraph 延迟改善或持平 10%–30%。

摘要:

复合 AI 应用会将生成式语言模型、文档检索器和嵌入模型等子组件链接在一起。在复合 AI 系统中应用并行和流水线等传统系统优化十分困难,因为每个组件在其所摄取数据的粒度和类型方面具有不同约束。中间计算过程中经常会生成新数据,而文本流可能被拆分为更小的独立片段(例如从文档拆分为句子),随后这些片段又可能在计算的后续阶段被重新聚合。由于这种复杂性,现有用于服务复合 AI 查询的系统未能充分利用并行和流水线机会。我们提出 Alto,这是一个通过流式处理和并行化自动优化复合 AI 查询执行的框架。Bento 引入了一种称为嵌套谱系的新抽象,这是一种元数据层次结构,使系统能够在复合 AI 应用各组件的异构约束之间正确跟踪部分输出并聚合数据。该元数据会从编程模型中自动推断,使开发者能够表达复杂的数据流模式,而无需手动考虑路由和聚合的细节。在 Alto 中实现的四个应用,其性能优于或持平于现有流行 AI 编程框架 LangGraph 中的实现。Alto 实现将延迟降低或保持在 10% 至 30% 的范围内。

英文摘要:

Compound AI applications chain together subcomponents such as generative language models, document retrievers, and embedding models. Applying traditional systems optimizations such as parallelism and pipelining in compound AI systems is difficult because each component has different constraints in terms of the granularity and type of data that it ingests. New data is often generated during intermediate computations, and text streams may be split into smaller, independent fragments (such as documents to sentences) which may then be re-aggregated at later parts of the computation. Due to this complexity, existing systems to serve compound AI queries do not fully take advantage of parallelism and pipelining opportunities. We present Alto, a framework that automatically optimizes execution of compound AI queries through streaming and parallelism. Bento introduces a new abstraction called nested ancestry, a metadata hierarchy that allows the system to correctly track partial outputs and aggregate data across the heterogeneous constraints of the components of compound AI applications. This metadata is automatically inferred from the programming model, allowing developers to express complex dataflow patterns without needing to reason manually about the details of routing and aggregation. Implementations of four applications in Alto outperform or match implementations in LangGraph, a popular existing AI programming framework. Alto implementations match or improve latency by between 10-30%.

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

↑