mlsanityData to 7 Oct 2026

M2K: Making the Model-Kernel Interface Explicit for Reliable CUDA Kernel Verification

arXiv 2603.24595 ↗First posted 6 Mar 2026cs.PL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language model (LLM) inference systems rely on CUDA kernels for core GPU computations, yet the interface between models and kernels is implicit and poorly specified. Models and kernels evolve independently and often make incompatible assumptions about tensor shapes and input sizes, leading to subtle memory bugs in CUDA kernels. These bugs can crash inference services, corrupt model weights, or be exploited by remote adversaries. Existing techniques either incur prohibitive runtime overhead, require specialized hardware, or fail to handle dynamic tensor shapes and variable kernel launch configurations, leaving the CUDA memory bugs largely unaddressed. This paper presents M2K, a fully automated framework that makes the model-kernel interface explicit and leverages it to detect memory bugs in CUDA kernels used in LLM inference systems. M2K consists of two components. HFProbe traces model execution without GPU hardware, classifies kernel arguments into model-fixed and user-variable, and emits symbolic constraints that capture the interface. cuKLEE then performs symbolic execution on CUDA kernels to pinpoint memory bugs under the interface constraints, modeling tensors as disjoint memory regions and treating thread identifiers symbolically to scale to thousands of threads. In the evaluation, M2K discovers 181 previously unknown bugs in real LLM inference systems, while producing only nine false positives, demonstrating its effectiveness.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 78 references that are in the map. First posted on arXiv 6 Mar 2026.

Builds on

26 of 78 references.

References · 26

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  6. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  7. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  8. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  9. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  10. 2024A Survey on Large Language Models for Code Generationcited by 646
  11. 2023A Survey on Large Language Models for Recommendationcited by 378
  12. 2023Large Language Models for Information Retrieval: A Surveycited by 331
14 more
  1. 2024A Complete Survey on LLM-based AI Chatbotscited by 71
  2. 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
  3. 2024PV-Tuning: Beyond Straight-Through Estimation for Extreme LLM Compressioncited by 59
  4. 2024Any-Precision LLM: Low-Cost Deployment of Multiple, Different-Sized LLMscited by 50
  5. 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 29
  6. 2024ShiftAddLLM: Accelerating Pretrained LLMs via Post-Training Multiplication-Less Reparameterizationcited by 27
  7. 2021PyCG: Practical Call Graph Generation in Pythoncited by 16
  8. 2025ProofWright: Towards Agentic Formal Verification of CUDAcited by 8
  9. 2013CUDA Leaks: Information Leakage in GPU Architecturescited by 2
  10. 2015Buffer overflow vulnerabilities in CUDA: a preliminary analysiscited by 2
  11. 2025MirrorFuzz: Leveraging LLM and Shared Bugs for Deep Learning Framework APIs Fuzzingcited by 2
  12. 2025GPUArmor: A Hardware-Software Co-design for Efficient and Scalable Memory Safety on GPUscited by 1
  13. 2026CuFuzz: Hardening CUDA Programs through Transformation and Fuzzingcited by 1
  14. 2026Challenges and Design Considerations for Finding CUDA Bugs Through GPU-Native Fuzzingcited by 1

Built on by

Not cited yet.