@inbook{b500263f82d64eb39542f62a557f34b8,
title = "Improving RAG for Personalization with Author Features and Contrastive Examples",
abstract = "Personalization with retrieval-augmented generation (RAG) often fails to capture fine-grained features of authors, making it hard to identify their unique traits. To enrich the RAG context, we propose providing Large Language Models (LLMs) with author-specific features, such as average sentiment polarity and frequently used words, in addition to past samples from the author{\textquoteright}s profile. We introduce a new feature called Contrastive Examples: documents from other authors are retrieved to help LLM identify what makes an author{\textquoteright}s style unique in comparison to others. Our experiments show that adding a couple of sentences about the named entities, dependency patterns, and words a person uses frequently significantly improves personalized text generation. Combining features with contrastive examples boosts the performance further, achieving a relative 15\% improvement over baseline RAG while outperforming the benchmarks. Our results show the value of fine-grained features for better personalization, while opening a new research dimension for including contrastive examples as a complement with RAG. We release our code publicly (https://github.com/myazann/AP-Bots/tree/main). ",
author = "Mert Yazan and Suzan Verberne and Frederik Situmeang",
note = "{\textcopyright} 2025 The Author(s), under exclusive license to Springer Nature Switzerland AG. ; 47th European Conference on Information Retrieval, ECIR 2025 ; Conference date: 06-04-2025 Through 10-04-2025",
year = "2025",
month = apr,
day = "4",
doi = "10.1007/978-3-031-88714-7\_40",
language = "English",
isbn = "9783031887130",
volume = "3",
series = "Lecture Notes in Computer Science",
publisher = "Springer",
pages = "408–416",
editor = "Hauff, \{Claudia \} and Macdonald, \{Craig \} and Jannach, \{Dietmar \} and Kazai, \{Gabriella \} and Nardini, \{Franco Maria \} and Pinelli, \{Fabio \} and Silvestri, \{Fabrizio \} and Tonellotto, \{Nicola \}",
booktitle = "Advances in Information Retrieval",
}