mlsanityData to 7 Oct 2026

QiMeng-Kernel: Macro-Thinking Micro-Coding Paradigm for LLM-Based High-Performance GPU Kernel Generation

arXiv 2511.20100 ↗First posted 25 Nov 2025cs.DC cs.CLcited by 16

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

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 LLMs in efficiently exploring and learning semantic optimization strategies that maximize hardware utilization. Micro Coding leverages general-purpose LLMs to incrementally implement the stepwise optimization proposals from Macro Thinking, avoiding full-kernel generation errors. Together, they effectively navigate the vast optimization space and intricate implementation details, enabling LLMs for high-performance GPU kernel generation. Comprehensive results on widely adopted benchmarks demonstrate the superior performance of MTMC on GPU kernel generation in both accuracy and running time. On KernelBench, MTMC achieves near 100% and 70% accuracy at Levels 1-2 and 3, over 50% than SOTA general-purpose and domain-finetuned LLMs, with up to 7.3x speedup over LLMs, and 2.2x over expert-optimized PyTorch Eager kernels. On the more challenging TritonBench, MTMC attains up to 59.64% accuracy and 34x speedup.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 18 of its 47 references that are in the map. First posted on arXiv 25 Nov 2025.

Builds on

18 of 47 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Qwen2.5-Coder Technical Report18 Sep

Other references · 17

  1. 2017Proximal Policy Optimization Algorithmscited by 14,441
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  3. 2024Qwen2.5 Technical Reportcited by 4,713
  4. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  7. 2023StarCoder: may the source be with you!cited by 790
  8. 2024DeepSeek-V3 Technical Reportcited by 724
  9. 2024A Survey on Large Language Models for Code Generationcited by 646
  10. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
  11. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
  12. 2025TritonBench: Benchmarking Large Language Model Capabilities for Generating Triton Operatorscited by 68
5 more
  1. 2024True Knowledge Comes from Practice: Aligning LLMs with Embodied Environments via Reinforcement Learningcited by 36
  2. 2023Operator Fusion in XLA: Analysis and Evaluationcited by 8
  3. 2025QiMeng-TensorOp: Automatically Generating High-Performance Tensor Operators with Hardware Primitivescited by 5
  4. 2025QiMeng-Xpiler: Transcompiling Tensor Programs for Deep Learning Systems with a Neural-Symbolic Approachcited by 4
  5. 2025QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithmcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 15.

16 papers.

Sort:

By area:

  1. 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
  2. 2026Towards Automated Kernel Generation in the Era of LLMscited by 9
  3. 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 9
  4. 2025AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesiscited by 7
  5. 2026StitchCUDA: An Automated Multi-Agents End-to-End GPU Programing Framework with Rubric-based Agentic Reinforcement Learningcited by 7
  6. 2026AscendCraft: Automatic Ascend NPU Kernel Generation via DSL-Guided Transcompilationcited by 6
  7. 2026Towards Cold-Start Drafting and Continual Refining: A Value-Driven Memory Approach with Application to NPU Kernel Synthesiscited by 3
  8. 2026FastKernels: Benchmarking GPU Kernel Generation in Productioncited by 2
  9. 2026Surprisal-Guided Selection: Compute-Optimal Test-Time Strategies for Execution-Grounded Code Generationcited by 1
  10. 2026RealisticTritonBench: A Benchmark for Triton-Kernel Generation in Real-World AI Frameworkscited by 1
  11. 2026AgentKernelArena: Generalization-Aware Benchmarking of GPU Kernel Optimization Agentscited by 0
  12. 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineagescited by 0
4 more
  1. 2026SparseDitto: An Agentic Sparse Compilation Framework through Architecture-Aware Synthesis on GPUscited by 0
  2. 2026Beyond Scaling: Self-Evolving LLM Agents for Hardware Kernel Optimization via an Experience-Driven Workflow and Experience Graph Memorycited by 0
  3. 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Languagecited by 0
  4. 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesiscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimization
  2. 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Model
  3. 2025STARK: Strategic Team of Agents for Refining Kernels
  4. 2026Fine-Tuning GPT-5 for GPU Kernel Generation
  5. 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimization
  6. 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance
  7. 2026GPU Forecasters: Language Models as Selective Surrogates for Kernel Runtime Optimization
  8. 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits