Embedding-to-Prefix: Parameter-Efficient Personalization for Pre-Trained Large Language Models
Bernd Huber, Ghazal Fazelnia, Andreas Damianou, Sebastian Peleato, Max Lefarov, Praveen Ravichandran, Marco De Nadai, Mounia Lalmas-Roellke, Paul N. Bennett
TL;DR
Embedding-to-Prefix (E2P) addresses the need for efficient personalization of large language models by mapping pre-computed dense user embeddings into a single soft prefix token, generated through a lightweight projection, while keeping the LLM frozen. This parameter-efficient approach yields substantial improvements across dialogue, news headline generation, and production-scale music and podcast personalization, with minimal latency and training requirements. The method demonstrates strong generalization, robustness to embedding drift, and complementary benefits when combined with textual prompts, suggesting practical viability for real-world personalization at scale. Overall, E2P provides a scalable pathway to personalized generation without full model fine-tuning, broadening the applicability of LLMs in individualized user experiences.
Abstract
Large language models (LLMs) excel at generating contextually relevant content. However, tailoring these outputs to individual users for effective personalization is a significant challenge. While rich user-specific information often exists as pre-existing user representations, such as embeddings learned from preferences or behaviors, current methods to leverage these for LLM personalization typically require costly fine-tuning or token-heavy prompting. We propose Embedding-to-Prefix (E2P), a parameter-efficient method that injects pre-computed context embeddings into an LLM's hidden representation space through a learned projection to a single soft token prefix. This enables effective personalization while keeping the backbone model frozen and avoiding expensive adaptation techniques. We evaluate E2P across two public datasets and in a production setting: dialogue personalization on Persona-Chat, contextual headline generation on PENS, and large-scale personalization for music and podcast consumption. Results show that E2P preserves contextual signals and achieves strong performance with minimal computational overhead, offering a scalable, efficient solution for contextualizing generative AI systems.
