Kernels written by agent teams, and FlashAttention for relative-position bias
Date: 2026-11-10 · Sources: Evolving Agent Teams (arXiv 2610.36848, via @rohanpaul_ai) · Fast and Exact Relative-Position Attention (arXiv 2611.01182, HuggingFace 11-09) · Meta LLDB accelerator plugins (post) · raw: raw/twitter/feed/2026-11-10-morning-ranked.json, raw/huggingface/2026-11-09-fast-and-exact-relative-position-attention-via-structure-awa.md
TL;DR
Two kernel results from the same day. Evolving Agent Teams (UC Berkeley) shows coding agents plateau on expert-grade kernels: Claude Code stalled at 0.51x FlashInfer on the MLA paged decode kernel (the attention kernel for DeepSeek-style multi-head latent attention). A supervisor that diagnoses each plateau and rebuilds the team (inventing roles like profiler, debugger, knowledge integrator), plus a persistent file system of lessons, reached 0.74x at matched tokens (a fixed 4-role team: 0.31x). With more budget it wrote a CUDA kernel from scratch at 1.2x mean speedup over production FlashInfer, winning 36 of 47 FlashInfer-Bench workloads (0.86-0.99x on the rest). It also reports KDA prefill at 3.01x over vLLM on AMD MI350X and 3.44x over FlashKDA on B200. Structure-aware relative-position attention puts additive relative-position terms (common in audio models) inside a FlashAttention-style tiled kernel with offset-aware tiling, reused query-relation products and atomic-free gradient sharding. At 8K tokens: 1.8-6.4x forward, 2.0-21x backward, and up to 128x less peak memory than the best baseline, in Triton.
flowchart LR
T["Agent team<br/><small>writes kernel</small>"] --> B["Benchmark<br/><small>vs FlashInfer</small>"]
B -->|improving| T
B -->|plateau| S["Supervisor<br/><small>diagnoses the stall</small>"]
S --> N["New roles<br/><small>profiler, debugger</small>"]
N --> T
S <--> L["Lesson file system<br/><small>history, artifacts</small>"]
B -->|done| K["Kernel<br/><small>1.2x FlashInfer</small>"]
classDef core fill:#e5dbff,stroke:#6741d9,color:#1b1b1b,stroke-width:2px
classDef loop fill:#fff3bf,stroke:#f08c00,color:#1b1b1b,stroke-width:2px
classDef input fill:#d0ebff,stroke:#1971c2,color:#1b1b1b,stroke-width:2px
classDef exit fill:#d3f9d8,stroke:#2f9e44,color:#1b1b1b,stroke-width:2px
class T core
class B,S,N loop
class L input
class K exit
linkStyle 2 stroke:#f08c00,stroke-width:2px
linkStyle 6 stroke:#2f9e44,stroke-width:2px
Relation to prior wiki pages
- Confirms the 11-05 result where an agent wrote single-file FlashAttention forward kernels at 1.16x FA3 and 1.46x FA4. Two results in a week where agents beat expert attention kernels: the target is moving from "match cuBLAS" to "beat FlashInfer."
- Contradiction worth tracking: on the same day, omarsar0 reported Anthropic models refusing kernel and LLM-optimization tasks most of the time, and Anthropic said it curbed Fable 5.2's self-acceleration abilities. If closed models keep refusing, this line of work moves to open models.
- Meta LLDB is the tooling side: one vendor-neutral debugger session showing CPU and GPU as separate processes, instead of CUDA-GDB and ROCgdb separately. Agent kernel loops need exactly this kind of cross-vendor introspection.
- Concept page: gpu-kernels, attention-mechanisms.
Gaps
Evolving Agent Teams does not report total token spend for the extended-budget run, so the cost per point of speedup is unknown. The relative-position kernel is evaluated at 8K; the abstract claims long-context end-to-end training gains without naming the model.