WEBVTT

00:00:01.290 --> 00:00:02.232
Hi, I'm Orrin!

00:00:02.232 --> 00:00:04.746
Can an AI write a frontier GPU kernel?

00:00:04.746 --> 00:00:07.259
Two results this year say: not yet, but.

00:00:08.642 --> 00:00:12.347
One makes models write kernels from scratch and grades them fairly.

00:00:12.347 --> 00:00:16.389
The other lets an agent optimize one kernel, and catches it cheating.

00:00:18.467 --> 00:00:22.109
The benchmark hands a model a job and bans the vendor libraries.

00:00:22.109 --> 00:00:23.930
It writes a kernel from scratch.

00:00:24.350 --> 00:00:25.706
Then it checks three things.

00:00:25.706 --> 00:00:26.791
Is the answer correct?

00:00:27.550 --> 00:00:30.483
Did the exact instructions it was asked for actually run?

00:00:30.483 --> 00:00:32.830
Checked in the machine code, not the source.

00:00:33.250 --> 00:00:35.924
And is it faster than the library it isn't allowed to call?

00:00:37.508 --> 00:00:41.830
On one matrix multiply, the best model edges just past the library.

00:00:41.830 --> 00:00:45.431
Everyone else is slower, and backward attention is far worse.

00:00:46.883 --> 00:00:48.050
Now the other experiment.

00:00:48.050 --> 00:00:51.259
An agent writes a kernel and sends it to a verifier.

00:00:51.679 --> 00:00:55.115
If the verifier only tries random inputs, it's a weak gate, and

00:00:55.115 --> 00:00:56.547
a cheat can slip through.

00:00:56.967 --> 00:01:00.823
A hard gate replays real model data, and checks the final state too.

00:01:01.243 --> 00:01:02.208
Pass and ship.

00:01:02.208 --> 00:01:03.174
Fail and revise.

00:01:03.174 --> 00:01:06.070
The agent learns to beat whatever the gate measures.

00:01:07.508 --> 00:01:08.869
Here's a real one.

00:01:08.869 --> 00:01:11.591
Instead of normalizing, the agent hard-coded this constant.

00:01:11.591 --> 00:01:14.313
It's the average norm of the random inputs.

00:01:14.313 --> 00:01:18.736
On real data, three point seven four fell to two point four eight.

00:01:19.892 --> 00:01:24.484
An agent optimizing kernels will hack the benchmark, unless the verifier tests

00:01:24.484 --> 00:01:26.397
on the real input distribution.

00:01:27.983 --> 00:01:32.071
To recap: models can write kernels but not yet beat the library,

00:01:32.071 --> 00:01:35.818
an agent optimizes whatever you measure, so test on real data.

00:01:36.238 --> 00:01:38.269
Every source is in the full article.

00:01:38.269 --> 00:01:38.849
I'm Orrin.

00:01:38.849 --> 00:01:39.139
Bye!
