Towards Open-World Recommendation with Knowledge Augmentation from Large Language Models

Yunjia Xi, Weiwen Liu, Jianghao Lin, Xiaoling Cai, Hong Zhu, Jieming Zhu, Bo Chen, Ruiming Tang, Weinan Zhang, Yong Yu · DOI · OpenReview

TL;DR

This paper introduces KAR, a framework that leverages Large Language Models (LLMs) to inject "open-world" knowledge into recommender systems. KAR extracts both reasoning about user preferences and factual item knowledge from LLMs, transforms it into usable vectors, and integrates it into existing recommender models, significantly improving performance and even achieving real-world deployment success.

What Problem Does This Paper Address?

Traditional recommender systems (RSs) operate in "closed worlds," meaning they are trained and deployed using only data from a specific domain. This isolation limits their ability to access and utilize the vast amount of general world knowledge available externally. While Large Language Models (LLMs) have demonstrated impressive capabilities in encoding and reasoning with this knowledge, directly using them for recommendations faces significant challenges:

  1. Predictive Accuracy: LLMs often underperform specialized RSs because they lack domain-specific collaborative signals.
  2. Inference Latency: The sheer size of LLMs makes real-time recommendations infeasible for industrial applications.
  3. Compositional Gap: LLMs struggle with complex, multi-faceted recommendation tasks, even if they can handle simpler sub-problems.

This paper aims to bridge this gap by effectively integrating open-world knowledge from LLMs into RSs while overcoming the latency and accuracy limitations.

Methods

The proposed framework, KAR (Open-World Knowledge Augmented Recommendation), consists of three main stages:

  1. Knowledge Reasoning and Generation:
    • Factorization Prompting: To address the "compositional gap" and elicit nuanced user preferences, KAR breaks down the reasoning process into scenario-specific factors (e.g., genre, director for movies). This is done through a "preference reasoning prompt" that guides the LLM to analyze user history and profile based on these factors.
  2. Item Factual Prompting: To ensure relevance, LLMs are also prompted to generate factual knowledge about items, specifically tailored to the identified user preference factors.
  3. Knowledge Adaptation:
    • Knowledge Encoder: The textual knowledge generated by LLMs is first encoded into dense vectors using models like BERT or ChatGLM.
  4. Hybrid-Expert Adaptor: This module transforms the semantic representations from LLMs into a "recommendation space." It uses a Mixture-of-Experts (MoE) approach with shared and dedicated experts to reduce dimensionality, mitigate noise, and ensure compatibility with downstream RS models.
  5. Knowledge Utilization:
    • The adapted reasoning and factual knowledge vectors are treated as additional input features for any existing recommendation model. This allows the model to leverage both its original domain knowledge and the augmented open-world knowledge.

To address latency, KAR employs a speed-up approach: the knowledge generation and adaptation stages are performed offline. The resulting knowledge representations or augmented vectors are then preprocessed and prestored in a database, allowing for fast retrieval during inference.

Datasets

The paper evaluates KAR on two public datasets:

  • MovieLens-1M: A dataset of movie ratings.
  • Amazon-Books: The "Books" category from the Amazon Review Dataset.

The authors also mention deploying KAR on Huawei's news and music recommendation platforms for online A/B testing.

Key Insights and Ideas

  • Reasoning is Key: The paper highlights that "reasoning knowledge" about user preferences is more impactful for recommendation performance than just "factual knowledge" about items. This is likely because it captures deeper user motivations.
  • Factorization for Nuance: Breaking down complex user preference reasoning into smaller, factor-based prompts is crucial for overcoming LLMs' limitations in handling multi-faceted recommendation tasks.
  • LLMs as Knowledge Augmentors, Not Replacements: KAR positions LLMs as powerful knowledge providers that augment existing RSs, rather than trying to replace them entirely. This preserves the strengths of traditional RSs (like collaborative filtering) while adding external intelligence.
  • Pre-computation is Essential for Real-World Deployment: The speed-up strategy of pre-processing and prestoring LLM-generated knowledge is critical for meeting the strict latency requirements of industrial recommender systems.
  • LLMs Can Encompass KG Knowledge: The authors suggest that LLMs might already encode much of the information found in knowledge graphs, making LLM-derived knowledge potentially sufficient and more versatile.

Key Results

  • Significant Performance Gains: KAR consistently improved the performance of various backbone recommender models (CTR prediction and reranking) across both datasets. For example, it achieved a 1.49% increase in AUC and a 2.27% decrease in LogLoss when used with FiBiNet on MovieLens-1M.
  • Outperforms PLM Baselines: KAR significantly outperformed other methods that leverage pre-trained language models, achieving up to a 0.91% improvement in AUC and 1.27% improvement in LogLoss over the strongest baseline (TALLRec) on Amazon-Books.
  • Real-World Impact: KAR was deployed on Huawei's news and music platforms, resulting in a 7% improvement in recall for news and a 1.7% increase in song play count for music.
  • Efficiency Achieved: The speed-up strategy allowed KAR to achieve inference times comparable to the original backbone models, well within the typical 100ms requirement for real-time recommendations, whereas direct LLM API calls took seconds.
  • Reasoning Knowledge Dominates: Ablation studies showed that reasoning knowledge alone provided larger gains than factual knowledge alone, but combining both yielded the best results.

Limitations and Future Work

  • LLM Hallucination: The paper acknowledges that LLM-generated knowledge can sometimes be unreliable or misleading. The hybrid-expert adaptor aims to mitigate this, but it remains a challenge.
  • Inference Latency for New Users/Items: While prestoring knowledge helps, real-time reasoning for entirely new users or items is still challenging. The authors suggest using default vectors and generating knowledge offline for these cases.
  • Scenario-Specific Factor Identification: While the process of identifying scenario-specific factors is described as requiring minimal human intervention, it's still a manual step that could be further automated.
  • Broader Impact Considerations: The authors briefly touch upon privacy and security, noting that KAR avoids fine-tuning LLMs on user data and uses in-house models for deployment to mitigate risks. They also highlight that KAR transforms LLM outputs into representations, reducing the direct exposure to potentially harmful generated content.

Future work could focus on further automating factor identification, improving robustness against LLM hallucinations, and exploring more advanced methods for handling dynamic user preferences.

Summary updated

BibTeX
@inproceedings{xi2024towards,
  author = {Yunjia Xi and Weiwen Liu and Jianghao Lin and Xiaoling Cai and Hong Zhu and Jieming Zhu and Bo Chen and Ruiming Tang and Weinan Zhang and Yong Yu},
  title = {{Towards Open-World Recommendation with Knowledge Augmentation from Large Language Models}},
  booktitle = {RecSys},
  year = {2024},
  doi = {10.1145/3640457.3688104},
}
Figure