通过推理环境协调缩短LLM智能体工作负载的批处理完工时间
研究论文 · 2026/11/17
针对LLM智能体任务批处理中推理与环境交互交替的特点,提出协调优化以减少批完成时间。优化包括:基于工作负载的资源模型指导混合LLM的GPU内存分配与并发参考;轨迹感知路由与调度促进缓存复用并平衡负载;在环境容量受限时,解耦样本准入与环境执行,并引入链推进动作调度(CAAS)以缩短批尾。在BFCL、SWE-bench Multilingual、WideSearch和MCP-Atlas基准上,使用Ling-3.0-Flash和Ling-3.1-Flash的实时评估显示批完成时间减少10.4%至65.0%,评估分数保持一致。这些方法已应用于Ling-3.x模型系列的训练和评估工作流,加速了模型开发周期。
该文章针对LLM智能体任务批处理效率问题,提出了系统的协调优化方法,并在多个基准上验证了显著的批完成时间减少,且已应用于实际模型开发流程,对提升LLM训练和开发效率具有实用价值。
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.