Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

An Empirical Study of Issues in GPU Kernel Libraries for LLM Systems

Empirical study finds most GPU kernel library failures stem from build and runtime causes

  • Problem Failures in GPU kernel libraries can silently corrupt outputs or hang GPUs, and no empirical study had examined this layer. Their causes are hard to isolate because symptoms depend on shapes, layouts, data types and hardware.
  • Method The authors manually label 300 high-quality closed GitHub issues from seven kernel libraries by symptom and root cause. Issues are used because each one keeps the description, discussion, diagnostics and fix together.
  • Results Compiler and Build System and Runtime Environment causes account for 60.33% of the 300 issues. Validation therefore has to cover the deployment and execution stack, not just kernel code.

Why kernel library failures are hard to trace

Attention, GEMM and quantization kernels sit under many LLM training and serving jobs, so one faulty kernel path can spread across many models and GPUs. A kernel can return wrong tokens without raising an exception, and a synchronization bug can hang a long inference run. The cause is hard to isolate because the visible symptom depends on the tensor shape and layout, data type, GPU architecture, CUDA or driver version, and the code path that runs.

Earlier empirical work examined deep-learning compilers, fault taxonomies and LLM training systems, but not the kernel library layer. That gap matters because diagnosing kernel faults requires reasoning about shapes, vectorized memory access, synchronization and low-precision semantics together. So the authors ask which symptoms users see, what causes them and how developers test and debug them.

Mining 300 closed GitHub issues

The authors mined GitHub issues rather than commits, because an issue keeps the description, discussion, diagnostics and resolution together. They judged that these linked contexts make issues well suited to studying symptoms, root causes and fixes. Maintainers also keep the repositories active, and users attach reproduction details and input data to their reports.

The authors pulled every open and closed issue through the GitHub REST API, starting from 9,099 issues dated between December 26, 2015 and July 10, 2026. They first dropped open issues, so that only closed reports about concrete failures of existing functionality remained. Title keywords such as bug, error, fail, wrong, crash, hang and regression located the candidate failure reports.

Placeholders, support questions, feature requests, documentation tasks, tracking issues and duplicates were then removed, with labels like question and roadmap helping to flag them. This screening left a candidate pool of 3,181 closed reports, of which Triton contributed 815 and DeepGEMM only 38.

Each excluded report was replaced by a same-repository issue created closest in time, until 300 high-quality issues remained. Symptom labels came from the title, the opening description, the error messages and the reported behavior. Two authors labeled all 300 issues independently, and a difference in either the symptom or root-cause label counted as a disagreement.

The resulting Cohen's kappa of 0.87 indicated a high level of labeling consistency, and the authors reconciled minor disagreements through discussion.

Where failures show up for users

Deployment Failure is the most common symptom at 27.33%, and Build Failure follows at 24.33%. Together, these two symptoms account for more than half of the observed reports, and they arise before any device execution starts. Deployment Failure covers installation, dependency resolution, packaging, artifact selection, linking, loading and startup.

Crash accounts for 21.00% of the reports and Incorrect Functionality for 17.67%, while Hang is rare at 2.00%. Incorrect Functionality worries the authors most because the operation finishes and returns outputs that break its intended semantics. In one block-sparse FlashAttention report, the forward pass matched a sparse reference, but the backward pass returned finite yet severely inaccurate gradients.

Crash, Hang and Incorrect Functionality together cover 122 reports, or 40.67%, and this suggests that a successful kernel launch alone doesn't establish correct behavior.

In one FlashAttention report, training throughput on H100 GPUs fell from about 370 to 219 TFLOPS when the head dimension changed from 128 to 132. That extra padding work explains why a small head-dimension change can cut throughput so sharply.

Root causes sit in three dimensions

The 15 root-cause categories fall into three dimensions: Kernel Library at 39.67%, Runtime Environment at 33.33% and Compiler and Build System at 27.00%. Taken together, the two dimensions outside the kernel code account for 60.33% of issues. So fixing only kernel code would miss most of the cases the authors sampled.

Within the Kernel Library dimension, API Misuse is the largest category at 26 cases (8.67%), followed by Code Logic Error at 22 cases (7.33%). In a DeepGEMM report, a TMA multicast heuristic used a Boolean for operand A as an array index, so after the operand order was swapped it checked operand B but selected multicast on A. A CUTLASS sparse GEMM with FP32 inputs differed substantially from a dense FP32 reference because the sparse tensor-core path converted inputs to TF32.

In an xFormers attention path, a valid-key count stored in a signed 16-bit parameter overflowed, and attention then returned NaN values.

Concurrency errors can stall a kernel: in one DeepGEMM SM90 case, a faulty peer-liveness predicate left a barrier at four of eight arrivals, so the producer could not proceed. Resource errors can leave output uncomputed, as a CUTLASS Blackwell 2-SM GEMM did when its grid was built from the MMA tile size, giving 4×4 instead of 8×4 for a 1024×1024 output.

Performance bugs can be just as costly: a Triton attention-mask kernel recompiled on every call, spending about 0.7 ms on compilation for a kernel that ran in about 12 µs.

Incorrect Compiler Transformation is the larger compiler-side category at 46 cases (15.33%), and Build Misconfiguration accounts for 35 cases (11.67%). Software Incompatibility is the largest individual category at 76 cases (25.33%), and Hardware Incompatibility covers 24 cases (8.00%). In one FlashAttention report, the installed PyTorch was built against CUDA 11.3, below the library's requirement, while a build for CUDA 11.6 worked.

How developers test and debug GPU kernel failures

Developers in these reports use five testing practices: compatibility and integration testing, differential testing, boundary value analysis, dynamic analysis, and performance regression testing. Compatibility checks record the hardware and software stack, which exposed a Turing Tensor Core test that failed under CUDA 10.1. That operation required CUDA 10.2 or later, so the version gap surfaced before it became an opaque kernel error.

Differential testing runs the optimized kernel and a simpler reference on the same input, but the reference needs scrutiny too. The mismatch came from rounding error in the reference, not from the optimized kernel.

Boundary value analysis varies one dimension at a time, such as sequence-length relationship, alignment or layout, while other settings stay fixed. A head-dimension sweep showed failures at 8 and 16 but not at 32, which isolated an incorrect shared-memory calculation. NVIDIA Compute Sanitizer checks memory access, races, initialization and synchronization.

It flagged an illegal memory access in a FlashInfer report involving a 48-rank CuTe DSL GEMM. Performance regression tests measure framework, compilation and kernel time separately after warm-up.

Diagnosis starts from the error messages, stack traces, compiler output and environment details attached to a report. Harder cases need a small reproducer, because a FlashInfer sampling script first failed to reproduce for the maintainer. Only the failing CUDA environment selected a CUB operation with an aliasing restriction, so the input and software version both mattered.

Developers change one factor at a time and rerun the reproducer to find which dependency drives the failure.

A failure that disappears after a workload change doesn't, by itself, show that the fault has been repaired. The authors conclude that current practices are often insufficient for low-precision numerical errors and hardware-specific failures.

Limitations and open directions

The sample covers seven open-source libraries, so proprietary kernels fall outside what the study can say. Complete training and serving systems were also left out, because their issue trackers mix in model-loading and scheduling problems. The authors keep repository-specific observations apart from aggregate results to limit that bias. Classification rests on judgment, so the authors wrote explicit coding rules and kept the evidence behind each label.

Two reviewers reached a Cohen's kappa of 0.87 and settled their disagreements through discussion.

The authors argue that the seven libraries share stacks built on CUDA, Triton, and generated device code. Related studies of deep learning software and compilers report similar problem families, which supports that view. This study doesn't show that other GPU kernel projects fail through the same mechanisms.

It would name the conflicting components and recommend a supported combination. Contract-aware validation would turn shape, data type, layout, alignment, and aliasing requirements into checks that run before launch. Record and replay would store the operation, tensor metadata, dispatch decision, and software versions. Metadata alone may miss value-dependent failures, so the triggering input or a reproducible way to generate it should be kept too.

Incorrect Functionality accounts for 53 cases (17.67%), so numerical debugging tools matter for this group. Adapting them to specialized GPU kernels needs careful treatment of their numerical contracts. Compiler debugging tools would reduce the triggering kernel and keep its generated IR, compiler version, and target architecture.

Paper info

Authors
Yanjie Gao, Jiayi Bi, Haoxiang Lin, Ling Feng
Venue
arXiv · Preprint
First published
2026-11-6
Added
2026-11-9
Updated
2026-11-6
Version
v1
arXiv
2611.09280
Category
cs.AI
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Behind the expanding use of large language models (LLMs) across application domains lies a growing dependence on specialized GPU kernel libraries. These libraries underpin the correctness and efficiency of training and inference across diverse GPU platforms, implementing attention, GEMM, quantization, and low-precision operators while managing tensor shapes, memory layouts, code generation, and hardware-specific dispatch. Problems at this layer can silently corrupt outputs, hang GPUs, prevent compilation, introduce deployment incompatibilities, or degrade performance, thereby reducing developer productivity and wasting expensive GPU resources. We present the first comprehensive empirical study of issues in GPU kernel libraries for LLM systems. We manually analyzed 300 high-quality GitHub issue reports, their discussions, and available fixes from seven representative libraries: FlashInfer, FlashAttention, Triton, CUTLASS, DeepGEMM, xFormers, and bitsandbytes. The analysis characterizes symptoms, root causes, fixes, and testing and debugging practices. Our main findings are: (1) 60.33% of the sampled issues originate in the Compiler and Build System or Runtime Environment dimensions, so validation must cover the deployment and execution stack, not just kernel code. (2) Kernel specialization imposes implicit correctness constraints on tensor shapes, metadata layouts, memory aliasing, and hardware resources. Violations can produce incorrect outputs or launch failures even for supported operations, highlighting the need for explicit contract validation and boundary-case testing. (3) Current testing and debugging practices are often insufficient for identifying low-precision numerical problems and hardware-specific execution failures. We outline research opportunities and tooling directions to support future LLM GPU kernel development.

Quote from the paper

Yanjie Gao, Jiayi Bi, Haoxiang Lin, Ling Feng (2026). An Empirical Study of Issues in GPU Kernel Libraries for LLM Systems. arXiv:2611.09280v1. https://arxiv.org/abs/2611.09280v1

BibTeX
@misc{gao2026empirical,
  title = {{An Empirical Study of Issues in GPU Kernel Libraries for LLM Systems}},
  author = {Yanjie Gao and Jiayi Bi and Haoxiang Lin and Ling Feng},
  year = {2026},
  eprint = {2611.09280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09280v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up