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

LLMシステムのためのGPUカーネルライブラリの問題に関する実証的研究

Yanjie Gao, Jiayi Bi, Haoxiang Lin, Ling Feng · arXiv · 2026年11月6日

- **課題** GPUカーネルライブラリはLLMの学習と推論の正確性や効率を左右しますが、その問題を実証的に分析した研究は多くありません。
- **手法** 7つのGPUカーネルライブラリに関するclosed GitHubのイシュー300件を、症状、根本原因、修正、テスト慣行に基づいて手作業で分類します。
- **結果** 実行前の段階にあるデプロイとビルドの失敗が過半数を占めており、根本原因はカーネルライブラリ、コンパイラおよびビルドシステム、ランタイム環境の3つの次元にまたがって分布しています。

## GPUカーネルライブラリの問題を研究する理由

LLMの学習と推論は、アテンション、GEMM、量子化、低精度演算を実装したGPUカーネルライブラリに大きく依存しています。この層の問題は、出力を静かに壊したり、GPUを停止させたり、コンパイルを妨げたり、デプロイの互換性を損なったり、性能を下げたりすることがあります。1つのカーネル経路が複数のモデル、サービングリクエスト、GPU、下流システムで再利用されるため、その影響は一般的なアプリケーションコードの欠陥よりも広く及ぶ可能性があります。

既存の実証研究は、ディープラーニングコンパイラ、ディープラーニングフレームワーク、ディープラーニングプラットフォーム、LLM学習システムの問題を扱ってきました。一方で、この論文はカーネルライブラリの層がまだ十分に調べられていないと見ています。この層の診断には、テンソルの形状とレイアウト、ベクトル化されたメモリアクセス、同期、低精度のセマンティクス、コード生成、アーキテクチャごとのカーネル選択についての推論が必要です。

## 対象ライブラリとイシューの選別手順

研究では、FlashInfer、FlashAttention、Triton、CUTLASS、DeepGEMM、xFormers、bitsandbytesの7つのリポジトリを対象としています。GitHub REST APIで収集した生のイシューは9,099件で、失敗に関連するキーワードによる選別と除外基準を経て、3,181件の候補プールを作成しました。最終的な300件のサンプルは、リポジトリごとの候補数に比例した層化標本で、根拠が不足しているレポートは、同じリポジトリで作成時期が最も近い別のイシューに置き換えています。

分類は、イシューのタイトル、説明、議論、診断の根拠、利用可能な修正情報に基づいて行っています。症状は6つのカテゴリ、根本原因は15のカテゴリで、これらはカーネルライブラリ、コンパイラおよびビルドシステム、ランタイム環境の3つの次元にまとめられています。2人の著者が300件を独立にラベル付けし、イシュー単位で症状または原因のラベルが異なる場合を不一致として数えました。その一致度はCohen’s kappa 0.87と報告されています。

## 症状の分布と実行前段階の過半数

最も多い症状はデプロイ失敗で、82件（27.33%）です。ビルド失敗は73件（24.33%）でした。この結果から、カーネルライブラリの信頼性はカーネルコードだけでなく、パッケージ、依存関係、コンパイラ、生成されたアーティファクトにも左右されると解釈できます。

Crashは63件（21.00%）、Incorrect Functionalityは53件（17.67%）、Performance Degradationは23件（7.67%）、Hangは6件（2.00%）でした。Crash、Hang、Incorrect Functionalityを合わせると122件（40.67%）になり、この3つのカテゴリはそれぞれ、呼び出しや実行中に失敗する結果、処理が止まる結果、意味を損なう結果を表しています。

## 根本原因の次元と代表的な事例

根本原因は、カーネルライブラリの次元が119件（39.67%）、コンパイラおよびビルドシステムの次元が81件（27.00%）、ランタイム環境の次元が100件（33.33%）に分類されています。カーネルライブラリの次元では、API Misuseが26件で最も多く、Code Logic Errorが22件です。コンパイラおよびビルドシステムの次元では、Incorrect Compiler Transformationが46件とより多くなっています。ランタイム環境の次元では、Software Incompatibilityが76件（25.33%）で、単一の原因カテゴリの中で最大です。

事例を見ると、DeepGEMMのTMA multicastヒューリスティックは、オペランドの順序を変えた後もAとBの順序が合わず、誤った構成を選ぶことがありました。xFormersのアテンション経路は、有効なkey列数をsigned 16-bitのパラメータとして保存していたため、長いコンテキストで境界が壊れました。この原因はintに広げることで修正されています。これらの事例は、同じ症状でも異なる修正が必要であることを示しています。

## 事例に見る性能低下とテスト慣行

Performance Degradationの事例では、FlashAttentionのレポートが、H100の学習スループットはhead dimensionが128から132に変わったとき、約370 TFLOPSから219 TFLOPSに下がったと記録しています。このレポートでメンテナは、実装がTensor Coreに揃った次元を好み、整列していない次元は32、64、128の倍数などにパディングできると説明しました。

テストとデバッグの慣行について、論文は互換性テスト、差分テスト、境界値分析、動的解析、性能回帰テストをまとめています。Tritonの事例では、呼び出しごとのJITコンパイルとコード生成に約0.7 msかかっていた一方、カーネル実行は約12 µsだったと報告されています。この測定は、遅さがGPU実行の外側にあることを示しており、ウォームアップ後にフレームワーク、コンパイル、カーネルの時間を分けて測定する根拠になります。ただし、この慣行の根拠はレポートと議論に記録された内容に限られます。

## 適用範囲と限界

結果は、選ばれた7つのリポジトリのイシューレポートに基づいています。著者らは、これらのライブラリがアテンション、GPUプログラミング、GEMM、推論、量子化を含み、学習およびサービングのエコシステムとつながっているため、他のGPUカーネルプロジェクトにも似た失敗メカニズムが現れうると解釈しています。ただし、これは可能性についての解釈であり、非公開のカーネル、他のプロジェクト、学習またはサービングシステム全体に同じ結果が当てはまると立証されたわけではありません。

また、原因を特定しにくいレポートを同じリポジトリの別のレポートに置き換えたため、よく文書化された事例にバイアスがかかっている可能性があります。テストとデバッグの慣行は記録された内容に限られ、記録されていない実践は確認できていません。

## 論文情報

- **著者**: Yanjie Gao, Jiayi Bi, Haoxiang Lin, Ling Feng
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月6日
- **登録日**: 2026年11月9日
- **更新日**: 2026年11月6日
- **バージョン**: v1
- **arXiv**: 2611.09280
- **カテゴリ**: cs.AI
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.09280v1) · [PDF ↗](https://arxiv.org/pdf/2611.09280v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

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.

## この論文を引用

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}
}
```

## この論文の用語

- [Cohen’s Kappa](https://refivu.com/ja/terms/25228dabdda8-cohen-s-kappa)
- [FlashAttention](https://refivu.com/ja/terms/dd45c7915b8f-flashattention)
- [online softmax](https://refivu.com/ja/terms/d21d847aee33-online-softmax)

## ほかの論文解説

- [On the Limits of Execution Traces for Repairing Assertion Failures in LLM-Generated Code](https://refivu.com/ja/papers/d1481f2f-4c91-4e3d-858a-b11c704cdfa5-on-the-limits-of-execution-traces-for-repairing.md)
- [KLEAR: Knowledge-Matched LLM Evaluation in Korean across Application Requirements via Controlled Benchmark Transformation](https://refivu.com/ja/papers/bc8ce06a-3f29-497c-b50f-59c6d6ffb808-klear-knowledge-matched-llm-evaluation-in-korean-across.md)
- [When Can You Trust Neural Critics? Auditing Mutual Information Estimates of Higher-Order Epistasis in Protein Language Models](https://refivu.com/ja/papers/b2ec4d0b-8883-4095-afaf-0dd584d0e102-when-can-you-trust-neural-critics-auditing-mutual.md)
- [Scout Before You Route: Predicting Task Success and Token Count from a Small LLM Prefill](https://refivu.com/ja/papers/d12c8eb1-1a33-4f9d-87d2-7d9256d13176-scout-before-you-route-predicting-task-success-and.md)
- [Generative Latent Priors for Interpreting and Steering Protein Language Models](https://refivu.com/ja/papers/531d11cc-acf3-47a5-9e2d-6572f153b63e-generative-latent-priors-for-interpreting-and-steering.md)
- [Are These Programmers Ripe Enough to Eat? Evaluating How LLMs Handle Lexical Knowledge Conflicts in Translation](https://refivu.com/ja/papers/308034ef-89c2-482e-81ce-36f9a6540f64-are-these-programmers-ripe-enough-to-eat-evaluating.md)
- [RoleWalk: training-free structural embeddings for directed graphs that transfer across graphs](https://refivu.com/ja/papers/b54d8c66-c85e-4684-898b-fa6117effc13-rolewalk-training-free-structural-embeddings-for-directed.md)
- [A Taxonomy-Driven Synthetic Dataset for Retrieval Effectiveness and Fairness Evaluation in Hiring](https://refivu.com/ja/papers/9051cb88-28dc-4d67-a758-308c4168517f-a-taxonomy-driven-synthetic-dataset-for-retrieval.md)
- [ToolDex: An Ego-Exo Human Demonstration Dataset for Creative Physical Tool Use](https://refivu.com/ja/papers/f7963d76-af51-4278-9dce-c11b52ed3598-tooldex-an-ego-exo-human-demonstration-dataset-for.md)
- [SPDMX: Large-Scale Open Stem Audio From Symbolic Music](https://refivu.com/ja/papers/d44c74dc-c819-4000-abdd-aa9c5a06a54a-spdmx-large-scale-open-stem-audio-from-symbolic.md)
- [Nudging Decision Models: Do Digital Nudges Steer Fast, Generation-Free AI Agents?](https://refivu.com/ja/papers/1fea3858-f024-4874-86e7-716dc535b549-nudging-decision-models-do-digital-nudges-steer-fast.md)
- [Reconciling European Electricity Data with Diffusion Priors Learned from Observations Alone](https://refivu.com/ja/papers/9b64e54c-076c-496c-9236-8744425c1c5a-reconciling-european-electricity-data-with-diffusion-priors.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/b4b20cf0-960a-40a7-a669-eb0904200dc1-an-empirical-study-of-issues-in-gpu-kernel)
