Efficient and Scalable Neural Symbolic Search for Knowledge Graph Complex Query Answering
Weizhi Fei, Zihao Wang, hang Yin, Shukai Zhao, Wei Zhang, Yangqiu Song
TL;DR
This work tackles complex query answering over incomplete knowledge graphs by addressing both data-scale and NP-hard cyclic-query challenges. It introduces NLISA, a neural-symbolic framework that uses Neural Logical Indices to prune variable domains and an approximate, parallelizable local-search strategy to handle cyclic EFO1 queries, achieving quadratic rather than exponential complexity in practice. Key contributions include local and global constraint strategies for efficient neural indexing and a two-stage coarse-to-fine ranking for global constraints, yielding up to ~90% reduction in search domain and substantial runtime speedups (e.g., up to ~13x) with minimal accuracy loss, scalable to KG sizes reaching 400k entities. Empirical results on BetaE, Real EFO1, and Smore demonstrate strong performance against state-of-the-art symbolic and embedding-based baselines, particularly for cyclic queries and large-scale graphs, highlighting the practical impact for real-world knowledge graph reasoning.
Abstract
Complex Query Answering (CQA) aims to retrieve answer sets for complex logical formulas from incomplete knowledge graphs, which is a crucial yet challenging task in knowledge graph reasoning. While neuro-symbolic search utilized neural link predictions achieve superior accuracy, they encounter significant complexity bottlenecks: (i) Data complexity typically scales quadratically with the number of entities in the knowledge graph, and (ii) Query complexity becomes NP-hard for cyclic queries. Consequently, these approaches struggle to effectively scale to larger knowledge graphs and more complex queries. To address these challenges, we propose an efficient and scalable symbolic search framework. First, we propose two constraint strategies to compute neural logical indices to reduce the domain of variables, thereby decreasing the data complexity of symbolic search. Additionally, we introduce an approximate algorithm based on local search to tackle the NP query complexity of cyclic queries. Experiments on various CQA benchmarks demonstrate that our framework reduces the computational load of symbolic methods by 90\% while maintaining nearly the same performance, thus alleviating both efficiency and scalability issues.
