arXiv:2609.05093cs.AISep 2026

Manuscript Offprint

arXiv:2609.05093

LLM-Guided Program Evolution for Circle Packing: Breaking 10 Packomania Records for $28

Wes Sander

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present DISCOVERY LOOP, a lightweight system that uses a large language model (LLM) to iteratively evolve optimization algorithms. Starting from a simple seed solver, the LLM proposes algorithmic improvements guided by a scoreboard of results and a history of prior ideas. Each candidate is evaluated against an independent verifier; improvements are kept and failures discarded. Applied to the Packomania circle-packing benchmark (csqv: maximize the sum of radii of NN variable-radius circles in the unit square), the system improved the best known solutions for 10 values of NN in the range 101–114, with gains of 2.4%–5.4% over prior records, all within 15 iterations and at a total LLM cost of $27.72. These results have been independently accepted by Packomania. We describe the method, analyze cost-efficiency dynamics including an adaptive plateau-detection mechanism, and discuss implications for democratizing automated scientific discovery.

1 Introduction

Automated algorithm discovery—using machine learning to design or improve algorithms rather than merely apply them—has emerged as a frontier of AI research. Google DeepMind’s AlphaEvolve [Fawzi et al., 2025] demonstrated that LLM-guided program evolution could discover state-of-the-art algorithms for combinatorial optimization, matrix multiplication, and other mathematical problems. However, AlphaEvolve requires substantial infrastructure: a distributed evaluation pool, a carefully tuned evolutionary controller, and significant compute resources.

We ask a simpler question: how much of the AlphaEvolve paradigm can be reproduced with a single LLM, a single machine, and a budget under $30?

Our system, DISCOVERY LOOP, implements the core evolutionary loop in approximately 400 lines of Python. An LLM (Claude Fable 5.1) receives the current best solver, a scoreboard of results, and a history of ideas tried. It proposes a complete replacement solver. The solver is executed against benchmark targets in parallel, and results are verified by an independent checker with zero tolerance. If the new solver improves any target, the improvement is kept; otherwise it is discarded.

Applied to the Packomania circle-packing benchmark—a long-standing repository of best-known circle packings maintained by Eckard Specht since 1998—the system improved 10 out of 12 target values in the range N∈{101,…,114}N \in \{101, \ldots, 114\}, with improvements of 2.4% to 5.4% over prior records. These results were submitted to and accepted by Packomania.

*Corresponding author. wes@practicalsystems.io

The total LLM cost was $27.72. The wall-clock time was approximately 8 hours overnight on a consumer PC (Intel Core i7-13700KF, 32 GB RAM).