Neural-Symbolic Entangled Framework for Complex Query Answering

Zezhong Xu, Wen Zhang, Peng Ye, Hui Chen, Huajun Chen

Introduction

Knowledge Graphs (KGs) are vital for structured knowledge representation but suffer from inherent incompleteness. Answering complex First-Order Logic (FOL) queries—involving multi-hop reasoning and logical operators like conjunction and negation—remains a significant challenge. Traditional symbolic reasoning is precise but brittle to missing edges, while neural Query Embedding (QE) methods generalize well but suffer from cascading errors where small inaccuracies compound over reasoning steps.

The ENeSy Framework

ENeSy (Neural and Symbolic Entangled framework) addresses these issues by "entangling" neural and symbolic reasoning. This synergy allows neural embeddings to predict missing links for the symbolic component, while symbolic traversal grounds the neural embeddings to prevent drift. By maintaining accurate representations of intermediate entity sets, ENeSy effectively halts the propagation of errors that plagues pure embedding-based methods.

Overview of ENeSy: (A) Computation graph for a complex query and (B) its representation in the entangled neural-symbolic embedding space.

Methods

The core of ENeSy is the Entangled Projection. During each step of query traversal, the framework performs both a neural projection (using standard KGE models like RotatE) and a symbolic projection. The neural similarity scores act as a "soft" graph completion, enabling the symbolic reasoner to bypass missing edges. Conversely, the symbolic results are used to refine the neural embeddings via an MLP-based aggregation, ensuring the reasoning path stays on track.

A key advantage of ENeSy is its use of parameter-free logic. Unlike previous QE models that require learning complex geometric intersections or unions, ENeSy performs logical operations ($\wedge, \vee, \neg$) symbolically using element-wise operations on probability vectors. This makes the framework highly robust and allows it to be trained effectively using only simple link prediction data, a significant benefit when complex labeled query data is scarce.

Results and Performance

The framework was evaluated on the FB15K-237 and NELL-995 benchmarks across 14 standard FOL query structures. ENeSy achieved state-of-the-art results, significantly outperforming existing models like GQE, Query2Box, and BetaE.

Performance comparison of ENeSy against baseline models on FB15K-237 and NELL-995 datasets.

Notably, when trained only on 1-hop link prediction tasks, ENeSy improved the average Mean Reciprocal Rank (MRR) by 11.9% on FB15K-237 and 5.9% on NELL-995 compared to the previous best model, FuzzQE. This demonstrates the framework's superior generalization and its ability to mitigate cascading errors in complex multi-hop scenarios. While negation ($\neg$) remains a challenge due to the large search space it creates, ENeSy still shows improved robustness over pure embedding baselines.

Conclusion

ENeSy represents a significant step forward in complex query answering by bridging the gap between neural generalization and symbolic precision. Its ability to achieve SOTA performance while being trained on simple tasks makes it highly practical for real-world KGs. Future work will focus on improving negation handling by incorporating entity type information to further refine the search space.

Summary updated

BibTeX
@inproceedings{xu2022neural,
  author = {Zezhong Xu and Wen Zhang and Peng Ye and Hui Chen and Huajun Chen},
  title = {{Neural-Symbolic Entangled Framework for Complex Query Answering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=ch5Uth1IGj_},
}
Figure