arXiv:2607.20468cs.AI2026-07被引 2

测试AI代理在开放任务中优化大模型推理速度的能力,发现其创新性不足。

InferenceBench: A Benchmark for Open-Ended LLM Inference Optimization by AI Agents

论文配图:InferenceBench: A Benchmark for Open-Ended LLM Inference Optimization by AI Agents
图 1 · 摘自论文原文
  • 设计开放式基准,要求代理用单张H100 GPU优化大模型推理性能
  • 最高提速11.53倍,但远低于人工调参效果,仍依赖单一框架
  • 问题不在知识,而在于提出多样化配置并系统验证的能力

AI代理被越来越多地用于自动化科研与开发任务,但现有基准多针对预设流程或狭窄动作空间。即使名义上是开放任务,也常可通过检索已知方案并微调少数超参数解决,难以判断优秀结果是源于真实优化还是记忆化答案。我们提出InferenceBench,要求代理部署兼容OpenAI的推理服务,并优化大模型推理速度。每个代理接收目标LLM、一张H100 GPU、一个优化场景和两小时时钟时间预算。三个场景分别聚焦预填充延迟、解码延迟和并发请求吞吐量,第四个场景则综合平衡三者。在15种前沿代理配置下,代理普遍优于原始PyTorch基线(最高提升8.08倍),多数可达到或超过默认设置的vLLM引擎(4.05倍),但仍低于相同时间内的人工超参数搜索(最高达11.53倍)。对代理行为轨迹的定性分析显示,尽管代理尝试了多种优化技术,但高度集中于单一推理框架;仅测试少量不同配置,剩余时间主要用于重复测量、修复或调优超参数,而非探索实质性新策略。这表明瓶颈并非领域知识,而是生成多样化配置、系统评估并提交最优解的能力。总体而言,InferenceBench反映了代理在开放型人工智能工程环境中的表现,其中记忆化方案导致改进有限。

原文摘要 · Abstract (English)

AI agents are increasingly used to automate research and development tasks, yet existing benchmarks typically evaluate them on prescribed workflows or narrow action spaces. Even nominally open-ended tasks can often be solved by retrieving a well-known recipe and tuning a few hyperparameters, making it unclear whether strong results reflect genuine optimization or memorized solutions. We introduce InferenceBench, where an agent must deploy an OpenAI-compatible inference server and optimize the speed of LLM inference. Each agent receives a target LLM, one H100 GPU, an optimization scenario, and a wall-clock time budget of two hours. Three optimization scenarios isolate distinct bottlenecks of inference (prefill latency, decode latency, and concurrent request throughput) and a fourth balances all three at the same time. Across 15 frontier agent configurations, agents reliably improve over a naive PyTorch baseline (up to $8.08\times$) and often match or exceed serving engines with default settings ($4.05\times$ for vLLM), but still fall below a simple hyperparameter search under the same time budget (up to $11.53\times$). Qualitative analysis of agent trajectories shows that although agents enumerate many relevant optimization techniques, they overwhelmingly converge on a single inference framework. They test only a few distinct configurations and spend the remaining budget re-measuring, repairing, or optimizing hyperparameters rather than exploring substantially different strategies. This suggests the bottleneck is not domain knowledge, but the ability to propose diverse configurations, evaluate them systematically, and submit the best identified solution. Overall, InferenceBench reflects the ability of agents to operate in an open-ended AI engineering setting, where memorized solutions lead to limited improvements.

大模型推理AI代理优化基准

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。