Virtual Relational Knowledge Graphs for Recommendation

Lingyun Lu, Bang Wang, Zizhuo Zhang, Shenghao Liu, Han Xu

Introduction

Modern recommender systems increasingly leverage Knowledge Graphs (KGs) to capture rich contextual information about items, such as a movie's director or a book's genre. However, real-world KGs are often plagued by two significant challenges: the long-tail distribution of relations and semantic redundancy. VRKG4Rec addresses these issues by clustering sparse relations into dense "virtual relations" and employing a parameter-free Local Weighted Smoothing (LWS) mechanism to improve recommendation accuracy and efficiency.

The Challenge: Sparse and Redundant Relations

In a typical KG, a small number of relations (e.g., "genre") are ubiquitous, while thousands of others (e.g., "assistant costume designer") appear very rarely. Standard Graph Neural Networks (GNNs) struggle to learn meaningful representations from these sparse, long-tail relations. Furthermore, many relations are semantically similar for recommendation purposes—for instance, "directed by" and "screenplay by" both indicate a similar creative influence. Treating these as distinct categories introduces noise and increases computational complexity.

The long-tail distribution of relations (a) and an example of semantic redundancy in a movie KG (b).

Methodology: The VRKG4Rec Framework

The proposed framework streamlines relational complexity through three core stages: VRKG construction, representation learning via LWS, and dual-graph prediction.

The overall architecture of VRKG4Rec, illustrating VRKG construction, Local Weighted Smoothing, and the final prediction layer.

1. Virtual Relational Knowledge Graph (VRKG) Construction

Instead of processing the raw, noisy KG, the model clusters all original relations into $K$ virtual relations using unsupervised learning. Each original relation is mapped to its most similar virtual centroid, resulting in $K$ dense subgraphs. This process effectively "compresses" the relational space, filtering out noise and highlighting latent themes of relevance. The authors found that a small number of virtual relations (e.g., $K=3$) often provides the optimal balance between detail and density.

2. Local Weighted Smoothing (LWS)

To aggregate information from neighbors without the overhead of complex attention mechanisms, the authors introduce Local Weighted Smoothing. LWS is a parameter-free approach that calculates neighbor weights based on embedding similarity. It uses a custom normalization function to maintain vector scales between 0 and 1, ensuring stability during iterative refinement without the computational cost of Softmax. This allows the model to smooth a node's representation to be closer to its most similar neighbors efficiently.

3. Dual-Graph Representation Learning

The model operates on two structures simultaneously: the VRKGs (for item features) and the user-item bipartite graph (for user preferences). Items serve as the bridge between these graphs, allowing relational knowledge from the KG to inform the user's preference profile. The final prediction combines embeddings from multiple layers to capture both local and global graph structures.

Experimental Results

The model was evaluated on the Last.FM and MovieLens-1M datasets. VRKG4Rec demonstrated significant improvements over state-of-the-art models like KGAT and KGIN.

  • Performance Gains: On the sparse Last.FM dataset, the model achieved a 12.05% improvement in Recall@1 and a 14.44% improvement in NDCG@1. This confirms that clustering relations is a powerful tool for handling "messy" real-world data.
  • Efficiency and Robustness: By avoiding additional training parameters in the aggregation step, the model is less prone to overfitting and more computationally efficient than attention-heavy alternatives.
  • Explainability: Case studies revealed that the model's attention weights on virtual relations can identify specific user priorities, such as a preference for "award-winning" status over "geographic origin."

Conclusion and Future Work

VRKG4Rec provides a robust solution for handling messy, real-world KG data by denoising relations through clustering. While the current model requires manual tuning of the number of virtual relations ($K$), future work aims to automate this process, allowing the model to dynamically adapt to the relational complexity of any given dataset during training.

Summary updated

BibTeX
@inproceedings{lu2023virtual,
  author = {Lingyun Lu and Bang Wang and Zizhuo Zhang and Shenghao Liu and Han Xu},
  title = {{Virtual Relational Knowledge Graphs for Recommendation}},
  booktitle = {WSDM},
  year = {2023},
  doi = {10.1145/3539597.3570482},
}
Figure