Introduction
Knowledge Graph Reasoning (KGR) involves predicting missing facts within a graph by traversing multi-hop paths. Traditional embedding-based methods often represent queries and entities as geometric shapes like boxes or cones. However, these models encounter two significant challenges: the closure problem and feature coupling.
The closure problem arises when logical operations, such as negation, result in regions that cannot be represented by the original geometric shape (e.g., the complement of a box is not a box). Feature coupling occurs when the semantic meaning of an entity is inextricably linked to the geometric boundary of the query, hindering the integration of heterogeneous data types like text or images.
Methodology: Decoupling Features and Logic
To address these limitations, the FLEX (Feature-Logic Embedding) framework decouples embeddings into two distinct components: a Logic Part and a Feature Part.
Vector Logic
The Logic Part utilizes Vector Logic, a fuzzy logic system grounded in matrix algebra. Unlike geometric shapes, this linear algebra-based approach ensures mathematical closure; the output of any logical operation (conjunction, disjunction, negation) remains a valid vector within the same space.
Neural Logical Operators
FLEX replaces hard-coded geometric intersections with learnable neural operators. It employs Multi-Layer Perceptrons (MLPs) for projections and negations, and a self-attention mechanism for conjunctions. This attention-based approach allows the model to dynamically weight different query branches based on their informativeness.
Experimental Setup
The framework was evaluated on three standard benchmarks:
- FB15k: A subset of Freebase.
- FB15k-237: A more rigorous version of FB15k with redundant relations removed.
- NELL995: A dataset from the "Never-Ending Language Learning" project.
Testing encompassed Existential Positive First-order (EPFO) queries and complex queries involving logical negation.
Key Results
FLEX achieved state-of-the-art (SOTA) performance across all datasets. It outperformed existing models like ConE and BetaE by an average of 5.2% on FB15k, 5.1% on FB15k-237, and 3.7% on NELL in terms of Mean Reciprocal Rank (MRR).
The model showed particular strength in handling negation, attributed to the closure properties of Vector Logic. Furthermore, FLEX demonstrated high efficiency; it contains fewer parameters and trains significantly faster than competitors. For a 1000-dimension embedding, FLEX required only 1.8 days for training, compared to 4.9 days for BetaE.
Discussion and Future Work
The decoupling of features and logic provides FLEX with unique extensibility. Experiments with "FLEX-2F" (using two feature parts) showed improved performance, suggesting that the framework can easily incorporate multi-modal data.
However, the authors noted that adding excessive feature parts may introduce noise. Future research will explore adapting FLEX for temporal reasoning in dynamic knowledge graphs and investigating the potential of quantum logic to further refine logical computations.
Summary updated