Heuristic Search as Language-Guided Program Optimization
This paper proposes a structured, modular framework for Large Language Model-driven Automated Heuristic Design that decomposes the discovery process into distinct evaluation, feedback, and refinement stages, enabling systematic improvements and outperforming existing methods across diverse combinatorial optimization domains.
Original paper licensed under CC BY 4.0 (http://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
Imagine you are trying to teach a very smart, but slightly chaotic, robot chef how to cook the perfect meal for a thousand different customers. Each customer has weird dietary restrictions (constraints) and wants the meal to be as cheap and tasty as possible (optimization).
In the past, we tried to teach this robot by just saying, "Here's a recipe, try to make it better," and then hoping it accidentally stumbled upon a genius idea. Sometimes it worked, but often the robot just kept making the same mistakes or got stuck trying to fix one tiny detail while ignoring the whole meal.
This paper introduces a new, structured way to teach the robot, called LaGO (Language-Guided Optimization). Think of it as turning the robot's cooking process from a game of "guess and check" into a professional, three-step training program.
Here is how LaGO works, using our kitchen analogy:
1. The Old Way: The "Black Box" Guess
Previously, researchers would ask the AI (the robot chef) to write a whole new recipe from scratch.
- The Problem: If the recipe failed, the AI just got a score like "6/10." It didn't know why it failed. Was the salt too salty? Did it forget the oven? Was the timing wrong?
- The Result: The AI would randomly tweak the recipe, hoping to get lucky. It was like trying to fix a broken car by randomly hitting it with a hammer until it started.
2. The New Way: The LaGO Framework
The authors realized that to get better, the AI needs a structured process. They broke the learning loop into three distinct roles, like a professional kitchen team:
Step A: The Taste Test (Forward Pass)
The AI writes a new recipe (a computer program/heuristic) and tries to cook the meal on a few test customers.
- What happens: The robot doesn't just get a score. It records a "trace" of what happened. Did the oven burn the bread? Did the chef run out of time? Did the customer get a stomach ache because of a hidden nut?
- The Analogy: This is like a food critic eating the dish and writing a detailed log of every bite, noting exactly where the flavor went wrong.
Step B: The Expert Analyst (Backward Pass)
This is the biggest innovation. Instead of just giving the AI a number, a second AI (the Analyst) reads the "trace" log and writes a diagnostic report.
- What happens: The Analyst says, "You failed on the spicy dishes because you didn't adjust the heat for large batches," or "Your recipe works for small groups but falls apart for big ones."
- The Analogy: This is like a head chef looking at the food critic's notes and saying, "Ah, I see the problem! You're adding the salt too early. Here is a specific rule to fix that." It turns vague failure into actionable advice.
Step C: The Creative Chef (Update Step)
Now, the main AI (the Generator) takes the original recipe, the test results, and the Analyst's specific advice to write a new version of the recipe.
- What happens: It doesn't just guess randomly. It uses the advice to make a "directed jump" toward a better solution.
- The Analogy: The chef reads the head chef's notes and says, "Okay, I'll try adding the salt at the end and doubling the heat for large orders."
3. The Secret Sauce: Co-Evolving the Team
The paper also mentions that they don't just optimize the "cooking" part; they optimize the "prep" part too.
- The Analogy: Imagine the robot has two jobs: Prep (chopping veggies, getting ingredients ready) and Cooking (frying, baking).
- The Innovation: In the past, people only tried to improve the cooking while keeping the prep random. LaGO improves both at the same time. It realizes that if the prep is bad, the cooking can't be good. By training them together, they learn to work in sync, like a well-oiled kitchen team.
4. Why This Matters
The researchers tested this on four very difficult real-world problems:
- Delivery Routes: Figuring out how to deliver packages to hundreds of houses without running out of gas or time.
- Airline Crews: Scheduling pilots and flight attendants so everyone gets enough rest and follows strict safety laws.
- Chip Design: Arranging tiny electronic parts on a computer chip to make it run faster.
- Supercomputer Scheduling: Deciding how to split a giant math problem across many computers so it finishes quickly.
The Result: In all these tests, the LaGO method beat the previous best methods. It found better solutions, made fewer mistakes, and didn't get stuck in "local traps" (where it thinks it's done, but it's actually far from the best answer).
The Big Picture
Think of this paper as moving from random trial-and-error to systematic engineering.
- Before: "Here is a problem. AI, guess a solution. If it's bad, guess again."
- Now: "Here is a problem. AI, try a solution. Analyze exactly why it failed. Explain the failure to the AI. AI, use that explanation to build a smarter solution."
By separating the "doing," the "analyzing," and the "fixing" into clear steps, the authors created a system that learns faster, understands deeper, and solves harder problems than ever before. It's the difference between a student who just memorizes answers and a student who understands why the answers are what they are.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.