LLMRec: Large Language Models with Graph Augmentation for Recommendation

Wei Wei, Xubin Ren, Jiabin Tang, Qinyong Wang, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, Chao Huang

TL;DR

LLMRec is a novel recommendation framework that uses Large Language Models (LLMs) to solve the chronic "data sparsity" problem in recommender systems. By using LLMs to augment user-item interaction graphs and enrich metadata, and then applying a "denoised robustification" mechanism to filter out LLM hallucinations, it significantly outperforms state-of-the-art graph-based recommendation models.

What Problem Does This Paper Address?

Modern recommender systems (like those powering Netflix or Amazon) primarily rely on Collaborative Filtering (CF)—the idea that if User A and User B liked the same movies in the past, they’ll likely agree in the future. However, this approach hits two major walls:

  1. Data Sparsity: Most users only interact with a tiny fraction of available items, leaving the "interaction graph" mostly empty.
  2. Low-Quality Side Information: While we have "side information" (movie descriptions, user profiles), it is often noisy, incomplete, or lacks a unified format, making it hard for Graph Neural Networks (GNNs) to learn meaningful patterns.

Traditional methods try to fill these gaps using simple data augmentation (like shuffling edges), but these often introduce more noise than value. The authors ask: Can we use the vast world knowledge and reasoning of LLMs to "fill in the blanks" of our recommendation data intelligently?

Methods

The authors propose LLMRec, which operates in two main phases: Augmentation and Denoised Training.

1. LLM-Based Augmentation

Instead of treating users and items as anonymous IDs, LLMRec describes them in natural language and asks an LLM (like GPT-3.5) to perform three tasks:

  • Implicit Feedback Augmentation: The LLM acts as a "knowledgeable sampler." Given a user's history and a pool of candidates, it predicts which items the user would likely like or dislike, creating new "edges" in the graph.
  • User Profiling: The LLM summarizes a user’s preferences into a structured profile (e.g., "likes 90s comedies, dislikes horror") based on their history.
  • Item Attribute Enhancement: The LLM fills in missing metadata for items, such as directors, countries of origin, or themes, ensuring a dense and unified feature set.

2. Denoised Robustification

LLMs are prone to "hallucinations"—they might suggest a user likes a movie that doesn't fit their profile. To prevent this "fake data" from ruining the model, LLMRec introduces two safeguards:

  • Noisy Edge Pruning: During training, the model calculates the loss for augmented edges. It automatically prunes (discards) the samples with the highest loss, assuming they are unreliable LLM noise.
  • MAE-based Feature Enhancement: Using a Masked Autoencoder (MAE) approach, the model masks parts of the augmented features and tries to reconstruct them. This forces the encoder to learn the most robust, essential characteristics of the data rather than over-fitting to noisy LLM text.

Datasets

The framework was evaluated on two classic benchmark datasets, enriched with multi-modal side information:

  • Netflix: Includes implicit feedback and basic attributes. The authors crawled additional movie posters and textual metadata.
  • MovieLens (ML-10M): A standard movie recommendation dataset.
  • LLM Tools: They used gpt-3.5-turbo for text generation and text-embedding-ada-002 for creating vector representations of the text. Visual features were encoded using CLIP-ViT.

Key Insights and Ideas

  • From IDs to Modalities: Traditional models are "ID-centric." LLMRec shifts toward a "modality-based" paradigm where the meaning of the content (natural language) is as important as the interaction history.
  • LLMs as "Hard Negative" Samplers: One of the hardest parts of training a recommender is finding "hard negatives"—items a user specifically wouldn't like. LLMs are surprisingly good at identifying these based on genre and theme mismatches.
  • The Necessity of Denoising: The paper proves that LLM augmentation is a double-edged sword. Without the "Noise Pruning" and "MAE" components, the raw LLM output can actually degrade performance by introducing high-confidence errors.
  • Cost-Effectiveness: The authors found that User Profiling provided the highest "Return on Investment" (improvement per dollar spent on API calls), suggesting that summarizing user behavior is the LLM's strongest suit in this context.

Key Results

LLMRec was compared against a battery of baselines, including general CF (LightGCN), side-information models (MMGCN), and self-supervised models (MMSSL).

  • Significant Gains: On the Netflix dataset, LLMRec improved Recall@10 by 13.95% and NDCG@10 by 21.43% over the best-performing baseline.
  • Ablation Success: Removing the LLM-augmented edges (w/o-u-i) caused a significant drop in accuracy, proving that the "hallucinated" interactions were actually helping the model learn better user representations.
  • Model Agnostic: The authors plugged LLMRec’s augmented data into other models (like MICRO and LATTICE) and saw performance boosts across the board, proving the data itself is higher quality.

Limitations and Future Work

  • Candidate Pool Dependency: LLMs cannot rank every item in a million-item catalog due to context window limits. LLMRec relies on a "base recommender" to provide a small candidate pool (e.g., 10-30 items) for the LLM to reason over.
  • API Costs: While they analyzed cost-effectiveness, using LLMs for every user in a massive production system (millions of users) remains expensive.
  • Future Directions: The authors suggest exploring Causal Inference to better debias the attributes generated by LLMs and investigating how counterfactual reasoning could further refine user profiles.

Summary updated

BibTeX
@inproceedings{wei2024llmrec,
  author = {Wei Wei and Xubin Ren and Jiabin Tang and Qinyong Wang and Lixin Su and Suqi Cheng and Junfeng Wang and Dawei Yin and Chao Huang},
  title = {{LLMRec: Large Language Models with Graph Augmentation for Recommendation}},
  booktitle = {WSDM},
  year = {2024},
  doi = {10.1145/3616855.3635853},
}
Figure