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

arXiv:2609.05093 · cs.AI · Submitted 2026-09-04 · Read on arXiv

cs.AI

Submitted: 2026-09-04

Updated: 2026-09-04

Comments: 8 pages. Code and solutions: https://github.com/ucsandman/discovery-loop

Code: https://github.com/ucsandman/discovery-loop

License: http://creativecommons.org/licenses/by/4.0/

The gist: We present Discovery Loop, a lightweight system that uses a large language model (LLM) to iteratively evolve optimization algorithms.

Terminology

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 N variable-radius circles in the unit square), the system improved the best known solutions for 10 values of N 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.

Related papers