← all papers · overview

Qimeng-kernel: Macro-thinking Micro-coding Paradigm For Llm-based High-performance GPU Kernel Generation

·2025

Abstract

Developing high-performance GPU kernels is critical for AI and scientific computing, but remains challenging due to its reliance on expert crafting and poor portability. While LLMs offer promise for automation, both general-purpose and finetuned LLMs suffer from two fundamental and conflicting limitations: correctness and efficiency. The key reason is that existing LLM-based approaches directly generate the entire optimized low-level programs, requiring exploration of an extremely vast space encompassing both optimization policies and implementation codes. To address the challenge of exploring an intractable space, we propose Macro Thinking Micro Coding (MTMC), a hierarchical framework inspired by the staged optimization strategy of human experts. It decouples optimization strategy from implementation details, ensuring efficiency through high-level strategy and correctness through low-level implementation. Specifically, Macro Thinking employs reinforcement learning to guide lightweight

Related papers

Ranked by semantic similarity — how closely each paper's abstract matches this one (100% = near-identical topic).

Qimeng-kernel: Macro-thinking Micro-coding Paradigm For Llm-based High-performance GPU Kernel Generation — ai-agents