arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.37129cs.AI
收藏

EngineTailor:面向智能体驱动优化的最小完整推理引擎

EngineTailor: Minimal Complete Inference Engines for Agent-Driven Optimization

Beihang University(北京航空航天大学);Fudan University(复旦大学);Infinigence AI(智源人工智能);Shanghai Jiao Tong University(上海交通大学);Tsinghua University(清华大学)

Haiyan Qin, Rui Wan, Jinchen Han, Shulin Zeng, Guohao Dai, Yu Wang, Wang Kang

AI总结:

EngineTailor为各模型-设备-工作负载目标构建最小完整推理引擎,通过Manager与Worker智能体协作优化,在多场景下较vLLM、SGLang等框架显著提升了推理性能。

摘要:

vLLM和SGLang等生产级推理框架覆盖了模型、设备、调度器和工作负载,其广泛的功能形成了庞大且耦合的优化空间:检索可编辑片段无法为编码智能体提供完整执行路径的连贯视图,也无法了解变更的端到端影响。EngineTailor则为每个模型-设备-工作负载目标提供了最小但完整的推理引擎,它排除了无关的服务功能,同时保留了目标的完整执行和验证路径。Manager智能体将测得的瓶颈转化为新Worker智能体的有界任务,而受保护的接受平面仅允许通过正确性验证并达到目标特定性能标准的独立变更。经验证的变更会强化当前目标引擎,可复用的实现及其适用条件则会积累在共享基底中,用于后续目标的重新验证。我们评估了7个目标,涵盖自回归LLM、具身VLA和交互式世界模型推理,其中4个面向边缘设备。在相同智能体配置下,针对匹配的Qwen3-4B/SM100 BF16任务,EngineTailor在匹配令牌生延迟后获得了经验证的预填充增益,而5次直接使用SGLang的尝试均未获得可接受的改进。在Jetson AGX Orin上,经接受的严格BF16 Pi0.5产品相对于PhyAI将端到端动作延迟降低了43.0%(190.3对比333.9毫秒)。在SM100上,为Qwen重新验证固定合约图边界使并发数16(c16)吞吐量从3078.6令牌/秒提升至4654.8令牌/秒(增幅51.2%)。这些结果表明,目标范围的引擎可在不丢弃可复用实现知识的情况下演进。源代码和工件可在此https URL获取。

英文摘要:

Production inference frameworks such as vLLM and SGLang span models, devices, schedulers, and workloads. Their breadth creates a large, coupled optimization surface: retrieving editable fragments does not give a coding agent a coherent view of the complete execution path or a change's end-to-end effects. EngineTailor instead provides each model-device-workload target with a minimal but complete inference engine. It excludes unrelated serving functionality while retaining the target's complete execution and verification path. A Manager Agent turns measured bottlenecks into bounded tasks for fresh Worker Agents, while a protected acceptance plane admits only independently verified changes that pass correctness and clear a target-specific performance bar. Verified changes strengthen the current target engine, while reusable implementations and their applicability conditions accumulate in a shared substrate for re-qualification on later targets. We evaluate seven targets spanning autoregressive LLM, embodied VLA, and interactive world-model inference; four are edge-oriented. On a matched Qwen3-4B/SM100 BF16 task under the same agent configuration, EngineTailor obtains verified prefill gains after matching token-generation latency, whereas five direct SGLang attempts yield no admitted improvement. On Jetson AGX Orin, the accepted strict-BF16 Pi0.5 product reduces end-to-end action latency by 43.0% relative to PhyAI (190.3 versus 333.9 ms). On SM100, re-qualifying a fixed-contract graph boundary for Qwen raises concurrency-16 (c16) throughput from 3078.6 to 4654.8 tokens/s (51.2%). These results show that target-scoped engines can evolve without discarding reusable implementation knowledge. Source code and artifacts are available at this https URL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑