PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimization
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 1 more
Abstract (arXiv)
Designing high-performance kernels requires expert-level tuning and a deep understanding of hardware characteristics. Recent advances in large language models (LLMs) have enabled automated kernel generation, yet most existing systems rely solely on correctness or execution time feedback, lacking the ability to reason about low-level performance bottlenecks. In this paper, we introduce PRAGMA, a profile-guided AI kernel generation framework that integrates execution feedback and fine-grained hardware profiling into the reasoning loop. PRAGMA enables LLMs to identify performance bottlenecks, preserve historical best versions, and iteratively refine code quality. We evaluate PRAGMA on KernelBench, covering GPU and CPU backends. Results show that PRAGMA consistently outperforms baseline AIKG without profiling enabled and achieves 2.81× and 2.30× averaged speedups against Torch on CPU and GPU platforms, respectively.
Key facts. Cited by 11 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 9 of its 22 references that are in the map. First posted on arXiv 9 Nov 2025.
Builds on
9 of 22 references.
References · 9
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023ChatDev: Communicative Agents for Software Developmentcited by 893
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimizationcited by 11
- 2025MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computingcited by 5
- 2025QiMeng-TensorOp: Automatically Generating High-Performance Tensor Operators with Hardware Primitivescited by 5
- 2025QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithmcited by 4
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 9
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 9
- 2026AscendCraft: Automatic Ascend NPU Kernel Generation via DSL-Guided Transcompilationcited by 6
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimizationcited by 5
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimizationcited by 2
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 2
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generationcited by 1
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolutioncited by 0
- 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generationcited by 0
- 2026Compiler-Grounded Hierarchical Diagnosis for LLM-Based Triton Kernel Optimizationcited by 0
- 2026Compiler-Grounded Hierarchical Diagnosis for LLM-Based Triton Kernel Optimization25 Jul 2026
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generation15 Jun 2026
- 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generation26 May 2026
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimization30 Mar 2026
- 2026AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimization24 Mar 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization10 Mar 2026
- 2026ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution3 Mar 2026
- 2026AscendCraft: Automatic Ascend NPU Kernel Generation via DSL-Guided Transcompilation30 Jan 2026
- 2026Towards Automated Kernel Generation in the Era of LLMs22 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimization
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026Kernel Foundry: A Diagnosis-driven Evolutionary Kernel Optimizer with Multi-Experts
- 2026SpecGen: Accelerating Agentic Kernel Optimization with Speculative Generation ↗
- 2026FastKernels: Benchmarking GPU Kernel Generation in Production
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe
- 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization