Can an LLM act as a selective model of a GPU during evolutionary search, by reasoning + forecasting a kernel’s runtime but deferring to a GPU when unsure? We produced 12k kernels + runtimes from evolutionary search, costing 400M reasoning tokens + 600 GPU-hours to answer this.
In our work GPU Forecasters, we study language models as selective surrogates for GPU kernel optimization.
1️⃣ Off-the-shelf LLMs can forecast how a GPU responds to a candidate kernel with non-trivial accuracy. If we rank candidates by these predictions and measure only the top 10% on a GPU, the fastest kernel we find is within 20% of the best in the pool.
2️⃣ We want LLMs to not just be accurate but also calibrated, so that we can use their uncertainty for selective prediction: during search, we should trust only confident forecasts and verify less confident forecasts by sending them to the GPU.
3️⃣ We train an open-weights surrogate (GPT-OSS-20B) with RL to improve both accuracy and calibration. Calibration-shaped rewards improve both confidence reliability and ranking ability, while correctness rewards alone do not.
4️⃣ Inside a real kernel search, the surrogate finds faster kernels than an equal-GPU-budget baseline by considering more candidates per measurement.
5️⃣ We release 12,388 LLM-generated GPU kernels with measured runtimes spanning 118 operations, CUDA and Triton backends, 3 GPU types, taking 400M tokens + 600 GPU-hours to produce. This dataset can be used for analyzing LLM-driven evolutionary program search dynamics, post-training LLMs for kernel code generation, and things we didn’t get a chance to explore, like training reward models!
Thread 🧵👇
@sriramk@qntm Blindsight by Peter Watts
one of the few books to engage with what a "truly alien" mind would look like to us rather than the classic space opera
Single biggest problem with LLM reviewers right now: extreme pedantry about significance and statistics. You could do an experiment where you jumped off a 100 story building and died, and they would complain about it being n = 1 and ask for more trials + paired tests
It was a great pleasure to visit Columbia and Northwestern for their Distinguished Lecture Series last week -- had various important discussions with the faculty and students about AI safety/guardrails, skills/world discovery, and trustworthy human-agent collaboration, as well as their bigger implications on the future of research, teaching, and work (with impactful applications in education/classroom engagement and early disease prediction)! 🙂
Thanks again for the invitation and hospitality, and the kind words/appreciation of our students' work (and for these nice photos + fun dinners 🙏 )
Everything from Tübingen is an auto-read, that university produces some of the strongest works in the AI space
I don’t know how they are able to upkeep that bar of quality while having so many releases
I have been telling this to students. I do sense that the pressure of publishing papers is still strong, and bean counting is easier for students new to research.
i’m increasingly of the opinion that almost everyone agrees with this, but a big fraction of people aren’t comfortable saying it in public, because of what it implies for the bean counting mechanism the whole machine is built on (for awards/promo/hiring/etc).
a problem with current frontier models esp Claude is that whenever you veer off the coding/math/scientific manifold, the models don’t do deep reasoning and start to spout reddit-tier intelligent-sounding but vacuous walls of text
@AtharvaRNaik right, it feels like in principle you can teach the models about human taste and make them good collaborators / conversational partners + obviously commercially useful so it's surprising to me this hasn't been done. I wonder if the gpt-4o LLM psychosis fiasco played a role
@cachedeposits and unfortunately this turns it into an addicting game of "trap the llm" where you feel really satisfied at the end of it and then realize you spent 40 minutes destroying a bunch of matrix multiplications with facts and logic
@VarunGodbole@cachedeposits@ztsekouras bookmarked, great post. more user-friendly llms would be much more explicit and clear about their assumptions (or would allow easily controlling these assumptions).