KPRLN: deep knowledge preference-aware reinforcement learning network for recommendation

Di Wu, Mingjing Tang, Shu Zhang, Ao You, Wei GaoComplex 2023

Abstract

User preference information plays an important role in knowledge graph-based recommender systems, which is reflected in users having different preferences for each entity–relation pair in the knowledge graph. Existing approaches have not modeled this fine-grained user preference feature well, as affecting the performance of recommender systems. In this paper, we propose a deep knowledge preference-aware reinforcement learning network (KPRLN) for the recommendation, which builds paths between user’s historical interaction items in the knowledge graph, learns the preference features of each user–entity–relation and generates the weighted knowledge graph with fine-grained preference features. First, we proposed a hierarchical propagation path construction method to address the problems of the pendant entity and long path exploration in the knowledge graph. The method expands outward to form clusters centered on items and uses them to represent the starting and target states in reinforcement learning. With the iteration of clusters, we can better learn the pendant entity preference and explore farther paths. Besides, we design an attention graph convolutional network, which focuses on more influential entity–relation pairs, to aggregate user and item higher order representations that contain fine-grained preference features. Finally, extensive experiments on two real-world datasets demonstrate that our method outperforms other state-of-the-art baselines.

Introduction

Knowledge Graph (KG)-based recommender systems are highly effective at capturing semantic relationships between items, such as shared directors or genres. However, a significant limitation of existing models is their inability to capture fine-grained user preferences.

Standard models often assume that all relations in a KG are equally important to all users. In reality, users often interact with the same item for different reasons. As illustrated in Figure 4, two users might both enjoy the film Crouching Tiger, Hidden Dragon, but one may be drawn to the director (Ang Lee) while the other prefers the lead actress (Ziyi Zhang).

Motivation for fine-grained user preference modeling in Knowledge Graphs.

Furthermore, reinforcement learning (RL) approaches for pathfinding in KGs often struggle with "pendant entities"—nodes with single connections that are frequently overlooked—and limited exploration of long-range paths. KPRLN addresses these challenges by learning personalized weights for entity-relation pairs.

Methodology

The KPRLN framework operates in two distinct stages: preference-weighted KG generation and recommendation prediction.

Preference-Weighted KG Generation (RL Layer)

The first stage utilizes a Double Deep Q-Network (DDQN) to construct paths between items in a user's interaction history. A key innovation here is the use of cluster-to-cluster paths. Instead of searching between individual nodes, the model expands outward from items to form clusters. This approach allows the RL agent to incorporate pendant entities and explore more complex, distant paths that traditional node-to-node searches might miss.

The RL-based preference-weighted KG generation process using cluster-to-cluster paths.

The model employs a hierarchical reward system, providing an immediate reward when the agent successfully connects two items from the user's history and a delayed reward based on the final performance of the weighted graph in predicting user preferences.

Recommendation Prediction (GCN Layer)

Once the KG has been personalized with user-specific weights, an Attention Graph Convolutional Network (GCN) is used for final prediction. The GCN aggregates information from neighboring nodes, using the RL-learned weights to prioritize the most influential entities. This results in a high-order representation of user interests that accounts for fine-grained preferences.

Experimental Evaluation

KPRLN was evaluated against state-of-the-art baselines like KGCN and RippleNet using two real-world datasets: MovieLens-1M (movie ratings) and Last.FM (music interactions). The results demonstrate consistent improvements across key metrics:

  • MovieLens-1M: KPRLN achieved a 7.5% improvement in AUC and a 6.55% increase in Accuracy over top baselines.
  • Last.FM: The model showed a 6.8% improvement in AUC, benefiting from the dataset's rich relational structure.

Beyond performance metrics, KPRLN offers enhanced explainability. By generating "preference paths," the model can explain a recommendation (e.g., recommending Star Wars because of a strong personalized weight on the "Director" relation shared with Raiders of the Lost Ark).

Conclusion

KPRLN introduces a fluid approach to Knowledge Graph structure by allowing RL to "re-weight" edges based on individual user behavior. By solving the pendant entity problem through cluster-based states and filtering informational noise through edge pruning, KPRLN provides a robust and interpretable framework for modern recommendation systems.

Summary updated

BibTeX
@inproceedings{wu2023kprln,
  author = {Di Wu and Mingjing Tang and Shu Zhang and Ao You and Wei Gao},
  title = {{KPRLN: deep knowledge preference-aware reinforcement learning network for recommendation}},
  booktitle = {Complex},
  year = {2023},
  doi = {10.1007/s40747-023-01083-7},
}
Figure