SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimization
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have shown progress in GPU kernel performance engineering using inefficient search-based methods that optimize around runtime. Any existing approach lacks a key characteristic that human performance engineers rely on for near-optimal utilization -- hardware-awareness. By leveraging the workload's specific memory access patterns, architecture specifications, filtered profiling logs, and reflections on historical performance, we can make software-level optimizations that are tailored to the underlying hardware. SwizzlePerf automatically generates spatial optimizations for GPU kernels on disaggregated architectures by giving LLMs explicit hardware-awareness. For a GEMM kernel, SwizzlePerf takes less than 5 minutes to generate the same hardware-specific optimal swizzling pattern that took expert performance engineers 2 weeks to find. On a suite of 10 diverse ML and Science kernels, SwizzlePerf can generate swizzling patterns for 9 of the kernels that achieve up to a 2.06x speedup and 70% improvement in L2 hit rate. This work is the first of many steps toward systematically creating hardware-aware LLM performance engineering agents.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 16 of its 28 references that are in the map. First posted on arXiv 27 Aug 2025.
Builds on
16 of 28 references.
References · 16
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 318
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 185
- 2018Learning to Optimize Tensor Programscited by 140
- 2023Learning Performance-Improving Code Editscited by 106
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 61
4 more
- 2020Multi-Head Attention: Collaborate Instead of Concatenatecited by 60
- 2025GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimizationcited by 22
- 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformerscited by 16
- 2025QuArch: A Question-Answering Dataset for AI Agents in Computer Architecturecited by 4
Built on by
Citing papers per year: 2025: 6; 2026: 5.
11 papers.
- 2025CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learningcited by 13
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 13
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimizationcited by 11
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 11
- 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolutioncited by 7
- 2025QuArch: A Benchmark for Evaluating LLM Reasoning in Computer Architecturecited by 3
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Banditscited by 2
- 2026JAXBench: Benchmarking Autonomous TPU Kernel Optimizationcited by 2
- 2025Integrating Performance Tools in Model Reasoning for GPU Kernel Optimizationcited by 1
- 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generationcited by 0
- 2026Kernel Foundry: A Diagnosis-driven Evolutionary Kernel Optimizer with Multi-Expertscited by 0
- 2026Towards Feedback-to-Plan Decisions for Self-Evolving LLM Agents in CUDA Kernel Generation26 May 2026
- 2026JAXBench: Benchmarking Autonomous TPU Kernel Optimization19 May 2026
- 2026Kernel Foundry: A Diagnosis-driven Evolutionary Kernel Optimizer with Multi-Experts8 May 2026
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimization12 Mar 2026
- 2026Towards Automated Kernel Generation in the Era of LLMs22 Jan 2026
- 2025cuPilot: A Strategy-Coordinated Multi-agent Framework for CUDA Kernel Evolution18 Dec 2025
- 2025CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learning2 Dec 2025
- 2025KernelBand: Steering LLM-based Kernel Optimization via Hardware-Aware Multi-Armed Bandits24 Nov 2025
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimization9 Nov 2025
- 2025QuArch: A Benchmark for Evaluating LLM Reasoning in Computer Architecture24 Oct 2025
- 2025Integrating Performance Tools in Model Reasoning for GPU Kernel Optimization20 Oct 2025