Back in 2015, when I was still at Google, there was a small group of code-golf enthusiasts spending hours trying to save just one byte on their solutions for weekly code-golf problems. No matter how hard you tried, there always seemed to be another Googler who found a shorter solution. And once a problem entered the challenge phase and every solution became public, it was always astonishing to read how brilliant other people's solutions were.
11 years later, LLMs are evolving fast. A recent OpenAI post ("Perplexity and Intelligence", https://openai.com/index/perplexity-and-intelligence/) described researchers watching a model solve open math problems one after another in a Slack thread. I started to wonder: how would frontier models compete with the records that a small group of brilliant minds created with hours of effort each week?
So I built this benchmark. Frontier models do find a lot of new approaches (and very brilliant ones) to solve these problems. For example, in two problems ("Surviving Queens" and "The Rolling Dice"), frontier models use complex numbers to solve them in Python and Ruby (both languages have built-in complex number support). And for the "(-5)-Smooth Numbers" problem, where you have to write code to list the first n positive integers of the form (-2)^x⋅(-3)^y⋅(-5)^z, most solutions build them with nested loops or by growing a set, then sort. GPT-6.2 Astra gets them all from powers of 4, and earns a sole best with this brilliant solution:
g=lambda n:sorted(4**i%(2**999-5)%(2**49-3)for i in range(7000))[:n]
There is a dedicated section for this: https://bjin.github.io/go-codegolf-benchmark/#why/finding-a-...It's nice to see GPT-6.2 Astra become the first frontier model to beat the human records in code golfing. Along with other frontier models, it finds a lot of interesting solutions that Googlers back in 2015 didn't. On the other hand, I also believe code golfing can be a good benchmark (not a comprehensive one, of course) for frontier models.
Code golfing rewards thinking differently, because a shorter solution usually comes from looking at the problem from a different angle. It also rewards running experiments, not just thinking: writing a search program to find a shorter expression, or exploring lesser-known features and functions in the target compiler, interpreter, or library. Human code golfers do this a lot, and no public training data tells a frontier model how to do so.
Some footnote to emphasize a bit: Select a competitor (both model or human) will show heatmap for its results for each problem and for each language. Each problem also have a full scoreboard.
Clicking model's cell (either in heatmap or each problem's full scoreboard) will display solution code for this cell.
Another astonishing solution by GPT-6.2 Astra is its Python solution for Game of Life, where you need to write a function to determine the next state of a 01 grid in Conway's Game of Life. This solution is 103 byes (20 bytes less than Googlers' record)
g=lambda a,p=['z'*99]:[a<p and`g(zip(*r))`[1::3]or+(4<`r*2`.count('1',4)<8)for r in zip(a,p+a,a[1:]+p)]
(link to the solution with full scoreboard: https://bjin.github.io/go-codegolf-benchmark/#problems/04/sc...)Why do you say there's no public training data? It's not like people don't discuss and practice code golf on the internet.
I have a similar code golf benchmark
the powers of 4 trick clicked for me when i tried it with 15. 4*524 is 2*(999+49). the first modulo turns 2*999 into 5 and the second turns 2*49 into 3. so you start with a huge power of 4 and out comes 5*3. has anyone seen this trick used in another golf problem?
http://golf.horse/ has been also dominated by agents recently. (Note that golf.horse itself is NOT strictly about the code golfing, though most past submissions are done by code golfing.)
Would love to see it invent something like a Hospelian Transform: https://www.exploit-db.com/exploits/13105
I find it curious that the LLM is most dominant in Haskell. That contradicts the common assumption that the abilities of an LLM depend on the amount of training data.
I mean, the amount of Haskell code in the training data must be microscoptic compared to the amount of Python or JavaScript code..
FWIW I saw big reductions from other models (Gemini 4, Opus 5.5) on a problem from last year (after a few of us had iterated on it 50 times and it had seen no progress for a year and I thought there was surely nothing more to wring out of it).
Can't they just train the model on solutions to make them win benchmarks?
I find Astra (extra high) having problems writing basic, understandable, coherent English when working with legal texts. It seems massively behind much older and supposedly less capable models.
Where are the submissions linked? I just see the scores…
Code golf is useless. It could be useful if it were about length of the generated assembly, but it's only about the code, which means is unreadable and unmaintainable.
Instead small assembler has utility because it uses less cache.
On other side, speed golf is the best thing.
Very relatable. Sometimes you have to explicitly ask models for boring, readable code instead of clever one-liners.
Why not make the oracle solutions public? I'd be interested in seeing some of those
Some interesting strides have been made here thanks to GPT 6.2: https://wiki.bbchallenge.org/wiki/Logical_independence
Thanks to some expert code golfing, we know that:
- Peano Arithmetic cannot be used to find the 173rd Busy Beaver number.
That's -50 from a month ago.
- Mac Lane cannot be used to find the 173rd Busy Beaver number.
- ZC cannot be used to find the 182nd Busy Beaver Number.
That's -43 from a month ago.
- ZFC cannot be used to find the 192nd Busy Beaver number.
That's -23 from a month ago.
- ZFC + inaccessible cardinals cannot be used to find the 197th Busy Beaver number.
That's 100s less than a month ago.Disappointingly, all the restrictions means OpenAI models are increasingly refusing RE tasks. So all that intelligence is kind of wasted.
Astra also code golfs its contributions to my regular codebase so this is totally on-brand.
on a tangent note i find gpt 6.2 astra to be complete let down on top of the fact that they are now merging chatgpt usage with codex which will lead to even reduced usage for the $200/month plans
still gpt has its core value but its clear that OpenAI is moving away from the prosumer subs and towards profitability, I expect more generosity to be cut and all of this would be fine and dandy if OpenAI had anything that could seriously compete with Opus 5.5, it still falls behind unless your work is in science or math.
Why run a rigged benchmark? You run astra on max but many of the popular Claude models you only run at xhigh
Data just doesn’t have a body yet, don’t fret.
Are they using Jeff Dean for the evals?
I have thought about doing this but really the Kitty image protocol is just too inefficient for general purpose GUIs over the network.
Make the challenge "the smallest program to print "kamikaze drone"" and watch the singularity crumble in front of you.
Is this beating the records or beating the human average?
Except under some rare circumstances, why would you optimize for the length of the source code?
Interesting.
I too felt the updated Astra was the first model that finally beats me squarely at any programming task. Previously despite the agents' speed and breadth there always were some mind benders where I'd come up with a better/more correct/more elegant solution. But since this month it appears even that advantage has evaporated.