arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.10187cs.PFcs.AR
收藏

WaveTune: 基于波的双线性建模用于高效的GPU内核自动调优

WaveTune: Wave-aware Bilinear Modeling for Efficient GPU Kernel Auto-tuning

Shanghai Jiao Tong University(上海交通大学);Alibaba Group(阿里巴巴集团)

Kaixuan Zhang, Chutong Ding, Shiyou Qian, Luping Wang, Jian Cao, Guangtao Xue, Cheng Huang, Guodong Yang, Liping Zhang

AI总结:

WaveTune通过波感知的双线性建模方法,实现高效的GPU内核自动调优,减少运行时开销并提升性能,实现内核级速度提升和端到端TTFT减少。

摘要:

大规模语言模型的快速普及使GPU推理效率成为日益重要的系统问题。LLM工作负载的运行时间主要由基于瓷砖的内核主导,特别是通用矩阵乘法(GEMMs)。尽管这些内核高度优化,但其性能仍对大量运行时参数敏感,如瓷砖大小和流水线阶段。这些参数与硬件资源的相互作用导致非凸优化景观。现有参数配置方法,包括基于搜索的自动调优、启发式规则和学习成本模型,面临性能最优性和运行时效率之间的根本权衡。本文提出WaveTune,一种波感知的运行时内核自动调优框架。首先,我们引入统一映射方法以处理输入多样性并分解配置空间以管理高维性。其次,我们开发了分析波感知的双线性模型,准确预测内核延迟。第三,我们设计了一种基于波结构的稀疏采样方案和轻量级双表检索机制以最小化运行时开销。结果表明,WaveTune能够为GPU内核实现精确且高效的运行时配置。在三个代表性内核和五种GPU架构上,WaveTune始终实现接近最优的内核性能,提供高达1.83倍的内核级速度提升和高达1.33倍的端到端TTFT减少,同时将运行时决策开销减少五数量级相比穷举搜索。这些结果表明,WaveTune有效消除了传统配置延迟与执行最优性之间的权衡,提供了一种实用且稳健的高绩效LLM推理解决方案。

英文摘要:

The rapid adoption of Large Language Models (LLMs) has made GPU inference efficiency an increasingly critical system concern. The runtime of LLM workloads is largely dominated by tile-based kernels, particularly General Matrix Multiplications (GEMMs). Although these kernels are highly optimized, their performance remains sensitive to a large space of runtime parameters, such as tile sizes and pipeline stages. The interaction between these parameters and hardware resources leads to a non-convex optimization landscape. Existing approaches to parameter configuration -- including search-based auto-tuning, heuristic rules, and learned cost models -- face a fundamental trade-off between performance optimality and runtime efficiency. In this paper, we present WaveTune, a wave-aware framework for runtime kernel auto-tuning. First, we introduce a unified mapping method to handle input diversity and decompose the configuration space to manage high dimensionality. Second, we develop an analytical wave-aware bilinear model that accurately predicts kernel latency. Third, we design a sparse sampling scheme based on wave structures and a lightweight dual-table retrieval mechanism to minimize runtime overhead. As a result, WaveTune enables precise and efficient runtime configuration for GPU kernels. Across three representative kernels and five GPU architectures, WaveTune consistently achieves near-optimal kernel performance, delivering up to 1.83x kernel-level speedup and up to 1.33x end-to-end TTFT reduction, while reducing runtime decision overhead by five orders of magnitude compared to exhaustive search. These results demonstrate that WaveTune effectively eliminates the traditional trade-off between configuration latency and execution optimality, providing a practical and robust solution for high-performance LLM inference.

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

↑