arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1809.02721cs.LGcs.AIcs.NEstat.ML
收藏

学习解决NP完全问题--一种用于决策的图神经网络TSP

Learning to Solve NP-Complete Problems - A Graph Neural Network for Decision TSP

Institute of Informatics(信息学研究所);UFRGS(巴西南大河州联邦大学);Rice University(莱斯大学)

Marcelo O. R. Prates, Pedro H. C. Avelar, Henrique Lemos, Luis Lamb, Moshe Vardi

摘要:

图神经网络(GNN)是连接微分编程和组合领域的一种很有前途的技术。GNN采用可训练模块,这些模块可以以不同的配置组装,反映每个问题实例的关系结构。在本文中,我们表明,GNNs可以学习解决,很少的监督,旅行商问题(TSP),一个高度相关的$\mathcal{NP}$ -完全问题的决策变量。我们的模型被训练成一个有效的消息传递算法,在该算法中,边(嵌入了它们的权重)与顶点进行多次迭代通信,之后模型被要求决定是否存在具有成本的路线$<C$。我们表明,这样的网络可以训练的双重的例子:给定最佳巡回赛成本$C^{*}$,我们产生一个决策实例与目标成本$x\%$较小,一个目标成本$x\%$大于$C^{*}$。我们能够获得具有$-2\%,+2\%$偏差的$80\%$准确性训练,并且相同的训练模型可以随着性能的提高而推广更宽松的偏差。我们还表明,该模型是能够推广更大的问题大小。最后,我们提供了一种方法来预测最佳路线成本内$2\%$偏离地面真相。总之,我们的工作表明,图神经网络是强大的,足以解决$\mathcal{NP}$ -完全问题,结合符号和数字数据。

英文摘要:

Graph Neural Networks (GNN) are a promising technique for bridging differential programming and combinatorial domains. GNNs employ trainable modules which can be assembled in different configurations that reflect the relational structure of each problem instance. In this paper, we show that GNNs can learn to solve, with very little supervision, the decision variant of the Traveling Salesperson Problem (TSP), a highly relevant $\mathcal{NP}$-Complete problem. Our model is trained to function as an effective message-passing algorithm in which edges (embedded with their weights) communicate with vertices for a number of iterations after which the model is asked to decide whether a route with cost $<C$ exists. We show that such a network can be trained with sets of dual examples: given the optimal tour cost $C^{*}$, we produce one decision instance with target cost $x\%$ smaller and one with target cost $x\%$ larger than $C^{*}$. We were able to obtain $80\%$ accuracy training with $-2\%,+2\%$ deviations, and the same trained model can generalize for more relaxed deviations with increasing performance. We also show that the model is capable of generalizing for larger problem sizes. Finally, we provide a method for predicting the optimal route cost within $2\%$ deviation from the ground truth. In summary, our work shows that Graph Neural Networks are powerful enough to solve $\mathcal{NP}$-Complete problems which combine symbolic and numeric data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑