Abstract
Mixed-Integer Linear Programming (MILP) is a fundamental tool in optimization, yet its NP-hard nature necessitates the use of primal heuristics to find feasible solutions efficiently. Recent attempts to automate heuristic design using Large Language Models (LLMs) often fail to generalize across the structural diversity of MILP instances. We introduce DHEvo, a framework for data-algorithm co-evolution. By iteratively selecting representative problem instances and refining heuristic code through a multi-agent debate process, DHEvo generates highly generalizable heuristics. Experimental results show that DHEvo significantly outperforms both human-designed heuristics and existing LLM-based methods across synthetic and real-world benchmarks.
Introduction
Mixed-Integer Linear Programming (MILP) powers critical infrastructure, from airline scheduling to power grid management. Because solving MILP is NP-hard, solvers rely on primal heuristics—fast, rule-of-thumb algorithms—to find high-quality feasible solutions quickly. While human experts have traditionally designed these heuristics, there is a growing interest in using Large Language Models (LLMs) to automate the evolutionary design of these algorithms.
The Challenge of Generalization
A significant hurdle in automated heuristic design is the structural diversity within problem classes. A heuristic optimized for one set of instances may perform poorly on others. As shown in Figure 1, t-SNE visualizations of instance features across different datasets reveal high intra-class diversity. Existing LLM-based methods often "overfit" to a small set of training samples, failing to capture the broader problem structure.
The DHEvo Framework
To address the generalization gap, DHEvo proposes a co-evolutionary approach where data and algorithms are evolved in tandem. Instead of treating training data as static, DHEvo identifies "representative" instances that reflect the core structure of the problem class.
Data-Algorithm Co-evolution
The framework evolves data-code pairs, evaluating heuristic performance on specific instances to guide the evolutionary process. This ensures that the generated code is robust against the variations found in real-world problems.
MA-Evolution System
To minimize coding errors and hallucinations common in LLMs, DHEvo employs a multi-agent system consisting of a Designer, Coder, Reviewer, and Judger. This iterative "debate" cycle catches common bugs, such as undefined variables, ensuring the stability of the evolutionary loop and improving the quality of the generated Python code.
Experimental Results
The authors evaluated DHEvo on a variety of benchmarks, including synthetic combinatorial optimization (e.g., Set Cover, Capacitated Facility Location) and real-world MILP instances (e.g., MIPLIB).
Performance and Robustness
DHEvo demonstrated state-of-the-art performance:
- Accuracy: On the
Indsetdataset, DHEvo improved the primal gap by 56.04% compared to the best human-designed heuristic. - Generalization: On
Setcover, it outperformed the LLM-based baseline (EoH) by 61.8% and reduced performance variance by 46.9%, indicating superior robustness. - Solver Integration: When integrated into the SCIP solver, DHEvo-generated heuristics reduced solving times and improved Primal-Dual Integrals (PDI). For instance, on the
Facilitiesdataset, it achieved a 6.7% improvement in solving time over the current state-of-the-art.
Conclusion
DHEvo represents a significant step forward in automated algorithm design for MILP. By coupling instance selection with heuristic evolution, the framework overcomes the overfitting issues of previous methods. Future work will explore extending this co-evolutionary approach to other solver components, such as branching rules and large neighborhood search, to further enhance the efficiency of general-purpose MILP solvers.
Summary updated