Reducing Batch Makespan for LLM Agent Workloads through Inference-Environment Coordination
Wei Feng, Meiling Chen, Boxiao Chen, Lu Liu, Bin Zi, Libin Ye, Xingyu Lu, Lei Xu, Jun Zhou
Abstract
Efficient batch execution of agent tasks is critical to LLM training and development workflows, including benchmark evaluation, synthetic-data generation, and RL rollouts. Since these tasks alternate between LLM inference and environment interaction, we present coordinated optimizations to reduce batch makespan, the time required to complete all tasks in a batch. For hybrid LLMs, a workload-based resource model guides GPU-memory allocation between key-value (KV) cache and recurrent state and provides a reference sample concurrency to exploit parallelism while limiting recomputation. Trajectory-aware routing and scheduling promote cache reuse while balancing worker load. Under constrained environment capacity, we decouple sample admission from environment execution and introduce Chain-Advancing Action Scheduling (CAAS), which prioritizes long chains using observed progress to shorten the batch tail. Controlled replay combines actual inference with recorded environment responses and durations for ablations of individual optimizations. Live evaluations with Ling-3.0-Flash and Ling-3.1-Flash on the BFCL, SWE-bench Multilingual, WideSearch, and MCP-Atlas benchmarks demonstrate makespan reductions of 10.4% to 65.0%, while evaluation scores remain aligned. Furthermore, these methods have been successfully applied to training and evaluation workflows for the Ling-3.x model series, accelerating the model-development cycle.
Create a lesson
Related papers
Coordinating Distributed AI Servers with Industrial Loads to Reduce Grid-Interconnection Needs
Shared title terminology · Ruike Lyu, Bolun Xu
Ostinato: Fast CPU-GPU MoE Inference for Local Agents via Resident Experts in Every Forward Pass
Shared title terminology · Junning Zhu
Firepool: Brokering Warm GPU Capacity for Agentic and RL Workloads at LinkedIn
Shared title terminology · Ankit Goyal, Santosh Jha, Zhuo Zhi et al.
SEER: A Scalable Event-Driven Runtime for Parallel Execution of Multi-Agent Reinforcement Learning Environments
Shared title terminology · Jiming Su, Feng Zhu, Yuhao Xiao et al.
Workload-Static Optical Circuit Switching For Scalable LLM Inference Decode
Shared title terminology · Maximilian Thürmer, Nicolas Scotto di Perto, Eloise Stein et al.
IsoMoE: Placement-Invariant Hybrid CPU-GPU MoE Inference with Lossless 12-bit Experts
Shared title terminology · Hang Gu, Teng Wang, Zhendong Zheng et al.