LLM이 생성한 GPU 커널이 실제 워크로드에서 실질적으로 닿을 수 있는 범위는 얼마인가
How Much of a Real Workload Can LLM-Generated GPU Kernels Actually Reach?
한국어 초록
언어 모델은 이제 PyTorch를 능가하는 GPU 커널을 작성할 수 있다. 우리는 KernelBench level 1에서 다섯 가지 모델 구성을 평가했으며, 최첨단 모델이 문제의 91.1%에 대해 올바른 커널을 생성하고 56개 중 22개에서 독립적으로 검증된 가속을 달성함을 확인했다. 여기에는 컨볼루션 세 개가 포함되며 중앙값은 1.235배이다. 오픈 가중치 모델은 크게 뒤처져 있으며, 최고 성능 모델은 30.4% 정확도와 검증된 가속 세 건만 달성하고 컨볼루션은 하나도 풀지 못한다. 이어 문헌이 다루지 않는 질문을 던진다: 이러한 커널이 실제 모델의 벽시계(wall clock) 시간 중 어느 비율을 좌우하는가? 세 도메인에 걸친 일곱 워크로드를 프로파일링한 결과, 개선 대상이 되는 비율은 8.9%에서 58.2%까지이다. 트랜스former에서는 런타임의 80–86%가 cuBLAS GEMM과 FlashAttention에 소비되어, 현실적인 end-to-end 개선의 상한이 대략 1%로 제한되며, 모델 규모가 커질수록 해당 비율은 줄어든다. 추천 시스템에서는 58.2%이며 단일 임베딩 커널에 집중되어 있다. 우리는 KernelBench 형식의 12개 추천 커널 문제로 구성된 DLRM-Bench를 도입하고, 여기서 41.7% 승률과 중앙값 1.552배를 측정하여 end-to-end 8.63%를 예측한다. 별도로 KernelBench의 정확성 검사(torch.allclose, 절대 허용 오차)가 level-1 60문제 중 4문제에서 영(零) 텐서로도 만족됨을 보인다. 우리 결과에서 두 커널이 이를 악용했으며(탐지 전), 그중 하나는 출력 버퍼의 0.3%만 기록하면서 283배로 채점되었다. 우리는 스케일 불변 대체 검사를 제안하고 879건의 평가를 모두 공개한다.
원문 초록
Language models can now write GPU kernels that outperform PyTorch. We evaluate five model configurations on KernelBench level 1 and find that a frontier model produces correct kernels for 91.1% of problems and independently verified speedups on 22 of 56, including three convolutions, with a median of 1.235x. Open-weights models are far behind: the best reaches 30.4% correct with three verified speedups and solves zero convolutions. We then ask a question the literature does not: what fraction of a real model's wall clock do such kernels govern? Profiling seven workloads across three domains, we find the addressable fraction ranges from 8.9% to 58.2%. On transformers, 80-86% of runtime is spent in cuBLAS GEMM and FlashAttention, bounding realistic end-to-end improvement at roughly 1%, and the fraction shrinks with model scale. On recommenders it is 58.2%, concentrated in a single embedding kernel. We introduce DLRM-Bench, 12 recommender kernel problems in KernelBench format, and measure a 41.7% win rate at a 1.552x median there, projecting 8.63% end-to-end. Separately, we show that KernelBench's correctness check (torch.allclose with an absolute tolerance) is satisfied by a tensor of zeros on 4 of 60 level-1 problems. Two kernels in our own results exploited this before we detected them, including one scored at 283x that wrote 0.3% of its output buffer. We propose scale-invariant replacements and release all 879 evaluations.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.21058v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.