CoRA: Collaborative Information Perception by Large Language Model's Weights for Recommendation

Yuting Liu, Jinghao Zhang, Yizhou Dang, Yuliang Liang, Qiang Liu +3 more
8/20/2024
cs.IRcs.LG

No official code found. Best implementation: VanillaCreamer/CoRA (19 stars, BSD-3-Clause, last commit 2024-12-11).

Abstract

Involving collaborative information in Large Language Models (LLMs) is a promising technique for adapting LLMs for recommendation. Existing methods achieve this by concatenating collaborative features with text tokens into a unified sequence input and then fine-tuning to align these features with LLM's input space. Although effective, in this work, we identify two limitations when adapting LLMs to recommendation tasks, which hinder the integration of general knowledge and collaborative information, resulting in sub-optimal recommendation performance. (1) Fine-tuning LLM with recommendation data can undermine its inherent world knowledge and fundamental competencies, which are crucial for interpreting and inferring recommendation text. (2) Incorporating collaborative features into textual prompts disrupts the semantics of the original prompts, preventing LLM from generating appropriate outputs. In this paper, we propose a new paradigm, \textbf{Co}llaborative \textbf{Lo}RA (CoRA), with a collaborative query generator. Rather than input space alignment, this method aligns collaborative information with LLM's parameter space, representing them as incremental weights to update LLM's output. This way, LLM perceives collaborative information without altering its general knowledge and text inference capabilities. Specifically, we employ a collaborative filtering model to extract user and item embeddings and inject them into a set number of learnable queries. We then convert collaborative queries into collaborative weights with low-rank properties and merge the collaborative weights into LLM's weights, enabling LLM to perceive the collaborative signals and generate personalized recommendations without fine-tuning or extra collaborative tokens in prompts. Extensive experiments confirm that CoRA effectively integrates collaborative information into LLM, enhancing recommendation performance.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Official source code for AAAI 2025 paper: CoRA: Collaborative Information Perception by Large Language Model's Weights for Recommendation

191Python, Jupyter NotebookDec 11, 20241 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{liu2024cora,
  title  = {CoRA: Collaborative Information Perception by Large Language Model's Weights for Recommendation},
  author = {Yuting Liu and Jinghao Zhang and Yizhou Dang and Yuliang Liang and Qiang Liu and Guibing Guo and Jianzhe Zhao and Xingwei Wang},
  year   = {2024},
  eprint = {2408.10645},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.10645v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.10645.svg)](https://codeofpaper.com/paper/2408.10645)

Discussion