Skip to main content
QUICK REVIEW

[Paper Review] Comparing Retrieval-Augmentation and Parameter-Efficient Fine-Tuning for Privacy-Preserving Personalization of Large Language Models

Alireza Salemi, Hamed Zamani|arXiv (Cornell University)|Sep 14, 2024
Privacy-Preserving Technologies in DataComputer Science3 citations
TL;DR

This paper compares retrieval-augmented generation (RAG) and parameter-efficient fine-tuning (PEFT) for privacy-preserving personalization of large language models (LLMs). Using seven diverse datasets from the LaMP benchmark, it finds RAG achieves 14.92% average improvement over non-personalized LLMs, while PEFT yields only 1.07%, with their combination reaching 15.98%. RAG is better for cold-start users with limited data, and PEFT's poor performance correlates with insufficient user profile size.

ABSTRACT

Despite its substantial impact on various search, recommendation, and question answering tasks, privacy-preserving methods for personalizing large language models (LLMs) have received relatively limited exploration. There is one primary approach in this area through retrieval-augmented generation (RAG), which generates personalized outputs by enriching the input prompt with information retrieved from the user's personal data. This paper studies an orthogonal approach to RAG that involves learning user-dependent LLM parameters through parameter-efficient fine-tuning (PEFT). This paper presents the first systematic study for exploration of PEFT for LLM personalization and provides an extensive comparisons between RAG- and PEFT-based solutions, across a broad set of seven diverse datasets from the LaMP benchmark. Our results demonstrate that, on average, both RAG- and PEFT-based personalization methods yield 14.92% and 1.07% improvements over non-personalized LLMs, respectively. When combining RAG with PEFT, we observe a further improvement of 15.98%, highlighting the effectiveness of their integration in enhancing personalized text generation. Additionally, we identify a positive correlation between the amount of user data available and the effectiveness of PEFT. This finding suggests that RAG is particularly beneficial for cold-start users -- users with limited personal data -- while PEFT performs better when more user-specific data is available.

Motivation & Objective

  • To systematically compare retrieval-augmented generation (RAG) and parameter-efficient fine-tuning (PEFT) for personalizing LLMs while preserving user privacy.
  • To evaluate the effectiveness of RAG and PEFT across diverse personalization tasks using a standardized benchmark.
  • To investigate the impact of user profile size on PEFT performance and identify conditions under which each method excels.
  • To explore the potential of combining RAG and PEFT for improved personalization performance.
  • To provide open-source code and data to encourage future research in privacy-preserving LLM personalization.

Proposed method

  • The study uses the LaMP benchmark, which includes three text classification and four text generation tasks, with each input treated as a distinct user.
  • For RAG, a query is generated from the input prompt using a query function, retrieved from the user’s profile using retrieval models (e.g., BM25, Contriever, Recency, RSPG), and combined with the input via a prompt generator to form a personalized input for the LLM.
  • For PEFT, low-rank adaptation (LoRA) with rank r=8 is applied to fine-tune the FlanT5-XXL model per user, preserving the base model parameters and only updating the adapter weights.
  • The personalized output is generated by passing the RAG-augmented prompt or the PEFT-fine-tuned model input through the LLM, with performance evaluated against a non-personalized baseline.
  • The combination of RAG and PEFT is implemented by first retrieving relevant profile documents and then applying LoRA fine-tuning on the resulting prompt.
  • Experiments are conducted on a single LLM (FlanT5-XXL) due to high computational costs, using over 10,000 A100 GPU hours and measuring performance across seven datasets.

Experimental results

Research questions

  • RQ1How do RAG and PEFT compare in terms of performance improvement over a non-personalized LLM baseline across diverse personalization tasks?
  • RQ2Does the size of a user’s profile data correlate with the effectiveness of PEFT-based personalization?
  • RQ3Can combining RAG and PEFT yield better performance than either method alone?
  • RQ4Why does PEFT underperform compared to RAG in personalization tasks, especially for users with limited data?
  • RQ5What are the computational and environmental costs associated with training and deploying PEFT and RAG methods at scale?

Key findings

  • RAG-based personalization achieves an average improvement of 14.92% over the non-personalized LLM baseline across seven datasets, significantly outperforming PEFT.
  • PEFT-based personalization yields only a 1.07% average improvement over the non-personalized baseline, indicating limited effectiveness for personalization.
  • Combining RAG and PEFT results in a 15.98% average improvement over the non-personalized baseline, demonstrating synergistic gains.
  • A positive correlation exists between the size of a user’s profile and the performance gain from PEFT, suggesting that data scarcity limits PEFT’s effectiveness.
  • RAG is more suitable for cold-start users with limited personal data, while PEFT performs better with larger user profiles.
  • The study highlights significant computational and environmental costs, with over 10,000 A100 GPU hours and an estimated 400 kg of CO2 emissions, limiting scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.