Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendation

Jiachen Zhu, Jianghao Lin, Xinyi Dai, Bo Chen, Rong Shan, Jieming Zhu, Ruiming Tang, Yong Yu, Weinan ZhangarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) have revolutionized natural language processing, but their application to recommender systems remains challenging. While LLMs excel at reasoning, they face three primary obstacles: static personalization (shared LoRA weights), the "lifelong" bottleneck (computational costs of long user histories), and data scalability (the expense of fine-tuning on massive industrial datasets).

To address these, we present RecLoRA, a framework that enables true personalization by dynamically generating user-specific LoRA weights while maintaining computational efficiency.

Personalized LoRA (PLoRA)

Traditional methods typically use a single set of Low-Rank Adaptation (LoRA) weights shared across all users. In contrast, RecLoRA introduces the Personalized LoRA (PLoRA) module. This module maintains a set of "meta-LoRA" weights. A gating network, guided by a conventional recommendation model (CRM), calculates a unique weighted combination of these meta-weights for each user. This effectively gives every user their own customized adapter, allowing the model's internal logic to adapt to individual preferences.

Comparison between standard LoRA (left) and the proposed Personalized LoRA (right), which uses user-specific adapters (A_k, B_k).

Methodology: The Few2Many Magnifier

A key innovation in RecLoRA is the Few2Many Magnifier strategy. This two-stage training process bridges the gap between massive recommendation datasets and the high cost of LLM fine-tuning:

  1. Stage 1: Conventional Recommendation Pretraining. A CRM is trained on the entire dataset using standard item ID sequences to capture global patterns.
  2. Stage 2: Personalized LoRA Finetuning. The LLM is fine-tuned on a smaller subset of data. During this stage, the pre-trained CRM acts as a "magnifier," injecting global knowledge from the full dataset into the LLM via the personalized LoRA instructions.
The Few2Many Magnifier strategy, showing the two-stage training process that leverages a full-scale CRM to guide LLM fine-tuning on a reduced dataset.

Long-Short Modality Retriever

To handle lifelong user history, RecLoRA employs a dual-modality approach. It uses a CRM to process long sequences of item IDs—which is computationally inexpensive—and reserves the LLM for processing shorter, semantically rich text descriptions. This modality splitting allows the model to capture long-term patterns without the exponential increase in LLM inference time and memory costs associated with long text contexts.

Key Results and Performance

RecLoRA was evaluated on MovieLens-25M, MovieLens-1M, and GoodReads benchmarks, consistently outperforming state-of-the-art baselines like ReLLa and TallRec.

  • Efficiency: Extending ID-based history improved performance by 2.73% with only a 4-8% increase in time cost, compared to a 358% increase when attempting to achieve similar gains by extending text history.
  • Sample Efficiency: RecLoRA trained on just 10,000 samples outperformed baseline models trained on 70,000 samples, validating the effectiveness of the "Few2Many" magnifier strategy.

Conclusion

RecLoRA demonstrates that personalizing model weights is significantly more effective than personalizing input prompts alone. By combining parameter-level personalization with efficient modality retrieval and the Few2Many training strategy, RecLoRA provides a scalable and efficient path for deploying LLMs in high-performance recommendation environments.

Summary updated

BibTeX
@misc{zhu2024lifelong,
  author = {Jiachen Zhu and Jianghao Lin and Xinyi Dai and Bo Chen and Rong Shan and Jieming Zhu and Ruiming Tang and Yong Yu and Weinan Zhang},
  title = {{Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendation}},
  year = {2024},
  eprint = {2408.03533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.03533},
}
Figure