# Reducing Batch Makespan for LLM Agent Workloads through Inference-Environment Coordination

DevFeed: [Reducing Batch Makespan for LLM Agent Workloads through Inference-Environment Coordination](<https://devfeed.tech/articles/reducing-batch-makespan-for-llm-agent-workloads-through-inference-environment-coordination-131551.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.16661>)

Author: Wei Feng, Meiling Chen, Boxiao Chen, Lu Liu, Bin Zi, Libin Ye, Xingyu Lu, Lei Xu, Jun Zhou

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [admission](<https://devfeed.tech/tags/admission.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-tasks](<https://devfeed.tech/tags/agent-tasks.md>), [batch](<https://devfeed.tech/tags/batch.md>), [cache](<https://devfeed.tech/tags/cache.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [development](<https://devfeed.tech/tags/development.md>), [environment](<https://devfeed.tech/tags/environment.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [evaluations](<https://devfeed.tech/tags/evaluations.md>), [execution](<https://devfeed.tech/tags/execution.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [inference](<https://devfeed.tech/tags/inference.md>), [interaction](<https://devfeed.tech/tags/interaction.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-inference](<https://devfeed.tech/tags/llm-inference.md>), [llm-training](<https://devfeed.tech/tags/llm-training.md>)

## AI overview

The paper reports that coordinating LLM inference with environment execution reduced agent-task batch makespan by 10.4% to 65.0% across four benchmarks, with evaluation scores remaining aligned. Its methods include workload-based GPU-memory allocation between KV cache and recurrent state for hybrid LLMs; trajectory-aware routing and scheduling to encourage cache reuse while balancing workers; and, when environment capacity is constrained, decoupling sample admission from execution and using Chain-Advancing Action Scheduling (CAAS) to prioritize longer chains based on observed progress. Controlled replay uses actual inference with recorded environment responses and durations to isolate optimizations. Live evaluations used Ling-3.0-Flash and Ling-3.1-Flash; the methods were also applied to Ling-3.x training and evaluation workflows.

## Source excerpt

arXiv:2611.16661v1 Announce Type: new 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.