MicroEvolve: Improving Existing Solvers for the Mentorship and Teamwork Problem using an LLM in the Loop
This paper introduces MicroEvolve, an automated LLM-in-the-loop framework that iteratively proposes and validates localized code modifications to an existing solver, successfully improving its performance on the Google Hash Code 2022 Mentorship and Teamwork problem and establishing new best-known scores on four out of five instances without requiring model fine-tuning.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the world of computer science, there is a class of problems known as combinatorial optimization. Imagine trying to pack a moving truck with furniture of every shape and size, or scheduling a fleet of delivery trucks to visit hundreds of stops in the shortest time possible. These tasks involve making thousands of tiny decisions that must fit together perfectly. If you get one decision wrong, the whole plan might collapse or become incredibly inefficient. For decades, human experts have written specialized computer programs, or solvers, to tackle these puzzles. These programs are often the result of years of careful tuning, where engineers adjust rules and numbers to squeeze out every last bit of performance. They are powerful tools, but they are also static; once written, they do not change unless a human sits down and edits them.
The question researchers asked was whether a new kind of artificial intelligence, known as a large language model, could act as a tireless editor to improve these already strong programs. Unlike earlier attempts where AI tried to solve the puzzle from scratch, this approach asked the AI to take an existing, high-performing solver and suggest small, specific changes to its code. The goal was not to replace the human engineer, but to see if the AI could find a better way to do what the human had already built, perhaps spotting a subtle rule change or a parameter adjustment that a tired human might miss.
A team of researchers from the University of Prishtina set out to test this idea using a problem called the Mentorship and Teamwork challenge, which was originally part of a global coding competition. The challenge involves assigning people with different skills to various projects over time. The goal is to maximize the total value of completed projects while respecting strict rules about who can work on what, when, and how their skills grow as they finish tasks. The researchers started with the strongest open-source computer program they could find that had already been built to solve this specific problem. This program was already very good, having beaten many human teams in the original competition.
Instead of asking the artificial intelligence to write a new program, the researchers created a process they called MicroEvolve. In this system, the AI looks at the existing code and suggests one small, precise change at a time, such as altering a rule for how to pick the next project or adjusting a number that controls how many times the program tries different arrangements. The researchers then took this suggested change, applied it to the code, and ran the new version of the program against the same puzzle. If the new version scored the same or better than the previous best, the change was kept. If it scored worse, the change was discarded, and the program reverted to its previous state. This cycle repeated itself hundreds of times, with the AI learning from the results of each attempt, all without any human intervention after the initial setup.
The results were striking. Across five different versions of the puzzle, every single run of this automated process managed to improve the score of the original program. In some cases, the improvement was modest, but in others, it was dramatic. For one specific puzzle, the AI-driven tweaks boosted the score by more than fifty percent, a massive leap for a system that was already considered a top performer. On four out of the five puzzles, the final scores achieved by this method were higher than any score ever recorded by human teams or other computer programs in the history of the competition. The researchers found that the AI did not just randomly guess; it discovered specific types of improvements that worked best for each particular puzzle. For some puzzles, the AI found that adding a simple tie-breaking rule helped the program make better choices when two options looked equal. For others, it adjusted how the program weighed the time it took to finish a task against the reward it offered.
The study also revealed how these improvements happened. Most of the time, the AI made changes that did not immediately increase the score but kept it the same. These neutral changes acted as stepping stones, allowing the search to move across a flat landscape of possibilities until it found a path that led to a significant breakthrough. The process was surprisingly efficient, costing only a few dollars in computing time for a hundred rounds of testing, yet it required about fifteen hours of wall-clock time to complete a full run on a single machine. The researchers noted that the success of the method depended heavily on the nature of the puzzle. For some puzzles, there were many different ways to make a big improvement, so the AI almost always found one. For others, there was only one specific, narrow idea that could unlock a huge gain, making the outcome more like a lottery where the AI had to get lucky enough to find that single key.
Ultimately, the paper demonstrates that artificial intelligence can serve as a powerful tool for refining mature software. It shows that even when a computer program is already excellent and has been carefully crafted by humans, an AI can still find ways to make it better by suggesting small, localized edits. The method does not require the AI to be retrained or taught new skills; it simply uses the model's ability to understand code and propose logical changes. While the improvements were specific to the puzzles they were tested on and did not create a universal solver for all problems, the findings suggest that this approach could be a valuable addition to the toolkit of anyone working on complex scheduling or resource allocation challenges. The work proves that the combination of human-engineered software and AI-guided tuning can push the boundaries of what is possible in solving some of the most difficult mathematical puzzles.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.