Complex Query Answering (CQA) on Knowledge Graphs (KGs) is designed to test an AI's ability to perform multi-step logical reasoning. For example, answering "Which actor performed in a movie filmed in NYC and distributed on Blu-ray?" requires intersecting sets of movies and traversing links to find an actor.
However, recent findings suggest that the field's perceived progress might be an illusion. Current benchmarks for CQA are "leaky": up to 98% of supposedly complex queries can be reduced to simple one-hop link prediction because the intermediate steps are already present in the training data.
The Illusion of Complexity
The core issue lies in how standard datasets, such as FB15k237 and NELL995, are split into training and testing sets. Because of these splits, most "complex" test queries aren't actually complex. If two out of three links needed to answer a query were already seen during training, the model only needs to predict one missing link to find the answer.
This phenomenon turns a multi-hop reasoning task into a simple "link prediction" task. Consequently, high performance scores often reflect a model's ability to memorize the training graph rather than its ability to perform true logical inference.
To dissect this problem, researchers categorize the path from "anchor entities" to the answer as a reasoning tree. These trees fall on a hardness spectrum:
- Partial-inference: Some links in the reasoning path are already known from training.
- Full-inference: Every link in the path is missing and must be predicted by the model.
To prove that models are largely relying on training data leakage, researchers built a hybrid solver (CQD-Hybrid). This solver explicitly uses known training links for retrieval and only uses a neural link predictor for the truly missing pieces. Surprisingly, this simple baseline often outperforms complex State-of-the-Art (SoTA) models on older benchmarks, confirming that "complex" models were mostly performing smart retrieval.
Furthermore, the perceived difficulty of certain query types has been misunderstood. For instance, queries involving "OR" (unions) were previously thought to be much harder. However, this was an artifact of the benchmarks containing non-existent links; when filtered, union queries are no harder than simple paths.
Introducing Balanced Benchmarks (+H)
To measure true multi-hop reasoning, the field requires new, balanced benchmarks that ensure an equal distribution of queries across the hardness spectrum. This prevents "easy" partial-inference queries from inflating final scores.
The paper introduces improved versions of standard datasets:
- FB15k237+H and NELL995+H: Modified versions where queries are sampled to ensure they cannot be reduced to simpler types.
- ICEWS18+H: A new benchmark derived from a temporal knowledge graph. Unlike the random splits of older datasets, this uses a realistic time-based split (training on the past, testing on the future), creating a naturally challenging environment for link prediction.
Key Results: A Performance Collapse
When evaluated on these new +H benchmarks, the performance of SoTA models drops drastically. For instance, on 3i (triple intersection) queries in FB15k237, the Mean Reciprocal Rank (MRR) plummeted from ~54.6 to ~10.1.
This performance collapse on "full-inference" queries suggests that current models rely heavily on memorizing the training graph's structure to "fill in the blanks." Moreover, on the new, harder benchmarks, there is no longer a single "best" model. Different architectures (GNNs, Embeddings, Transformers) perform better on different query types, indicating that a robust, general-purpose CQA solution has yet to be found.
Future Directions
While this study exposes critical flaws in current CQA evaluation, it is primarily limited to queries with a single target variable (finding a set of entities). Real-world queries often involve multiple variables, such as finding pairs or tuples.
Future work must extend this "hardness" analysis to inductive scenarios, where models must reason about unseen entities or relations. Additionally, developing models capable of handling Directed Acyclic Graph (DAG) query structures and complex answer tuples will be crucial for advancing true logical reasoning in AI.
Summary updated