NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploratory Combinatorial Optimization with Reinforcement Learning

Thomas D. Barrett, William R. Clements, Jakob N. Foerster, A. I. Lvovsky

Introduction

Combinatorial optimization (CO) on graphs underpins numerous real-world challenges, from protein folding to portfolio management. Traditional reinforcement learning (RL) approaches typically employ a constructive paradigm, where an agent builds a solution incrementally (e.g., adding vertices to a set). However, this "one-shot" approach is prone to irreversible early mistakes, making it difficult to achieve near-optimal solutions for NP-hard problems or generalize to larger, unseen graph structures.

To address these limitations, we present ECO-DQN (Exploratory Combinatorial Optimization DQN). ECO-DQN shifts the RL paradigm from "building" a solution to "exploring" for one. By allowing agents to reversibly modify solution sets and rewarding the discovery of new "best-so-far" states, ECO-DQN achieves state-of-the-art performance on the Max-Cut problem and demonstrates remarkable generalization capabilities.

Methodology

ECO-DQN treats optimization as an ongoing search process rather than a static construction task. The core components of the framework include:

  • Reversible Action Space: Unlike constructive models, ECO-DQN allows the agent to "flip" a vertex—either adding it to or removing it from the current solution set. This reversibility enables the agent to revise previous decisions and perform effective local searches.
  • Exploratory Reward Shaping: To incentivize thorough search, agents receive a reward whenever they identify a solution superior to any previously encountered in the current episode. A small "intrinsic" reward for reaching new local optima is also included to prevent stagnation.
  • Architecture and Features: The model utilizes a Message Passing Neural Network (MPNN) to encode graph topology. The state representation includes seven features—three local to the vertex and four global to the episode—such as the time since a vertex's state last changed and the relative difference between the current cut-value and the best observed.
  • Test-Time Variance: At inference, the system runs multiple episodes from varied random initializations, selecting the best result. This strategy leverages the stochastic nature of learned search trajectories to improve solution quality.

Experiments and Results

The authors evaluated ECO-DQN across synthetic graphs (Erdős-Rényi and Barabási-Albert), physics-based Ising model datasets, and the large-scale GSet benchmarks.

Learning curves on ER graphs (|V|=40) showing ECO-DQN's superior performance and the impact of its components.

Performance and Ablation

On ER graphs with 40 vertices, ECO-DQN achieved a near-perfect mean approximation ratio of 1.00, outperforming the leading constructive RL baseline, S2V-DQN (0.98). Ablation studies, as shown in the learning curves above, confirmed that removing reversibility significantly degrades performance, often falling below existing constructive baselines.

Generalization and Robustness

A key strength of ECO-DQN is its ability to generalize. An agent trained on graphs with only 40 vertices maintained an approximation ratio of 0.971 on GSet graphs with 2000 vertices—a 50x increase in scale. Constructive baselines typically fail when graph sizes even double.

Generalization performance on Barabási-Albert (BA) graphs. ECO-DQN maintains high approximation ratios as graph size increases, significantly outperforming constructive baselines.

Furthermore, ECO-DQN successfully identified optimal solutions for 100% of the "Physics" dataset instances when combined with multiple random initializations, demonstrating its robustness as a search heuristic.

Discussion

ECO-DQN effectively automates the design of high-performance local search heuristics. By learning to "hop" between local optima rather than following a single constructive path, the agent develops a policy that remains meaningful across varying graph scales. By using relative features like "distance from the best-observed solution," the policy avoids overfitting to absolute values specific to training graph sizes.

While ECO-DQN requires more steps than constructive methods, its per-action inference time remains low, and the resulting search efficiency justifies the computational budget. Future work may explore longer reward horizons, recurrent architectures to better capture episode history, and specialized initialization policies to further enhance exploratory depth.

Summary updated

BibTeX
@inproceedings{barrett2020exploratory,
  author = {Thomas D. Barrett and William R. Clements and Jakob N. Foerster and A. I. Lvovsky},
  title = {{Exploratory Combinatorial Optimization with Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5723},
}
Figure