跳到正文
arXiv cs.AI· Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu·· 4 小时前AI 评分39

Less is more:AutoProfiler 学习为 GPU kernel 优化选择剖析指标

Less is more: learning what to profile for GPU kernel optimization

AI 导读

AutoProfiler 是一个反馈驱动框架,通过 REWRITE 和 SPLIT 操作从优化反馈中学习构建确定性的剖析树,用于 GPU kernel 自动优化中的指标选择。理论分析表明,最有用的剖析信息因 kernel 而异,增加剖析指标数量并不能单调提升优化效果。在 KernelBench 上的实验显示,该方法的优化表现优于固定的剖析配置。

正文 · 原文

View PDF HTML (experimental)

Abstract:Large language models have recently shown strong potential for automatically optimizing GPU kernels, yet their effectiveness depends critically on the hardware information available to the kernel optimization model. Existing systems typically rely on predefined profiling strategies, leaving what to profile largely outside the optimization process. We show that effective profiling is not simply about collecting more information: increasing the number of profiling metrics does not monotonically improve kernel optimization, while the most useful profiling information varies across kernels. Our theoretical analysis further shows that, under such heterogeneous profiling utility, kernel-conditioned selection can outperform any single fixed profiling configuration. Motivated by this observation, we propose AutoProfiler, a feedback-driven framework for learning a deterministic profiling tree from optimization feedback. The tree is iteratively refined through REWRITE and SPLIT operations, with an LLM generating candidate modifications and empirical evaluation determining their acceptance. Once constructed, the tree quickly gathers the required profiling information for any kernel, allowing the LLM rewriter to be invoked only once. Experiments on KernelBench show that our approach improves kernel optimization over fixed profiling configurations under constrained profiling budgets. These results suggest that hardware profiling should evolve from static metric collection toward profiling reasoning, making profiling itself a new dimension for improving kernel optimization. The codes are available at this https URL.
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.36576 [cs.LG]
  (or arXiv:2610.36576v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.36576

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Yihan Wang [view email]
[v1] Tue, 27 Oct 2026 03:31:23 UTC (2,012 KB)

来源:arXiv cs.AI · arxiv.org