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

적은 것이 더 낫다: GPU 커널 최적화를 위해 무엇을 프로파일링할지 학습하기

Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu · arXiv · 2026년 10월 27일

- **연구 문제** 기존 GPU 커널 최적화 시스템은 미리 정한 프로파일링 지표를 모든 커널에 똑같이 수집하여, 비용과 커널별 유용성의 차이를 반영하지 못합니다.
- **연구 방법** AutoProfiler는 커널마다 필요한 지표를 고르는 결정적 프로파일링 트리를 REWRITE와 SPLIT 연산으로 학습하며, 추론 시점에는 LLM 없이 트리로 지표를 수집합니다.
- **주요 결과** KernelBench에서 AutoProfiler는 1.704×의 평균 기하평균 속도 향상을 보고하며, 이는 가장 강한 기준선 CudaForge의 1.570×보다 높습니다. 이 결과는 해당 평가 조건에서의 관찰입니다.

## 프로파일링을 얼마나, 무엇을 수집해야 하는가

LLM 기반 GPU 커널 최적화 시스템은 하드웨어 프로파일링으로 실행 병목을 찾아 재작성 모델에 피드백을 줍니다. 기존 시스템은 최적화 전에 미리 정해 둔 프로파일링 지표 집합을 모든 커널에 똑같이 수집합니다. 이 방식은 단순하고 재사용하기 쉽지만, 프로파일링 정보를 수집하는 데 비용이 들고 유용한 정보가 커널마다 다르다는 점을 반영하지 못합니다.

이 논문은 두 가지 질문을 던집니다. 첫째, 프로파일링 지표를 더 많이 모으면 최적화가 항상 좋아지는지 묻습니다. 실험에서 지표 수를 늘리는 것이 최적화 성능을 단조롭게 높이지는 않았습니다. 둘째, 유용한 프로파일링 정보가 커널마다 다른지 묻습니다. 이 논문은 커널마다 다른 지표 구성을 선택하는 방식이 고정 구성보다 나을 수 있다고 봅니다. 따라서 문제는 얼마나 많이 수집할지뿐 아니라 각 커널에 어떤 정보를 어떤 순서로 수집할지입니다.

## 커널별 프로파일링 트리와 구조 갱신

AutoProfiler는 커널마다 수집할 지표를 고르는 프로파일링 정책을 학습합니다. 정책은 결정적 프로파일링 트리로 표현됩니다. 루트 노드는 SM 활용도와 DRAM 처리량을 먼저 수집하고, roofline 모델에 따라 커널을 네 가지 병목 영역으로 나눕니다. 내부 노드는 지금까지 수집한 정보에 대한 분기 조건을 가지며, 리프는 해당 커널에 적용할 최종 지표 구성을 정합니다.

![Figure 1: Overview and motivation of our profiling reasoning framework. Left: Traditional kernel optimization and its key challenges, where redundant profilin…](https://refivu.com/papers/f186649d-b445-425d-ac3d-40f9af1feb15/figures/figure-8e2d5a3e65ae0154acce5c46addd8f11.png?thumb=512)

**Figure 1** : Overview and motivation of our profiling reasoning framework. Left: Traditional kernel optimization and its key challenges, where redundant profiling signals introduce noisy feedback (a) and repeated profiling rounds incur high latency and LLM overhead (b). Right: Our AutoProfiler method utilizes tree-based sequential profiling to selectively acquire informative signals, achieving effective optimization with reduced profiling overhead.

[원문](https://arxiv.org/abs/2610.36576v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu · Less is more: learning what to profile for GPU kernel optimization · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

트리는 두 연산으로 자랍니다. REWRITE는 리프에 추가 지표 그룹을 더해 그 리프에 도달한 커널들이 더 많은 정보를 받게 합니다. SPLIT은 이미 수집한 특성과 임계값으로 리프를 둘로 나누어, 같은 리프에 있던 커널들이 서로 다른 지표 구성을 받을 수 있게 합니다. LLM은 REWRITE에 쓸 지표 그룹이나 SPLIT에 쓸 특성-임계값 쌍을 후보로만 제안합니다. 후보는 같은 학습 커널에서 기존 트리와 짝지어 평가했을 때 보상 차이의 평균이 여유값 ϵ을 넘을 때만 받아들여집니다. REWRITE를 먼저 검토하고 실패하면 SPLIT을 검토하며, 거절된 수정은 기존 트리를 그대로 둡니다.

추론 시점에는 학습된 트리가 고정되어 있고, 커널의 프로파일링 조건을 결정적으로 따라가며 필요한 지표를 모두 수집합니다. 그다음 재작성 LLM은 수집된 정보를 받아 한 번만 호출됩니다. 보상은 속도 향상 s(k,m)에서 1을 뺀 값과 0 중 큰 값으로 정의되므로, 개선이 없는 재작성은 0의 보상을 받습니다.

## 동적 선택이 고정 선택보다 나을 수 있는 조건

논문은 유한한 후보 구성 집합 C에서 커널 분포 D에 대해 두 기대 효용을 비교합니다. 고정 구성 하나를 쓰는 경우의 효용은 Ustatic = max over m in C of E\[u(k,m)\]이고, 커널마다 가장 좋은 구성을 고르는 오라클 동적 정책의 효용은 Udynamic = E\[max over m in C of u(k,m)\]입니다. 여기서 최댓값은 커널 k마다 후보 구성 m에 대해 취해지며, 기대값은 커널 분포에 대해 취해집니다.

명제 1은 Udynamic이 Ustatic보다 작지 않다고 말합니다. 두 값이 같아지는 경우는 어떤 단일 구성이 다른 후보들의 성공 영역을 거의 확실히 모두 덮을 때뿐입니다. 그렇지 않으면 Udynamic은 Ustatic보다 엄격히 큽니다. 즉 이 결과는 프로파일링 효용이 커널마다 이질적일 때 동적 선택의 이득이 생긴다는 조건부 주장입니다. 모든 설정에서 동적 선택이 항상 크게 낫다는 뜻으로 읽으면 안 됩니다.

## 커널별 오라클로 이질성 확인

명제의 이질성 조건이 실제 커널에서도 나타나는지 확인하기 위해 저자들은 128개 KernelBench 커널에서 네 가지 roofline 기반 프로파일링 구성을 평가했습니다. 각 커널에서 같은 고정 최적화기를 각 구성으로 실행하고, 가장 높은 속도 향상을 낸 구성을 고르는 오라클을 계산했습니다.

그 결과 최적 고정 구성 Algorithm의 기하평균 속도 향상은 1.332×이고, 커널별 오라클은 1.429×입니다. 상대 이득은 7.3%입니다. 부트스트랩 1,000회로 구한 이 상대 이득의 95% 신뢰구간은 \[1.045×, 1.107×\]로 보고됩니다. 최적 구성은 Memory 31개, Latency 27개, Algorithm 26개, Compute 23개 커널에서 나타나 커널마다 다릅니다. 다만 오라클은 모든 후보를 평가해야 하므로 추론 시점에 쓸 수 없는 분석 상한입니다.

![Table 6: Empirical heterogeneity of profiling utility on 128 KernelBench kernels. Each candidate configuration is evaluated with the same frozen kernel optimiz…](https://refivu.com/papers/f186649d-b445-425d-ac3d-40f9af1feb15/figures/figure-b563f70cf16c06b1377968e157f6bfb4.png?thumb=512)

**Table 6** : Empirical heterogeneity of profiling utility on 128 KernelBench kernels. Each candidate configuration is evaluated with the same frozen kernel optimizer.The “Best on # Kernels” column counts kernels for which the configuration achieves the highest downstream speedup among the four candidates. The oracle selects the best candidate independently for each kernel.

[원문](https://arxiv.org/abs/2610.36576v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu · Less is more: learning what to profile for GPU kernel optimization · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## KernelBench 주요 비교 결과

AutoProfiler는 KernelBench에서 기준선들과 비교되었습니다. 모든 방법의 재작성 모델은 GPT-5.6-Sol이며, 동일한 추론 예산을 위해 최적화 패스는 한 번으로 제한되었습니다. 기준선은 원래의 정적 NCU 지표 구성을 사용하고, AutoProfiler는 학습된 정책으로 지표를 고릅니다.

평균 기하평균 속도 향상은 AutoProfiler가 1.704×로 가장 높았습니다. 가장 강한 기준선인 CudaForge는 1.570×였습니다. 실행 정확도는 AutoProfiler가 87.2%로, 다른 기준선보다 2.4–8.8 percentage points 높다고 보고됩니다. 작업당 LLM 호출 수는 AutoProfiler가 1회, CudaForge와 KernelMem이 2회, KernelAgent가 4회입니다. 이 결과는 KernelBench 평가 조건에서 얻은 값이며, 트리는 CUDA-Agent-Ops-6K로만 구성되고 KernelBench는 분포 외 평가에 쓰였습니다.

![Table 1: Main performance comparison on KernelBench. “Speedup” denotes the geometric mean speedup over correctly solved problems, while “Accuracy” denotes the…](https://refivu.com/papers/f186649d-b445-425d-ac3d-40f9af1feb15/figures/figure-c14883077066d43d8beca2779648b133.png?thumb=512)

**Table 1** : Main performance comparison on KernelBench. “Speedup” denotes the geometric mean speedup over correctly solved problems, while “Accuracy” denotes the proportion of problems solved correctly. “LLM Calls/Task” indicates the average number of LLM inferences required per optimization task.

[원문](https://arxiv.org/abs/2610.36576v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu · Less is more: learning what to profile for GPU kernel optimization · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 지표 수와 프로파일링 정보의 제공 방식

지표 수의 효과를 보기 위해 학습된 4개 지표 구성을 기준으로 2, 6, 8개 지표 변형을 만들었습니다. 2개 지표 설정은 1.299×, 4개 지표 설정은 1.370×, 6개 지표 설정은 1.261×, 8개 지표 설정은 1.231×의 기하평균 속도 향상을 보였습니다. 정적 기준 구성은 1.219×입니다. 따라서 지표를 줄이거나 늘리는 것이 단조롭게 좋아지지 않았고, 4개 설정이 가장 높았습니다. 이 실험의 데이터 집합 크기는 원문 구절에 명시되지 않았습니다.

정보 제공 방식은 Blind, Random, Static, AutoProfiler, Oracle로 비교되었습니다. 대표 48개 커널에서 AutoProfiler는 1.379×, Blind는 1.197×, Static은 1.314×, Oracle은 1.573×를 보였습니다. Oracle은 커널별 경험적 상한이며 추론 시점에는 쓸 수 없습니다. 재작성기, 최적화 파이프라인, 하드웨어, 샘플링 시드는 모든 조건에서 같게 유지되었습니다.

## 백본 교체와 반복 최적화

트리의 일반화를 보기 위해 GPT-5.6-Sol 피드백으로 구성한 트리를 고정하고, 테스트 시점에 리프의 재작성 LLM만 교체했습니다. Claude-Sonnet-5는 1.47×의 기하평균 속도 향상과 91.7%의 정확도를 보였습니다. Kimi-K3는 1.38×, GPT-5.6-Sol은 1.34×, DeepSeek-V4-Pro는 1.21×, Qwen3-Coder-Plus는 1.12×입니다. 이 표의 시간과 토큰 열은 측정 범위가 본문에서 자세히 명시되지 않았습니다.

![Table 4: Generalization performance across different LLM backbones. The profiling tree is con- structed using GPT-5.6-Sol feedback and kept strictly frozen; on…](https://refivu.com/papers/f186649d-b445-425d-ac3d-40f9af1feb15/figures/figure-69e03650a3fc13ed092ce80eb70e2099.png?thumb=512)

**Table 4** : Generalization performance across different LLM backbones. The profiling tree is con- structed using GPT-5.6-Sol feedback and kept strictly frozen; only the leaf LLM is swapped at test time. Speedup denotes the geometric mean over PyTorch baselines on held-out kernels.

[원문](https://arxiv.org/abs/2610.36576v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu · Less is more: learning what to profile for GPU kernel optimization · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

반복 최적화 실험에서는 고정된 트리를 열 번 연속 적용했습니다. AutoProfiler는 첫 라운드 1.629×에서 일곱 라운드 뒤 2.112×까지 올랐습니다. 같은 누적 시간 예산에서 CudaForge는 네 라운드 뒤 1.846×였습니다. 저자들은 반복 중 프로파일링 결정을 다시 LLM으로 내리지 않아 비용 대비 효율이 좋다고 해석합니다.

## REWRITE와 SPLIT의 절제 결과

트리 구성 연산의 기여를 보기 위해 전체 정책, REWRITE를 제거한 변형, SPLIT을 제거한 변형을 비교했습니다. 전체 정책은 깊이 11과 리프 58개를 가지며 기하평균 속도 향상 1.61×입니다. REWRITE를 제거한 변형은 깊이 2와 리프 4개로 1.47×이고, SPLIT을 제거한 변형은 깊이 7과 리프 37개로 1.53×입니다.

![Table 5: Ablation study on tree-construction operators](https://refivu.com/papers/f186649d-b445-425d-ac3d-40f9af1feb15/figures/figure-83cac4c0eca42ca967ce83b69e69da96.png?thumb=512)

**Table 5** : Ablation study on tree-construction operators.

[원문](https://arxiv.org/abs/2610.36576v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu · Less is more: learning what to profile for GPU kernel optimization · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

이 결과는 두 연산을 함께 유지했을 때 가장 높은 값이 나왔다는 관찰입니다. 원문은 REWRITE 없이는 각 리프가 기본 지표 피드백만 받고, SPLIT 없이는 서로 다른 병목을 가진 커널이 같은 프로파일링 설정을 공유한다고 설명합니다. 이 표의 전체 정책 값 1.61×는 주 결과의 평균 1.704×와 다르며, 두 표의 설정 차이는 원문 구절에 명시되어 있지 않습니다.

## 적용 범위와 남은 질문

이 방법은 오프라인 정책 구성에서만 LLM을 사용하고, 추론 시점의 라우팅은 학습된 조건에 따라 결정적으로 수행됩니다. 그러나 트리의 구성 자체는 학습 커널과 고정된 평가 파이프라인에 의존합니다. 커널별 오라클은 모든 후보 구성을 실행해야 하므로 실제 추론 도구로 쓸 수 없습니다.

결과의 범위도 함께 봐야 합니다. 주요 비교는 KernelBench 세 레벨과 GPT-5.6-Sol 백본, Triton 시드 조건에서 보고되었습니다. 다른 하드웨어나 다른 데이터셋에서 같은 이득이 나타나는지는 이 원문의 실험으로 확정되지 않습니다. 또한 대표 설정, 시드 집계, 반복 횟수는 실험마다 다르므로 한 표의 조건을 다른 표 전체로 넓혀 해석하지 않아야 합니다.

## 논문 정보

- **저자**: Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 10월 27일
- **등록일**: 2026년 11월 1일
- **수정일**: 2026년 10월 27일
- **버전**: v1
- **arXiv**: 2610.36576
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2610.36576v1) · [원문 PDF ↗](https://arxiv.org/pdf/2610.36576v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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 https://github.com/Satissss/AutoProfiler.

## 원문 인용

Yihan Wang, Peiyu Liu, Runyu Chen, Wei Xu (2026). Less is more: learning what to profile for GPU kernel optimization. arXiv:2610.36576v1. https://arxiv.org/abs/2610.36576v1

**BibTeX**

```
@misc{wang2026less,
  title = {{Less is more: learning what to profile for GPU kernel optimization}},
  author = {Yihan Wang and Peiyu Liu and Runyu Chen and Wei Xu},
  year = {2026},
  eprint = {2610.36576},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.36576v1}
}
```

## 이 논문의 용어

- [Oracle](https://refivu.com/terms/3ff0e5f5c4ee-oracle)
- [GPT-5.6-SOL](https://refivu.com/terms/e06bb7dc1996-gpt-5-6-sol)
- [KernelBench](https://refivu.com/terms/6fc3485d844c-kernelbench)
- [Claude-Sonnet-5](https://refivu.com/terms/0408b245b17e-claude-sonnet-5)
- [SPLIT](https://refivu.com/terms/59c93d1c9d91-split)

## 다른 논문 해설

- [Does LLM Pre-Training Typically Occur at the Edge of Stability?](https://refivu.com/papers/3bdef5dd-25ea-43ea-abe5-15c86fcb7175-does-llm-pre-training-typically-occur-at-the.md)
- [Do We Need an LLM to Know Why Sources Conflict? Decision Models for Knowledge-Conflict Typing in RAG](https://refivu.com/papers/bc8c66ac-7198-48c3-981e-48e9519fd03c-do-we-need-an-llm-to-know-why.md)
- [LLM knowledge for improved Out-of-Distribution Tabular Prediction - A Cross-Validated Regularisation Approach](https://refivu.com/papers/8091b095-825b-455d-8191-b6b34cfb2d10-llm-knowledge-for-improved-out-of-distribution-tabular.md)
- [Generation, Not Selection: LLM Proposals for Certified Access-Control Policy Mining](https://refivu.com/papers/ac257cfc-249c-4ac9-822b-f8f9fc63985a-generation-not-selection-llm-proposals-for-certified-access.md)
- [Clearing the FoG: Training KG Agents to Retrieve the Evidence Behind Their Answers](https://refivu.com/papers/f0d34373-e00b-43e3-b12a-389360a30556-clearing-the-fog-training-kg-agents-to-retrieve.md)
- [Prompt Lottery in LLM-as-a-Judge: Measuring and Mitigating Sensitivity to Syntactic Rephrasing](https://refivu.com/papers/d8d3ca24-9567-477f-8fea-b9b11fb338aa-prompt-lottery-in-llm-as-a-judge-measuring.md)
- [Proposing Better Rollouts for On-Policy Distillation](https://refivu.com/papers/fabcc93b-b034-4e58-a2ad-98455e527f63-proposing-better-rollouts-for-on-policy-distillation.md)
- [Efficient Quantization Training with Stochastic Rounding via Structured Subspace Randomness](https://refivu.com/papers/dd1ff416-5a97-4796-abca-ffb646fab63f-efficient-quantization-training-with-stochastic-rounding-via.md)
- [CASEL: Consequence-Aware Selective Execution for Reliable Long-Horizon Tool-Using Agents](https://refivu.com/papers/f4fa59b0-5b55-4c7e-820d-3967901b7969-casel-consequence-aware-selective-execution-for-reliable.md)
- [Identity or Evidence? Auditing Evidence Dependence in Agentic Life-Science Benchmarks](https://refivu.com/papers/692f40ea-7124-41e5-834a-8c5d6466cf20-identity-or-evidence-auditing-evidence-dependence-in-agentic.md)
- [Causal Localization of Evidence Effects in Transformers](https://refivu.com/papers/f96b5a12-0c53-49d2-8d6f-292224474229-causal-localization-of-evidence-effects-in-transformers.md)
- [Forget the Data, Keep the Capability: Switchable Unlearning for Retrieval](https://refivu.com/papers/9888943b-1ac0-4684-9f27-2cb66c2bf5f6-forget-the-data-keep-the-capability-switchable-unlearning.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f186649d-b445-425d-ac3d-40f9af1feb15-less-is-more-learning-what-to-profile-for)
