NeuroPrim:一种用于求解NP难生成树问题的基于注意力的模型
NeuroPrim: An Attention-based Model for Solving NP-hard Spanning Tree Problems
AI总结:
针对边集形式解的生成树等组合优化问题,提出基于注意力的NeuroPrim框架,通过MDP建模、Prim算法缩减空间和REINFORCE训练,在三类难题上优于强启发式算法,且泛化性良好。
摘要:
带特殊约束的生成树问题在实际场景中往往难以求解,通常需要复杂的算法设计和指数级时间。近年来,人们对用端到端深度神经网络求解路径规划问题的兴趣日益浓厚。然而,这类方法通常生成顶点序列,因此难以应用于解集由边构成的一般组合优化问题,例如各类生成树问题。本文提出NeuroPrim,这是一个通过为图上的一般组合优化问题定义马尔可夫决策过程(MDP)来求解各类生成树问题的新型框架。我们的方法利用Prim算法(普里姆算法)缩减动作与状态空间,并使用REINFORCE算法训练所得模型。我们将该框架应用于欧几里得空间中的三个难题:度约束最小生成树(DCMST)问题、最小路由代价生成树(MRCST)问题以及图中的斯坦纳树问题(STP)。在文献基准实例上的实验结果表明,我们的模型性能优于强启发式算法,且在顶点数最多达250的实例上仅存在很小的最优性间隙。此外,我们发现模型具备很强的泛化能力,在规模大至1000个顶点的问题实例上未观察到性能显著下降。我们的结果表明,该框架可有效求解生成树问题之外的各类组合优化问题。
英文摘要:
Spanning tree problems with specialized constraints can be difficult to solve in real-world scenarios, often requiring intricate algorithmic design and exponential time. Recently, there has been growing interest in end-to-end deep neural networks for solving routing problems. However, such methods typically produce sequences of vertices, which makes it difficult to apply them to general combinatorial optimization problems where the solution set consists of edges, as in various spanning tree problems. In this paper, we propose NeuroPrim, a novel framework for solving various spanning tree problems by defining a Markov Decision Process (MDP) for general combinatorial optimization problems on graphs. Our approach reduces the action and state space using Prim's algorithm and trains the resulting model using REINFORCE. We apply our framework to three difficult problems on Euclidean space: the Degree-constrained Minimum Spanning Tree (DCMST) problem, the Minimum Routing Cost Spanning Tree (MRCST) problem, and the Steiner Tree Problem in graphs (STP). Experimental results on literature instances demonstrate that our model outperforms strong heuristics and achieves small optimality gaps of up to 250 vertices. Additionally, we find that our model has strong generalization ability, with no significant degradation observed on problem instances as large as 1000. Our results suggest that our framework can be effective for solving a wide range of combinatorial optimization problems beyond spanning tree problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。