ONCE: Boosting Content-based Recommendation with Both Open- and Closed-source Large Language Models

Qijiong Liu, Nuo Chen, Tetsuya Sakai, Xiao-Ming Wu

TL;DR

This paper introduces ONCE, a novel framework that synergistically combines open-source and closed-source Large Language Models (LLMs) to significantly enhance content-based recommendation systems. By leveraging LLMs for both content representation (open-source) and data augmentation (closed-source), ONCE achieves up to a 19.32% improvement over state-of-the-art models, addressing the challenge of deep content understanding in recommendation.

What Problem Does This Paper Address?

Personalized content-based recommender systems are crucial for navigating vast amounts of information, but they often struggle with truly understanding the nuances of item content. Traditional methods, even those using smaller pre-trained language models (PLMs) like BERT, have limitations in capturing deep semantic meaning. This can lead to inaccurate recommendations, especially when dealing with complex or specialized content. The authors aim to bridge this gap by harnessing the advanced comprehension and knowledge capabilities of modern LLMs, both the freely available open-source models and the powerful proprietary closed-source ones.

Methods

The ONCE framework employs a dual-pronged strategy:

  • DIRE (Discriminative Recommendation Framework) for Open-Source LLMs: This approach uses open-source LLMs (like LLaMA) as powerful content encoders. The deep layers of these LLMs are fine-tuned to extract rich content representations, directly enhancing the embedding level. This is akin to replacing traditional content encoders with LLM-based ones.
  • GENRE (Generative Recommendation Framework) for Closed-Source LLMs: For closed-source LLMs (like GPT-3.5), which are accessed via APIs, the authors use prompting techniques to augment the training data. This includes:
  • Content Summarization: Enhancing item titles and descriptions.
  • User Profiling: Inferring user interests (topics, regions) from their browsing history.
  • Personalized Content Generation: Creating synthetic content that aligns with user profiles and history. These generated data enrichments are then used to train recommendation models.

The paper also details technical aspects like partial freezing of LLM layers and Low-Rank Adaptation (LoRA) for efficient fine-tuning of open-source LLMs, and various prompting strategies for closed-source LLMs.

Datasets

The proposed ONCE framework was evaluated on two widely-used real-world content-based recommendation datasets:

  • MIND (Multi-Interest News Recommendation Dataset): A large-scale dataset for news recommendation.
  • Goodreads: A dataset for book recommendation.

The authors also present statistics for augmented versions of these datasets, showing the impact of their data augmentation techniques.

Key Insights and Ideas

  • Synergy is Key: The most significant improvements come from combining both open-source and closed-source LLMs, suggesting a powerful synergy where each type complements the other's strengths.
  • Open-Source LLMs Excel at Representation: Fine-tuning open-source LLMs as content encoders directly leads to substantial gains in recommendation quality, highlighting their ability to capture deep semantic features.
  • Closed-Source LLMs Boost Data Quality: Prompting closed-source LLMs effectively augments training data, providing richer context and user insights that accelerate the learning process for open-source models.
  • Chain-of-Thought Prompting Works: For data augmentation, a "chain-based generation" approach (where generated data is used iteratively) yields better results than "one-pass generation," indicating the benefit of more complex reasoning.
  • LLMs Understand Nuance: LLMs can associate entities like names and locations more effectively than smaller models, leading to better content understanding.

Key Results

  • Significant Performance Boost: ONCE achieved up to a 19.32% relative improvement compared to existing state-of-the-art recommendation models.
  • DIRE's Impact: Fine-tuning open-source LLMs (LLaMA) consistently showed improvements of over 10 percentage points on the MIND dataset.
  • GENRE's Efficiency: Data augmentation using GPT-3.5 accelerated the fine-tuning of LLaMA and improved recommendation quality.
  • Faster Training: ONCE, using LLaMA-13B, demonstrated quicker training efficiency, reaching performance equivalent to LLaMA-13B's 8th epoch by its 6th epoch on the NRMS model (a 25% improvement).
  • Cost-Effectiveness: While chain-based generation is more expensive, it offers a better cost-conversion rate (CCR) for certain tasks, especially when combined with content summarization.

Limitations and Future Work

  • Computational Cost: Running and fine-tuning large LLMs is computationally intensive. The authors address this with techniques like partial freezing and LoRA, but it remains a consideration.
  • Closed-Source LLM Cost: The user profiler, while effective, incurs higher costs due to longer token counts per request.
  • Dataset Specificity: The effectiveness of certain augmentation strategies (e.g., LoRA) varied between the MIND and Goodreads datasets, suggesting that optimal approaches might be dataset-dependent.
  • Future Work: The authors express hope that their work will encourage further research into LLM-based recommendation systems and their application across various domains beyond news and books. They also plan to release their code and LLM-generated data for reproducibility.

Summary updated

BibTeX
@inproceedings{liu2023once,
  author = {Qijiong Liu and Nuo Chen and Tetsuya Sakai and Xiao-Ming Wu},
  title = {{ONCE: Boosting Content-based Recommendation with Both Open- and Closed-source Large Language Models}},
  booktitle = {WSDM},
  year = {2023},
}
Figure