# Coding agents that reorganize when stuck beat one expert chip program

**TL;DR:** Given extra money for AI use, a self-reorganizing team of AI agents wrote a chip program averaging 1.21 times the expert-written version's speed. It suggests AI agents can improve on expert code, though on this task, at an equal budget, they stayed slower.

## Words to know

- **GPU**: A type of computer chip that does many calculations at once, used to train and run most AI.
- **kernel**: A small program that performs one core calculation directly on a GPU.
- **coding agent**: An AI system that writes, runs and fixes computer programs on its own, step by step.
- **supervisor**: An extra AI agent that watches the other agents and changes their roles and ways of working.

## The problem
AI runs on chips called GPUs. Its key math steps run as small, fast programs called kernels. Coding agents can now write kernels, but they often stall far below expert speed. On one kernel for the DeepSeek-V3 AI model, single agents first tried a fast but tricky design. After repeated errors, they dropped it for a simpler, slower design. Then they spent most of their budget tuning that weaker choice.

## The idea
The authors add a supervisor: an extra AI agent that rebuilds the team when progress stalls. Picture a site manager who finds out why a building job stalled, then changes who does what on the crew. She might bring in a specialist or split the workers onto separate paths. A shared notebook keeps every lesson, so each new crew starts where the last one ended. The supervisor invents roles from scratch, like a Challenger that tests claimed speed limits. The tests compare the team with a single agent and a fixed team. The authors argue this lets the team return to hard designs that a single agent abandons.

## What they showed
- **Ahead at equal cost.** On the DeepSeek kernel, with matched spending, a single Claude Code agent stalled at about half the speed of FlashInfer, the expert production kernel. The team reached about three quarters of FlashInfer's speed, and it also beat the single agent on the other kernel tasks.
- **The rebuilding matters.** A fixed team of specialist roles, with no supervisor, fell well short of the evolving team. The authors trace its slow start to a bug whose clues were split across agents.
- **Past the experts, with more time.** In a longer run with extra budget, the team's kernel averaged 1.21 times FlashInfer's speed. It was faster on 36 of the 47 test cases and slightly slower on the rest.

## Why it matters
Engineers who write kernels are the most direct audience. If the result holds, they could hand an agent team a slow program and get back fast code. Single runs also showed gains in robot control and on Macs. The code is public. The kernel it sped up runs while DeepSeek-V3 writes its replies. The paper does not measure how much faster full replies get.

## The catch
The headline number counts FlashInfer's setup step, as production systems do. Against FlashInfer's core step alone, the team's kernel ran at 0.96 times its speed, so slightly slower. Each main setting ran only twice, with the better run reported, so the paper cannot say how reliable each gap is. No rival got a matched extra budget on this kernel. The paper also does not say what the longer run cost.

## Who wrote it
Shiyi Cao is the first author of this five-person team at the University of California, Berkeley. The others are Ziming Mao, Dacheng Li, Joseph E. Gonzalez and Ion Stoica. Cao co-authored *SGLang: Efficient Execution of Structured Language Model Programs* (2023).

## Links
- [Paper page](https://arxiv.org/abs/2610.36848v1)
- [PDF](https://arxiv.org/pdf/2610.36848v1)
- [Code](https://github.com/caoshiyi/EAT)

---

Checked Paper · 2026-10-31 · No. 040 · https://one-paper-a-day.pages.dev/2026-10-31-coding-agents-that-reorganize-when-stuck/

How it was checked: Before the post went out, an AI fact-check, separate from the writing step, read the paper and checked the post claim by claim. A very long paper is cut to fit a length limit, the appendix first. Code then confirmed that every quote the check gave appears in the paper, or in the details the check was given about it: its arXiv listing, any code or model links, and the authors' earlier papers from Semantic Scholar. Of 37 claims checked, 35 are supported and 2 are right in substance but loose on a detail. The evidence, claim by claim: https://one-paper-a-day.pages.dev/evidence/2026-10-31.json
