arXiv:2611.09280cs.AINov 2026

Manuscript Offprint

arXiv:2611.09280

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

Yanjie Gao, Jiayi Bi, Haoxiang Lin, Ling Feng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yanjie Gao 1^{1}, Jiayi Bi 2^{2}, Haoxiang Lin 1^{1}, Ling Feng 2^{2}

1^{1}Microsoft Research Asia, Beijing, China 2^{2}Tsinghua University, Beijing, China

Email: {yanjga,haoxin}@microsoft.com, {bijy22,fengling}@mails.tsinghua.edu.cn

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.

Index Terms—Empirical studies, GitHub issues, GPU kernel failures, LLM systems.

I. INTRODUCTION

In recent years, large language models (LLMs) have become a core component of modern software systems. Their applications range from chatbots and programming assistants to search, education, and enterprise software. Training these models and serving their requests require large-scale GPU infrastructure, where tensor operations account for much of the runtime cost.

Developers rely on specialized GPU kernel libraries, such as FlashAttention, Triton, and CUTLASS, to execute these workloads efficiently [1]–[7]. These libraries provide optimized implementations of attention, GEMM, and quantization. Their implementations incorporate low-precision arithmetic and hardware-specific code generation to support diverse tensor shapes and layouts, data types, and GPU architectures.

Failures in these libraries can cause crashes, hangs, incorrect outputs, deployment failures, and performance regressions, reducing developer productivity and wasting expensive GPU resources. For example, a GPU kernel that produces incorrect results may silently corrupt generated tokens without raising a runtime exception; a synchronization bug may hang a long-running inference job, while a packaging or CUDA incompatibility may prevent deployment before a kernel is even tested. Worse still, these failures' impacts can extend further than those of failures in ordinary application code because a single kernel path may be reused across many models, serving requests, GPUs, and downstream systems.

The cause of such a failure is often difficult to isolate. Its visible symptom may depend on a particular combination of tensor shape/layout, data type, GPU architecture, CUDA or driver version, generated code path, and downstream framework. These challenges underscore the need for a systematic understanding of GPU kernel failures and their underlying causes, which can inform efforts to prevent, detect, debug, and resolve such failures. As LLMs become integral to modern software, the reliability of the GPU kernel libraries supporting their training and inference deserves a high degree of attention from software engineering researchers and practitioners.

Prior empirical research has examined problems in machine-learning and deep-learning software from different perspectives. Shen et al. [8] characterized defects in deep-learning compilers, while Humbatova et al. [9] developed a fault taxonomy for deep-learning applications. Gao et al. [10] investigated quality issues in a deep-learning platform. More recently, a study of LLM training systems highlighted failures involving parallel execution, configuration, and external dependencies [11]. These studies explain many problems in applications, frameworks, compilers, and end-to-end training systems, but the GPU kernel library layer remains largely unexplored. Diagnosis at this layer requires reasoning about tensor shapes and layouts, vectorized memory access, synchronization, low-precision semantics, code generation, and architecture-specific kernel dispatch.

This paper presents the first comprehensive empirical study of issues in GPU kernel libraries for LLM systems. We manually analyzed 300 high-quality GitHub issue reports from seven representative libraries: FlashInfer [2], FlashAttention [1], Triton [3], CUTLASS [4], DeepGEMM [5], xFormers [6], and bitsandbytes [7]. Our analysis draws on issue titles, descriptions, discussions, diagnostic evidence, and available fixes. We classified the reports into 6 symptom categories and identified 15 root-cause categories, which were further organized into 3 dimensions. We also examined typical fixes and the testing and debugging practices documented in the reports. The goal is to provide a systematic account of failures in GPU kernel libraries that can inform the development of more reliable and efficient LLM systems.

Specifically, this study addresses three research questions:

RQ1: What are the common symptoms of issues in GPU kernel libraries for LLM systems? We examine the titles and initial descriptions of the 300 issue reports to identify their observable symptoms. The issues fall into 6 categories: Deployment Failure (27.33%), Build Failure (24.33%), Crash (21.00%), Incorrect Functionality (17.67%), Performance Degradation (7.67%), and Hang (2.00%). Section IV presents the symptom analysis.

RQ2: What causes these issues, and how are they typically fixed? Issue discussions, code fixes, and maintainer conclusions provide the evidence for identifying root causes and summarizing typical fixes. We identify 15 root-cause categories across 3 dimensions: Kernel Library (39.67%), Runtime Environment (33.33%), and Compiler and Build System (27.00%). These causes often reflect rapid changes in hardware and software, complex compiler and package dependencies, and specialization-specific assumptions about tensor shapes and layouts, data types, and execution resources. The root causes and corresponding fixes are detailed in Section V.

RQ3: What testing and debugging practices are commonly used? We review issue discussions, reproduction scripts, diagnostic output, and relevant reference materials to examine how developers test and debug GPU kernels. The analysis reveals that current practices are often insufficient for diagnosing low-precision numerical errors and hardware-specific execution failures. Section VI summarizes these practices and their limitations.

The findings point to research opportunities and tooling improvements for GPU kernel libraries used by LLM systems. We discuss their implications alongside the corresponding findings in Section VII.

In summary, this paper makes the following contributions:

  1. We present the first comprehensive empirical study of issues in GPU kernel libraries for LLM systems. Based on 300 high-quality issue reports from seven representative libraries, the study characterizes symptoms, root causes, typical fixes, and testing and debugging practices.

  2. We draw practical implications from the findings and suggest improvements to GPU kernel libraries. These suggestions aim to improve developer productivity and the reliability and efficiency of LLM systems.

References (75)