Abstract
In this paper, we explore the problem of developing personalized chatbots. A personalized chatbot is designed as a digital chatting assistant for a user. The key characteristic of a personalized chatbot is that it should have a consistent personality with the corresponding user. It can talk the same way as the user when it is delegated to respond to others' messages. We present a retrieval-based personalized chatbot model, namely IMPChat, to learn an implicit user profile from the user's dialogue history. We argue that the implicit user profile is superior to the explicit user profile regarding accessibility and flexibility. IMPChat aims to learn an implicit user profile through modeling user's personalized language style and personalized preferences separately. To learn a user's personalized language style, we elaborately build language models from shallow to deep using the user's historical responses; To model a user's personalized preferences, we explore the conditional relations underneath each post-response pair of the user. The personalized preferences are dynamic and context-aware: we assign higher weights to those historical pairs that are topically related to the current query when aggregating the personalized preferences. We match each response candidate with the personalized language style and personalized preference, respectively, and fuse the two matching signals to determine the final ranking score. Comprehensive experiments on two large datasets show that our method outperforms all baseline models.
Introduction
Personalized chatbots aim to act as digital assistants that can "speak" like their users. To achieve this, most current systems rely on explicit profiles: manually written descriptions (e.g., "I am a vegan teacher") or key-value attributes. However, explicit profiles suffer from data scarcity, high manual labeling costs, and an inherent lack of flexibility as human interests and speaking styles evolve.
To address these gaps, we propose IMPChat, a novel retrieval-based chatbot framework that learns implicit user profiles directly from a user’s dialogue history. By eliminating the need for manually crafted personas, IMPChat extracts a user's "personality" from the trail of messages they leave behind, modeling both unique linguistic styles and topical preferences.
The IMPChat Framework
IMPChat decomposes a user's identity into two distinct components to ensure both stylistic and topical consistency in retrieved responses.
1. Personalized Style Matching
This module focuses on how a user talks. It utilizes multi-layer attentive modules to capture linguistic habits, such as specific slang or pet phrases. By employing self-attention within historical responses and cross-attention with historical posts, the model understands the deep semantic patterns of the user's language.
2. Post-Aware Personalized Preference Matching
This component focuses on what a user likes. Since a user's history is multifaceted, the model must determine which past conversations are relevant to a new query.
- Multi-hop Selection: The model uses a multi-hop mechanism to disambiguate the current query. For instance, if a user mentions "MAC," the model scans the history to determine if the context refers to computers or cosmetics.
- Dynamic Weighting: It assigns higher importance to historical post-response pairs that are topically related to the current conversation, ensuring the retrieved response aligns with the user's established preferences.
Finally, a Fusion Module combines these style and preference signals to rank potential response candidates.
Experimental Evaluation
The model was evaluated on two large-scale datasets: Weibo (logs from the Chinese social media platform) and Reddit (post-response pairs extracted from tree-structured reply chains).
Beyond standard retrieval metrics, we introduced a more challenging evaluation setup. Instead of just picking the "correct" response out of random noise, the model must distinguish the user's actual response from "proper" responses (given by other users to the same post) and "relevant" responses (retrieved via search). This led to the creation of the $R_p@k$ metric (Recall in proper candidates), specifically measuring the model's ability to identify the personalized response among contextually valid alternatives.
Results and Analysis
IMPChat achieved state-of-the-art performance, outperforming single-turn models, multi-turn models, and even those utilizing explicit personas.
On the Weibo dataset, IMPChat achieved an $R_{10}@1$ of 0.460, significantly higher than the best multi-turn baseline (IOI at 0.442) and persona-based baseline (RSM-DCK at 0.428). Ablation studies revealed that removing the preference matching module caused the most significant performance drop, suggesting that topical consistency is the strongest signal for personalization in retrieval tasks.
Conclusion
IMPChat demonstrates that implicit user profiles are a powerful and flexible alternative to manually crafted personas. While the model excels at capturing personality, we observed that extremely long histories can introduce noise, and computational costs grow with history length. Future work will explore integrating these implicit profiling techniques into generative models to synthesize entirely new, personalized responses rather than just retrieving them.
Summary updated