GPT-6.2 Astra is the first model to beat Googlers' code golf records
GPT-6.2 Astra has shattered human code golf records, showcasing LLMs' surprising ability to discover ingenious, concise solutions to complex programming challenges. This benchmark ignites discussion on AI's rapidly advancing problem-solving capabilities, particularly its knack for "thinking differently" in code optimization. Hacker News is buzzing with both awe at the models' ingenuity and skepticism about the practical utility of code golf for real-world software development.
The Lowdown
A new benchmark reveals that OpenAI's GPT-6.2 Astra is the first large language model to surpass human experts' 2015 records in code golfing, a niche programming art focused on writing the shortest possible code. This achievement highlights LLMs' evolving capacity for creative problem-solving and finding novel algorithmic approaches that even brilliant human minds overlooked.
- The Benchmark: Created by a former Googler, the
go/codegolfbenchmark comprises 32 problems across 8 programming languages, comparing frontier models' solutions against records set by Google's code-golf enthusiasts in 2015. - Astra's Ingenuity: GPT-6.2 Astra demonstrated remarkable creativity, employing techniques like complex numbers in Python and Ruby for problems like "Surviving Queens" and "The Rolling Dice."
- "Powers of 4" Trick: For the "(-5)-Smooth Numbers" problem, Astra devised a unique solution using powers of 4 and modulo arithmetic (e.g.,
4**i%(2**999-5)%(2**49-3)), which not only beat human records but also represented a fundamentally different and brilliant approach. - Beyond Training Data: The author notes that code golfing rewards exploratory problem-solving and experimenting with language features, behaviors not typically found in public training data, suggesting Astra's ability to go beyond mere memorization.
- LLMs as Benchmarking Tools: The author proposes code golfing as a valuable, albeit not comprehensive, benchmark for assessing frontier models' problem-solving prowess, particularly their capacity for unconventional thinking.
GPT-6.2 Astra's triumph in code golf underscores a significant milestone in AI's intellectual development, proving its ability to not only mimic but also innovate in highly specialized and creative domains of programming. This benchmark serves as a compelling indicator of how LLMs might continue to surprise us with their "out-of-the-box" solutions.
The Gossip
AI Acumen vs. Astra's Alleged Apathy
Many commenters acknowledge GPT-6.2 Astra's impressive performance in code golf, with some users noting it's the first model to "squarely beat" them at programming. However, this praise is often tempered by observations that Astra, and sometimes the 6.2 series generally, might be a step backward in other areas like writing, coherence, or instruction following, with users reporting it being "lazy, kafkaesque" or failing on "basic, understandable, coherent English." There's speculation that this might be due to tuning for cost reduction, rather than pure capability.
Code Golf's Curious Contradictions
A significant discussion revolves around the practical utility and inherent nature of code golf itself. Some argue it's "useless" for real-world development due to producing unreadable and unmaintainable code, contrasting it with "speed golf" (optimizing for execution time) which they see as more valuable. Others defend code golf as a "purely recreational activity," a fun competition, or a "useful exercise" for deep language learning and exploring "dark corners" of programming, akin to a sport. There's also debate about the potential for code golf to measure a specific type of "rotator" intelligence or "compression as intelligence."
Benchmarking Battles and Model Mismatches
Commenters debate the fairness and methodology of the benchmark, particularly regarding the "thinking effort" settings for different models (e.g., Astra on "max" vs. Claude models on "xhigh"). The author clarifies that Claude models sometimes perform better at xhigh than max for code golfing. There's also broader comparison of Astra against other models like Fable, Opus, and various Gemini versions, with some reporting Fable/Opus as "easier to use" but Astra better at "catching issues," while others find Gemini Flash/Hydrogen superior for communication or specific tasks. The cost-performance trade-offs and potential for models to be trained on existing golf solutions are also raised.
Training Data Tussles and Compensation Concerns
A recurring theme is the source of the models' "intelligence," with questions arising about whether they are simply "mashing the training data together" or truly innovating. The author's claim of "no public training data" for code golf techniques is challenged, as code golf discussions exist online. This leads to concerns about whether developers whose code might have implicitly trained these models are being compensated, drawing parallels to broader debates about AI training data ethics.