mlsanityData to 14 Oct 2026

SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimization

arXiv 2508.20258 ↗First posted 27 Aug 2025cs.DC cs.AIcited by 11

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

  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  3. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  4. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
  5. 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 318
  6. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
  7. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  8. 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 185
  9. 2018Learning to Optimize Tensor Programscited by 140
  10. 2023Learning Performance-Improving Code Editscited by 106
  11. 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
  12. 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 61
4 more
  1. 2020Multi-Head Attention: Collaborate Instead of Concatenatecited by 60
  2. 2025GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimizationcited by 22
  3. 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformerscited by 16
  4. 2025QuArch: A Question-Answering Dataset for AI Agents in Computer Architecturecited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 5.

11 papers.