IRAICLMar 24, 2025

Improving RAG for Personalization with Author Features and Contrastive Examples

arXiv:2504.08745v18 citationsh-index: 3Has CodeECIR
Originality Incremental advance
AI Analysis

This addresses the challenge of capturing fine-grained author traits for personalized text generation, representing an incremental advance in RAG methods.

The paper tackled the problem of personalization in retrieval-augmented generation (RAG) by enriching context with author-specific features like sentiment polarity and frequently used words, along with contrastive examples from other authors, resulting in a 15% relative improvement over baseline RAG.

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's profile. We introduce a new feature called Contrastive Examples: documents from other authors are retrieved to help LLM identify what makes an author'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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes