TL;DR
This paper introduces "querier-aware LLM personalization," a novel approach where Large Language Models (LLMs) generate responses tailored not just to the query, but also to the specific user asking it. They achieve this with a dual-tower architecture and a contrastive learning strategy, demonstrating significant improvements in response quality and personalization.
What Problem Does This Paper Address?
Current LLM personalization often focuses on assigning different roles or personas to the LLM itself (e.g., a helpful assistant vs. a friendly companion). However, this overlooks a crucial aspect of human communication: how we adapt our responses based on who we are talking to. Even for the same question, a response to a close friend might differ significantly from one to a colleague or a stranger. This paper addresses the gap in LLM personalization by enabling models to generate responses that are sensitive to the querier's unique personality, their relationship with the responder, and the conversational context. This is vital for creating more natural, engaging, and effective AI interactions.
Methods
The authors propose a dual-tower model architecture to disentangle general responder personality from querier-specific personality.
- General Encoder: This tower is initialized with a pretrained LLM and captures the responder's cross-querier characteristics.
- Specific Encoder: This tower, with adapted transformer blocks, focuses on learning querier-specific representations. A key innovation here is decomposing the feedforward layer into two low-rank matrices, making it parameter-efficient.
To train these models, they introduce a querier-contrastive loss function. This loss aims to pull together dialogue representations from the same querier while pushing apart those from different queriers. To mitigate the impact of query diversity on this contrastive learning, they employ a query similarity-based dialogue clustering strategy. Dialogues with similar queries are grouped, and contrastive learning is applied within these clusters. Additionally, a multi-view augmentation technique is used to enhance the effectiveness of the contrastive learning.
Datasets
The authors introduce a new dataset called MQDialog.
- MQDialog: This dataset comprises dialogues from 173 queriers and 12 responders. It is sourced from English and Chinese scripts (The Big Bang Theory, Friends, Modern Family, My Own Swordsman, Empresses in the Palace) and real-world WeChat records. The dataset is designed to capture the nuances of personalized interactions between different queriers and a single responder.
Key Insights and Ideas
- Personalization Beyond Roles: The core idea is that LLMs should adapt to the user, not just adopt a persona. This is a more nuanced form of personalization.
- Dual-Tower for Disentanglement: Separating general responder knowledge from querier-specific traits is crucial for effective personalization.
- Contrastive Learning for Differentiation: Using contrastive learning to explicitly push apart representations of different queriers is key to learning distinct personalization styles.
- Clustering for Robustness: Grouping dialogues by query similarity before applying contrastive learning prevents noise from diverse queries and makes the learning more focused.
- Low-Rank Efficiency: The use of low-rank matrices in the specific encoder is an elegant way to achieve parameter efficiency while capturing querier-specific nuances.
Key Results
- Automatic Metrics: The proposed method achieved significant improvements over baselines in BLEU and ROUGE scores. For example, on the English dataset, average relative improvements over zero-shot generation were 111.4% for BLEU and 22.2% for ROUGE-L. Compared to fine-tuning, improvements were around 7-11% for BLEU and ROUGE-L.
- Human Evaluation (GPT-4): GPT-4 judged the proposed model's responses as better in winning rates ranging from 54% to 82% compared to various baselines, including zero-shot generation and fine-tuning.
- Ablation Studies: Both the querier-contrastive loss and the query similarity-based clustering strategy were shown to be essential for performance gains. The number of clusters also impacted results, with 10 or 50 clusters showing optimal performance.
- Visualization: t-SNE visualizations confirmed that the proposed method effectively separates dialogue representations based on queriers, unlike baseline methods where representations are intermixed.
- Case Studies: Qualitative examples demonstrated that the model generates distinct and contextually appropriate responses based on the querier's identity and relationship, whereas baselines produced more generic replies.
Limitations and Future Work
- Dataset Scope: The MQDialog dataset primarily uses dialogue content. Future work could incorporate richer contextual information like scene descriptions, character actions, social relationships, and knowledge backgrounds.
- Scalability: The current approach is tested with a moderate number of queriers per responder. Scaling personalization to millions of queriers is a future research direction, potentially through querier clustering.
- Cold-Start: For entirely new queriers, the model relies on its general and specific encoders learned from existing users. While it can generate a response, collecting new interactions is necessary for true personalization.
Summary updated