arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.36618

Dream-COP: Guiding Algorithm Discovery for Combinatorial Optimization Problems in an Experience World

Kuan Xu, Jianming Wang, Ni Zhang, Yaoxin Wu, Yong Wang, Zhiguang Cao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

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 assistance of the experience world.

1 INTRODUCTION

Combinatorial optimization problems (COPs) are central to efficient resource use in transportation, production scheduling, and resource allocation, yet finding optimal solutions becomes increasingly computationally demanding as problem size and complexity grow (Korte & Vygen, 2018). Heuristics and metaheuristics play a central role in obtaining high-quality solutions under practical computational constraints (Gendreau & Potvin, 2019). Developing effective heuristics often requires substantial expertise and repeated experimentation (Bengio et al., 2021), motivating methods that can automate algorithm design for different problems (Figure 1).

Automatic heuristic design (AHD) automates the selection, composition, and configuration of heuristics and their components (Burke et al., 2013; Stützle & López-Ibáñez, 2019). Large language models (LLMs) expand this design space by expressing algorithmic ideas in natural language and generating executable programs (Romera-Paredes et al., 2024; Liu et al., 2024). Evaluation and evolutionary search then support repeated selection and revision of these programs using measured performance and execution feedback (van Stein & Bäck, 2025). Subsequent approaches use this experience to provide reflective guidance and organize development trajectories into trees for structured exploration (Ye et al., 2024; Zheng et al., 2025). Reinforcement learning enables the LLM to improve its generation behavior from evaluated candidates (?Huang et al., 2026) and learn decisions within multi-turn AHD interactions (Lv et al., 2026). These advances highlight the value of experience in improving heuristic generation.

Algorithm discovery also requires deciding which candidate program to revise and evaluate next. Different revision branches exhibit different patterns of improvement, failure, and stagnation. How the search budget is allocated among these branches, and when exploration stops, therefore directly influence the quality of the algorithms discovered. Historical trajectories record these patterns together

∗^{*}Email: kuanxu@smu.edu.sg.

with the outcomes of earlier revisions, providing evidence for learning how to make such decisions. We therefore ask: how can historical search trajectories help us learn better exploration policies?

World-model research suggests a useful principle: experience can provide an internal environment for improving policies before they guide further real interaction (Sutton, 1990; Ha & Schmidhuber, 2018; Hafner et al., 2020; 2025). For algorithm discovery, this motivates turning past searches into an environment where exploration policies can be evaluated before allocating new generation and evaluation requests.

Our key insight is that historical search trees record both what was discovered and how discovery unfolded, providing exactly the structure needed for such an internal environment. We introduce Dream-COP, which learns search policies by dreaming in an experience world constructed from these trees (Figure 1c). The relationships among programs, together with their recorded evaluation outcomes, allow candidate search policies to be replayed over these development trajectories. Particularly, a policy agent proposes executable search policies that decide which revision branch to extend, when to open a new branch, and when to stop. During replay,

(a) Human expert design

(b) Prior LLM-based AHD

Figure

(c) Dream-COP (ours)

Figure

Figure 1: Three approaches to heuristic design: (a) human expertise, (b) LLM-based heuristic search, and (c) Dream-COP, which learns exploration policies through historical replay in the experience world.

each policy sees only the outcomes revealed by its own actions and is evaluated by the quality of the programs it reveals and the number of search steps it uses. These evaluations guide subsequent policy proposals and policy selection. The selected policy then directs a discovery agent's program generation and evaluation, producing new search trajectories that expand the experience world. This cycle turns each completed search into two assets: candidate algorithms and experience for learning more effective exploration policies.

Our contributions are threefold. (1) We formulate historical search trees as an experience world, enabling policies to be compared through recorded outcomes without additional solver generation or evaluation during replay. (2) We develop Dream-COP, which proposes executable policies for budget allocation, and selects candidate policies using a replay objective that balances algorithm quality against the number of search steps. (3) We conduct experiments across five COPs, and the results show that Dream-COP discovers better algorithms with fewer search requests than fixed exploration. Meanwhile, it also achieves superior performance against existing LLM-based AHD methods. Cross-problem experiments further show that exploration policies learned from search experience on one COP remain effective when guiding algorithm discovery on another.

References (100)

Couldn't load all references. Reload the page to try again.