[论文解读] Comparing Retrieval-Augmentation and Parameter-Efficient Fine-Tuning for Privacy-Preserving Personalization of Large Language Models
本文比较了检索增强生成(RAG)与参数高效微调(PEFT)在大型语言模型(LLMs)隐私保护个性化中的应用。基于LaMP基准的七个多样化数据集,研究发现RAG相较于非个性化LLM平均提升14.92%,而PEFT仅提升1.07%,两者结合则达到15.98%的提升。RAG在用户数据有限的冷启动场景中表现更优,而PEFT表现不佳与用户资料规模不足密切相关。
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.
研究动机与目标
- 系统比较检索增强生成(RAG)与参数高效微调(PEFT)在保护用户隐私的前提下个性化大型语言模型(LLMs)的性能。
- 利用标准化基准评估RAG与PEFT在多样化个性化任务中的有效性。
- 探究用户资料规模对PEFT性能的影响,并识别各方法表现更优的条件。
- 探索结合RAG与PEFT以提升个性化性能的潜力。
- 提供开源代码与数据,以促进隐私保护型LLM个性化方向的未来研究。
提出的方法
- 本研究采用LaMP基准,包含三个文本分类任务与四个文本生成任务,每个输入被视为独立用户。
- 对于RAG,通过查询函数从输入提示生成查询,利用检索模型(如BM25、Contriever、时效性、RSPG)从用户资料中检索相关内容,并通过提示生成器将检索结果与输入结合,形成LLM的个性化输入。
- 对于PEFT,对FlanT5-XXL模型采用低秩适应(LoRA),秩r=8,为每位用户单独微调,保留基础模型参数,仅更新适配器权重。
- 通过将RAG增强后的提示或PEFT微调后的模型输入送入LLM,生成个性化输出,并与非个性化基线模型进行性能对比。
- RAG与PEFT的结合方法为:先检索相关资料文档,再对所得提示应用LoRA微调。
- 由于计算成本高昂,实验仅在单一LLM(FlanT5-XXL)上进行,累计使用超过10,000个A100 GPU小时,并在七个数据集上测量性能。
实验结果
研究问题
- RQ1在多样化个性化任务中,RAG与PEFT相较于非个性化LLM基线的性能提升如何比较?
- RQ2用户资料数据量是否与PEFT个性化效果存在相关性?
- RQ3结合RAG与PEFT是否能获得优于单一方法的性能?
- RQ4为何PEFT在个性化任务中表现逊于RAG,尤其是在用户数据有限的情况下?
- RQ5在大规模训练与部署中,PEFT与RAG方法相关的计算与环境成本如何?
主要发现
- 基于RAG的个性化在七个数据集上相较非个性化LLM基线平均提升14.92%,显著优于PEFT。
- 基于PEFT的个性化仅相较非个性化基线平均提升1.07%,表明其在个性化任务中效果有限。
- 结合RAG与PEFT后,相较非个性化基线实现15.98%的平均性能提升,表明存在协同增益效应。
- 用户资料规模与PEFT性能增益呈正相关,表明数据稀缺限制了PEFT的有效性。
- RAG更适合资料有限的冷启动用户,而PEFT在用户资料规模较大时表现更优。
- 本研究揭示了显著的计算与环境成本,累计超过10,000个A100 GPU小时,预计碳排放达400公斤,限制了其可扩展性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。