KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits
On the map: Efficient LLM inference and serving → Serving systems and request scheduling
Abstract (arXiv)
High-performance GPU kernels are critical for efficient LLM serving, yet their optimization remains a bottleneck requiring deep system expertise. While code LLMs show promise in generating functionally correct code, kernel optimization is intrinsically a search problem over a vast optimization space. The fundamental mismatch prevents existing LLM agents from efficiently exploring the optimization space for diverse hardware and compute patterns. To bridge the gap, we present KernelBand, a framework that formulates kernel optimization as a Multi-Armed Bandit (MAB) problem, explicitly balancing exploration and exploitation to unlock the potential of code LLMs. To navigate the infinite arm space of optimization strategies applied to candidate kernels, we design two key mechanisms: a hardware-aware pruning strategy via profiling bounds and a trace-driven clustering algorithm that leverages Lipschitz continuity. Theoretically, we prove that KernelBand reduces the regret bound to depend on the compact covering number of runtime clusters, ensuring sample-efficient discovery of high-performance kernels. Extensive experiments on TritonBench-G with three GPU architectures and four code LLMs show that KernelBand consistently and substantially outperforms state-of-the-art methods with over 33% average improvement.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Serving systems and request scheduling, one of 12 directions in Efficient LLM inference and serving. Builds on 32 of its 70 references that are in the map. First posted on arXiv 24 Nov 2025.
Builds on
32 of 70 references.
Closest ancestors · 2
Same direction, newest first
- 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache5 Jan
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec
Other references · 30
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Qwen Technical Reportcited by 3,273
- 2023A Survey of Large Language Modelscited by 2,537
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2023A Comprehensive Overview of Large Language Modelscited by 639
- 2025Kimi K2: Open Agentic Intelligencecited by 523
- 2019Introduction to Multi-Armed Banditscited by 475
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
18 more
- 2018Learning to Optimize Tensor Programscited by 138
- 2025A Survey on Code Generation with LLM-based Agentscited by 104
- 2014Online Clustering of Banditscited by 99
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 73
- 2020TurboTransformers: An Efficient GPU Serving System For Transformer Modelscited by 71
- 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 68
- 2014Algorithms for multi-armed bandit problemscited by 63
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 52
- 2025TileLang: A Composable Tiled Programming Model for AI Systemscited by 42
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
- 2025Geak: Introducing Triton Kernel AI Agent & Evaluation Benchmarkscited by 31
- 2025TritonRL: Training LLMs to Think and Code Triton Without Cheatingcited by 24
- 2022A survey on multi-player banditscited by 18
- 2025ConCuR: Conciseness Makes State-of-the-Art Kernel Generationcited by 13
- 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimizationcited by 11
- 2013Optimizing CUDA Code By Kernel Fusion---Application on BLAScited by 7
- 2020Flexible Performant GEMM Kernels on GPUscited by 4
- 2023Multi Armed Bandit based Resource Allocation in Near Memory Processing Architecturescited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimization
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance
- 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimization
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization
- 2026FastKernels: Benchmarking GPU Kernel Generation in Production
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimization
- 2026Are LLM-Generated GPU Kernels Production-Ready? A Trace-Driven Benchmark and Optimization Agent