It’s late, you’ve had a long day, and the last thing you want to do is manually tune a heuristic for an NP-hard optimization problem. You’d rather have an LLM agent do it. But here’s the rub: while LLMs are great at writing code, they often lack the "intuition" or "expertise" to navigate the complex trade-offs of algorithm design. Usually, we fix this by hard-coding specific workflows for every new problem.
The authors of AutoSECO asked a better question: Can we teach an LLM the meta-skill of developing solvers, and can that expertise transfer across entirely different types of problems?
TL;DR
AutoSECO is a system that evolves natural-language "skills"—essentially a set of high-level strategic instructions—to guide LLM agents in building optimization solvers. By tracing performance failures back to specific development decisions, it refines these instructions so that a "skill" learned while solving the Traveling Salesperson Problem (TSP) can successfully guide agents to build top-tier solvers for vehicle routing, job scheduling, and bin packing without any further training.
What Problem Does This Paper Address?
Combinatorial Optimization Problems (COPs)—like finding the shortest route for a delivery truck or the best way to pack a warehouse—are notoriously difficult. While LLM agents can write solvers for these, they often get stuck. They might make a coding error, choose a weak search strategy, or fail to realize their algorithm has hit a plateau.
The standard fix is "prompt engineering" or specialized workflows, but these are brittle and problem-specific. The real challenge is that feedback is indirect. If a solver performs poorly, is it because the code has a bug? Or because the high-level guidance was too vague? AutoSECO aims to bridge this gap by turning "solver-development experience" into reusable, general-purpose expertise.
Methods
AutoSECO uses a "closed-loop" evolutionary approach involving two distinct roles:
- The Solver Agent: This agent is given a "Solving Skill" (a Markdown file of instructions) and tasked with building a complete solver from scratch. It goes through a "ReAct-style" loop: designing, implementing, testing on training data, and diagnosing its own capability gaps.
- The Skill Evolver: This is the "coach." It looks at the final solver's performance, the code it wrote, and—crucially—the trace of decisions the Solver Agent made. If the solver failed, the Evolver traces the failure back to the guidance. Was an instruction missing? Ambiguous? Too general?
The most rigorous part of the method is the Selection Rule. A revised skill is only kept if a fresh agent, starting from a blank slate with no memory of previous attempts, uses that skill to build a solver that achieves a lower "gap" (error) than the previous best. This ensures the skill itself is what's improving, not just a lucky bit of code.
Datasets
The authors used a diverse set of classic optimization benchmarks:
- Evolution Source: The Traveling Salesperson Problem (TSP) using TSPLIB.
- Cross-Problem Transfer:
- CVRP: Capacitated Vehicle Routing (delivering goods with limited truck capacity).
- JSSP: Job-Shop Scheduling (ordering tasks on machines).
- 3D-BPP: Three-Dimensional Bin Packing (fitting boxes into containers).
Key Insights and Ideas
- Traceability is King: You can’t fix a strategy if you don’t know which part of the strategy led to the bad code. By recording the agent's "thoughts" during development, AutoSECO can pinpoint exactly where the instructions were unhelpful.
- Generalization through Abstraction: The evolved skills don't say "use a 2-opt swap for TSP." Instead, they might say, "Compare paired runs across different time budgets to distinguish between slow code and a search space that is too small." This is advice that works whether you're routing trucks or scheduling factories.
- The "Fresh Start" Filter: By forcing a new agent to use the revised skill from scratch, the system filters out "lucky" code fixes and retains only the guidance that is truly robust and interpretable by the LLM.
Key Results
The results are impressive, especially considering the "skills" were only evolved on TSP:
- On TSP: AutoSECO achieved a mean benchmark gap of 0.52%, nearly halving the 0.98% gap of the previous state-of-the-art baseline (SkillOpt).
- Zero-Shot Transfer: Without any additional evolution, the TSP-learned skill outperformed all baselines on CVRP, JSSP, and 3D-BPP. For example, on CVRP, it reduced the gap from 3.63% (SkillOpt) to 1.37%.
- Robustness: The skill remained effective even when the underlying LLM or the software "harness" was changed, proving the expertise is truly in the natural language guidance.
Limitations and Future Work
- Source Diversity: The skills were evolved using only one problem (TSP). The authors note that evolving across multiple different problems simultaneously might lead to even more "universal" expertise.
- Stochasticity: LLMs are inherently random. A single "fresh run" might not always represent the true quality of a skill.
- Stopping Rules: Currently, the system runs for a fixed number of rounds. A smart "stopping rule" that knows when the skill has plateaued would save significant computational cost.
In short, AutoSECO suggests that we don't just need better models; we need better ways to let those models "take notes" on what works, creating a library of digital expertise that grows more capable over time. Now, go get some sleep—the agents have the next shift.
Summary updated