Prior Knowledge or Search? A Study of LLM Agents in Hardware-Aware Code Optimization
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM discovery and optimization systems are increasingly applied across domains, implementing a common propose-evaluate-revise loop. Such optimization or discovery progresses via context conditioning on received feedback from an environment. However, as modern LLM agents are increasingly complex in their structure, it is difficult to evaluate which components contribute the most, and when and how this exploration may fail. We answer these questions through three controlled experiments. Our findings: (1) In pure black-box optimization, LLMs act as greedy optimizers. (2) In zero-shot kernel generation, providing explicit input-size information has no measurable effect, models converge to the same kernel parameters regardless of size or temperature, as though the size instruction were invisible. Moreover, when tasked to perform kernel optimization for uncommon kernel sizes, performance sharply degrades regardless of the language used. (3) In feedback-loop kernel optimization, CUDA improves monotonically under iterative feedback, while TVM IR actively degrades, which demonstrates that kernel optimization degrades when models operate with low-density language. Our results conclude that LLMs in code optimization tasks highly depend on pretrained priors rather than provided feedback or agentic structure.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 17 of its 28 references that are in the map. First posted on arXiv 19 May 2026.
Builds on
17 of 28 references.
Closest ancestors · 3
Same direction, newest first
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation27 Feb
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discovery16 Jun
Other references · 14
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2016The CMA Evolution Strategy: A Tutorialcited by 364
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2024Large Language Models to Enhance Bayesian Optimizationcited by 127
- 2024Chain of Thoughtlessness? An Analysis of CoT in Planningcited by 100
- 2024MOOSE-Chem: Large Language Models for Rediscovering Unseen Chemistry Scientific Hypothesescited by 68
- 2025LiveCodeBench Pro: How Do Olympiad Medalists Judge LLMs in Competitive Programming?cited by 52
- 2025OMEGA: Can LLMs Reason Outside the Box in Math? Evaluating Exploratory, Compositional, and Transformative Generalizationcited by 48
- 2025Algorithm Discovery With LLMs: Evolutionary Search Meets Reinforcement Learningcited by 39
- 2024When Large Language Model Meets Optimizationcited by 22
- 2026Can LLMs Beat Classical Hyperparameter Optimization Algorithms? A Study on autoresearchcited by 12
- 2024Evolution Transformer: In-Context Evolutionary Optimizationcited by 9
2 more
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Beyond Scaling: Self-Evolving LLM Agents for Hardware Kernel Optimization via an Experience-Driven Workflow and Experience Graph Memory
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization
- 2026Towards Automated Kernel Generation in the Era of LLMs
- 2026Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance
- 2024Should AI Optimize Your Code? A Comparative Study of Classical Optimizing Compilers Versus Current Large Language Models