Saved in:
Bibliographic Details
Main Authors: Mai, Haohui, Guo, Xiaoyan, Ding, Xiangyun, Li, Daifeng, Yu, Qiuchu, Guo, Chenzhun, Wang, Cong, Zhao, Jiacheng, Kozyrakis, Christos, Yuan, Binhang
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.18616
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915946137911296
author Mai, Haohui
Guo, Xiaoyan
Ding, Xiangyun
Li, Daifeng
Yu, Qiuchu
Guo, Chenzhun
Wang, Cong
Zhao, Jiacheng
Kozyrakis, Christos
Yuan, Binhang
author_facet Mai, Haohui
Guo, Xiaoyan
Ding, Xiangyun
Li, Daifeng
Yu, Qiuchu
Guo, Chenzhun
Wang, Cong
Zhao, Jiacheng
Kozyrakis, Christos
Yuan, Binhang
contents LLM-based coding agents can generate functionally correct GPU kernels, yet their performance remains far below hand-optimized libraries on critical computations such as matrix multiplication, attention, and Mixture-of-Experts (MoE). Peak GPU performance requires coordinated reasoning over tightly coupled optimizations, including tiling, shared-memory staging, software pipelining, and instruction scheduling, while existing agents rely on sparse pass/fail feedback, leaving them unable to diagnose global constraint violations. We present Argus, an agentic framework that addresses this through data-flow invariants: compile-time specifications encoding how data must be choreographed throughout kernel execution. Argus introduces a tile-based, Pythonic DSL exposing hardware instructions and compiler policies while hiding low-level representations. The DSL provides tag functions to propagate symbolic annotations through data and control flow, and tag assertions to enforce relational constraints at use sites. When violations occur, the compiler returns concrete counterexamples identifying the thread, data element, and program point, enabling dense, structured feedback for targeted fixes. Invariants are verified at compile time via abstract interpretation over a layout algebra and SMT solving, with zero runtime overhead. An in-context reinforcement learning planner learns to select optimizations and synthesize effective invariants, supported by a curated knowledge base of GPU optimization techniques. We evaluate Argus on the AMD MI300X GPU across GEMM, flash attention, and MoE kernels accounting for over 90% of GPU time in LLM inference. Generated kernels achieve 99-104% of state-of-the-art hand-optimized assembly throughput and are 2-1543x faster than existing agentic systems. Argus further generalizes to 200 KernelBench tasks, solving 100% of Level 1 and 90% of Level 2 problems.
format Preprint
id arxiv_https___arxiv_org_abs_2604_18616
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle ARGUS: Agentic GPU Optimization Guided by Data-Flow Invariants
Mai, Haohui
Guo, Xiaoyan
Ding, Xiangyun
Li, Daifeng
Yu, Qiuchu
Guo, Chenzhun
Wang, Cong
Zhao, Jiacheng
Kozyrakis, Christos
Yuan, Binhang
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Programming Languages
LLM-based coding agents can generate functionally correct GPU kernels, yet their performance remains far below hand-optimized libraries on critical computations such as matrix multiplication, attention, and Mixture-of-Experts (MoE). Peak GPU performance requires coordinated reasoning over tightly coupled optimizations, including tiling, shared-memory staging, software pipelining, and instruction scheduling, while existing agents rely on sparse pass/fail feedback, leaving them unable to diagnose global constraint violations. We present Argus, an agentic framework that addresses this through data-flow invariants: compile-time specifications encoding how data must be choreographed throughout kernel execution. Argus introduces a tile-based, Pythonic DSL exposing hardware instructions and compiler policies while hiding low-level representations. The DSL provides tag functions to propagate symbolic annotations through data and control flow, and tag assertions to enforce relational constraints at use sites. When violations occur, the compiler returns concrete counterexamples identifying the thread, data element, and program point, enabling dense, structured feedback for targeted fixes. Invariants are verified at compile time via abstract interpretation over a layout algebra and SMT solving, with zero runtime overhead. An in-context reinforcement learning planner learns to select optimizations and synthesize effective invariants, supported by a curated knowledge base of GPU optimization techniques. We evaluate Argus on the AMD MI300X GPU across GEMM, flash attention, and MoE kernels accounting for over 90% of GPU time in LLM inference. Generated kernels achieve 99-104% of state-of-the-art hand-optimized assembly throughput and are 2-1543x faster than existing agentic systems. Argus further generalizes to 200 KernelBench tasks, solving 100% of Level 1 and 90% of Level 2 problems.
title ARGUS: Agentic GPU Optimization Guided by Data-Flow Invariants
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Programming Languages
url https://arxiv.org/abs/2604.18616