TL;DR
This paper introduces COPE, a novel decoding-time approach for personalizing Large Language Models (LLMs) that leverages implicit user reward signals. By contrasting personalized and non-personalized model outputs, COPE effectively aligns LLM generations with individual user preferences without requiring external reward models or additional training procedures.
What Problem Does This Paper Address?
As LLMs become more integrated into real-world applications, personalizing their outputs to individual user preferences is crucial. While prompt-based and training-based personalization methods exist, they have limitations. Prompt-based methods are often not robust, and training-based methods can be computationally expensive and prone to catastrophic forgetting. The paper identifies a gap in effective decoding-time algorithms for LLM personalization, which remains largely overlooked despite its potential.
Methods
The core of COPE is a reward-guided decoding strategy that operates after parameter-efficient fine-tuning (PEFT) on user-specific data. The key idea is to leverage an implicit user reward signal derived from the likelihoods of both a personalized PEFT-tuned model ($\pi_{user}$) and the original base model ($\pi_{base}$). This implicit reward is calculated as the log-likelihood ratio between the personalized and base models for candidate tokens. This approach is inspired by contrastive decoding and aims to maximize user-aligned outputs.
To further enhance personalization, COPE incorporates a training scheme using Direct Preference Optimization (DPO). This involves contrasting positive user responses with synthetically generated negative responses (those unlikely to come from the user). These negative responses are generated by sampling from the base model and selecting the one with the lowest implicit user reward. This DPO step aligns the PEFT-tuned model more closely with user preferences, improving the effectiveness of the subsequent decoding process.
Datasets
The paper evaluates COPE on five personalized open-ended text generation tasks from two benchmarks:
- LaMP (Large Language Model Personalization):
- News Headline Generation (LaMP 4)
- Scholarly Title Generation (LaMP 5)
- LongLaMP:
- Abstract Generation (LongLaMP 2)
- Review Writing (LongLaMP 3)
- Topic Writing (LongLaMP 4)
Key Insights and Ideas
- Decoding-time personalization is a viable and overlooked approach: The paper demonstrates that effective personalization can be achieved at the decoding stage, complementing existing training-based methods.
- Implicit reward signals are powerful: By contrasting the outputs of a personalized model with a base model, a meaningful implicit reward signal can be derived without external reward models.
- DPO enhances PEFT for personalization: Using DPO with synthetically generated negative samples effectively aligns PEFT-tuned models with user preferences, leading to better personalization.
- COPE bridges contrastive decoding and reward-guided decoding: The proposed method leverages the strengths of both paradigms, offering a practical and scalable solution.
- Generalizability across LLMs: COPE shows consistent performance improvements across various LLM architectures and parameter scales, highlighting its broad applicability.
Key Results
- COPE achieves an average relative improvement of 10.57% in ROUGE-L across the five tasks compared to the task-adapted model (TAM).
- It also outperforms a simply personalized model (OPPU) by an average of 5.67% in ROUGE-L.
- COPE demonstrates significant gains on more challenging LongLaMP tasks, achieving a 16.33% gain in ROUGE-L over TAM for Abstract Generation.
- The method is robust and generalizes well across different LLMs, including LLaMA-3.1-8B, Gemma-3-4B, and Qwen2.5-1.5B, showing improvements of up to 55.3% in ROUGE-L compared to TAM.
- Ablation studies show that both contrastive decoding (CD) and DPO contribute positively to performance, with their combination yielding the best results.
- Perplexity analysis indicates that COPE does not degrade text fluency and can even achieve lower perplexity than the base model in some cases.
Limitations and Future Work
- Fixed hyperparameters: COPE currently uses a fixed set of hyperparameters for all users, which might be suboptimal for varying dataset sizes or characteristics. Future work could explore adaptive hyperparameter strategies.
- PEFT method: The study primarily focuses on LoRA as the PEFT method. Exploring other PEFT approaches could further enhance COPE's applicability.
- Privacy: While the approach uses PEFT and synthetic negatives to enhance privacy, explicit assessment of membership inference risks is not performed.
The authors suggest that future work should explore adaptive hyperparameter tuning and investigate other PEFT methods.
Summary updated