Introduction
Knowledge Graphs (KGs) serve as the backbone for many modern AI applications, representing vast networks of real-world facts. However, these graphs are notoriously incomplete. To address this, researchers utilize Complex Query Answering (CQA) models, which embed entities and logical queries into low-dimensional spaces to predict missing links. Despite their potential, current CQA models face significant hurdles in data efficiency and combinatorial generalization, often failing to answer complex queries they haven't encountered during training.
The Challenge of Generalization
Existing CQA frameworks typically require massive amounts of training data for every possible query structure. While theoretically "combinatorially generalizable"—meaning they should understand complex wholes if they understand simple parts—empirical evidence suggests otherwise, especially in few-shot scenarios. Previous meta-learning attempts treated each query type as a distinct task. This paper argues that such an approach is sub-optimal because the true building blocks of logic are the underlying operators (projection, intersection, negation) that recur across diverse query structures.
MAMO: Model Agnostic Meta Operator
The authors introduce MAMO (Model Agnostic Meta Operator), a framework that shifts the focus of meta-learning from entire queries to individual logical operators. By learning meta-parameters for these operators—specifically the critical Projection operator—MAMO enables models to adapt quickly to new logical contexts.
Context-Aware Categorization
A core innovation of MAMO is the recognition that an operator's behavior is context-dependent. A projection operator behaves differently when its input is a raw entity versus a complex set of entities resulting from a prior intersection. To capture these nuances, the authors propose six categorization methods based on the operator's position in the query's computation tree and its input/output characteristics.
Experimental Evaluation
The model was evaluated using the FB15k-237 dataset in a simulated few-shot environment, where training data was restricted to only 0.1% of original samples for complex queries. MAMO was tested across three settings: Multi-hop (1p-6p), EPFO (Existential Positive First-Order), and EFO-1 (including negation).
Key Results and Insights
MAMO consistently outperformed both the original backbone models (LogicE, ConE, FuzzQE) and standard MAML (Model-Agnostic Meta-Learning) applied at the query level.
- Superior Few-Shot Performance: MAMO improved the Mean Reciprocal Rank (MRR) across multi-hop queries compared to baselines.
- Generalization to Complexity: In the EFO-1 setting, which includes the most difficult queries with negation, MAMO variants showed significant gains. As seen in the table below, MAMO(BO) and other variants consistently achieved higher MRR scores than the LogicE and MAML baselines.
- Backbone Flexibility: MAMO is a training strategy, not a fixed architecture. It successfully enhanced performance across different embedding geometries, including FuzzQE (1.2% improvement) and ConE (2.7% improvement).
Conclusion
The success of MAMO demonstrates that the key to combinatorial generalizability in Knowledge Graphs lies in mastering the fundamental building blocks of logic. By focusing meta-learning on operators rather than query types and accounting for their structural context, MAMO provides a robust framework for answering complex queries with minimal data. Future work may involve automating the categorization of operator instances and scaling the approach to even larger, more diverse knowledge bases.
Summary updated