ACEvo: Adversarial Co-Evolution of Problem Distributions and Solvers for Combinatorial Optimization

Ruibo Duan, Yuxin Liu, Haoran Ye, Xinyao Dong, zhiqiang xu, Chenglin Fan

TL;DR

ACEvo is a closed-loop framework that uses Large Language Models (LLMs) to simultaneously evolve harder combinatorial optimization problems and more robust heuristic solvers. By creating an automated "arms race" between problem generation and solver design, the system produces algorithms that significantly outperform static-training baselines and generalize better to real-world benchmarks.

What Problem Does This Paper Address?

Combinatorial Optimization (CO)—solving problems like the Traveling Salesman Problem (TSP)—is fundamental to everything from logistics to chip design. While LLMs have recently shown promise in synthesizing heuristic code for these tasks, most existing methods suffer from a "static evaluation" trap. They optimize solvers against fixed, often uniform, benchmark distributions.

This approach has two major flaws: it obscures solver weaknesses that might appear under different data distributions, and it limits our understanding of how these algorithms adapt to increasing complexity. The authors argue that to build truly robust solvers, we need a way to generate increasingly challenging problem instances and solvers that can co-evolve alongside that rising complexity.

Methods

The authors introduce ACEvo (Adversarial Co-Evolution), a dual-loop framework orchestrated by LLMs (specifically Claude 3.7 Sonnet in their experiments). The framework consists of four main components:

  1. LLM-Based Hard Instance Generator: Instead of just sampling random points, an LLM mutates procedural programs to create complex spatial patterns (like clusters or spirals) designed to be difficult for current solvers.
  2. LLM-Based Heuristic Generator: A symmetric agent that synthesizes solver code, guided by symbolic prompts and algorithmic priors.
  3. Adversarial Interaction Protocol: The process is formalized as a minimax game. The generator tries to maximize the "optimality gap" (the difference between the heuristic solution and the optimal one), while the solver tries to minimize it.
  4. Evolutionary Reflection: This is the "secret sauce." The LLM doesn't just guess new code; it performs a symbolic diagnosis of behavioral shifts between parent and mutated programs, identifying failure modes to guide the next iteration.
Figure 1: Illustration of the ACEvo framework and generated instance examples.

Datasets

The study evaluates ACEvo on three major routing problems: the Traveling Salesman Problem (TSP), the Orienteering Problem (OP), and the Capacitated Vehicle Routing Problem (CVRP).

  • Standard Datasets: Uniformly sampled random instances used as a baseline.
  • ACEvo-Generated Hard Instances: Procedurally generated distributions that evolve to exploit solver weaknesses.
  • TSPLIB: A widely recognized library of real-world TSP instances. This was used to test how well the evolved solvers generalize to human-designed problems they didn't see during training.

Key Insights and Ideas

  • The Adversarial Curriculum: As the generator creates harder problems, the solver is forced to move beyond simple greedy strategies. The authors observed the code evolving from basic distance-based logic to sophisticated Minimum Spanning Tree (MST) analysis and path-based penalties.
  • Reshaping Distributions: ACEvo doesn't just make the numbers bigger; it fundamentally reshapes the problem space. Visualization via t-SNE and UMAP (Figure 4) shows that while standard datasets are uniform, ACEvo instances develop fragmented clusters and high-density cores that break the homogeneity of standard benchmarks.
  • Generalization through Adversity: A key finding is that solvers trained against adversarial synthetic data perform better on real-world benchmarks (TSPLIB) than those trained on standard synthetic data. The "arms race" creates more resilient logic.
  • Reflection is Critical: In ablation studies, removing "evolutionary reflection"—the step where the LLM analyzes why a solver failed—led to a significant drop in performance, proving that targeted adaptation is better than random mutation.

Key Results

ACEvo demonstrated a clear "Hardness Amplification" effect. As shown in Figure 2, instances generated by ACEvo induced much larger optimality gaps in baseline solvers (like FunSearch and ReEvo) compared to standard data, with gaps increasing by up to 9%.

Gap (%) comparison across four methods on standard (dashed) and hard (solid) datasets.

Quantitatively, ACEvo-evolved solvers consistently outperformed state-of-the-art LLM-based baselines:

  • On hard TSP instances (size 400-1000), ACEvo achieved an optimality gap of ~7.67%, while the strongest baselines were stuck above 8.9% (Table 1).
  • On TSPLIB, ACEvo achieved the lowest optimality gap across nearly all instances, demonstrating superior zero-shot generalization.

Limitations and Future Work

While powerful, the authors note that the framework's performance is tied to the underlying LLM's reasoning capabilities and the cost of API calls (averaging $0.05 per call). The current implementation is also focused on routing problems.

Future work could involve extending ACEvo to other combinatorial domains like scheduling or bin packing, and exploring how different LLM backends (or smaller, fine-tuned models) might impact the co-evolutionary dynamics. The authors also suggest that this "closed-loop" paradigm could be used to construct more adaptive and rigorous evaluation environments for AI in general.

Summary updated

BibTeX
@inproceedings{duan2026acevo,
  author = {Ruibo Duan and Yuxin Liu and Haoran Ye and Xinyao Dong and zhiqiang xu and Chenglin Fan},
  title = {{ACEvo: Adversarial Co-Evolution of Problem Distributions and Solvers for Combinatorial Optimization}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=wyyIZFdpXC},
}
Figure