Abstract
Personalizing Large Language Models (LLMs) to align with individual user styles and preferences is a critical challenge. Existing methods rely on context-heavy prompting or computationally intensive fine-tuning, often neglecting the potential of the decoding stage. We present COPE (Contrasting Personal Preference), a framework that achieves personalization by maximizing an implicit reward signal derived from the contrast between a user-specific model and a generic base model. COPE incorporates a preference-aligned training phase using Direct Preference Optimization (DPO) with synthetic negatives and a contrastive decoding phase. Experimental results across multiple benchmarks and model architectures demonstrate that COPE significantly outperforms existing baselines, achieving a 10.57% relative improvement in ROUGE-L while maintaining high text fluency.
Introduction
As LLMs become integrated into daily workflows, the demand for personalization—aligning model outputs with a specific user’s unique writing style, knowledge, and preferences—has surged. Current approaches typically utilize prompt-based methods or training-based fine-tuning. Prompt-based methods are constrained by context window limits and often fail to capture deep stylistic nuances. Conversely, full fine-tuning or Parameter-Efficient Fine-Tuning (PEFT) like LoRA can be effective but risk "catastrophic forgetting" of general knowledge and are computationally demanding when scaled to millions of users.
The authors identify a significant gap: the lack of effective decoding-time algorithms for personalization. Traditional reward-guided decoding requires a separate reward model for each user, which is practically infeasible. COPE addresses this by using the base model itself as a reference to extract an implicit reward signal, effectively isolating the user's stylistic "fingerprint."
The COPE Framework
COPE operates through a synergistic two-phase process: preference-aligned training and contrastive decoding.
1. Preference-Aligned Training
To ensure the model recognizes and prioritizes user-specific preferences, COPE employs Direct Preference Optimization (DPO). A key challenge in personalizing on user history is the lack of "negative" examples (disliked outputs). COPE solves this by synthesizing negatives. It generates candidate responses from a generic base model and selects the one most mathematically distinct from the user's historical style using a log-likelihood ratio. The model is then trained to prefer the user's actual text over these synthetic alternatives.
2. Contrastive Decoding
At inference time, COPE moves beyond standard greedy or nucleus decoding. It utilizes a contrastive objective that calculates the probability of the next token based on the ratio between the personalized model ($P_{user}$) and the base model ($P_{base}$):
$$\text{token} = \arg\max [ \log P_{user}(y_t) - \alpha \log P_{base}(y_t) ]$$
This "tug-of-war" mechanism effectively filters out generic language patterns common to the base model and amplifies the unique stylistic choices of the specific user. By subtracting the base model's logic, the system "down-votes" generic task-related tokens and "up-votes" tokens that define the user's persona.
Experimental Evaluation
The researchers evaluated COPE using the LaMP (Language Model Personalization) and LongLaMP benchmarks, covering tasks such as news headline generation, scholarly title generation, and long-form review writing. The framework was tested across diverse open-source architectures, including Mistral-7B, LLaMA-3.1-8B, Gemma-3-4B, and Qwen-2.5-1.5B.
Key Results
- Superior Performance: COPE achieved an average relative improvement of 10.57% in ROUGE-L across all tasks compared to standard task-adapted models (TAM).
- Baseline Comparison: It outperformed the strong OPPU baseline (one LoRA per user) by an average of 5.67%.
- Robustness: In instance-level testing, COPE surpassed the standard TAM in 71.55% of cases for ROUGE-L.
- Fluency and Quality: Perplexity analysis confirmed that COPE maintains high text quality. Interestingly, the generated text was often found to be more "regular" and readable than actual human-written "gold" text, which frequently contains idiosyncratic errors.
Discussion and Future Work
The core innovation of COPE is the realization that the log-likelihood ratio between a personalized adapter and its base model serves as a highly effective proxy for a user's reward function, eliminating the need for external reward models.
However, some limitations remain. The study utilized static hyperparameters (like LoRA rank and contrastive strength $\alpha$) across all users, regardless of the size of their historical data. Future work could explore adaptive strategies to tune these parameters dynamically. Additionally, while contrastive decoding is efficient, it requires running two model heads simultaneously, which introduces a slight increase in inference latency. Expanding the framework to other PEFT methods beyond LoRA also remains an open area for exploration.
Conclusion
COPE represents a significant step forward in personalized LLM generation. By combining preference-aligned training with a novel contrastive decoding objective, it successfully captures and amplifies individual user styles without the overhead of custom reward models or the risks of catastrophic forgetting. Its consistent performance gains across various model scales and architectures suggest that contrastive preference is a robust and fundamental approach to LLM personalization.
Summary updated