Posted by bjin 3 days ago
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.
Instead small assembler has utility because it uses less cache.
On other side, speed golf is the best thing.
And things that play (humans), it's a useful diversion.
The sport gives you an incentive to learn a language, library, or algorithm more deeply and to discover new ways to think about how they work. It's very useful.
Part of the fun is also doing things you're not supposed to do. Not only does it become unreadable, but you often are abusing dark corners of the language and implementation.
I took that opportunity to learn a bit of assembly. I’m guessing it was 100 lines of code, COM size was ~100 bytes and it could do the whole test in less than 100ms. I got second place to a turbo pascal entry that had a much larger binary, took 5-10 seconds but it was maybe ten lines of very readable code.
Made me realize that folks really value readability (and to ask how metrics are weighted )
e: Autocorrect did the worst thing you could do to Barth's name.
You can mitigate the unreadability in many ways. For example c++ allows to generate magic numbers using constexpress, where the code itself is clear and human readable.
You can create a loop to calculate a lookup table and store it into a small number of uint64. The code shows what the magic numbers mean, and can be debugged.
Incidentally, in my experience, the strongest human competition usually is in Python.
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 -33 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.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.
pretty sure it's a far better deal now than before
I have wrote a dedicated section about this: https://bjin.github.io/go-codegolf-benchmark/#about/thinking...