Abstract
Modern recommender systems increasingly rely on Knowledge Graphs (KGs) to provide rich contextual information. However, traditional models typically embed these graphs into Euclidean space, which fails to capture the complex, non-Euclidean structures inherent in KGs. This paper introduces MCKG (Knowledge-based Multiple Adaptive Spaces Fusion), a novel framework that utilizes a unified $\kappa$-stereographic model to fuse multiple non-Euclidean subspaces. By adaptively learning curvatures for hyperbolic and spherical geometries, MCKG effectively represents both hierarchical and cyclic relationships, achieving state-of-the-art performance across several benchmark datasets.
Introduction
Knowledge Graphs (KGs) serve as a vital backbone for modern Recommender Systems (RS), offering a structured representation of entities and their multifaceted relationships. Despite their utility, most existing KG-based recommendation models operate under the assumption of a "flat" Euclidean geometry. This assumption is often fundamentally flawed.
KGs typically exhibit two distinct non-Euclidean characteristics:
- Hierarchical (Tree-like) Structures: Relationships such as genre taxonomies (e.g., a specific sub-genre belonging to a broader category) are best represented in hyperbolic space, where the available volume expands exponentially relative to the radius.
- Cyclic Structures: Interconnected entities, such as closed loops of users and items with mutual interests, are more naturally modeled in spherical space.
Forcing these curved structures into a Euclidean plane introduces significant distortion, which ultimately limits the accuracy of user-item representations. While some recent research has explored hyperbolic embeddings, these models often struggle with fixed geometries or "trainable curvature" instability. MCKG addresses these limitations by providing a unified, adaptive geometric framework.
The MCKG Framework
The MCKG framework is built upon three primary innovations designed to preserve the structural integrity of the Knowledge Graph while optimizing recommendation accuracy.
1. The Unified $\kappa$-Stereographic Model
Rather than forcing a choice between a single geometry, MCKG employs the $\kappa$-Stereographic model ($U_\kappa^n$). This mathematical framework allows the model to smoothly interpolate between different geometries by treating the curvature $\kappa$ as a continuous parameter:
- $\kappa < 0$: Hyperbolic geometry.
- $\kappa = 0$: Euclidean geometry.
- $\kappa > 0$: Spherical geometry.
This unification ensures that the internal manifold remains mathematically consistent even as the model learns the optimal curvature for a specific dataset during the training process.
2. Multiple Adaptive Spaces Fusion
Recognizing that different regions of a KG may require different geometric properties, MCKG generates a sequence of unified subspaces. An attention mechanism is then employed to fuse these subspaces. This allows the model to dynamically weigh geometric properties for specific user-item pairs, effectively "picking" the best combination of hyperbolic and spherical features for a given interaction.
3. Geometry-aware Optimization Strategy
Standard recommendation models use a fixed margin in their loss functions to separate positive and negative samples. MCKG introduces a dynamic, geometry-aware margin that adapts to the local curvature of the space.
In hyperbolic space, the model applies smaller margins near the origin (where space is constrained) and larger margins in the outer regions (where more space is available). In spherical space, this logic is inverted. This is achieved through a "ratio trick," using the ratio of the distance between two points to the sum of their distances from the origin, providing a spatially-aware signal for optimization.
Experimental Results
The authors evaluated MCKG against state-of-the-art (SOTA) baselines, including KGAT, HGCF, and LKGR, using three real-world datasets: MovieLens-1M, LastFM, and Book-Crossing.
Performance Gains
MCKG consistently outperformed all baselines. Notably, on the LastFM dataset, the model achieved a 3.3% improvement in NDCG@20 over the strongest baseline. Ablation studies confirmed that both the multi-space fusion and the geometry-aware margin are critical to these gains; removing either component resulted in a significant drop in performance.
Robustness to Data Sparsity
A key finding of the research is MCKG's stability when training data is scarce. Because the non-Euclidean geometry inherently encodes structural information (like hierarchy), the model requires fewer explicit interactions to understand entity relationships compared to Euclidean models.
Discussion and Future Work
While MCKG represents a significant step forward, it introduces certain computational complexities. Calculating geodesics and performing operations across multiple tangent spaces is more intensive than standard Euclidean dot products. Additionally, the model currently utilizes a fixed-size neighborhood sampling for graph convolutions, which may limit its ability to capture extremely long-range dependencies in dense graphs.
Future research directions include applying this multi-space fusion approach to other domains, such as Natural Language Processing (NLP) and Computer Vision, where hierarchical and cyclic data structures are equally prevalent. By moving beyond the "flat earth" assumption of Euclidean embeddings, MCKG opens new avenues for more expressive and structurally-aware machine learning models.
Summary updated