Introduction
Standard Large Language Models (LLMs) generally follow a "one-size-fits-all" approach, providing identical responses to different users given the same prompt. To address this, researchers typically employ two strategies: Fine-tuning, which trains unique models or adapters for every user, and Retrieval-Augmented Generation (RAG), which searches a user's history for relevant snippets to include in the prompt.
However, both methods face significant hurdles. Fine-tuning presents a "scalability wall" due to the massive storage and compute required for millions of users. RAG, while efficient, often suffers from a "continuity gap," missing a user’s overall writing style and long-term habits by focusing only on isolated data points. To bridge these gaps, the authors introduce Persona-Plug (PPlug), a lightweight, plug-and-play framework that personalizes frozen LLMs without expensive per-user fine-tuning.
Methodology
PPlug acts as a bridge between a user's history and a frozen LLM through three main components:
- User Behavior Encoder: This component utilizes a small, efficient encoder (such as BGE-base) to transform historical interactions—like past tweets or product reviews—into dense vectors.
- Input-aware Personal Aggregator: Rather than simple averaging, PPlug employs an attention mechanism that weights historical behaviors based on their relevance to the current task. For instance, if the task is writing a movie review, the system prioritizes past movie-related content over unrelated entries.
- The Persona-Plug: This aggregated "persona vector" is projected into the LLM’s embedding space and prepended to the input sequence. Combined with a trainable Instruction Embedding, it guides the frozen LLM (e.g., Llama 2 or Flan-T5) to generate tailored output.
Crucially, the LLM parameters remain frozen. Only the lightweight encoder and projector—representing approximately 3.1% of the total parameters in a 7B model—are trained.
Evaluation and Key Results
The model was evaluated using the LaMP (Language Model Personalization) benchmark, covering six diverse classification and generation tasks, including movie tagging, news headline generation, and tweet paraphrasing.
PPlug consistently outperformed both state-of-the-art retrieval-based methods and per-user fine-tuning, showing relative improvements ranging from 1.4% to 35.8%. It proved particularly dominant in tasks like movie tagging (LaMP-2) and tweet paraphrasing (LaMP-7), where capturing a user's specific vocabulary and "vibe" is critical.
Beyond performance, PPlug offers significant efficiency gains. While per-user fine-tuning requires roughly 10,000 hours of A100 GPU time for the LaMP benchmark, PPlug achieves superior results in just 100 hours. Furthermore, the model's performance scales positively with the length of user history; the more data available to "plug in," the better the LLM performs.
Discussion and Future Work
The paper argues that for true personalization, understanding a user's holistic style is more important than retrieving specific historical facts. PPlug captures this style better than RAG, though the two methods can be synergistic; combining PPlug for style with RAG for specific context yielded even higher performance.
Future research directions include moving beyond "behavior-level" vectors to incorporate "term-level" information (specific catchphrases) and exploring how PPlug interacts with models undergoing parameter-efficient fine-tuning (PEFT). Additionally, the lightweight nature of the user embedder suggests privacy-preserving potential, where persona embeddings could be generated locally on a user's device, keeping raw historical text private.
Summary updated