Introduction
Combinatorial optimization (CO) problems on graphs, such as Max-Cut, are fundamental to fields ranging from logistics to bioinformatics. While these problems are typically NP-hard, recent advances in Reinforcement Learning (RL) have enabled the training of Graph Neural Networks (GNNs) to learn effective heuristics. However, a significant "GNN bottleneck" persists: state-of-the-art methods often re-run a GNN at every decision step to update node representations. This leads to poor scalability, as GNN computation time grows significantly with graph size and edge density, making them impractical for large-scale real-world applications.
The ECORD Framework
To address this bottleneck, we introduce ECORD (Exploratory Combinatorial Optimisation with Recurrent Decoding). ECORD decouples structural understanding from search trajectory management, allowing for high-quality reasoning at a fraction of the computational cost.
The framework operates in two distinct phases:
- Static Structural Encoding ($t=0$): A Gated Graph Convolutional Network (GCN) is executed once at the beginning of an episode. It produces fixed vertex embeddings ($x_i$) that capture the global geometric structure of the graph.
- Fast Recurrent Decoding ($t>0$): Instead of re-evaluating the entire graph, ECORD uses a Gated Recurrent Unit (GRU) to maintain a state ($h^{(t)}$) representing the search history. At each step, the agent evaluates potential actions (flipping a node's partition label) using the static embeddings, local observations, and "peeks"—computationally cheap one-step look-aheads.
Training and Exploration
ECORD is trained using Munchausen DQN (M-DQN). This variant of Deep Q-Learning incorporates a KL-divergence term into the loss function, which stabilizes learning and encourages more robust exploration in the large action spaces typical of graph problems. By leveraging "peeks"—the immediate change in the objective function—the agent learns to combine greedy-like local improvements with long-term strategic search.
Experimental Results
The model was evaluated on synthetic Erdős-Rényi and Barabási-Albert graphs, as well as the standard GSet benchmark for Max-Cut. Notably, the model was trained on small graphs (40 vertices) but demonstrated exceptional zero-shot generalization to graphs with up to 10,000 vertices.
Performance and Scalability
ECORD significantly outperforms previous RL-based methods like ECO-DQN. On 500-vertex graphs, it reduced the optimality gap by up to 73%. More importantly, ECORD achieves a massive increase in throughput. As shown in the figure below, while the action selection time for ECO-DQN grows exponentially with graph size, ECORD maintains nearly constant-time performance.
On a 10,000-node graph, the initial GNN preprocessing takes approximately 2ms, after which the recurrent decoding phase proceeds with minimal overhead. This represents a 300x speedup over traditional RL-GNN approaches on large-scale benchmarks.
Conclusion
ECORD demonstrates that expensive geometric reasoning via GNNs can be restricted to a single preprocessing step without sacrificing solution quality. By shifting the burden of search trajectory management to a fast RNN, ECORD enables RL to scale to combinatorial problems of unprecedented size. Future work will explore extending this approach to problems with global constraints, such as the Traveling Salesperson Problem, where local "peeks" are less straightforward to compute.
Summary updated