Genghan Zhang (@zhang677) profile picture
Joined September 2023
Photo by Genghan Zhang (@zhang677)Photo by Genghan Zhang (@zhang677)Photo by Genghan Zhang (@zhang677)
⚡ Towards the Next FlashAttention 🧪 Squeezing out performance from GPUs now requires programming at the assembly level (like in FlashAttention/MLA/KDA etc). Can AI agents do it? 📏 That’s the question behind 𝗣𝗧𝗫𝗕𝗲𝗻𝗰𝗵. On H100 and B200, we ask models to write matrix multiplication and attention kernels using architecture-specific PTX: assembly-like instructions that expose each GPU’s specialized hardware (tensor cores, TMA, TMEM, ...). 🔍 PTXBench check three things: • Is the answer right? • Is the kernel fast? • Did the requested instructions actually run? 🔴 The gap exists. An LLM can use the right instructions but still produce a slow kernel. Attention backward is especially hard, and no model we tested consistently matches expert libraries across the suite. 🛠️ We also built 𝗙𝗶𝘅𝗶𝘁, an SFT recipe that trains on the model’s own failures. Each example pairs a broken kernel and profiler feedback with a teacher repair and synthesized reasoning. 🟢 After Fixit, Qwen3.6-27B solves Hopper GEMM and attention tasks it couldn’t solve before. New shapes and attention variants are still hard. 🧠 Big questions remain: • Should agents write PTX directly, or will GPU DSLs scale better? • Correct, fast PTX kernels are hard to collect. What’s the minimal supervision required to train a PTX expert? • Can a model trained on one GPU architecture generalize to another? • How do we get from the right instructions ran to this thing is actually fast? 🚀 Getting PTX right is step one. Making it fly is what's next. 📖 Paper & Blog: arxiv.org/pdf/2608.17379 & zhang677.github.io/blog_md/p… 💻 Code: github.com/zhang677/PTXBench 🍾 Weights + data: huggingface.co/collections/G… Amazing collaboration with @yi_xin_dong Chengze Fan @zz30gs Yueming Yuan @ShaoweiZhu95pu and @KunleOlukotun! Huge thanks to the generous support from @sgl_project @tinkerapi and Gemini Academic Program Award!
2
15
1
97
6,384
RSI is accelerating AI Infra!
We scaled Recursive Self-Improvement (RSI) to production AI infrastructure with SGLang-Omni, shipping 14 upstream-merged PRs across 8 speech & omni models with 7.6%–344.3% throughput gains. Blog: index.openrsi.foundation/blo…
4
106
Token efficiency matters for AutoResearch. Please check out our latest Stateless Language Agents!
AutoResearch agents keep burning tokens after they stop making progress. 💰😭 From authors of ACE and Meta-Harness: Introducing Stateless Language Agents (SLAs). Stateful search, stateless agents. Advancing the performance-cost Pareto frontier of RSI. Across 9 tasks, up to 1B tokens: - Best final result on every task 📈 - 14.5× fewer tokens to match the best kernel baseline 🚀 - Advisor (the “coordinator”) uses < 0.6% of total tokens 🫣 📑 Paper: arxiv.org/abs/2610.07625 NOT JUST HIGHER NUMBERS. Some more surprising findings in the thread below! 🧵 #LLM #AI #RSI #Agent
3
7
362
Great collaboration, and excited to build KCoral together! 🚀 Robust and scalable evaluation is essential for building better kernel agents. Excited to bring what we’ve learned from building PTXBench into KCoral and push this space forward together.
Kernel agents can already beat hand-tuned kernels. Spinning up more agents is easy, but scaling GPU evaluation is still hard and expensive. What happens when the agents scale faster than the GPUs? Meet KCoral 🪸: a lightweight shared GPU benchmark environment for agentic kernel development. 🧑‍💻 Agents keep writing and revising code in their own workspace. ⚡ Evaluation is sent to KCoral, which schedules a shared GPU pool and returns correctness and timing. 🌐 Scale across multiple GPUs and nodes through a unified API endpoint. 🔒 Per-request isolation with only milliseconds of execution overhead. By overlapping CPU compilation with GPU work across requests, KCoral further speeds up kernel evaluation. On a single NVIDIA B200, this translates to 2.58× the throughput of sequential local execution.
4
8
798
We used @tinkerapi to SFT Qwen3.6-27B on a pretty unusual domain: GPU kernels written in architecture-specific CUDA-PTX. Our recipe: turn the model’s failed kernels + compiler/runtime feedback together with the kernel fixed by a teacher model and synthetic reasoning into SFT trajectories, then train with Tinker’s supervised learning recipe using LoRA. Turns out the SFT recipe matters a lot: data coverage, balance, and reasoning supervision all had a big impact on generalization. More in PTXBench: arxiv.org/abs/2608.17379
5
7
45
3,765
👏
We've heard the community's feedback. Our intent was to make sure the credits reached the people who supported SGLang along the way, and we couldn't be here without you. We're updating the offer to better reflect that. RadixArk's platform is open for beta, and we're offering $200 in compute credits to get you started → Sign up at platform.radixark.com and repost this so we can get you set up. → Limited spots, first come first serve. Open through May 13, 2026 (AoE). → Credits will be granted after we verify the repost. (If you already reposted our earlier announcement, that counts too; no need to do it again.) And if SGLang has been useful in your work, consider giving it a star on GitHub. It's a small gesture that means a lot to the people maintaining it. We're in this together, and we're grateful to be building it with you 🧡
1
1
179
Thrilled to share three big updates on AccelOpt 🚀 1) New best results on AWS Trainium (NKI, Trn1) 2) Extended to NVIDIA H100 (Triton) 3) Our AccelOpt paper was accepted to MLSys 2026 🎉 See you in Seattle! All the related links are in the comments below!
5
2
10
478
AccelOpt beats the best public human-expert implementations—1.04× faster for Mamba and 1.4× faster for RoPE. Kernels here: github.com/zhang677/AccelOpt…
108
🚀 AccelOpt, a self-improving LLM agentic system for AI accelerator kernel optimization. 📈 Boosts utilization from 49→61% on Trainium1 and 45→59% on Trainium2 using open-source models, matching Claude Sonnet 4 while being 26× cheaper Paper: arxiv.org/pdf/2511.15915
4
4
3
16
7,215
⚡️ AccelOpt LLM agents learn from their own exploration: no hand-crafted heuristics, no hardware-specific recipes. 💡 Search + Memory: AccelOpt combines beam search + optimization memory, uncovering both peephole rewrites and multi-step global transformations.
210
Excited to see new automation technologies for ML library development using Architecture Specific Programming Language (ASPL). We have recently explored an adaptive self-improvement method for this task arxiv.org/abs/2502.02534
Introducing The AI Scientist: The world’s first AI system for automating scientific research and open-ended discovery! sakana.ai/ai-scientist/ From ideation, writing code, running experiments and summarizing results, to writing entire papers and conducting peer-review, The AI Scientist opens a new era of AI-driven scientific research and accelerated discovery. Here are 4 example Machine Learning research papers generated by The AI Scientist. We published our report, The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery, and open-sourced our project! Paper: arxiv.org/abs/2408.06292 GitHub: github.com/SakanaAI/AI-Scien… Our system leverages LLMs to propose and implement new research directions. Here, we first apply The AI Scientist to conduct Machine Learning research. Crucially, our system is capable of executing the entire ML research lifecycle: from inventing research ideas and experiments, writing code, to executing experiments on GPUs and gathering results. It can also write an entire scientific paper, explaining, visualizing and contextualizing the results. Furthermore, while an LLM author writes entire research papers, another LLM reviewer critiques resulting manuscripts to provide feedback to improve the work, and also to select the most promising ideas to further develop in the next iteration cycle, leading to continual, open-ended discoveries, thus emulating the human scientific community. As a proof of concept, our system produced papers with novel contributions in ML research domains such language modeling, Diffusion and Grokking. We (@_chris_lu_, @RobertTLange, @hardmaru) proudly collaborated with the @UniOfOxford (@j_foerst, @FLAIR_Ox) and @UBC (@cong_ml, @jeffclune) on this exciting project.
1
1
2
233
As stated in their paper: "A growing subset of work in this field has also begun to target kernel writing (KernelBench(arxiv.org/abs/2502.10517); Adaptive Self-improvement LLM Agentic System for ML Library Development(arxiv.org/abs/2502.02534)) in Architecture Specific Programming Languages such as CUDA, since efficiency improvements from these kernels can be incredibly valuable and skilled human kernel engineers are in high demand."
2
127
Excited to see the “self-improvement” idea also works on theorem proof, another application that requires complex reasoning with limited data
and SoTA among whole-proof generation methods on miniF2F, ProofNet, and PutnamBench, and double the previous best results on LeanWorkBook. (reposting because it seems that this table has much more views 😝)
1
103
🔍 ML library development is crucial but requires expertise in ML algorithms & architecture-specific programming languages (ASPLs). 🤖 LLM agents can enable better automation. We propose an adaptive self-improvement agentic system for generating ML libraries in STeP—a research-prototype ASPL for next-gen Reconfigurable Dataflow Architectures (RDA). 🔥 ✅ Implements up to 25/26 common LLM operators automatically ✅ Achieves up to 3.9× more successfully implemented operators than a single LLM. 🔗 Read more: arxiv.org/abs/2502.02534
2
6
25
2,693
Thanks for all the collaborators: Weixin Liang @liang_weixin, Olivia Hsu (weiya711.github.io/), and Kunle Olukotun @KunleOlukotun
192
To generate code that assembles any output sparse tensors, you need Sparse Workspace (dl.acm.org/doi/10.1145/36564…). Our work extends the generality of sparse tensor algebra compilers by treating sparse tensors as a first-class concept for any tensor variable, including temporaries.
1
5
123
Thanks, Olivia Hsu (weiya711.github.io/) and Fredrik Kjolstad (fredrikbk.com/), for their help and advice!
1
110