ByteDance Seed and Tsinghua AIR Introduces CUDA Agent: A Large-Scale Agentic RL System for CUDA Kernel Generation
ByteDance Seed and Tsinghua AIR have released CUDA Agent, an agentic reinforcement learning system that trains a large language model to write GPU kernels that beat a compiler.The gap it targets is narrow but stubborn: frontier models already produce correct CUDA, they just produce slow CUDA.
On KernelBench, the base model Seed1.6 passes 74.0% of tasks yet outruns torch.compile on only 27.2% of them, at a 0.69× geometric-mean speedup which means its kernels are, on average, slower than what the compiler generates on its own.
CUDA Agent closes that gap by putting the model inside a real CUDA development environment with profiling, correctness checks and a permission-locked sandbox, then training it with PPO for 150 steps at a 131,072-token context.The result is a 98.8% pass rate and a 96.8% faster-than-torch.
compile rate across the 250-task benchmark, at 2.11× geomean over compile — roughly 40 points ahead of Claude Opus 4.5 and Gemini 3 Pro on the hardest Level-3 split.Is it deployable?Partly, but the trained agent is not released.It is built on Seed1.
6, a proprietary MoE model with 23B active and 230B total parameters, and the paper ships no weights.Public: the CUDA-Agent-Ops-6K dataset, the SKILL.md spec and the reward and warm-up recipes.
Which companies: The profiling sandbox alone used 128 NVIDIA H20 GPUs, which puts full replication inside frontier labs, GPU clouds and large infrastructure teams.
Mid-size teams can still adopt the parts — dataset, milestone reward, anti-reward-hacking constraints, skill spec — on top of an open base model.
Industries and applications: AI infrastructure and inference serving, GPU cloud, autonomous driving, quantitative trading, medical imaging and recommendation systems — anywhere fused kernels sit on a latency-critical path.Uses include fusing operator sequences torch.
compile handles poorly, cutting cost per token, and re-tuning kernels across GPU generations.Data synthesis The research team crawls reference operators from the torch and transformers libraries.An LLM then samples up to five torch operator classes and stacks them into one fused layer.
A filter keeps only operators that execute in both eager and compile modes, are deterministic, produce non-constant outputs, and run between 1 ms and 100 ms in eager mode.Samples with AST similarity above 0.9 to any KernelBench task are removed.The result is CUDA-Agent-Ops-6K: 6,000 samples, 83.
77% of them two-operator compositions.Environment and reward The agent loop mirrors OpenHands tooling — Bash, Read/Write, Edit/MultiEdit, Glob, Grep, NotebookEdit, BashOutput, KillBash — under a ReAct pattern.CUDA instructions ship in the Agent Skills format.SKILL.
md tells the model to profile the PyTorch model, rewrite model_new.py with custom kernels, compile in a GPU sandbox, and iterate until the kernel is at least 5% faster than torch.compile at atol=1e-2, rtol=1e-2.
Reward hacking gets five countermeasures: permission-locked verification and profiling scripts, context managers that forbid torch.nn.functional fallbacks, checks against five random inputs, profiling with device synchronization and warm-up, and no web search tool.
The reward is discrete rather than a raw speedup ratio.r ∈ {−1, 1, 2, 3}: −1 on correctness failure, 3 if the kernel clears both eager and torch.compile by more than 5%, 2 if it clears eager only, 1 otherwise.https://arxiv.org/pdf/2602.24286v1 Results Table 1, overall: 98.8% pass rate, 98.
4% faster than eager, 96.8% faster than torch.compile, at 2.60× and 2.11× geomean respectively.Level 2 (operator sequences) is the strongest split: 100% pass, 100% faster rate, 2.80× over torch.compile.Level 3 lands at 94.0% pass, 90.0% faster rate and 1.52×, roughly 40 points above Claude Opus 4.
5 (50.0%) and Gemini 3 Pro (52.0%) on faster rate versus compile.One inconsistency: the abstract and introduction state 100% / 100% / 92% faster rates for Levels 1–3, while Table 1 reports 97.0% / 100.0% / 90.0%.Table 1 is the main results table.Ablations are blunt.
Removing the agent loop drops faster rate versus compile from 96.8% to 14.1%.A raw speedup reward gives 60.4%, no RFT gives 49.8% plus reward collapse, no value pretraining gives 50.9% plus runaway trajectories.Case studies show what the policy learns.
A diagonal matmul rewritten as row-wise scaling: 73.31× over torch.compile.A matmul-divide-sum-scale chain reordered and fused: 24.04×.A ResNet BasicBlock with BatchNorm folded into convolution andcudnnConvolutionBiasActivationForward: 3.59×.Run pipelineReset STAGE 01
Seed problem crawling
Reference operators mined from torch and transformers. Each is an nn.Module with getinputs() and getinit_inputs().
— STAGE 02
Combinatorial synthesis
An LLM samples up to 5 operator classes from torch and stacks them into one fused layer. transformers ops are not composed.
— STAGE 03
Rubric filtering
Must run in eager and compile modes, be deterministic, be non-trivial, and take 1 ms–100 ms in eager. AST similarity > 0.9 to any KernelBench sample is dropped.
— Composition of the final 6,000-sample dataset, verbatim from Table 3. The paper reports the released total only; it does not publish pre-filter seed or synthesis counts, so none are shown here. <!-- 02 --> The skill-integrated agent loop
The loop follows OpenHands tooling and a ReAct pattern. A SKILL.md file states the standard CUDA workflow; a CPU sandbox compiles, and a separate GPU pool verifies and profiles. Press play to cycle it.
Play loopPause SKILL.md
Profile → write kernel → compile → iterate <div class="node" id=
Related
相關文章

消息稱字節整合 AI 生產力:TRAE、釦子併入豆包,將推統一辦公品牌“豆包工作”
作者:沁滄(實習) 責編:沁滄 評論: 感謝網友 HH_KK 的線索投遞!8 月 24 日消息,據智能湧現消息,字節跳動對旗下的辦公 AI 產品完成了一輪團隊整合:TRAE、釦子(Coze)團隊將整體併入豆包體系,其中 TRAE Work、釦子將與豆包在工作場景的產品能力進行整合;TRAE IDE 及 CLI 將作為豆包品牌下的編程產品線持續發展。

AI 大模型周榜:國產 glm-5.3-max 首秀闖入綜合榜前 15,kimi-k3-max 衝進前十
本週AI大模型Arena排行榜出現新面孔,智譜AI的glm-5.3-max首次入榜即拿下綜合榜第13名。月之暗面的kimi-k3-max排名持續攀升,成功擠進綜合榜前十,位列第10名。兩款國產大模型雙雙寫下佳績,成為本週關注焦點。

DeepSeek Harness來了:AI開始製造AI了?
DeepSeek Harness 正式推出,這項新工具被視為 AI 發展的重要里程碑,可能讓 AI 系統具備自主開發或優化其他 AI 的能力。外界關注此技術是否象徵 AI 開始「製造」AI,並可能加速人工智慧的進化與應用。目前相關細節與實際影響仍待進一步觀察。
神秘“牛來”大模型上線即登頂 背後廠商至今未揭曉
近日,一款代號為Ox Alpha的匿名AI模型在OpenRouter悄然上線,短時間內調用量迅速攀升,成功衝至平臺榜首,並刷新了該平臺的單日模型用量紀錄。不過,儘管表現驚豔,Ox Alpha背後的開發主體至今仍未揭曉。

AI辦公助手,沒有葵花寶典:五款應用萬字實測報告
AGI-Signal2026.08.24 09:12 · 來自北京全文11936字單項冠軍各有其人。2026年上半年,AI辦公賽道發生了一個根本性變化,工具不再滿足於當“對話框”,而是試圖接管完整任務,寫一段文案、做完一份報告、生成一份PPT,甚至跨應用操作。
字節整合AI辦公產品,TRAE、釦子團隊併入豆包
其中,TRAE Work、釦子將與豆包的工作場景產品能力整合;TRAE IDE及CLI則作為豆包品牌下的編程產品線繼續發展。調整後,相關產品和運營團隊統一向豆包產品負責人趙祺彙報。(iFeng Tech)TRAE與釦子此前均隸屬於字節跳動產品研發和工程架構部,前者最初定位AI編程產品,後者則聚焦AI智能體開發平臺,並持續探索不同Agent方向。