Alto: Orchestrating Distributed Compound AI Systems with Nested Ancestry

Deepti Raghavan, Keshav Santhanam, Muhammad Shahir Rahman, Nayani Modugula, Luis Gaspar Schroeder +5 more
3/7/2024
cs.AIcs.CLcs.DC

No confident code implementation found for this paper.

Abstract

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%.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{raghavan2024alto,
  title  = {Alto: Orchestrating Distributed Compound AI Systems with Nested Ancestry},
  author = {Deepti Raghavan and Keshav Santhanam and Muhammad Shahir Rahman and Nayani Modugula and Luis Gaspar Schroeder and Maximilien Cura and Houjun Liu and Pratiksha Thaker and Philip Levis and Matei Zaharia},
  year   = {2024},
  eprint = {2403.04311},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.04311v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.04311.svg)](https://codeofpaper.com/paper/2403.04311)

Discussion