Abstract
Knowledge Graph (KG) completion often requires answering complex logical queries that go beyond simple link prediction. While existing Complex Query Answering (CQA) research has focused on "tree-form" queries solvable via set operations, real-world reasoning frequently involves cycles, multigraphs, and multiple answer variables. This paper introduces EFO$_k$-CQA, a framework and dataset designed to push CQA into the full combinatorial space of Existential First-order (EFO) queries. By evaluating state-of-the-art models on this expanded benchmark, the authors reveal significant structural biases and the inherent difficulty of combinatorial reasoning in current neural architectures.
Introduction: Moving Beyond the "Tree-Form" Rut
Knowledge Graphs like Wikidata and NELL are essential for structured information retrieval but are inherently incomplete. Complex Query Answering (CQA) aims to bridge this gap by enabling models to generalize over unobserved facts to answer multi-hop logical questions. However, the field has largely been confined to queries that can be represented as operator trees (using intersection, union, and negation).
This "tree-form" restriction ignores two critical aspects of real-world logic:
- Combinatorial Hardness: Many queries seek multiple related entities (e.g., "Find a pair of colleagues..."), requiring models to handle $k$ free variables simultaneously.
- Structural Hardness: Real-world queries often contain cycles or multiple relations between the same entities (multigraphs). These structures are common in complex reasoning but are systematically absent from standard benchmarks.
Methodology: CQA as a Constraint Satisfaction Problem
The authors reframe CQA through the lens of Constraint Satisfaction Problems (CSP). By treating a logical query as a graph where nodes represent variables or entities and edges represent relations, the entire space of Existential First-order (EFO) queries can be captured.
The EFO$_k$ formulation extends the query language to support $k$ free variables (the target answers). To evaluate these models, the authors propose new metrics: Marginal, Multiply, and Joint. While traditional metrics like MRR work for single variables, the Joint metric specifically assesses a model's ability to find correct combinations of answers, a significantly more challenging task.
The EFO$_k$-CQA Dataset
To support this new paradigm, the authors developed the EFO$_k$-CQA dataset, a massive expansion over previous benchmarks. While standard datasets typically include 10 to 30 query types, EFO$_k$-CQA features 741 unique query types.
The dataset includes queries with $k=1$ and $k=2$ free variables, grounded in standard KGs such as FB15k-237, FB15k, and NELL. These queries are categorized by their topology into Simple Directed Acyclic Graphs (SDAG), Multigraphs, and Cyclic graphs, allowing for a granular analysis of model performance across different structural complexities.
Experimental Insights: The Structural Bias Trap
The evaluation of six representative models (BetaE, LogicE, ConE, CQD, LMPNN, and FIT) yielded several key insights:
- Structural Overfitting: Models like LMPNN, which perform exceptionally well on tree-like queries, show a dramatic performance drop on multigraphs and cycles. This suggests that current models are "overfitting" to the simple logical structures present in traditional training sets.
- The Hardness of Cycles: In neural CQA, cycles represent "structural hardness." Unlike traditional database systems where constraints can prune search spaces, cycles significantly degrade the performance of current neural models.
- Combinatorial Explosion: Moving from one to two variables ($k=2$) reveals the extreme difficulty of joint ranking. HIT@10 scores for finding correct pairs were generally below 10% across all models, highlighting a major gap in current combinatorial reasoning capabilities.
- Model Performance: The graph-based FIT model generally outperformed others on $k=1$ queries, achieving an average MRR of 30.3% on FB15k-237, compared to 20.7% for BetaE. However, FIT's quadratic complexity ($O(|\mathcal{E}|^2)$) limits its scalability.
Conclusion
The EFO$_k$-CQA framework exposes the limitations of current CQA models, which are often biased toward simple tree-form logic. By introducing a more diverse and structurally complex benchmark, this work provides a roadmap for developing next-generation neural reasoners capable of handling the full complexity of real-world knowledge graph queries. Future research must focus on improving the efficiency of graph-based models and developing architectures that are robust to structural and combinatorial hardness.
Summary updated