Kairos: Low-latency Multi-Agent Serving with Shared LLMs and Excessive Loads in the Public Cloud

Jinyuan Chen, Jiuchen Shi, Quan Chen, Minyi GuoarXiv 2025 · DOI

Abstract

Modern AI applications increasingly rely on multi-agent systems where specialized agents collaborate to solve complex tasks. However, serving these applications in public clouds using shared Large Language Model (LLM) instances introduces significant latency due to "latency blindness" and "memory ignorance" in traditional schedulers. This paper presents Kairos, a novel multi-agent orchestration system that reconstructs application call graphs and employs workflow-aware priority scheduling alongside memory-aware dispatching. Evaluation across diverse benchmarks shows that Kairos reduces end-to-end latency by up to 28.4% compared to state-of-the-art systems, and up to 72.8% in high-load co-location scenarios.

What Problem Does This Paper Address?

In public cloud environments, multiple specialized agents (e.g., a Router, a Math Expert, and a Writer) often share the same underlying LLM instances. The authors identify two critical inefficiencies in current serving architectures:

  1. Latency Blindness: Different agents exhibit vastly different execution characteristics. For instance, a "Router" might require only a few tokens, while a "Math" agent generates long, complex proofs. Current first-come, first-served (FCFS) schedulers treat all requests identically, leading to head-of-line blocking where short, critical requests are delayed by massive ones.
  2. Memory Ignorance: LLM inference is constrained by GPU memory (KV cache). Standard round-robin load balancers do not account for the specific memory footprint of an agent's task. This leads to memory overloads and frequent "preemption" (pausing and restarting tasks), which spikes latency and wastes compute resources.
Current inefficiencies in multi-agent LLM serving, including lack of workflow awareness and memory-ignorant dispatching.

Methods

Kairos introduces a three-layered architecture to optimize multi-agent serving:

  • Workflow Orchestrator: Kairos automatically reconstructs the application's "call graph" online. By using system identifiers like Message IDs and Upstream Names combined with a sweep-line algorithm, it distinguishes between parallel and sequential agent calls without requiring manual developer definitions.
  • Workflow-Aware Priority Scheduler: Rather than predicting individual request latencies, Kairos analyzes the statistical distribution of latency for each agent role. It uses Wasserstein Distance and Multidimensional Scaling (MDS) to map these distributions onto a 1D priority space. Requests from agents closer to completing the overall workflow are prioritized to minimize total queuing time.
  • Memory-Aware Time-Slot Dispatcher: Kairos models GPU memory usage as a linear function over time. It utilizes a time-slot packing strategy, discretizing the future timeline to fit incoming requests into instances with the lowest expected peak memory usage, thereby proactively preventing Out-of-Memory (OOM) errors.

Datasets and Evaluation

The system was evaluated using three representative multi-agent benchmarks:

  • Question Answering (QA): A router-based workflow sending queries to Humanities or Math agents (using GSM8K, MMLU, etc.).
  • Report Generation (RG): A sequential workflow involving Researcher and Writer agents (using TruthfulQA, NCD).
  • Code Generation (CG): A complex feedback loop with Product Managers, Architects, Engineers, and QA Engineers (using HumanEval, MBPP).

Key Insights and Ideas

Role-Based Stability

A core insight of Kairos is that while individual prompt lengths are unpredictable, an agent's role is a highly stable predictor of its LLM behavior. As shown in the latency distributions, roles like "HumanitiesAgent" or "Architect" have distinct, consistent profiles that can be exploited for smarter scheduling.

Latency distributions across different agent roles, demonstrating the stability of execution patterns based on agent type.

Prioritizing Completion

Traditional systems prioritize based on arrival time. Kairos argues that prioritizing requests closest to completion (shortest remaining execution time) is the optimal strategy for reducing the aggregate latency experienced by the user.

Key Results

Implemented on top of vLLM and tested on NVIDIA A40 GPUs, Kairos demonstrated significant performance gains:

  • Latency Reduction: Kairos achieved a 17.8% to 28.4% reduction in end-to-end latency compared to systems like Parrot and Ayo.
  • Co-location Efficiency: In production-like scenarios where multiple applications share the same LLM, Kairos reduced average latency by up to 72.8%.
  • Preemption Avoidance: Under heavy load (8 req/s), Kairos's memory-aware dispatcher virtually eliminated the 18.4% preemption rate seen in standard round-robin systems.

Limitations and Future Work

While effective, Kairos currently relies on historical data, which may lead to "cold-start" inefficiencies during the initial minutes of a new deployment. Additionally, the current 0.5-second time-slot granularity might need further refinement for extremely high-speed environments. Future research could also explore how Kairos adapts to heterogeneous hardware clusters with varying GPU capacities.

Summary updated

BibTeX
@misc{chen2025kairos,
  author = {Jinyuan Chen and Jiuchen Shi and Quan Chen and Minyi Guo},
  title = {{Kairos: Low-latency Multi-Agent Serving with Shared LLMs and Excessive Loads in the Public Cloud}},
  year = {2025},
  eprint = {2508.06948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.06948},
}
Figure