Ask, Don't Equip: Question-Driven Coding Agents for Deep Kernel Optimization
On the map: LLM agents and tool use → Multimodal and embodied agents also fits: Web, search, and research agents
Abstract (arXiv)
LLM agents for GPU kernel optimization sit at two ends of a structure-freedom tradeoff. Scripted agents fix what the model does at each step, via a learned policy, an optimization menu, or fixed roles, and are sample-efficient where the recipe applies and stall where it does not. Open-ended agents let a self-directed model mutate a population of kernels and pay for the freedom in trials: thousands of evaluations, repeated edits, and wrong candidates. Both respond to hard targets by equipping the agent with more: parsed profiler output, disassembly analysis, retrieval over documentation and libraries, and stores of lessons. We argue that both lack direction, a hypothesis about where the remaining gap is, and that a short question asked at the right moment supplies it without narrowing what the agent may do next. We present KernelSeek, a question-driven agent that makes an existing CUDA kernel faster with no operator-specific knowledge and no faster implementation to imitate: a general-purpose coding agent, a minimal harness that enforces a verifiable goal, and questions at decision points, first from a human, then from a bank the agent applies to itself. On the same task, evaluator, hardware, and week, a tool-rich autonomous agent built in the prevailing style plateaued at 0.50x FlashAttention-3 after 133 model-driven steps; KernelSeek reached 1.13x. It then produced dependency-free FlashAttention forward kernels for Hopper and Blackwell, single CUDA files with no CUTLASS, CuTe, cuBLAS, or cuDNN, correct on all 182 scenarios per architecture and 1.16x FlashAttention-3 and 1.46x FlashAttention-4 (geometric mean). Across 162 human messages and 11.5K agent tool calls, every large gain followed a question that moved the agent to a different layer of the system or rejected a claimed limit, never one that supplied information. We release the kernels, harness, question bank, and all traces.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Multimodal and embodied agents, one of 16 directions in LLM agents and tool use. Builds on 47 of its 167 references that are in the map. Submitted 2 Nov 2026.
Builds on
47 of 167 references.
References · 47
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 1,170
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,156
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 1,078
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 611
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 461
35 more
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verificationcited by 412
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 330
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 279
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 222
- 2025ShinkaEvolve: Towards Open-Ended And Sample-Efficient Program Evolutioncited by 222
- 2026Learning to Discover at Test Timecited by 134
- 2023Hypothesis Search: Inductive Reasoning with Language Modelscited by 130
- 2022Capturing Failures of Large Language Models via Human Cognitive Biasescited by 107
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 106
- 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 99
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 96
- 2024Can large language models explore in-context?cited by 85
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 73
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 69
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 63
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 60
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 43
- 2026From Confident Closing to Silent Failure: Characterizing False Success in LLM Agentscited by 35
- 2026Dr. Kernel: Reinforcement Learning Done Right for Triton Kernel Generationscited by 32
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 30
- 2026AVO: Agentic Variation Operators for Autonomous Evolutionary Searchcited by 29
- 2026SOL-ExecBench: Speed-of-Light Benchmarking for Real-World GPU Kernels Against Hardware Limitscited by 26
- 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 17
- 2025TritonForge: Profiling-Guided Framework for Automated Triton Kernel Optimizationcited by 17
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 17
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 13
- 2024Optimal Kernel Orchestration for Tensor Programs with Korchcited by 9
- 2026Event Tensor: A Unified Abstraction for Compiling Dynamic Megakernelcited by 7
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimizationcited by 6
- 2026What Do Evolutionary Coding Agents Evolve?cited by 6
- 2025Another Turn, Better Output? A Turn-Wise Analysis of Iterative LLM Promptingcited by 5
- 2026CUCo: An Agentic Framework for Compute and Communication Co-designcited by 4
- 2026FastKernels: Benchmarking GPU Kernel Generation in Productioncited by 4
- 2026Harness Engineering for LLM-Driven GPU Kernel Generationcited by 4
- 2026Prior Knowledge or Search? A Study of LLM Agents in Hardware-Aware Code Optimizationcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026AgentKernelArena: Generalization-Aware Benchmarking of GPU Kernel Optimization Agents
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels
- 2026EGG: An Expert-Guided Agent Framework for Kernel Generation
- 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance
- 2026Beyond Experience: Knowledge-Guided Evolution for NPU Kernel Generation
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning