GPU kernel optimization with coding agents and measured evidence
Atrex Kernel Agent (AKA) optimizes GPU kernels through an iterative loop of research, implementation, profiling, and evaluation. Coding agents propose candidates; the Supervisor verifies correctness and performance before promoting an improvement.
Its lightweight workflow keeps the optimization loop focused, while a plugin architecture lets users configure and replace agents, workspaces, evaluation, execution, and knowledge providers.
AKA supports Claude, Qoder, Codex, and Pi, with CUDA, Triton, CuTeDSL, FlyDSL, and TileLang tooling for supported NVIDIA, AMD, and T-Head PPU environments. Native Atrex-Bench evaluation runs through Agate; GPU Wiki provides optimization knowledge.
- Establish a baseline. Freeze the operator's evaluator inputs and measure the initial implementation.
- Explore and measure. The agent researches, edits a managed source draft, and uses private tools to evaluate and profile candidates.
- Submit evidence. A report binds the candidate to its exact source snapshot and measurement records.
- Verify and promote. The Supervisor checks correctness and applicable policy, then compares candidate and incumbent in the same GPU allocation using ABBA measurements. Only a verified improvement is promoted.
- Continue or finish. Retain evidence and reusable knowledge across Episodes, recover interrupted work, and export the retained implementation.
-
[2026-10] v0.4.0: A lightweight workflow and plugin architecture. Better kernel performance with 20–30% lower average token consumption, plus configurable, replaceable providers for agents, workspaces, evaluation, execution, and knowledge. Release notes.
-
[2026-09] From leaderboards to real-world workloads: accelerating Qwen3.8-Max's core inference operators (WeChat): AKA delivers lower average latency than expert implementations for all three key operator families across 60 real-world shapes, with up to 1.55× speedup over production/official baselines.
-
[2026-09] We released Atrex Kernel Agent v0.3.0 with resumable fast, full, and goal episodes; native Atrex-Bench and multi-framework production campaigns; Claude, Qoder, Codex, and Pi backends; isolated SSH GPU execution with recovery; PPU profiling; plugin-backed GPU Wiki retrieval; and production-mode supplemental numerical probes. See the v0.3.0 release notes.
-
[2026-08] We slimmed down Atrex Kernel Agent by consolidating on a single orchestrated workflow and removing legacy paths and redundant context for a smaller context footprint and lower token usage.
-
[2026-07] We helped Qwen3.8 rank No. 1 on the SOL-ExecBench FlashInfer operator optimization leaderboard.
-
[2026-07] We released Atrex Kernel Agent v0.2.0 with an orchestrated clean-session loop, native SOL-ExecBench operator workflow, Triton-to-Gluon conversion support, and a fuller NVIDIA profiling toolchain. [Release]
-
[2026-07] We released the Atrex paper: Are LLM-Generated GPU Kernels Production-Ready? A Trace-Driven Benchmark and Optimization Agent.
-
[2026-06] We released Atrex Kernel Agent v0.1.0 as the initial open-source version, with the GPU Wiki knowledge base, profile-driven optimization workflow, profiling tools, and reference templates. [Release]
Recommended: launch through a prompt. Open this repository in your coding agent and give it the operator path, target GPU, framework, and optimization budget:
Read docs/quickstart.md and set up the matching AKA packages from this checkout.
Optimize /path/to/atrex-bench/operator on a <gpu_arch> Agate worker using CUDA,
Claude as the coding agent, production mode, and up to 20 iterations.
Use ~/aka-opt as the workspace. Check the required environment, launch the
campaign, and report the verified result and output location.
Replace the example values with your workload and configured GPU environment. See the setup guide for prerequisites and problem preparation.
- Documentation index — all guides and validation reports.
- Quick Start — setup, inputs, launch, and outputs.
- Architecture — ownership, lifecycle, verification, and recovery.
- Configuration — modules, profiles, and optional features.
- Source layouts — multi-file candidates and native CUDA.
- GPU Wiki — structured optimization knowledge.
- Release notes — changes and upgrade guidance.
AKA builds on and learns from many open-source projects, including:
- GPU kernel projects: CUTLASS, cutex, cuLA, FlashAttention, FlashInfer, FlyDSL, Triton, DeepGEMM, LeetCUDA, FlashMLA, Composable Kernel, cute-gemm, hpc-ops, AIter, quack, and TileLang.
- Knowledge and agent tooling: KernelWiki, modern-gpu-programming-for-mlsys, ncu-report-skill, humanize, AKO4ALL, and KDA.
If AKA is useful in your work, please cite the Atrex paper:
@misc{atrex2026,
title = {Are LLM-Generated GPU Kernels Production-Ready? A Trace-Driven Benchmark and Optimization Agent},
author = {Lingyun Yang and Yuxiao Wang and Shenghao Liang and Linfeng Yang and Daocheng Ying and Chunbo You and Rui Zhang and Luping Wang and Yinghao Yu and Guodong Yang and Liping Zhang},
year = {2026},
eprint = {2607.14541},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2607.14541}
}Licensed under the Apache License 2.0.

