Neural-Symbolic Message Passing with Dynamic Pruning
Chongzhi Zhang, Junhao Zheng, Zhiping Peng, Qianli Ma
TL;DR
This work tackles Complex Query Answering over incomplete Knowledge Graphs by proposing NSMP, a neural-symbolic message passing framework that integrates a pre-trained neural link predictor with symbolic reasoning via fuzzy logic. A key innovation is a dynamic pruning strategy that filters noisy messages between variable nodes, enabling efficient, interpretable reasoning for arbitrary existential first-order queries without training on complex query data. NSMP combines neural embeddings with symbolic fuzzy sets, producing interpretable variable states and achieving strong results on negative queries while delivering substantial inference-time speedups (2x to over 150x) compared to step-by-step neural-symbolic baselines. The approach is shown to be scalable and robust, with complexity analyses and ablations supporting its efficiency and effectiveness for CQA in real-world KGs.
Abstract
Complex Query Answering (CQA) over incomplete Knowledge Graphs (KGs) is a challenging task. Recently, a line of message-passing-based research has been proposed to solve CQA. However, they perform unsatisfactorily on negative queries and fail to address the noisy messages between variable nodes in the query graph. Moreover, they offer little interpretability and require complex query data and resource-intensive training. In this paper, we propose a Neural-Symbolic Message Passing (NSMP) framework based on pre-trained neural link predictors. By introducing symbolic reasoning and fuzzy logic, NSMP can generalize to arbitrary existential first order logic queries without requiring training while providing interpretable answers. Furthermore, we introduce a dynamic pruning strategy to filter out noisy messages between variable nodes. Experimental results show that NSMP achieves a strong performance. Additionally, through complexity analysis and empirical verification, we demonstrate the superiority of NSMP in inference time over the current state-of-the-art neural-symbolic method. Compared to this approach, NSMP demonstrates faster inference times across all query types on benchmark datasets, with speedup ranging from 2$\times$ to over 150$\times$.
