MaxKernel: Agentic Kernel Generation for TPUs

📅 2026-09-03
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
本文提出MaxKernel系统,通过多代理方法生成TPU内核,结合人类协作、全自动优化和图搜索策略解决高性能内核设计难题。
📝 Abstract
Designing and authoring high-performance custom kernels for accelerators is a complex task that requires deep hardware-level expertise. Large Language Models (LLM) can be leveraged together with real-time compiler feedback to build agentic systems for kernel generation. In this work, we present MaxKernel, a multi-agent system that implements three distinct paradigms for TPU kernel development: (1) a Human-in-the-Loop (HITL) agent for collaborative, step-by-step design; (2) an Autonomous (Auto) agent that executes a fully automated, metric/trace-driven optimization loop; and (3) a Graph-Based Autonomous Search that scales the Auto agent for global exploration of the design space. All three paradigms leverage a shared pool of specialized sub-agents to handle planning, implementation, self-debugging, testing, and hardware profiling. We evaluate MaxKernel on JaxBench, a comprehensive suite of 50 diverse kernel tasks for TPUs, alongside complex, real-world workloads from state-of-the-art open-source models. We demonstrate that MaxKernel consistently generates highly optimized implementations, matching expert hand-tuned baselines and delivering significant performance across the benchmark. Our agent is open-sourced and available https://github.com/AI-Hypercomputer/accelerator-agents/tree/main/MaxKernel.
Problem

Research questions and friction points this paper is trying to address.

High-Performance Custom Kernels
TPUs
Large Language Models
Real-time Compiler Feedback
Agentic Systems
Innovation

Methods, ideas, or system contributions that make the work stand out.

Multi-Agent System
Human-in-the-Loop
Autonomous Optimization
Graph-Based Search
High-Performance Kernels
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.