Don't Regenerate, Debug: A Domain-Specific Agent for Repairing Near-Miss Hardware Operators
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Kernel generation for hardware accelerators such as GPUs and NPUs has become a proving ground for large language models (LLMs), and state-of-the-art systems raise correctness through pipelines that couple LLMs with agentic reinforcement learning and evolutionary search. Such pipelines generate, compile, and execute large numbers of candidate kernels, discarding most of them and forgoing the opportunity to distill failures into reusable knowledge. Many discarded candidates are near-miss operators that compile and run but fail numerical validation; each embodies genuine domain knowledge and a nontrivial investment in LLM inference, cross-compilation, and hardware execution. We argue for a paradigm shift: rather than regenerate, debug. Debugging is far more constrained than generating from scratch: the search space is small and feedback is dense. We present a domain-specific debug agent that addresses three core challenges in autonomous repair: mitigating knowledge scarcity through retrieved patterns and diagnostic instrumentation, ensuring integrity through anti-cheat detection and full-coverage evaluation, and controlling cost via convergence guards and bounded iteration. Debugging serves two complementary roles: it extends the capability frontier by recovering operators that repeated regeneration fails to produce, and it lowers cost per deliverable operator. Debug Pass@1 achieves 66.7% versus Regenerate Avg Pass@1's 25.9% and Regenerate Pass@3's 40.7%, while consuming 92.8% fewer tokens per success than three-trial regeneration. Component ablations show that the knowledge base drives recovery, while integrity gates reject 12.5-33.3% of the successes the workflow itself accepted.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 16 of its 34 references that are in the map. First posted on arXiv 3 Aug 2026.
Builds on
16 of 34 references.
Closest ancestors · 6
Same direction, newest first
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs14 Jul
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation27 Feb
- 2025ProofWright: Towards Agentic Formal Verification of CUDA15 Nov
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization23 Oct
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
Other references · 10
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 73
- 2026Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineeringcited by 68
- 2026SkillEvolver: Skill Learning as a Meta-Skillcited by 12
- 2026AscendKernelGen: A Systematic Study of LLM-Based Kernel Generation for Neural Processing Unitscited by 11
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
- 2026KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernelscited by 10
- 2026AscendCraft: Automatic Ascend NPU Kernel Generation via DSL-Guided Transcompilationcited by 6
- 2026The Correctness Illusion in LLM-Generated GPU Kernelscited by 6
- 2025InspectCoder: Dynamic Analysis-Enabled Self Repair through interactive LLM-Debugger Collaborationcited by 4
- 2026MusaCoder: Native GPU Kernel Generation with Full-Stack Training on Moore Threads GPUcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Clover: A Neural-Symbolic Agentic Harness with Stochastic Tree-of-Thoughts for Verified RTL Repair
- 2026DebugHarness: Emulating Human Dynamic Debugging for Autonomous Program Repair
- 2026Outrunning LLM Cutoffs: A Live Kernel Crash Resolution Benchmark for All
- 2026HWE-Bench: Benchmarking LLM Agents on Real-World Hardware Bug Repair Tasks
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models
- 2025kAgent: An execution-guided crash resolution agent for the Linux kernel
- 2026AgentDebugX: An Open-Source Toolkit for Failure Observability, Attribution, and Recovery in LLM Agents
- 2026KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?