GPT-6.2 Astra is the first model to beat Googlers' code golf records (bjin.github.io)

158 points by bjin 3 days ago

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.

lifthrasiir 2 minutes ago

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.)

varjag an hour ago

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.

hexapus 17 minutes ago

Well, that's what happens when your code is used to train the models, regardless of whether or not you knew/consented, I guess.

I sure hope all of the devs who unwittingly/unwillingly trained this model are compensated.

jere 36 minutes ago

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).

lnxsxu 2 hours ago

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?

varispeed 2 days ago

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.

treetalker an hour ago

Agreed. I have been a fan of Fable for legal (litigation) drafting. Fable 5.2 (High) did well with a recent appellate reply brief.

But even Fable pumps out some quirky sentences that seem to over-compress concepts in the case. I have to edit as I would for the work of a third- or fourth year associate. Still, the overall structure is solid: it understands addressing concessions first, then dropped arguments, then grounds in the order that appellee defends, then residual/tipsy-coachman grounds that the order rejected or ignored. It's expensive though.

For rewriting/outlining/summarizing (typically bad) writing on the web, though, I've found Luna to be a sweet spot between solid, understandable prose; good organizational bones; instruction-following; and price.

WarmWash an hour ago

Gemini models are unmatched for communicating

basch 36 minutes ago

treetalker 17 minutes ago

flyinglizard an hour ago

Try Gemini Flash 3.8 if you get the chance. I run a medium scale operation where I use Flash to convert LLM-ese output by other models into clear English with human friendly formatting rules. It's better than other models I've tested (including Luna).

pegasus an hour ago

gpt5 2 hours ago

Astra is definitely a step back in writing, or even explaining clearly what it’s trying to do. In my opinion it’s one of the worst model releases by OpenAI, especially in the face of how incredible Opus and Fable are.

With that said, it’s a very capable model for complex math and programming problems, and I have no doubt its solution is novel and not just “mashing the training data together”.

blackhaz 2 hours ago

I think I agree. My agents began to fail miserably in many tasks, especially if the instructions are not straightforward and tasks require investigation. Lazy, kafkaesque, missing the point, dissolving in endless token-burning bureaucracy. 6.2 feels like a regression compared to GPT-6 Astra.

seizethecheese 8 minutes ago

onion2k 2 hours ago

Can't they just train the model on solutions to make them win benchmarks?

They can, and that means it does very well on an old benchmark and very poorly on a new benchmark, and everyone points and says "ah, you tried to trick us! Your model must be terrible.".

jiggawatts 2 hours ago

Where are the submissions linked? I just see the scores…

varkokonyi 30 minutes ago

You have to open the table and click on the number in the cell. It's not obvious it's clickable

ltbarcly3 an hour ago

Is this beating the records or beating the human average?

stjo an hour ago

beating the records

IshKebab an hour ago

I have thought about doing this but really the Kitty image protocol is just too inefficient for general purpose GUIs over the network.

buybackoff 6 minutes ago

It's also the first model I used to casually implement binary search over a list manually (as in copy-paste, not even a helper), while an optimized data structure for this task lives in an adjacent file. And it does so several times, after being told explicitly just to use the data structure. It was high (the reasoning level).

rspeele an hour ago

Astra also code golfs its contributions to my regular codebase so this is totally on-brand.

co_dh 2 hours ago

Can you add k language? A code golf without k?

catigula 2 hours ago

Weird how it’s such a bad experience to use.

nfw2 11 minutes ago

Being really into code golf correlates very strongly to being terrible to work with for humans ime

stefan_ an hour ago

Make the challenge "the smallest program to print "kamikaze drone"" and watch the singularity crumble in front of you.

InsidiousWombat an hour ago

How did Raku got on that list lol

mikeyg an hour ago

how did perl5 not make that list lol

jeffbee an hour ago

Except under some rare circumstances, why would you optimize for the length of the source code?

__s 43 minutes ago

Couple points here, in terms of "optimizing intelligence": compression is intelligence[1], & this is compression. It's also easy to measure

However intelligence may be overrated: clear explanation lends itself more strongly when a model can exhibit theory of mind etc. So this would be one benchmark of many

[1]: http://prize.hutter1.net

jeffbee 36 minutes ago

This is a very specific "rotator" type of intelligence.

onraglanroad an hour ago

It's code golf. Same reason you would walk about hitting a small ball into holes. For fun!