paper-with-me

Papers

Model2Kernel: Model-Aware Symbolic Execution For Safe CUDA Kernels

2026-03-06 · Mengting He, Shihao Xia, Haomin Jia, Wenfei Wu, Linhai Song arxiv

The widespread adoption of large language models (LLMs) has made GPU-accelerated inference a critical part of modern computing infrastructure. Production inference systems rely on CUDA kernels to implement core transformer operations, yet these kernels are highly susceptible to memory-safety bugs due to model-dependent tensor layouts, intricate memory indexing, and massive thread-level parallelism. Such bugs can corrupt model weights, crash inference services, or even enable adversarial attacks. Existing techniques either depend on unavailable hardware, incur high overhead, or fail to handle kernel inputs with variable lengths, and none can effectively detect CUDA memory bugs in LLM inference systems. This paper presents Model2Kernel, the first practical system for automatically verifying the memory safety of CUDA kernels used in LLM inference. Model2Kernel performs model-aware dynamic analysis to determine how each model invokes kernels and to classify kernel arguments as either fixed by the model architecture or controlled by model users. Using this information, Model2Kernel then applies CUDA-specialized symbolic execution, supported by new abstractions for dynamic tensor memory and thread identifiers, to accurately pinpoint memory bugs in kernels. In the evaluation on CUDA kernels and models from vLLM, Hugging Face, and recent LLM research papers, Model2Kernel discovers 353 previously unknown bugs while producing only nine false positives, demonstrating its effectiveness.

📄 PDF Abstract BibTeX arXiv:2603.24595

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generation

2026-06-15 · Wentao Chen, Jiace Zhu, Xing Zhe Chai, Zeng Qu 외 arxiv

High-performance CUDA kernels are essential for scalable AI systems, while Large Language Models (LLMs) still struggle to generate correct kernels due to strict and implicit execution constraints. Existing LLM-based appr…

CUDA MPC: A GPU-Native Solver for Model Predictive Control

2026-08-04 · Babak Akbari, Melissa Greeff arxiv

Model Predictive Control (MPC) delivers constraint-aware control, but its reliance on online optimization limits its use on systems with fast dynamics, high-dimensional models, or long horizons. Existing GPU implementati…

Caspar: CUDA Accelerator for Symbolic Programming with Adaptive Reordering

2026-05-28 · Emil Martens, Aaron Miller, Matias Varnum, Annette Stahl arxiv

We present Caspar, a library that makes the power of modern GPUs more accessible in robotics and provides a state-of-the-art nonlinear GPU solver that can be applied to a wide range of different optimization problems. Ca…

Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generation

2026-07-23 · Quazi Ishtiaque Mahmud, Nesreen K. Ahmed, Ali Jannesari arxiv

Reinforcement Learning with Verifiable Rewards (RLVR) has emerged as a powerful technique to enhance the reasoning capacity of LLMs for optimized code generation. However, existing RLVR approaches primarily rely on outco…

Reinforcement LearningCode Generation

AutoSAGE: Input-Aware CUDA Scheduling for Sparse GNN Aggregation (SpMM/SDDMM) and CSR Attention

2025-11-17 · Aleksandar Stankovic arxiv

Sparse GNN aggregations (CSR SpMM/SDDMM) vary widely in performance with degree skew, feature width, and GPU micro-architecture. We present AutoSAGE, an input-aware CUDA scheduler that chooses tiling and mapping per inpu…