Large Language Model with Graph Convolution for Recommendation

Yingpeng Du, Ziyan Wang, Zhu Sun, Haoyan Chua, Hongzhi Liu, Zhonghai Wu, Yining Ma, Jie Zhang, Youchen SunarXiv 2024 · DOI

Introduction

Modern recommender systems (RS) increasingly leverage textual information—such as resumes, job descriptions, or social media profiles—to model user preferences. However, this raw textual data is often "noisy." Users may provide vague descriptions, lack self-awareness, or simply be brief, leading to poor recommendation performance. While Large Language Models (LLMs) possess significant reasoning capabilities, they face two primary challenges in the recommendation domain: Graph Blindness and Context Limits.

Graph Blindness refers to the LLM's inherent difficulty in processing structured interaction data (who-interacted-with-what). Context Limits arise when attempting to feed multi-hop neighborhood information into a single prompt; the resulting text volume quickly exceeds the maximum token capacity of current models. To address these issues, we present GaCLLM (Graph-aware Convolutional Large Language Model), a framework that treats the LLM as a graph aggregator to iteratively refine and "denoise" user and item descriptions.

The Challenge of Context Limits

A significant hurdle in integrating graph structures with LLMs is the exponential growth of neighborhood data. As the number of "hops" in a graph increases, the textual representation of that neighborhood expands beyond the architectural limits of most LLMs.

Token constraints across multi-hop neighborhoods.

As illustrated in the figure above, while a 0-hop or 1-hop neighborhood fits comfortably within the context windows of models like Llama-2 or GPT-4, a 3-hop neighborhood requires over 158,000 tokens. This "wall of text" makes traditional "plain" prompting strategies unfeasible for deep graph structures.

Methodology: Convolutional Inference

GaCLLM overcomes these hurdles through a multi-stage approach:

  1. Supervised Fine-Tuning (SFT): The LLM is first fine-tuned using Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA. This stage teaches the model to align descriptions across different domains, such as matching a candidate's resume to a specific job description.
  2. LLM-based Convolutional Inference: This is the core innovation. Instead of a single massive prompt, GaCLLM employs an iterative aggregation strategy. In the first "layer," the LLM rewrites a user's description based on the items they have interacted with. In subsequent layers, it refines these descriptions by incorporating the updated text from neighbors. This natural language "message passing" mimics Graph Convolutional Networks (GCNs) while maintaining token efficiency.
  3. Hybrid Embedding: The final, refined textual descriptions are converted into vectors and fused with traditional ID-based embeddings to generate the final recommendation rankings.

Results and Impact of Data Quality

GaCLLM was evaluated on three real-world datasets: Designs, Sales, and Pokec. The model consistently outperformed state-of-the-art baselines, including LightGCN and other LLM-based recommenders. On the Designs dataset, GaCLLM achieved a 4.06% improvement in MAP@5 and a 4.85% gain in NDCG@5 over the best baseline.

A key finding of this research is the relationship between initial data quality and the "lift" provided by the graph-aware approach.

Performance gains across data quality subgroups.

As shown in the performance analysis, the graph-aware model significantly outperforms the non-graph baseline across all quality subgroups (G1 to G5). Notably, the largest performance gap is observed in the lower-quality subgroups (G1 and G2). By leveraging neighbor information, the LLM effectively "denoises" poor initial profiles, inferring missing skills or interests and leveling the playing field for users with sparse or vague data.

Conclusion

GaCLLM demonstrates that LLMs can be effectively integrated with graph structures through a convolutional inference strategy. By iteratively updating node descriptions in natural language, the framework bypasses context limits and mitigates the impact of noisy data. Future work will focus on handling heterogeneous relations within graphs and reducing the computational overhead associated with multiple iterative LLM calls.

Summary updated

BibTeX
@misc{du2024large,
  author = {Yingpeng Du and Ziyan Wang and Zhu Sun and Haoyan Chua and Hongzhi Liu and Zhonghai Wu and Yining Ma and Jie Zhang and Youchen Sun},
  title = {{Large Language Model with Graph Convolution for Recommendation}},
  year = {2024},
  eprint = {2402.08859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.08859},
}
Figure