Hierarchical and Contrastive Representation Learning for Knowledge-aware Recommendation

Bingchao Wu, Yangyuxuan Kang, Daoguang Zan, Bei Guan, Yongji Wang · DOI

Abstract

Knowledge Graphs (KGs) serve as a vital source of side information for recommendation systems, helping to alleviate data sparsity issues. However, standard Graph Neural Network (GNN) approaches often suffer from the "over-smoothing" problem, where recursive message passing causes node embeddings to become indistinguishable as the network depth increases. We present HiCON (Hierarchical and CONtrastive representation learning), a framework designed to capture high-order dependencies without the associated noise. By employing hierarchical aggregation—combining local neighbor information with meta-path-guided high-order relations—and a cross-order contrastive learning objective, HiCON maintains discriminative representations and achieves state-of-the-art performance across several benchmark datasets.

Introduction

In modern recommendation systems, the integration of Knowledge Graphs has become a standard technique for enhancing user and item representations. By mapping interactions into a unified graph of entities and relations, models can leverage collaborative signals alongside semantic context. Most existing methods rely on GNNs to propagate information across this graph.

Despite their success, these models face a fundamental limitation: the over-smoothing issue. As a GNN aggregates information from multiple "hops," the number of involved neighbors grows exponentially. For a typical user or item, a 3-hop radius may encompass thousands of distant entities, many of which are irrelevant to the specific recommendation context. This influx of noise causes the learned embeddings to converge toward a uniform average, stripping the model of its ability to provide personalized recommendations. HiCON addresses this by restructuring how information is aggregated and regularized.

The HiCON Framework

HiCON departs from traditional recursive propagation by bifurcating the learning process into two distinct hierarchical levels, coupled with a contrastive objective to ensure representation quality.

1. Hierarchical Message Aggregation

Instead of treating all neighbors equally, HiCON distinguishes between immediate local signals and structured high-order relationships:

  • Low-order Aggregation: The model first aggregates information from immediate neighbors in the unified user-item-KG graph. This captures the primary collaborative filtering signals and direct entity attributes.
  • High-order Aggregation: To capture distant dependencies without the noise of a full graph traversal, HiCON utilizes meta-paths. These are pre-defined sequences of relations (e.g., User-Movie-Director-Movie-User) that act as semantic filters. By "teleporting" only to nodes connected via these specific paths, the model selectively captures valuable high-order context while ignoring the exponential explosion of irrelevant neighbors.

2. Cross-order Contrastive Learning

To prevent the representations from collapsing into a non-discriminative state, HiCON introduces a cross-order contrastive learning module. The model treats the low-order and high-order embeddings of the same node as a "positive pair" and embeddings of different nodes as "negative pairs."

By maximizing the agreement between these two different views of the same entity, the model is forced to extract features that are consistent across different scales of the graph. This objective acts as a powerful regularizer, ensuring that even as the model incorporates deep graph information, the resulting embeddings remain distinct and well-distributed in the latent space.

Experimental Evaluation

Datasets and Baselines

The authors evaluated HiCON on three diverse benchmark datasets: Last.FM (music), Book-Crossing (books), and MovieLens-1M (movies), augmented with Knowledge Graph triplets from Microsoft Satori. HiCON was compared against several state-of-the-art baselines, including KGAT, KGIN, and MCCLK.

Performance and Robustness

HiCON consistently outperformed existing models across all metrics. Notably, on the Book-Crossing dataset, HiCON achieved an AUC of 0.8045, a significant improvement over the previous best baseline, KGIC (0.7749).

Key findings from the experiments include:

  • Sparsity Resilience: HiCON showed the greatest performance gains for "inactive users" with very few recorded interactions. This suggests that the hierarchical KG information effectively compensates for missing interaction data.
  • Stability at Depth: While traditional models like KGAT often see a performance drop after 2 or 3 layers due to noise accumulation, HiCON’s performance remains stable or improves as more layers are added, demonstrating its successful mitigation of over-smoothing.
  • Embedding Uniformity: Visualization via t-SNE confirmed that HiCON produces a more uniform distribution of embeddings on a hypersphere compared to traditional GNNs, which tend to produce "clumped" embeddings.

Conclusion and Future Work

HiCON provides a robust solution to the over-smoothing problem in knowledge-aware recommendation by replacing indiscriminate propagation with structured, hierarchical aggregation and contrastive alignment. While the model demonstrates superior performance, it currently relies on manually designed meta-paths, which requires domain expertise. Future research may explore the automated discovery of these paths through reinforcement learning or architecture search to make the framework more adaptable to diverse, large-scale industrial Knowledge Graphs.

Summary updated

BibTeX
@inproceedings{wu2023hierarchical,
  author = {Bingchao Wu and Yangyuxuan Kang and Daoguang Zan and Bei Guan and Yongji Wang},
  title = {{Hierarchical and Contrastive Representation Learning for Knowledge-aware Recommendation}},
  booktitle = {ICME},
  year = {2023},
  doi = {10.1109/icme55011.2023.00184},
}
Figure