Dream-COP: Guiding Algorithm Discovery for Combinatorial Optimization Problems in an Experience World
Organizations: Singapore Management University · University of Science and Technology of China · Eindhoven University of Technology · Central South University
Abstract
Large language models (LLMs) enable algorithm discovery for combinatorial optimization problems (COPs) through iterative program generation and evaluation. A central challenge is how to organize search to discover better algorithms within a limited budget. Our key insight is that past search trajectories and their recorded outcomes form an experience world, which can be used to facilitate the COP solving through replay. We introduce Dream-COP, in which a policy agent learns executable policies through dreaming in this experience world to guide a discovery agent in generating and refining COP programs. Specifically, policy replay provides feedback on the quality of the programs revealed and the search steps used, to guide policy selection more effectively. Across five COPs, Dream discovers better algorithms than fixed exploration in both heuristic component design and complete solver generation. Particularly, it matches the optimal values on KP and reduces the gap on OBPP from 2.112% to 1.199% while using 42.5% fewer search requests. Moreover, the learned exploration policies transfer effectively across different COPs with the assitance of the experience world.
Figures & tables
| LLM Model | Method | TSPLIB | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Obj. | Gap (%) | Obj. | Gap (%) | Obj. | Gap (%) | Obj. | Gap (%) | Obj. | Gap (%) | ||
| LKH ref. | 5.675 | – | 7.768 | – | 10.708 | – | 16.531 | – | 46392.7 | – | |
| Greedy | 6.959 | 22.622 | 9.706 | 24.936 | 13.461 | 25.711 | 20.813 | 25.903 | 57055.2 | 24.332 | |
| POMO | 5.697 | 0.383 | 8.001 | 2.999 | 12.897 | 20.447 | 24.156 | 46.135 | 60654.7 | 23.923 | |
| GPT-4o-mini | EoH | 6.629 | 16.822 | 9.252 | 19.114 | 12.939 | 20.842 | 20.202 | 22.209 | 55974.5 | 21.060 |
| ReEvo | 6.959 | 22.622 | 9.706 | 24.936 | 13.461 | 25.711 | 20.813 | 25.903 | 57055.2 | 24.332 | |
| LLM Model | Method | , | , | , | , | ||||
|---|---|---|---|---|---|---|---|---|---|
| Obj. | Gap (%) | Obj. | Gap (%) | Obj. | Gap (%) | Obj. | Gap (%) | ||
| OR-Tools opt. | 20.037 | – | 40.272 | – | 57.447 | – | 90.963 | – | |
| Greedy | 19.985 | 0.261 | 40.225 | 0.118 | 57.395 | 0.090 | 90.919 | 0.048 | |
| POMO | 19.510 | 2.548 | 39.431 | 2.034 | 57.209 | 0.417 | 85.414 | 6.096 | |
| GPT-6-Luna | MCTS-AHD | 20.037 | 0.000 | 40.272 | 0.000 | 57.447 | 0.000 | 90.945 | 0.020 |
| Fixed | 20.033 | 0.019 | 40.264 | 0.020 | 57.436 | 0.020 | 90.954 | 0.010 | |
| Transfer | Method | Dev. score | Test metric | Search steps |
|---|---|---|---|---|
| TSP OBPP | Fixed | 0.98142 | 2.1124 | 240 |
| Dream | 0.98409 | 1.1988 | 138 | |
| Transferred Dream | 0.98710 | 1.0637 | 86 | |
| OBPP FSSP | Fixed | 0.54973 | 0.1940 | 240 |
| Dream | 0.54990 | 0.0412 | 176 | |
| Transferred Dream | 0.54981 | 0.0872 | 174 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| LLM Model | Method | TSPLIB | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Gap (%) | Time (s) | Gap (%) | Time (s) | Gap (%) | Time (s) | Gap (%) | Time (s) | Gap (%) | Time (s) | ||
| LKH ref. | – | 0.479 | – | 1.83 | – | 6.06 | – | 31.3 | – | 29.1 | |
| Greedy | 22.622 | 0.0002 | 24.936 | 0.0005 | 25.711 | 0.0013 | 25.903 | 0.0239 | 24.332 | 0.0065 | |
| POMO † | 0.383 | 0.0005 | 2.999 | 0.0004 | 20.447 | 0.0008 | 46.135 | 0.0024 | 23.923 | 0.0502 | |
| GPT-4o-mini | EoH | 16.822 | 0.001 | 19.114 | 0.0025 | 20.842 | 0.0085 | 22.209 | 0.0502 | 21.060 | 0.0096 |
| ReEvo | 22.622 | 0.0006 | 24.936 | 0.0014 | 25.711 | 0.005 | 25.903 | 0.0467 | 24.332 | 0.0084 | |
| Instance | LKH (ref.) | Greedy | POMO | EoH | ReEvo | MCTS-AHD | Fixed | Dream-COP | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Length | Gap (%) | Length | Gap (%) | Length | Gap (%) | Length | Gap (%) | Length | Gap (%) | Length | Gap (%) | Length | Gap (%) | |||
| ts225 | 225 | 126643 | 162697.0 | 28.469 | 182934.0 | 44.449 | 145719.7 | 15.063 | 146561.7 | 15.728 | 152030.7 | 20.047 | 148299.7 | 17.101 | 141445.0 | 11.688 |
| rat99 | 99 | 1211 | 1558.0 | 28.654 | 1332.0 | 9.992 | 1424.7 | 17.644 | 1437.7 | 18.717 | 1544.0 | 27.498 | 1456.0 | 20.231 | 1355.7 | 11.946 |
| bier127 | 127 | 118282 | 135848.0 | 14.851 | 134250.0 | 13.500 | 150183.0 | 26.970 | 133371.3 | 12.757 | 137271.7 | 16.055 | 132660.3 | 12.156 | 127479.7 | 7.776 |
| lin318 | 318 | 42029 | 54019.0 | 28.528 | 59945.0 | 42.628 | 50308.0 | 19.698 | 53587.7 | 27.502 | 51346.7 | 22.170 | 51914.0 | 23.519 | 48487.0 | 15.366 |
| eil51 | 51 | 426 | 511.0 | 19.953 | 429.0 | 0.704 | 487.0 | 14.319 | 475.3 | 11.581 | 487.0 | 14.319 | 513.3 | 20.501 | 479.7 | 12.598 |
| GPT-4o-mini | GPT-6-Luna | |||||||||||||||||
| Taillard UB | CP-SAT | OptalCP | EoH | Fixed | Dream-COP | EoH | Fixed | Dream-COP | ||||||||||
| Time | Time | Time | Time | Time | Time | Time | Time | |||||||||||
| 20 | 5 | 1222.5 | 1221.9 | 5.87 | 1221.9 | 270 | 1223.6 | 0.280 | 1223.6 | 0.282 | 1222.4 | 0.270 | 1222.4 | 0.356 | 1222.4 | 2.09 | 1222.4 | 0.536 |
| 20 | 10 | 1513.7 | 1516.5 | 245 | 1521.1 | 300 | 1516.2 | 0.330 | 1516.2 | 0.327 | 1515.5 | 0.313 | 1515.2 | 0.444 | 1521.1 | 2.68 | 1514.2 | 0.639 |
| 20 | 20 | 2235.1 | 2246.8 | 300 | 2253.3 | 300 | 2237.9 | 0.494 | 2237.9 | 0.501 | 2239.6 | 0.438 | 2237.1 | 0.691 | 2239.3 | 4.34 | 2236.1 | 0.920 |
| 50 | 5 | 2736.4 | 2736.4 | 13.7 | 2736.4 | 182 | 2736.5 | 2.19 | 2736.5 | 2.23 | 2736.4 | 1.94 | 2736.4 | 2.21 | 2736.6 | 5.12 | 2736.7 | 2.51 |
| Ref. LB | FunSearch | EoH | ReEvo | MCTS-AHD | Fixed | Dream-COP | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bins | Gap (%) | Bins | Gap (%) | Bins | Gap (%) | Bins | Gap (%) | Bins | Gap (%) | Bins | Gap (%) | Bins | Gap (%) | ||
| 1k | 100 | 402.4 | - | 421.6 | 4.771 | 421.6 | 4.771 | 420.6 | 4.522 | 418.2 | 3.926 | 420.0 | 4.371 | 420.4 | 4.477 |
| 1k | 500 | 80.6 | - | 80.8 | 0.247 | 80.8 | 0.247 | 80.8 | 0.247 | 80.8 | 0.247 | 80.8 | 0.247 | 80.8 | 0.247 |
| 5k | 100 | 2019.4 | - | 2106.4 | 4.307 | 2106.4 | 4.307 | 2095.0 | 3.743 | 2087.2 | 3.357 | 2091.8 | 3.585 | 2041.4 | 1.089 |
| 5k | 500 | 402.4 | - | 404.6 | 0.547 | 404.6 | 0.547 | 404.6 | 0.547 | 404.6 | 0.547 | 404.4 | 0.497 | 404.2 | 0.448 |
| 10k | 100 | 4010.6 | - | 4173.0 | 4.049 | 4173.0 | 4.049 | 4160.2 | 3.730 | 4142.6 | 3.291 | 4151.0 | 3.501 | 4029.0 | 0.459 |
| Problem | Best dev. score | Test metric | Test result | ||
|---|---|---|---|---|---|
| TSP | 0.903628 | 0.911622 | Tour length | 9.7762 | 9.2079 |
| KP | 0.401890 | 0.401890 | Value | 39.25212 | 39.25212 |
| OBPP | 0.986612 | 0.984093 | Gap (%) | 1.1238 | 1.1988 |
| FSSP | 0.549795 | 0.549904 | Gap (%) | 0.1864 | 0.0412 |
| 2D-BPP | 0.752726 | 0.755089 | Bins | 14.520 | 14.504 |
| Model | W/T/L | Mean | |
|---|---|---|---|
| GPT-6-Luna | 20/479/1 | 0.016 | |
| GPT-6-Sol | 13/486/1 | 0.011 |
Automated Algorithm Discovery
Automated algorithm discovery develops methods that generate and test executable algorithms for optimization, science, software, and machine learning.
See all 170 papers