Papers
arxiv:2605.31049

Learning to Solve and Optimize by Evolving Code

Published on May 29
Authors:
,
,
,
,
,

Abstract

Algorithm generation through code evolution eliminates the need for manual problem formulation by relying solely on formal specifications and natural language descriptions to produce superior solutions compared to traditional solvers.

AI-generated summary

Combinatorial and optimization problems are fundamental to many industrial AI applications. Solving large-scale real-world instances of such problems typically requires careful problem formalization, specialized solvers, and expert-designed heuristics. Thus, experts need to specify not only what solutions are, but also how they are derived. By introducing the tool CHECKMATE, we show that algorithm generation via code evolution represents a paradigm shift by eliminating the need to formulate the how. CHECKMATE solely relies on the what. Specifically, a formal specification ensures solutions' correctness and enables systematic performance evaluation of the generated programs, while a natural language description guides the evolutionary process. The effectiveness of our method is demonstrated on selected problems from two industrial domains: configuration and scheduling. In all cases, the evolved algorithms consistently outperform state-of-the-art solvers. This underscores the potential of formal methods in guiding code evolution for automatically solving complex real-world problems.

Community

Many interesting problems, such as those in logistics, manufacturing, or healthcare, are intractable. That is, there are no efficient algorithms known to tackle even problem instances of moderate sizes (unless NP=P). Modern approaches combining ML with general optimization algorithms, like those used in Constraint Programming or Boolean Satisfiability, aim to acquire and then use domain-specific knowledge to boost the solver's performance.

Instead of tweaking the internals of general algorithms, we suggest generating problem-tailored solvers using code evolution strategies and LLMs. The obtained evaluation results show that those custom-made solvers can significantly outperform existing methods.

OpenEvolve

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2605.31049
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2605.31049 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2605.31049 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2605.31049 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.