Recent advances have shown the success of using reinforcement learning and search to solve NP-hard graph-related tasks, such as Traveling Salesman Optimization, Graph Edit Distance computation, etc. However, it remains unclear how one can efficiently and accurately detect the occurrences of a small query graph in a large target graph, which is a core operation in graph database search, biomedical analysis, social group finding, etc. This task is called Subgraph Matching which essentially performs subgraph isomorphism check between a query graph and a large target graph. One promising approach to this classical problem is the "learning-to-search" paradigm, where a reinforcement learning (RL) agent is designed with a learned policy to guide a search algorithm to quickly find the solution without any solved instances for supervision. However, for the specific task of Subgraph Matching, though the query graph is usually small given by the user as input, the target graph is often orders-of-magnitude larger. It poses challenges to the neural network design and can lead to solution and reward sparsity. In this paper, we propose NSUBS with two innovations to tackle the challenges: (1) A novel encoder-decoder neural network architecture to dynamically compute the matching information between the query and the target graphs at each search state; (2) A novel look-ahead loss function for training the policy network. Experiments on six large real-world target graphs show that NSUBS can significantly improve the subgraph matching performance.
Reinforcement Learning Based Query Vertex Ordering Model for Subgraph Matching
Zhejiang Gongshang University(浙江工商大学);University of New South Wales(新南威尔士大学);University of Technology Sydney(悉尼科技大学);Hong Kong University of Science and Technology(香港科技大学)
Knowledge Base Question Answering by Case-based Reasoning over Subgraphs
UMass Amherst(马萨诸塞大学阿默斯特分校);University of Southern California(南加州大学);Google DeepMind(谷歌DeepMind);University of Washington(华盛顿大学)
知识库上的问答(QA)是一个具有挑战性的问题,因为它需要各种各样的推理模式。然而,我们假设在一个大的KB,推理模式需要回答的查询类型重新出现在各自的子图邻域中的各种实体。利用不同子图的局部邻域之间的这种结构相似性,我们引入了半参数模型(CBR-SUBG)具有(i)非参数分量,对于每个查询,动态检索其他类似的$k$ -最近邻(KNN)训练查询以及查询特定的子图,以及(ii)被训练以识别(潜在)从KNN查询的子图中推理模式,然后将它们应用于目标查询的子图。我们还提出了一个自适应的子图收集策略来选择一个查询特定的紧凑子图,使我们能够扩展到包含数十亿事实的完整Freebase KB。我们表明,CBR-SUBG可以回答需要子图推理模式的查询,并在几个KBQA基准测试中与最佳模型竞争。我们的子图收集策略还产生更紧凑的子图(例如,WebQSP的大小减少了55\%,而答案召回率增加了4.85\%)\footnote{Code, model, and subgraphs are available at \url{https://github.com/rajarshd/CBR-SUBG}}。
Less is More: One-shot Subgraph Reasoning on Large-scale Knowledge Graphs
Hong Kong Baptist University(香港浸会大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Shanghai Jiao Tong University(上海交通大学);Tsinghua University(清华大学)