arXiv:2608.12700v1 cs.LG

LLM 생성 GPU 커널을 위한 계약 수준 검증기와 게이트 선형 순환 계열을 위한 네이티브 Blackwell 역전파

A Contract-Grade Verifier for LLM-Generated GPU Kernels, and a Native Blackwell Backward for the Gated-Linear-Recurrence Family

Rishi Shah, Rishav Shrestha

제출 2026-08-13

한국어 초록

언어 모델로 GPU 커널(kernel)을 생성하는 시스템들은 높은 정확도 수치를 보고하고 있습니다. 그러나 이러한 수치는 하나의 느슨한 테스트, 즉 단일 고정 형상(shape)에서 소수의 무작위 입력으로 커널을 실행하고 출력이 참조(reference)와 유사하면 통과시키는 방식에 기인합니다. 커널은 이 테스트를 통과하더라도 조용히 틀린 결과를 낼 수 있습니다. 실제 정답이 NaN 또는 무한대(infinity)여야 하는 곳에서 일반적인 숫자를 반환하거나, 실행할 때마다 결과가 달라지거나, 형상이 바뀔 때 오작동하거나, 참조 구현이 fp32 합계를 유지하는 곳에서 fp16으로 누적 연산을 수행할 수 있습니다. 우리는 정확성을 적절하게 검증하는 도구인 12개의 적대적 게이트로 구성된 계약 수준 검증기(contract-grade verifier)를 구축했습니다. 각 게이트는 올바른 커널이 반드시 만족해야 하는 속성이며, 그중 몇 가지는 허용 오차(tolerance)를 두지 않아 어떠한 임계값 선택으로도 실패를 합리화할 수 없습니다. 외부 시스템을 대상으로 할 때, 이 검증기는 한 공개 시스템의 자체 하네스에서 이미 정답으로 판정했던 2,638개의 기계 생성 커널을 감사(audit)합니다. 그 결과 어떠한 허용 오차 논리로도 설명할 수 없을 만큼 완전히 결함이 있는 커널이 39.5%에 달했고, 62.1%는 최소 하나의 위반을 내포하고 있음을 발견했습니다. 해당 분야의 표준 테스트는 검증기가 기각한 1,487개의 커널을 승인한 반면, 반대의 경우는 14개에 불과했습니다. 우리는 7/7 양성 대조군, 임계값 보정 스윕, 참조 벤치마크 자체의 정확성 코드와의 98.5% 일치도, 층화 수동 감사라는 네 가지 독립적인 방식으로 이 결과를 검증합니다. 내부 시스템을 대상으로 할 때, 검증기는 우리가 자체 개발한 커널을 평가합니다. 이는 해당 분야에서 여전히 폴백(fallback)으로 실행하는 역방향 상태 단계를 포함하여, 게이트 선형 순환(GDN) 계열을 위한 최초의 네이티브 Blackwell tcgen05 학습(training) 역전파 커널입니다. 우리는 배정밀도(double-precision) 오라클을 기준으로 그 정확성을 독립적으로 입증하고, 이를 통해 해당 계열의 5개 모델을 학습시켰습니다. 커널 생성 분야에서 보고되는 발전 이면의 정확성 신호는 수치가 시사하는 것보다 훨씬 약하며, 허용 오차 없는 계약 집합을 통해 이러한 격차의 대부분을 해소할 수 있습니다.

원문 초록

Systems that generate GPU kernels with language models report high correctness rates. Those rates come from a single loose test: run the kernel on a few random inputs at one fixed shape and accept it if the output is close to a reference. A kernel can pass that test and still be silently wrong. It can return an ordinary number where the true answer is a NaN or an infinity, differ from run to run, break when the shape changes, or accumulate in fp16 where the reference keeps an fp32 total. We build the instrument that checks correctness properly: a contract-grade verifier of twelve adversarial gates, each a property a correct kernel must satisfy, several of them tolerance-free, so no choice of threshold can explain a failure away. Aimed outward, the verifier audits 2,638 machine-generated kernels that a public system's own harness had already accepted as correct. It finds 39.5% broken beyond any tolerance argument and 62.1% carrying at least one violation. The field's standard test accepts 1,487 kernels the verifier rejects, against only 14 the other way. We defend the finding four independent ways: a 7/7 positive control, a threshold-calibration sweep, 98.5% agreement with the reference benchmark's own correctness code, and a stratified hand-audit. Aimed inward, the verifier judges a kernel of our own: the first native Blackwell tcgen05 training backward for the gated-linear-recurrence (GDN) family, including the reverse-state stage the field still runs on a fallback. We establish its correctness independently, against a double-precision oracle, and train five family members through it. The correctness signal behind reported progress in kernel generation is far weaker than the numbers suggest, and a set of tolerance-free contracts would close most of the gap.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2608.12700v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.