TL;DR
This paper introduces a novel reinforcement learning (RL) framework for combinatorial optimization problems (COPs) on graphs. Unlike previous greedy approaches, it allows for "reversible actions" (flipping or swapping labels) to iteratively refine solutions, enabling exploration of the solution space and escape from local optima. This general framework, combined with graph neural networks for state representation, achieves competitive performance on Maximum k-Cut and TSP, demonstrating improved generalization and robustness.
What Problem Does This Paper Address?
Combinatorial optimization problems (COPs) are ubiquitous and challenging, often falling into the NP-hard category. These problems involve finding the best solution from a vast, discrete set of possibilities, typically represented on graphs. While reinforcement learning (RL) has shown promise for tackling COPs, existing RL methods often rely on a greedy, incremental approach to build solutions. This means the agent makes decisions one step at a time, and these decisions are irreversible. This "greedy" nature can lead to suboptimal solutions because the agent gets stuck in local minima and cannot backtrack or revise earlier choices. Furthermore, these methods often require significant problem-specific engineering, limiting their generalizability across different COPs. The paper aims to address these limitations by proposing a more flexible and general RL framework that can handle a wider range of COPs and escape the pitfalls of greedy optimization.
Methods
The core innovation of this paper is the introduction of reversible actions within an RL framework for COPs. Instead of building a solution from scratch, the agent starts with an arbitrary solution and iteratively refines it. The state in this framework is defined as a complete graph-solution pair, and actions are defined as perturbations to the current solution. Specifically, two types of reversible actions are proposed:
- Flipping: Changing the label of a single vertex to a different one.
- Swapping: Exchanging the labels of two vertices.
These actions allow the agent to explore the solution space more broadly and potentially escape local optima. The framework uses Graph Neural Networks (GNNs) to encode the state and potential actions into continuous representations. A Deep Q-Network (DQN) is then trained to learn a policy that maximizes the expected cumulative reward. To handle the potentially large action space of swapping, an auxiliary action-proposal network (AP-net) is introduced to prune the search space, improving efficiency without significant loss in accuracy. The training utilizes an N-step off-policy TD method to mitigate the issue of delayed rewards.
Datasets
The paper evaluates its framework on two well-studied COPs:
- Maximum k-Cut: Experiments are conducted on complete graphs generated synthetically by sampling nodes around k centroids, and also on k-clustered graphs. For larger graphs, K-nearest neighbor graphs (K=50) are used to reduce computational complexity.
- Traveling Salesman Problem (TSP): Training graphs are generated by uniformly sampling nodes in a 2D square. For testing, the paper uses a public benchmark dataset, TSPLIB, which contains real-world instances.
No new benchmarks are introduced; the focus is on evaluating the proposed method on existing, standard datasets for these problems.
Key Insights and Ideas
- Reversible actions are crucial for escaping local minima: By allowing the agent to "undo" or modify previous decisions, the framework can explore the solution space more effectively and avoid getting trapped in suboptimal configurations, a common problem with greedy RL agents.
- A unified framework for diverse COPs: The proposed approach, by defining state as a complete solution and actions as perturbations, offers a generalizable framework that can be adapted to various COPs by simply changing the state-action encoding mechanism (e.g., GNN architecture, readout functions).
- Action space pruning is essential for scalability: The combinatorial explosion of possible swapping actions is a major bottleneck. The introduction of an auxiliary action-proposal network effectively prunes the action space, making the method applicable to larger problem instances.
- Exploration followed by exploitation: The learned policy demonstrates a strategic behavior of exploring the solution space in the early stages of an episode and then increasingly exploiting greedy moves as it approaches a good solution.
Key Results
- Competitive performance: The proposed LS-DQN (Local Search DQN) framework achieves state-of-the-art or competitive performance compared to learning-based baselines (S2V-DQN, ECO-DQN) and heuristic methods (SDP, GP, greedy) on both Maximum k-Cut and TSP.
- Improved generalization: The model trained on smaller graphs demonstrates consistent approximation ratios when tested on larger graphs, indicating good generalization capabilities.
- Efficiency-accuracy trade-off: The action-proposal network allows for a significant reduction in computation time and memory usage (e.g., ~10% time/space for Maximum k-Cut) with minimal degradation in approximation ratio, especially when using a moderate action reserve ratio (e.g., ε=0.1).
- Qualitative improvements: Visualizations show that LS-DQN can find better solutions than greedy algorithms by making "farsighted" decisions, even if they temporarily increase the objective value, to ultimately reach a better local or global optimum.
Limitations and Future Work
- Scalability of action space: While the AP-net helps, the swapping action space can still be a bottleneck for extremely large graphs.
- State representation: The current state representation uses one-hot labels for cuts and sequences for tours. The authors suggest that designing network architectures that can more intrinsically encode complex combinatorial structures could further improve performance.
- Future work: The authors propose exploring more sophisticated state representations and network architectures to better capture the underlying combinatorial structures of solutions. They also aim to extend the framework to a wider range of COPs.
Summary updated