# AgentWeave: Efficient Distributed Agent Serving via Flow Decomposition

*Kaibin Guo, Pengtu Li, Zicong Hong, Zhiyuan Fang, Wuhui Chen, Rachid Guerraoui, Anne-marie Kermarrec*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151244) · [Open on the map](../papers.html#p151244)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [LLM Agent Orchestration](../pgroup/79.md) · Type: system or tooling · Keywords: distributed agent serving, aggregated architecture, flow decomposition, request blocking, throughput, latency

Areas: [AI Agents](../areas/agents.md) › Agent Systems and Interactions › Multi-Agent Coordination

## Summary
AgentWeave introduces flow decomposition and a flow-adaptive scheduler to eliminate pipeline bubbles and request blocking in aggregated agent serving, achieving up to 1.81× throughput and up to 2.45× lower latency.

## Explained to a 5-year-old
Agent apps are like little helpers that ask questions and use tools. When many people use them at the same time, slow helpers make everyone wait. The new system cuts big tasks into tiny pieces so short tasks can go ahead. This helps everyone finish faster and reduces waiting time. It also balances the work so nothing gets stuck.

## Explained to a 5-year-old, longer
Agent applications are like digital assistants that can ask questions and call tools to help solve problems. In a distributed system, different parts of the assistant can run on different machines to work faster together. Some systems put each part on its own device, which can cause slow parts to hold up the whole process, creating pipeline bubbles. Another idea is to put all parts on every device, so no device sits idle, but then short tasks get stuck behind long ones and new tasks must wait for the whole batch to finish. The new system solves this by breaking long tasks into many small pieces, called flow decomposition, so short tasks can move ahead without waiting. It also uses a smart scheduler that decides how to split tasks to get the best speed while keeping the extra work low. Experiments on four different agent applications show the system improves speed by almost two times, cuts average waiting time by more than two times, and reduces the worst-case waiting time by about two times compared to existing methods.

## For a technical reader
The system adopts an aggregated architecture where all agent modules are co-deployed across devices to avoid idle pipeline stages. It introduces flow decomposition to split long agent requests into fine-grained units, allowing short and newly arriving requests to progress independently. A flow-adaptive scheduler balances the throughput gains from decomposition against its scheduling overhead. Evaluations on four representative agent applications demonstrate up to 1.81× higher throughput and up to 2.45× lower average latency over state-of-the-art baselines.

## Problem
Distributed agent serving suffers from pipeline bubbles when module latencies are imbalanced, and from request blocking when short tasks are forced to wait for long ones and new arrivals must wait for the whole batch to finish.

## Method
The approach uses an aggregated architecture that co-deploys all modules across devices, decomposes long requests into fine-grained execution units, and employs a flow-adaptive scheduler that balances decomposition benefits against scheduling overhead.

## Results
The approach achieves 1.81× higher throughput, 2.45× lower average latency, and 2.04× lower P90 latency compared to state-of-the-art baselines across four agent applications.

## Contributions
It proposes an aggregated serving architecture with flow decomposition and a flow-adaptive scheduler to eliminate pipeline bubbles and request blocking, and validates the solution on four representative agent applications.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151244)
