LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization

📅 2026-08-22
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
本文解决了从基准测试到实际部署过程中性能不一致的问题,通过LLM4LLM框架采用闭环优化方法,提升了语言模型推理的效率。
📝 Abstract
Large language models have become increasingly capable agents for low-level code and kernel optimization, but isolated kernel benchmarks provide only a proxy for the deployment behavior that matters in language-model inference. We identify a benchmark-to-deployment gap: candidate kernels that appear correct and fast in standalone harnesses can exhibit different performance, safety, or phase behavior after integration into a real inference workload. We introduce LLM4LLM, a deployment-aware closed-loop optimization framework that starts from a target inference script, extracts phase-aware optimization tasks, searches with an experience-guided episodic agent, and accepts patches through in-model validation. Across ten language-model inference workloads on A100 and H100 GPUs, LLM4LLM improves end-to-end latency for every evaluated model, achieving 3.91$\times$/6.98$\times$ geometric-mean speedups on A100/H100; as supporting kernel-level evidence, it also attains up to 2.745$\times$ GeoMean speedup on KernelBench Level 2.
Problem

Research questions and friction points this paper is trying to address.

Large language models
Kernel optimization
Benchmark-to-deployment gap
Inference workload
Innovation

Methods, ideas, or system contributions that make the work stand out.

closed-loop optimization
deployment-aware
phase-aware tasks
experience-guided episodic agent
🔎 Similar Papers
H
Hui Zeng
Xidian University, Zhongguancun Academy
Pengfei Yang
Pengfei Yang
Institute of Software, Chinese Academy of Sciences
Probabilistic model checkingDNN verification
Y
Yanxin Chen
Xidian University
F
Fusong Ju
Zhongguancun Academy
X
Xinran Wei
Zhongguancun Academy, Zhongguancun Institute of Artificial Intelligence