Abstract
Personalizing Large Language Models (LLMs) for diverse user preferences is computationally expensive, often requiring full model fine-tuning or large adapters for each individual. This paper proposes a framework that disentangles preference representation from text generation. By mapping user preferences to a low-dimensional latent space and applying Direct Preference Optimization (DPO) only to a small latent encoder, the method achieves high-quality alignment with an 80-90% reduction in per-user training time. Experiments across sentiment, dialogue, and summarization tasks demonstrate that this approach offers the flexibility of prompting with the effectiveness of fine-tuning.
Introduction
While LLMs are increasingly aligned with general human preferences to ensure helpfulness and safety, individual human values remain inherently diverse. A response that satisfies one user may be inappropriate for another based on cultural, political, or stylistic differences. Current personalization methods face a trade-off: prompt engineering is efficient but often fails due to ambiguity, while fine-tuning (e.g., RLHF or DPO) is effective but computationally prohibitive when scaled to millions of users. This research introduces a "flexible paradigm" that bridges this gap by disentangling preference signals from the core generation model.
Methodology
The core innovation lies in treating user preference as a low-dimensional latent variable ($z$) that steers a frozen, pre-trained LLM. The framework operates in three distinct stages:
- Contrastive Language–Latent Pretraining (CLaP): The LLM is extended into a Variational Auto-Encoder (VAE) structure. A small Latent Encoder maps responses into a 32-dimensional vector, while a Latent Adapter integrates this vector into the LLM's attention mechanism. A contrastive loss ensures the latent space captures the semantic essence of the text.
- Latent DPO: To adapt to a specific user, the system performs Direct Preference Optimization (DPO) on the tiny Latent Encoder rather than the entire LLM. By optimizing the distribution of $z$ based on user feedback (e.g., "Response A is better than B"), the model learns to favor latent vectors that produce preferred outputs.
- Personalized Generation: During inference, the personalized encoder generates a latent vector from the user's prompt or history. This vector acts as a steering signal for the frozen LLM, guiding it to produce text aligned with the individual's specific preferences.
Experimental Results
The framework was evaluated on three tasks: sentiment control (IMDB), conversational intent (DailyDialog), and personalized summarization (TL;DR). Key findings include:
- Efficiency: The method reduces the additional training time required for new individual preferences by 80% to 90% compared to Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA-DPO.
- Performance: In the TL;DR summarization task, Latent DPO achieved a win-rate of 56%, surpassing both the base model (~46%) and LoRA-based DPO (~55%).
- Scalability: By keeping the foundational LLM frozen and only updating a low-rank latent encoder, the computational burden of adding new users is drastically minimized, making massive-scale personalization viable.
Discussion and Limitations
The success of this approach supports the hypothesis that individual preferences are "low-rank" and can be disentangled from the massive parameter space of an LLM. However, because the base model remains frozen, the method cannot teach the LLM entirely new facts or capabilities; it can only steer existing knowledge. Additionally, while per-user adaptation is rapid, the initial CLaP pre-training phase requires a significant one-time computational investment. Future work will explore incorporating longer-term user context and scaling the framework to larger models like Llama-3.
Conclusion
By disentangling preference representation from text generation, this framework provides a scalable and efficient path for individual LLM alignment. It maintains the high performance of fine-tuning while achieving the deployment efficiency necessary for real-world applications serving millions of unique users.
Summary updated