KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits

Dezhi Ran, Shuxiao Xie, Mingfang Ji, Anmin Liu, Mengzhou Wu, Yuan Cao, Yuzhe Guo, Hao Yu, Linyi Li, Yitao Hu, Wei Yang, Tao Xie
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:103717-103738, 2026.

Abstract

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. This 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 runtime-behavior clustering algorithm that leverages Lipschitz continuity. Extensive experiments on TritonBench-G with three GPU architectures and four code LLMs show that KernelBand consistently outperforms the strongest available agent baseline, achieving up to 1.91$\times$ geometric mean speedup over correctly optimized kernels with 39–140% relative improvement in Fast@1 success rate. Our code is available at https://github.com/TongmingLAIC/KernelBand.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-ran26b, title = {{K}ernel{B}and: Steering {LLM}-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits}, author = {Ran, Dezhi and Xie, Shuxiao and Ji, Mingfang and Liu, Anmin and Wu, Mengzhou and Cao, Yuan and Guo, Yuzhe and Yu, Hao and Li, Linyi and Hu, Yitao and Yang, Wei and Xie, Tao}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {103717--103738}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/ran26b/ran26b.pdf}, url = {https://proceedings.mlr.press/v306/ran26b.html}, abstract = {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. This 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 runtime-behavior clustering algorithm that leverages Lipschitz continuity. Extensive experiments on TritonBench-G with three GPU architectures and four code LLMs show that KernelBand consistently outperforms the strongest available agent baseline, achieving up to 1.91$\times$ geometric mean speedup over correctly optimized kernels with 39–140% relative improvement in Fast@1 success rate. Our code is available at https://github.com/TongmingLAIC/KernelBand.} }
Endnote
%0 Conference Paper %T KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits %A Dezhi Ran %A Shuxiao Xie %A Mingfang Ji %A Anmin Liu %A Mengzhou Wu %A Yuan Cao %A Yuzhe Guo %A Hao Yu %A Linyi Li %A Yitao Hu %A Wei Yang %A Tao Xie %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-ran26b %I PMLR %P 103717--103738 %U https://proceedings.mlr.press/v306/ran26b.html %V 306 %X 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. This 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 runtime-behavior clustering algorithm that leverages Lipschitz continuity. Extensive experiments on TritonBench-G with three GPU architectures and four code LLMs show that KernelBand consistently outperforms the strongest available agent baseline, achieving up to 1.91$\times$ geometric mean speedup over correctly optimized kernels with 39–140% relative improvement in Fast@1 success rate. Our code is available at https://github.com/TongmingLAIC/KernelBand.
APA
Ran, D., Xie, S., Ji, M., Liu, A., Wu, M., Cao, Y., Guo, Y., Yu, H., Li, L., Hu, Y., Yang, W. & Xie, T.. (2026). KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:103717-103738 Available from https://proceedings.mlr.press/v306/ran26b.html.

Related Material