AI Writes a Kernel From Zero, 9.8% Faster Than DeepSeek's Best Human Hand-Written Peak
It had previously topped all three Ascend leaderboards in a row.
Early this morning, ForgeKernel — an unattended agent, working without any reference to DeepSeek's original implementation — set about making DeepSeek's latest core kernel 9.8% faster, live in front of the entire web.
The whole livestream took just 22.5 hours (short by kernel-design standards) and drew plenty of onlookers.
Specifically, the stream showed an agent beating DeepSeek-V4.1's FlashMLA Prefill kernel on an NVIDIA B200.
FlashMLA is DeepSeek's open-source library of core attention kernels; DeepInfer, the inference framework open-sourced just on October 20, also integrates it. It comes from a team widely regarded as the strongest in infrastructure — effectively the peak of human handwritten kernels. And as noted, the AI received only the kernel's mathematical definition and the target hardware constraints: it started cold and improved round after round through self-evolution.
Over those 22.5 hours, every rewrite and every flicker of the performance numbers played out live before the whole web: 42 iterations in total, 32 versions kept, one B200 and 22 GPU-hours spent — and zero lines of human-written code for this kernel.
It comes from ModelBest's kernel-generation system ForgeKernel; and as soon as the livestream ended, the Intelligent Evolution Lab together with the OpenBMB community announced that it was being open-sourced.
But this livestream was not ForgeKernel's first appearance — it had already made a name for itself a few days earlier.
On October 27, the Ascend CANN team published an official post that 'called out' ForgeKernel —
It topped all three CANNBench hardware leaderboards: 950DT, 950PR and A3!
The three boards correspond to three classes of Ascend hardware, each with a different story.
Start with 950DT, the board where the economics are clearest. ForgeKernel took first with 4010.75 points, 27.8% ahead of the runner-up; the baseline speedup is 1.533x, about 143% of second place.
That means nearly 50% more usable compute for the same hardware investment, and enterprise compute procurement and deployment costs can fall by roughly half.
The board matters because the 950DT is a new-generation chip whose kernel library is still being built and manual adaptation takes long — and ForgeKernel finished the adaptation first and took the top spot.
It shows that as soon as new hardware hits the market, AI can produce high-quality kernels fast, and the gap between a chip's launch and full software support is being compressed sharply.
950PR is the most hotly contested of the three boards, with all top three reaching baseline speedups of 1.3x:
ForgeKernel scored 4165.94 overall, again first; baseline speedup 1.638x, about 1.18 times the runner-up's.
In CANNBench v1.1, which locked its board on October 15, it had already taken first on the A3 hardware board; after v2.0 opened, it has never given up that spot — now at 4341.16 total, baseline speedup 1.898x, about 1.22 times second place.
In this livestream, ForgeKernel ran on an NVIDIA B200 using CUDA, an ecosystem steeped in years of accumulated expert experience; the three leaderboards run on Ascend, which has its own independent architecture and toolchain.
Yet despite the very different software and hardware on the two sides, ForgeKernel took first on both with the same system.
Because for the same model on the same chip, swapping in a more efficient kernel immediately opens a clear performance gap.
For a long time, high-performance kernels have depended on senior engineers hand-writing and tuning each one — long cycles, high barriers. CUDA got where it is through years of expert accumulation; every new generation of Chinese chip and every new model means redoing the adaptation from scratch.
On October 27, the ForgeKernel team, together with Tsinghua University and other institutions, published a paper on arXiv titled 'JustGoal: With Only a Goal, the AI Baseline Is Above the Expert Kernels.'
In the paper, the team gave the model only an optimization goal — no kernel knowledge, no fixed procedure — and let it write. On the B200, the model beat the human-maintained open-source library on 8 of 10 kernels.
They also had the same model use KDA-0.5, a specialized framework developed with participation from MIT's Han Song team; its average score on single-configuration optimization tasks was only 0.95x of JustGoal's. In other words, writing kernels increasingly depends on the model's own capability, and pre-written expert knowledge and procedures are mattering less.
That said, goal-only has limits too. Models are good at tuning details but struggle to design the overall architecture on their own, often locking in a route after a few opening attempts and then only fine-tuning within it. ForgeKernel builds on JustGoal specifically to shore up that weakness.
ForgeKernel first surpassed its own previous generation, then surpassed FlashMLA — that is self-evolution.
Late in the run, it also discovered on its own that Q's burst loads were contending with KV data movement for memory access, and throttled Q's request pacing, shaving off another 2.4% of latency — the kind of judgment that used to require a senior expert.
△ Agent run log from ForgeKernel Live
Across more kernels, ForgeKernel matched or beat expert implementations on 24 of 29 comparisons, and matched or beat all 7 of the strongest kernels published by three leading agent systems.
The gains also replicate across different Chinese chips, because ForgeKernel's design holds another advantage for them: it does not depend on any specific piece of hardware.
A concrete kernel implementation has to hug each chip's hardware traits and cannot be copied over; but ForgeKernel's way of organizing optimization is general, with no fixed procedure preset for any chip. Moving from NVIDIA to Ascend, it only needs to swap its performance profiler from NCU to msprof, and the new chip's hardware knowledge is accumulated by the model itself as it tests on that chip.
That lets ForgeKernel migrate quickly to other Chinese chips, and a new generation of Chinese chips no longer needs an adaptation pipeline built from zero.
Per Gartner's latest forecast, global AI infrastructure spending will reach about $1.48 trillion in 2026. At that scale, every 1% gain in compute efficiency corresponds to roughly $14.8 billion.
NVIDIA's CUDA has been expert-optimized for years and already offers plenty of off-the-shelf high-performance kernels, leaving AI limited headroom to speed things up further; Chinese chips' kernel libraries are still incomplete and many kernels lack thorough tuning, so the improvements AI can deliver stand out more.
The ForgeKernel team saw the same difference when using AI to optimize training frameworks: the same approach yields 20%-30% speedups on Chinese chips versus 5%-10% on NVIDIA — meaning ForgeKernel can further improve Chinese chips' price-performance in training and inference and narrow the gap with NVIDIA.
Once writing code costs AI almost nothing, optimizations once dismissed because 'experts are too expensive and the math does not work' become worth doing — such as a bespoke set of kernels for a specific model or chip.
In fact, these expert-surpassing kernels have not stayed on leaderboards; they have already reached the real industrial front line.
Kernels generated by ForgeKernel are now formally integrated into training frameworks, and have completed long-run training tests of MiniCPM5-1B on both Chinese chips and NVIDIA platforms.
More notably, in this rebuilding of the compute substrate, Chinese large models represented by DeepSeek V4.1 have begun participating in kernel generation and optimization — and those kernels ultimately run, reliably, on Chinese chips.
'Chinese models write the kernels, Chinese chips run the kernels' — a full-stack ecosystem loop belonging to Chinese AI is taking shape.
This is not just a victory for kernels; it is a live snapshot of RSI (recursive self-improvement) landing in practice: the acting subject of AI R&D is shifting from humans to AI.
As Li Yuxuan, chief scientist of intelligent evolution at ModelBest, put it, because code can be verified quickly by machines, engineering will close the loop ahead of theoretical research:
In the past, top-tier kernels requiring deep architectural rework, like the FlashAttention family, took human experts months or even half a year per iteration; inside this team today, AI kernel-optimization tasks that surpass the best human implementations take at most two days.
And with ForgeKernel now officially open-sourced, the method becomes infrastructure, giving Chinese chipmakers and model teams a new efficiency path.
In the past, what made it hard for Chinese chips to catch up with NVIDIA was rarely the hardware specs — it was the expert experience and software layering that the CUDA ecosystem accumulated over more than a decade. Under the RSI paradigm, AI is punching straight through that ecosystem moat built by piling up manpower over years, generating optimal solutions end to end.
Once 'Chinese models write kernels, Chinese chips run kernels' becomes the new kernel-engineering paradigm, the subject of R&D may be shifting irreversibly from humans to models. That does not mean human experts leave the stage; their focus undergoes a fundamental leap:
From hand-polishing every line of low-level code to building environments, setting goals and defining verification criteria for AI — working alongside AI to write better kernels.
As humans move from code craftsmen to system architects, the gap between Chinese chips that 'can run' and chips that 'run well' is being filled by AI at the scale of hours.