TL;DR
What happens when you stop treating a Large Language Model like a blindfolded slot machine inside an evolutionary algorithm, and instead let an autonomous coding agent run the entire show? Researchers at NVIDIA introduced Agentic Variation Operators (AVO), giving an AI agent a manual, a profiler, and a week of uninterrupted time on their newest Blackwell GPUs. By reasoning through hardware bottlenecks just like a human systems engineer, the agent evolved attention kernels that beat the world's best human-tuned libraries—including NVIDIA’s own cuDNN and FlashAttention-4.
What Problem Does This Paper Address?
Using LLMs to evolve code isn't new—systems like FunSearch and AlphaEvolve have already used them to discover clever mathematical algorithms. However, these classical evolutionary frameworks keep the LLM on a tight leash. A rigid, pre-programmed outer loop picks "parent" code, hands it to the LLM for a single-shot mutation, and evaluates the output. The LLM can’t pause to read documentation, run a diagnostic test, or fix a silly compiler error before submitting its work.
That single-shot setup falls apart when you try to optimize the absolute bleeding edge of AI infrastructure: GPU attention kernels. Attention is the computational heartbeat of Transformers, and libraries like FlashAttention-4 and cuDNN represent months of grueling manual optimization by elite hardware engineers. Squeezing even 1% more speed out of a brand-new chip like the NVIDIA Blackwell (B200) requires deep, iterative engineering—juggling memory bandwidth, instruction pipelines, and register budgets all at once. Blindly guessing code mutations won't cut it.
Methods
Instead of confining the LLM to a "generate" step inside a fixed pipeline, the authors elevate a deep, general-purpose coding agent (powered by Claude Opus 4.6) to be the variation operator—calling this Agentic Variation Operators (AVO).
Here is how AVO replaces standard heuristics with autonomous engineering:
- Rich Inputs: Rather than just seeing a couple of sampled parent programs, the agent gets unrestricted access to the entire historical lineage of past code versions (stored as git commits), a scoring utility (checking numerical correctness and TFLOPS throughput), and a Knowledge Base containing CUDA guides, PTX instruction docs, Blackwell hardware specs, and reference codebases.
- Self-Directed Loop: Within a single variation step, the agent plans, edits CUDA/PTX code, compiles, profiles bottlenecks, and debugs correctness failures in a continuous cycle. It only commits a new version to the lineage once it works and matches or beats the current best score.
- Supervisor Agent: Left alone for days, agents can get stuck in rabbit holes or repetitive loops. AVO pairs the main worker with a lightweight supervisor mechanism that monitors for stagnation and nudges the agent toward fresh optimization strategies when progress plateaus.
Datasets
Because this is a pure systems-optimization paper rather than a model-training study, traditional datasets do not apply. Instead, no training data is used, and the system is evaluated on live hardware execution benchmarks on NVIDIA B200 GPUs (measuring BF16 forward-pass prefilling throughput across sequence lengths from 4K to 32K tokens):
- Multi-Head Attention (MHA): 16 heads, head dimension 128 (causal and non-causal).
- Grouped-Query Attention (GQA): Configurations mirrored from the Qwen3 model family (group sizes 4 and 8).
- Additional Kernels: GatedDeltaNet (linear attention) and Triangle Attention (a core AlphaFold operator) to test generalization.
Key Insights and Ideas
- Genuine Hardware Reasoning, Not Lucky Hacks: Examining the 40 committed versions from a 7-day run (out of 500+ internal attempts) shows the agent making holistic micro-architectural breakthroughs. For instance, it replaced a conditional branch in online softmax rescaling with speculative branchless math—sacrificing tiny compute cycles to eliminate warp divergence and unlock lighter memory fences (+8.1% non-causal speedup). In another step, it noticed warp groups spilling data to slow local memory and carefully rebalanced hardware registers from 192/80/48 to 184/88/56 (+2.1% speedup).
- Evolution Moves in Punctuated Leaps: Performance didn't creep up smoothly; it jumped at distinct architectural "aha" moments separated by flat plateaus where the agent quietly tidied up code structure, setting the stage for the next breakthrough.
- Lightning-Fast Transfer: Hardware insights aren't brittle. Once AVO spent 7 days evolving an elite MHA kernel, the authors asked it to adapt that code for Grouped-Query Attention (GQA). Without human help, the agent generalized its optimizations to GQA's distinct memory patterns in just 30 minutes.
Key Results
Across evaluated configurations on NVIDIA B200 GPUs, AVO surpassed state-of-the-art human-engineered baselines:
- Multi-Head Attention: Achieved up to 1668 TFLOPS, outperforming closed-source cuDNN by up to 3.5% and open-source FlashAttention-4 (FA4) by up to 10.5% on causal attention.
- Grouped-Query Attention: After just 30 minutes of autonomous adaptation, AVO beat cuDNN by up to 7.0% and FA4 by up to 9.3%.
- Beyond Standard Attention: Achieved up to a 4.1× speedup over Flash Linear Attention on GatedDeltaNet, consistent gains over NVIDIA's cuEquivariance on Triangle Attention, and a ~31% improvement over traditional LLM-evolutionary baselines given the same wall-clock budget.
Limitations and Future Work
To isolate the power of the agentic operator itself, the authors restricted AVO in this study to a single-lineage setup—essentially evolving one continuous git branch of improvements. While effective, classical evolution thrives on population diversity. Integrating AVO into multi-branching, archive-based, or "island-model" evolutionary populations—where multiple autonomous agents explore different architectural philosophies in parallel and cross-pollinate ideas—remains a rich open frontier, alongside applying AVO to broader scientific and systems software domains.
Summary updated