MARS: Efficient, Adaptive Co-Scheduling for Heterogeneous Agentic Systems

Yifei Wang, Hancheng Ye, Yechen Xu, Cong Guo, Chiyue Wei +6 more
4/14/2026
cs.OScs.DCcs.LG

Official code: Afterglow231/MARS_preview (12 stars, Apache-2.0, last commit 2026-06-05).

Abstract

Large language models (LLMs) are increasingly deployed as the execution core of autonomous agents rather than as standalone text generators. Agentic workloads induce a temporal shift from single-turn inference to multi-turn LLM-tool loops, and a spatial shift from chat-scale, GPU-only execution to repository-scale, GPU-CPU co-located execution. Consequently, coordinating heterogeneous resource demands of agentic execution has emerged as a critical system challenge. We design and implement MARS, an efficient and adaptive co-scheduling system that globally coordinates heterogeneous agentic workloads under coupled GPU-CPU resource pressure. By establishing holistic visibility across GPU inference and CPU tool execution via a unified information stream, an external control plane in MARS decouples admission from execution to prevent heterogeneous resource oversubscription. An internal agent-centric scheduler further minimizes the end-to-end critical path by prioritizing latency-sensitive continuations and adaptively retaining KV cache state only when warm resumption yields a latency benefit. Our evaluations show that MARS reduces end-to-end latency by up to 5.94x while maintaining nearly maximal system throughput. We further integrate MARS as the serving backend for the OpenHands coding agent framework, demonstrating its real-world effectiveness by accelerating end-to-end task completion time by up to 1.87x. Our source code is publicly available at https://github.com/Afterglow231/MARS_preview .

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Preview Code for MARS Paper

124C, C++Jun 4, 20264 months agoApache-2.0

Similar Papers

Cite this paper

@article{wang2026mars,
  title  = {MARS: Efficient, Adaptive Co-Scheduling for Heterogeneous Agentic Systems},
  author = {Yifei Wang and Hancheng Ye and Yechen Xu and Cong Guo and Chiyue Wei and Qinsi Wang and Dongting Li and Tingjun Chen and Hai "Helen" Li and Danyang Zhuo and Yiran Chen},
  year   = {2026},
  eprint = {2604.26963},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.26963v2}
}

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/2604.26963.svg)](https://codeofpaper.com/paper/2604.26963)

Discussion