LKPNR: LLM and KG for Personalized News Recommendation Framework

Hao Chen, Xie Runfeng, Xiangyang Cui, Yan Zhou, Xin Wang, Xuan Zhanwei, Kai ZhangarXiv 2023 · DOI

Abstract

Accurately recommending candidate news articles to users is a basic challenge faced by personalized news recommendation systems. Traditional methods are usually difficult to grasp the complex semantic information in news texts, resulting in unsatisfactory recommendation results. Besides, these traditional methods are more friendly to active users with rich historical behaviors. However, they can not effectively solve the "long tail problem" of inactive users. To address these issues, this research presents a novel general framework that combines Large Language Models (LLM) and Knowledge Graphs (KG) into semantic representations of traditional methods. In order to improve semantic understanding in complex news texts, we use LLMs' powerful text understanding ability to generate news representations containing rich semantic information. In addition, our method combines the information about news entities and mines high-order structural information through multiple hops in KG, thus alleviating the challenge of long tail distribution. Experimental results demonstrate that compared with various traditional models, the framework significantly improves the recommendation effect. The successful integration of LLM and KG in our framework has established a feasible path for achieving more accurate personalized recommendations in the news field.

Introduction

In the era of information overload, personalized news recommendation systems serve as essential filters. However, traditional models often struggle with two major hurdles: grasping deep, nuanced semantics of complex news text and the "long-tail problem." The latter refers to the difficulty systems face when providing recommendations for inactive users or less popular news items, as standard representation learning methods are often "data-hungry" and rely heavily on dense interaction history.

The LKPNR framework addresses these gaps by integrating the semantic depth of Large Language Models (LLMs) with the structured relational data of Knowledge Graphs (KGs). By doing so, it enhances news representations beyond simple keyword matching, capturing both linguistic intricacies and external world knowledge.

The LKPNR Framework

The core of the LKPNR framework is a modular architecture designed to augment traditional news encoders with LLM and KG features. By combining these disparate data sources, the model creates a more holistic representation of both the content and the consumer.

Detailed architecture of the LKPNR framework, showcasing the LK-Aug News Encoder and User Encoder modules.

1. LK-Aug News Encoder

The framework utilizes a three-pronged approach to news representation:

  • General News Encoder: Captures basic text features using standard word-level encoders (e.g., CNNs or LSTMs).
  • LLM-Augmented Encoder: Extracts hidden states from the final layers of pre-trained LLMs (such as ChatGLM2 or LLaMA2). These states are weighted and pooled to provide a high-dimensional semantic vector that reflects the model's deep understanding of the text.
  • KG-Augmented Encoder: Identifies entities within the news and queries an external Knowledge Graph (e.g., WikiKG). Using a multi-head attention mechanism, it explores neighboring entities across multiple hops, incorporating structural context that is not explicitly present in the news text.

2. LK-Aug User Encoder and Click Predictor

The user profile is constructed by aggregating the representations of all news articles in the user's browsing history. Finally, a click predictor calculates the dot-product between the user representation and a candidate news representation to estimate the probability of a click.

Key Insights and Ideas

A primary innovation of LKPNR is treating LLMs as sophisticated feature extractors rather than simple zero-shot predictors. By leveraging the internal hidden states of the LLM, the framework captures complex semantic relationships more effectively than traditional text encoders.

Furthermore, the integration of Knowledge Graphs allows the system to bridge semantic gaps. For instance, two news stories might be related through shared entities or geographical proximity even if they share no common keywords. This "multi-hop" inference is particularly effective for addressing the long-tail problem, as it allows the model to find relevant content for users with sparse interaction histories by identifying adjacent entities in the graph.

Knowledge Graph integration for news recommendation, illustrating how adjacent entities link disparate news items.

Experimental Evaluation

The framework was evaluated using the MIND-200K dataset, which includes approximately 20,000 users and 78,000 news articles. WikiKG served as the external knowledge source.

Performance Results

The researchers integrated LKPNR into established baseline models like NRMS and NAML. The results showed significant improvements:

  • LKPNR-NRMS achieved a 2.47% improvement in AUC and a 2.08% improvement in nDCG@10 compared to the base NRMS model.
  • Ablation Studies confirmed that both the LLM and KG components are essential; removing either led to a measurable decline in recommendation accuracy.
  • LLM Selection: ChatGLM2-6B was found to outperform other models like LLaMA2-13B in this specific task, suggesting that the specific data distribution the LLM was pre-trained on matters significantly for news recommendation.

Conclusion

The LKPNR framework demonstrates that combining LLMs and KGs provides a robust solution to the limitations of traditional news recommendation systems. While the computational overhead of LLMs and the dependency on KG coverage remain challenges for real-time deployment, the framework establishes a clear path toward more accurate and semantically aware personalized recommendations. Future work will focus on model distillation to reduce latency and methods for real-time KG updates.

Reference: Chen Hao, et al. "LKPNR: LLM and KG for Personalized News Recommendation Framework." arXiv:2308.12028v1, 2023.

Summary updated

BibTeX
@misc{chen2023lkpnr,
  author = {Hao Chen and Xie Runfeng and Xiangyang Cui and Yan Zhou and Xin Wang and Xuan Zhanwei and Kai Zhang},
  title = {{LKPNR: LLM and KG for Personalized News Recommendation Framework}},
  year = {2023},
  eprint = {2308.12028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.12028},
}
Figure