Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation

Alireza Salemi, Surya Kallumadi, Hamed Zamani
4/9/2024
cs.CLcs.IR

No official code found. Best implementation: LaMP-Benchmark/LaMP (202 stars, last commit 2025-02-18).

Abstract

This paper studies retrieval-augmented approaches for personalizing large language models (LLMs), which potentially have a substantial impact on various applications and domains. We propose the first attempt to optimize the retrieval models that deliver a limited number of personal documents to large language models for the purpose of personalized generation. We develop two optimization algorithms that solicit feedback from the downstream personalized generation tasks for retrieval optimization -- one based on reinforcement learning whose reward function is defined using any arbitrary metric for personalized generation and another based on knowledge distillation from the downstream LLM to the retrieval model. This paper also introduces a pre- and post-generation retriever selection model that decides what retriever to choose for each LLM input. Extensive experiments on diverse tasks from the language model personalization (LaMP) benchmark reveal statistically significant improvements in six out of seven datasets.

View on arXivView PDF

Code Implementations(1)

LaMP-Benchmark/LaMPCommunity100%

Codes for papers on Large Language Models Personalization (LaMP)

20212PythonApr 21, 20231 years ago
deep-learninginformation-retrievalmachine-learningnatural-language-processingnlp

Similar Papers

Cite this paper

@article{salemi2024optimization,
  title  = {Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation},
  author = {Alireza Salemi and Surya Kallumadi and Hamed Zamani},
  year   = {2024},
  eprint = {2404.05970},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.05970v1}
}

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/2404.05970.svg)](https://codeofpaper.com/paper/2404.05970)

Discussion