[Paper Review] Personalized Large Language Models
The paper compares fine-tuning versus zero-shot and few-shot reasoning for personalizing LLMs on subjective tasks (emotion recognition and hate speech detection) and finds that personalized fine-tuning yields significant performance gains across multiple architectures and datasets.
Large language models (LLMs) have significantly advanced Natural Language Processing (NLP) tasks in recent years. However, their universal nature poses limitations in scenarios requiring personalized responses, such as recommendation systems and chatbots. This paper investigates methods to personalize LLMs, comparing fine-tuning and zero-shot reasoning approaches on subjective tasks. Results demonstrate that personalized fine-tuning improves model reasoning compared to non-personalized models. Experiments on datasets for emotion recognition and hate speech detection show consistent performance gains with personalized methods across different LLM architectures. These findings underscore the importance of personalization for enhancing LLM capabilities in subjective text perception tasks.
Motivation & Objective
- Motivate personalization of LLMs for subjective text perception tasks such as emotion recognition and hate speech detection.
- Evaluate and compare personalized fine-tuning versus zero-shot and few-shot in-context learning.
- Assess performance across diverse LLM architectures and two public datasets.
- Provide practical guidance on when and how personalization boosts performance.
- Release code and datasets to support reproducibility.
Proposed method
- Formalize personalization using user context (e.g., user IDs) during fine-tuning or prompting.
- Compare non-personalized baselines: instruction-tuned querying, a new classification head with fine-tuning, and generative fine-tuning for labels.
- Implement few-shot personalization via in-context learning (Q-NS) with N examples in prompts.
- Develop personalized classification (CLS-P) and personalized language modeling (LM-P) by incorporating user IDs into training.
- Experiment with multiple decoder-only and encoder-decoder LLMs (Phi-2, StableLM, Mistral, Flan-T5, GPT-3.5, GPT-4) on GoEmotions and Unhealthy Conversations datasets.
- Use 4-bit NF4 quantization, qLoRA adapters, and mixed precision training to manage resources.
Experimental results
Research questions
- RQ1Does personalized fine-tuning (CLS-P, LM-P) consistently outperform non-personalized baselines (CLS, LM, Q-0S) across subjective tasks?
- RQ2How do personalization gains vary across datasets with different label complexities (GoEmotions vs. Unhealthy Conversations) and across LLM architectures?
- RQ3Is few-shot in-context personalization sufficient, or is full fine-tuning necessary for maximizing performance in subjective tasks?
- RQ4How do different model architectures (decoder-only vs encoder-decoder) respond to personalization in classification versus language modeling tasks?
- RQ5What practical guidelines emerge for deploying personalized LLMs in subjective text analysis?
Key findings
- Personalized fine-tuning yields substantial gains over non-personalized baselines across both datasets; gains are larger on Unhealthy Conversations.
- In GoEmotions, CLS-P typically outperforms LM-P, highlighting the impact of label complexity on personalization effectiveness.
- Decoder-only models (e.g., Mistral) can benefit more from extended user context than some instruction-tuned models, but encoder-decoder models (e.g., Flan-T5) may excel with fine-tuning in CLS-P/LM-P settings.
- GoEmotions: CLS-P achieves up to 43.07% F1-macro; LM-P reaches 32.87% for Phi-2. Unhealthy Conversations: CLS-P reaches 48.26% and LM-P 45.89% for Phi-2.
- Across models and settings, personalized approaches generally outperform non-personalized ones, with fine-tuning providing the strongest improvements.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.